/* ==========================================================================
   Variables y Reseteo (Premium Real Estate UI)
   ========================================================================== */
:root {
  --primary: #0f172a;       /* Slate 900 */
  --primary-light: #1e293b; /* Slate 800 */
  --accent: #2563eb;        /* Blue 600 - Principal */
  --accent-hover: #1d4ed8;  /* Blue 700 */
  --accent-gradient: linear-gradient(135deg, #2563eb, #3b82f6);
  --gold: #f59e0b;          /* Amber 500 - Destaques premium */
  --success: #16a34a;       /* Green 600 - WhatsApp */
  --bg-main: #f8fafc;       /* Slate 50 */
  --bg-white: #ffffff;
  --text-main: #334155;     /* Slate 700 */
  --text-muted: #64748b;    /* Slate 500 */
  
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.3);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-main);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Tipografía y Utilidades
   ========================================================================== */
h1, h2, h3, h4 { color: var(--primary); font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 3rem auto; text-align: center; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.section-padding { padding: 100px 0; }
.bg-white { background-color: var(--bg-white); }

/* ==========================================================================
   Botones Premium
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px; /* Estilo píldora moderna */
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  gap: 10px;
}
.btn-primary {
  background: var(--accent-gradient);
  color: #fff !important;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}
.btn-whatsapp {
  background-color: var(--success);
  color: #fff;
  box-shadow: 0 10px 20px rgba(22, 163, 74, 0.3);
}
.btn-whatsapp:hover { transform: translateY(-3px); background-color: #15803d; }

/* ==========================================================================
   Navegación
   ========================================================================== */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.05em;
}
.logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-links a {
  font-weight: 600;
  color: var(--text-main);
  transition: color 0.2s;
  font-size: 1.05rem;
}
.nav-links a:hover { color: var(--accent); }
.nav-links .btn-primary { padding: 12px 24px; font-size: 1rem; }

/* ==========================================================================
   Hero Section (Landing)
   ========================================================================== */
.hero {
  background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.9)), url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&q=80&w=2000') center/cover;
  color: #fff;
  padding: 100px 0;
  min-height: 85vh;
  display: flex;
  align-items: center;
}
.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}
.hero-text h1 {
  color: #fff;
  font-size: 3.5rem;
  margin-bottom: 24px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.hero-text p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.9;
  line-height: 1.8;
}
.trust-badges {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.badge {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Lead Capture Form (Glassmorphism)
   ========================================================================== */
.lead-form-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  color: var(--text-main);
  border: 1px solid rgba(255,255,255,0.5);
}
.lead-form-card h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  text-align: center;
}
.form-step { display: none; }
.form-step.active {
  display: block;
  animation: slideUpFade 0.5s ease;
}
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}
.radio-label {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
  background: #fff;
}
.radio-label:hover { border-color: var(--accent); background: #f0fdf4; }
.radio-label input { margin-right: 15px; transform: scale(1.3); accent-color: var(--accent); }

.input-group { margin-bottom: 24px; }
.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary);
}
.input-group input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #f8fafc;
}
.input-group input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* ==========================================================================
   Nuevas Secciones Resumen (Requisitos y Zonas)
   ========================================================================== */
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.summary-content h2 { margin-bottom: 20px; }
.summary-content p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 30px; }
.check-list { list-style: none; margin-bottom: 40px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 500;
}
.check-list li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #dcfce7;
  color: var(--success);
  border-radius: 50%;
  font-weight: bold;
  flex-shrink: 0;
}

.image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.image-card img {
  width: 100%;
  height: auto;
  transition: transform 0.5s;
}
.image-card:hover img { transform: scale(1.05); }

/* Grid de Zonas */
.zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.zone-pill {
  background: var(--bg-white);
  border: 1px solid #e2e8f0;
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}
.zone-pill:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: translateY(-5px);
}

/* ==========================================================================
   Sección: Beneficios
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.feature-card {
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover { 
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px auto;
  background: #eff6ff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--accent);
}
.feature-card h3 { font-size: 1.4rem; margin-bottom: 15px; }

/* ==========================================================================
   Sección: Testimonios (Social Proof)
   ========================================================================== */
.testimonials-section { background-color: #f1f5f9; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.testimonial-card {
  background: var(--bg-white);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  position: relative;
}
.testimonial-stars { color: var(--gold); font-size: 1.2rem; margin-bottom: 15px; }
.testimonial-text { font-size: 1.05rem; font-style: italic; margin-bottom: 25px; color: var(--text-main); line-height: 1.6; }
.testimonial-author { display: flex; align-items: center; gap: 15px; }
.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}
.testimonial-name { font-weight: 700; color: var(--primary); display: block; }
.testimonial-location { font-size: 0.85rem; color: var(--text-muted); }
@media (max-width: 992px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Sección: FAQ (Acordeón Anti-Miedos)
   ========================================================================== */
.faq-section { background-color: var(--bg-white); padding-bottom: 80px; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 10px;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}
.faq-item.active .faq-icon { transform: rotate(45deg); color: var(--accent); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0;
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  max-height: 500px; /* Suficiente para el contenido */
  padding-bottom: 20px;
}
.faq-answer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

/* ==========================================================================
   Pie de página
   ========================================================================== */
footer {
  background-color: var(--primary);
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}
.footer-text { 
  opacity: 1; 
  color: #e2e8f0;
  font-size: 0.95rem; 
  margin-top: 30px; 
  border-top: 1px solid rgba(255,255,255,0.2); 
  padding-top: 30px; 
}

/* WhatsApp Flotante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(37, 211, 102, 0.6);
    color: white;
}
.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}


/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
  .hero-content, .summary-grid { grid-template-columns: 1fr; text-align: center; }
  .check-list li { text-align: left; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 2.8rem; }
  .nav-links { display: none; /* Menú hamburguesa necesario para prod */ }
}

/* ==========================================================================
   Internal Pages (Premium Redesign)
   ========================================================================== */
.internal-hero {
  background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.95)), url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&q=80&w=2000') center/cover;
  padding: 80px 0 60px 0;
  text-align: center;
  color: #fff;
  border-bottom: 5px solid var(--accent);
}
.internal-hero h1 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 20px;
}
.internal-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto;
}

.content-section {
  padding: 60px 0;
  background-color: var(--bg-main);
}
.content-card {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
  border: 1px solid #e2e8f0;
}
.content-card h2 { font-size: 2rem; margin-bottom: 20px; color: var(--primary); }
.content-card p { font-size: 1.1rem; margin-bottom: 20px; line-height: 1.8; color: var(--text-main); }
.content-card strong { color: var(--primary); }

/* ==========================================================================
   Calculadora Hipotecaria ITIN
   ========================================================================== */
.calc-container {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--accent);
  margin-top: 40px;
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.calc-input-group {
  margin-bottom: 25px;
}
.calc-input-group label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary);
}
.calc-value {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
}
input[type=range] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}
.calc-results {
  background: var(--primary);
  color: #fff;
  padding: 40px;
  border-radius: var(--radius-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.calc-results h3 { color: #fff; opacity: 0.8; font-size: 1.2rem; margin-bottom: 10px; }
.monthly-payment {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 10px;
}
.calc-disclaimer {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 30px;
}
@media (max-width: 768px) {
  .calc-grid { grid-template-columns: 1fr; }
}
