/* =========================================
   ESPACIOSFLEX – style.css (v3 – Figtree + Imagenes CSS)
   ========================================= */

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

:root {
  --orange:       #ED8430;
  --orange-dark:  #d4701f;
  --orange-light: rgba(237,132,48,0.12);
  --orange-pale:  #fff5eb;
  --dark:         #111111;
  --dark2:        #1e1e1e;
  --dark3:        #2B2B2B;
  --gray:         #6b7280;
  --gray-light:   #9ca3af;
  --light:        #f4f5f7;
  --white:        #ffffff;
  --border:       #e5e7eb;
  --radius:       14px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --shadow-sm:    0 1px 8px rgba(0,0,0,0.06);
  --shadow:       0 4px 20px rgba(0,0,0,0.09);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg:    0 16px 56px rgba(0,0,0,0.16);
  --shadow-xl:    0 24px 80px rgba(0,0,0,0.20);
  --font: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ---- BOTONES ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 10px;
  font-family: var(--font); font-weight: 700;
  font-size: 15px; text-decoration: none; border: none;
  cursor: pointer; transition: all 0.22s ease; white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--orange); color: var(--white);
  box-shadow: 0 4px 16px rgba(237,132,48,0.38);
}
.btn-primary:hover {
  background: var(--orange-dark); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(237,132,48,0.50);
}
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.65);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: white; }
.btn-white { background: var(--white); color: var(--dark); font-weight: 700; }
.btn-white:hover { background: #f5f0ea; transform: translateY(-2px); }
.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { background: #1cb855; transform: translateY(-2px); }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-xl { padding: 18px 40px; font-size: 17px; }
.btn-nav { padding: 10px 20px; font-size: 14px; border-radius: 8px; }
.mt-1 { margin-top: 8px; }

/* ---- SECTION HEADERS ---- */
.section-header { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 12px; display: block;
}
.section-eyebrow.light { color: rgba(237,132,48,0.85); }
.section-title {
  font-family: var(--font);
  font-size: clamp(26px, 4vw, 44px); font-weight: 900;
  color: var(--dark); line-height: 1.08; margin-bottom: 0;
  letter-spacing: -0.03em;
}
.section-title.white { color: var(--white); }
.section-subtitle {
  color: var(--gray); font-size: 16px; line-height: 1.65;
  max-width: 560px; margin: 16px auto 0;
}
.req { color: var(--orange); }

/* =================== NAVBAR =================== */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(229,231,235,0.6);
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled {
  box-shadow: 0 4px 40px rgba(0,0,0,0.10);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 0;
  padding: 0 28px; height: 64px;
}
.logo {
  text-decoration: none; font-size: 22px; font-weight: 900;
  flex-shrink: 0; display: flex; align-items: center; gap: 7px;
  font-family: var(--font); letter-spacing: -0.04em;
  margin-right: 40px;
}
.logo-mark { display: flex; align-items: center; }
.logo-mark svg { width: 22px; height: 22px; }
.logo-espacios { color: var(--dark); }
.logo-flex { color: var(--orange); }
.footer-logo { font-size: 24px; margin-bottom: 14px; display: inline-flex; align-items: center; gap: 8px; }

.nav-links { display: flex; gap: 30px; flex: 1; }
.nav-links a {
  text-decoration: none; color: var(--dark2); font-weight: 600;
  font-size: 14.5px; transition: color 0.2s; letter-spacing: -0.01em;
}
.nav-links a:hover { color: var(--orange); }

.nav-right { margin-left: auto; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--dark); border-radius: 2px; transition: all 0.3s;
}
.nav-mobile {
  display: none; flex-direction: column; padding: 16px 28px 24px;
  gap: 18px; background: var(--white); border-top: 1px solid var(--border);
}
.nav-mobile a { text-decoration: none; color: var(--dark2); font-weight: 600; font-size: 16px; }
.nav-mobile.open { display: flex; }

/* =================== HERO =================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; padding-top: 64px;
}
.hero-bg { 
  position: absolute; inset: 0; z-index: 0; 
  background-image: url('img-banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-img { display: none; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg,
    rgba(8,6,4,0.92) 0%,
    rgba(8,6,4,0.82) 38%,
    rgba(8,6,4,0.40) 70%,
    rgba(8,6,4,0.12) 100%
  );
}
.hero-content {
  position: relative; z-index: 1;
  padding: 80px 28px; max-width: 740px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.75);
  margin-bottom: 28px; background: rgba(255,255,255,0.09);
  padding: 6px 14px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.18);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; background: #4ade80;
  border-radius: 50%; display: inline-block;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.28);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74,222,128,0.28); }
  50% { box-shadow: 0 0 0 6px rgba(74,222,128,0.12); }
}
.hero-title {
  font-family: var(--font);
  font-size: clamp(44px, 6.5vw, 84px); font-weight: 900;
  color: var(--white); line-height: 0.98; margin-bottom: 8px;
  letter-spacing: -0.04em;
}
.hero-subtitle {
  font-family: var(--font);
  font-size: clamp(20px, 3.4vw, 44px); font-weight: 800;
  color: var(--orange); margin-bottom: 22px;
  letter-spacing: -0.03em; line-height: 1.08;
}
.hero-tagline {
  color: rgba(255,255,255,0.65); font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 500; margin-bottom: 34px; letter-spacing: 0.02em;
}
.hero-checks {
  list-style: none; margin-bottom: 48px;
  display: flex; flex-direction: column; gap: 14px;
}
.hero-checks li {
  color: rgba(255,255,255,0.88); font-weight: 500;
  font-size: 16px; display: flex; align-items: center; gap: 12px;
}
.check-icon {
  width: 22px; height: 22px; background: var(--orange);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; color: white; flex-shrink: 0;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-scroll-indicator {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-indicator span {
  display: block; width: 2px; height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  margin: 0 auto; animation: scroll-line 1.8s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =================== ALERTA =================== */
.alerta { padding: 14px 0; font-weight: 600; font-size: 15px; }
.alerta-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.alerta-exito { background: #ecfdf5; color: #065f46; border-bottom: 3px solid #10b981; }
.alerta-error { background: #fef2f2; color: #991b1b; border-bottom: 3px solid #ef4444; }
.cerrar-alerta {
  background: none; border: none; font-size: 22px; cursor: pointer;
  opacity: 0.6; padding: 0 8px; flex-shrink: 0;
}
.cerrar-alerta:hover { opacity: 1; }

/* =================== STATS BAR =================== */
.stats-bar { background: var(--dark); padding: 36px 0; }
.stats-grid {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.stat-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 8px 52px; text-align: center;
}
.stat-num {
  font-family: var(--font);
  font-size: 38px; font-weight: 900; color: var(--white);
  line-height: 1; letter-spacing: -0.04em;
}
.stat-plus { font-size: 24px; color: var(--orange); }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.48); font-weight: 500; letter-spacing: 0.01em; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.1); flex-shrink: 0; }

/* =================== TRUST / TESTIMONIOS =================== */
.trust-section { padding: 96px 0; background: var(--light); }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.trust-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07), 0 8px 28px rgba(0,0,0,0.06);
  transition: transform 0.35s cubic-bezier(.22,.9,.36,1), box-shadow 0.35s;
  border: 1px solid rgba(229,231,235,0.5);
}
.trust-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 24px 64px rgba(0,0,0,0.14);
}

/* Configuracion Imagenes Trust por CSS */
.trust-img-wrap { height: 230px; overflow: hidden; position: relative; }
.trust-img-wrap img { display: none; }
.trust-img-wrap::before {
  content: ''; position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.6s ease;
}
.trust-card:hover .trust-img-wrap::before { transform: scale(1.06); }
.trust-card:nth-child(1) .trust-img-wrap::before { background-image: url('header01flex.png'); }
.trust-card:nth-child(2) .trust-img-wrap::before { background-image: url('header02flex.png'); }

.trust-content { padding: 26px 28px; }
.trust-stars { color: #f59e0b; font-size: 17px; margin-bottom: 13px; letter-spacing: 2px; }
.trust-text {
  color: var(--gray); font-size: 15px; line-height: 1.72;
  margin-bottom: 22px; font-style: italic;
}
.trust-author-row { display: flex; align-items: center; gap: 12px; }
.trust-avatar {
  width: 40px; height: 40px; background: var(--orange);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 16px; flex-shrink: 0;
}
.trust-author-name { font-weight: 700; font-size: 14px; color: var(--dark); }
.trust-author-co { font-size: 13px; color: var(--gray-light); }

/* =================== ESPACIOS =================== */
.espacios-section { padding: 96px 0; background: var(--white); }
.espacios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.espacio-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07), 0 8px 32px rgba(0,0,0,0.06);
  border: 1px solid rgba(229,231,235,0.7);
  transition: transform 0.35s cubic-bezier(.22,.9,.36,1), box-shadow 0.35s;
}
.espacio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 20px 60px rgba(0,0,0,0.14);
}

/* Configuracion Imagenes Espacios por CSS */
.espacio-img-wrap { height: 215px; overflow: hidden; position: relative; }
.espacio-img-wrap img { display: none; }
.espacio-img-wrap::before {
  content: ''; position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.6s ease;
}
.espacio-card:hover .espacio-img-wrap::before { transform: scale(1.07); }
.espacio-card:nth-child(1) .espacio-img-wrap::before { background-image: url('beneficios-1.png'); }
.espacio-card:nth-child(2) .espacio-img-wrap::before { background-image: url('beneficios-2.png'); }
.espacio-card:nth-child(3) .espacio-img-wrap::before { background-image: url('beneficios-3.png'); }

.espacio-badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: var(--orange); color: white;
  font-size: 12px; font-weight: 700; padding: 5px 13px;
  border-radius: 20px; letter-spacing: 0.02em;
  box-shadow: 0 2px 10px rgba(237,132,48,0.45);
}
.espacio-info { padding: 24px 26px 28px; }
.espacio-info h3 {
  font-family: var(--font); font-size: 20px; font-weight: 800;
  margin-bottom: 10px; color: var(--dark); letter-spacing: -0.025em;
}
.espacio-info p { color: var(--gray); font-size: 14px; line-height: 1.68; margin-bottom: 18px; }
.espacio-cta {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--orange); font-weight: 700; font-size: 14px;
  text-decoration: none; transition: gap 0.2s;
}
.espacio-cta:hover { gap: 10px; }
.espacio-cta span { transition: transform 0.2s; }
.espacio-cta:hover span { transform: translateX(3px); }

/* =================== FEATURES =================== */
.features-section { padding: 96px 0; background: var(--dark2); }
.features-section .section-header { margin-bottom: 60px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-item {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius); padding: 28px;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.feature-item:hover {
  background: rgba(255,255,255,0.07); transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.feature-icon-wrap {
  width: 50px; height: 50px; background: var(--orange-light);
  border-radius: 13px; display: flex; align-items: center; justify-content: center;
  color: var(--orange); margin-bottom: 20px;
  border: 1px solid rgba(237,132,48,0.22);
}
.feature-item h4 {
  font-size: 16px; font-weight: 800; color: var(--white);
  margin-bottom: 10px; letter-spacing: -0.02em;
}
.feature-item p { color: rgba(255,255,255,0.48); font-size: 14px; line-height: 1.68; }

/* =================== CALCULADORA =================== */
.calc-section { padding: 96px 0; background: var(--light); }
.calc-wrapper {
  display: grid; grid-template-columns: 290px 1fr;
  gap: 0; border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12), 0 2px 10px rgba(0,0,0,0.07);
  border: 1px solid var(--border); max-width: 1000px; margin: 0 auto;
}
.calc-sidebar {
  background: var(--dark); padding: 44px 30px;
  display: flex; flex-direction: column; gap: 0;
}
.calc-sidebar .price-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 8px;
}
.calc-sidebar .price-amount {
  font-family: var(--font);
  font-size: 56px; font-weight: 900; color: var(--white);
  line-height: 1; margin-bottom: 12px; letter-spacing: -0.04em;
  transition: color 0.3s;
}
.calc-sidebar .price-note {
  font-size: 12px; color: rgba(255,255,255,0.35); line-height: 1.55; margin-bottom: 28px;
}
.calc-btn-cta { width: 100%; justify-content: center; margin-bottom: 32px; }
.calc-includes { border-top: 1px solid rgba(255,255,255,0.09); padding-top: 24px; }
.includes-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 14px;
}
.calc-includes ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.calc-includes ul li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,0.6); font-weight: 500;
}
.calc-includes ul li span { color: var(--orange); font-weight: 800; }
.calc-main { background: var(--white); display: flex; flex-direction: column; }
.calc-toggle {
  width: 100%; background: var(--white); color: var(--dark);
  border: none; border-bottom: 1px solid var(--border);
  padding: 20px 28px; font-family: var(--font);
  font-size: 15px; font-weight: 700; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.2s; letter-spacing: -0.01em;
}
.calc-toggle:hover { background: #fafafa; }
.toggle-arrow { transition: transform 0.3s; color: var(--orange); }
.toggle-arrow.up { transform: rotate(180deg); }
.calc-panel { background: var(--white); padding: 28px 32px; }
.calc-group { margin-bottom: 24px; }
.calc-group.full-width { width: 100%; }
.calc-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.calc-label {
  font-size: 12px; font-weight: 800; color: var(--dark); margin-bottom: 14px;
  display: block; text-transform: uppercase; letter-spacing: 0.07em;
}
.radio-label, .check-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--dark2); margin-bottom: 8px; cursor: pointer;
  padding: 8px 12px; border-radius: 8px; transition: background 0.15s;
}
.radio-label:hover, .check-label:hover { background: var(--orange-pale); }
.radio-label input[type="radio"], .check-label input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--orange); cursor: pointer; flex-shrink: 0;
}
.radio-label span, .check-label span { font-size: 14px; font-weight: 500; }
.slider {
  width: 100%; height: 5px; background: var(--border); border-radius: 10px;
  outline: none; cursor: pointer; accent-color: var(--orange);
  margin: 14px 0 6px; -webkit-appearance: none; appearance: none;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange); cursor: pointer;
  box-shadow: 0 2px 12px rgba(237,132,48,0.5);
  border: 3px solid white; outline: 2px solid var(--orange);
}
.slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange); cursor: pointer; border: 3px solid white;
}
.slider-range-labels {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--gray-light); font-weight: 500;
}

/* =================== GALERÍA =================== */
.galeria-section { padding: 80px 0; background: var(--light); }
.galeria-section .section-header { margin-bottom: 40px; }

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* Configuracion Imagenes Galeria por CSS */
.galeria-item {
  overflow: hidden; border-radius: var(--radius);
  position: relative; height: 240px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10), 0 4px 24px rgba(0,0,0,0.07);
  transition: transform 0.35s cubic-bezier(.22,.9,.36,1), box-shadow 0.35s;
  cursor: pointer;
}
.galeria-item img { display: none; }
.galeria-item::before {
  content: ''; position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.6s ease;
}
.galeria-item:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 8px 32px rgba(0,0,0,0.14), 0 20px 60px rgba(0,0,0,0.12);
  z-index: 2;
}
.galeria-item:hover::before { transform: scale(1.08); }

.galeria-item:nth-child(1)::before { background-image: url('aula_1.jpg'); }
.galeria-item:nth-child(2)::before { background-image: url('aula_2.png'); }
.galeria-item:nth-child(3)::before { background-image: url('aula_3.png'); }
.galeria-item:nth-child(4)::before { background-image: url('aula_4.png'); }

.galeria-item.grande { grid-column: span 1; grid-row: span 1; }

.galeria-label {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
  color: white; font-size: 13px; font-weight: 700;
  padding: 24px 16px 14px; opacity: 0; transition: opacity 0.3s;
  letter-spacing: 0.02em;
}
.galeria-item:hover .galeria-label { opacity: 1; }

/* =================== URGENCIA =================== */
.urgencia-section { background: var(--orange); padding: 52px 0; }
.urgencia-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.urgencia-pulse {
  position: relative; flex-shrink: 0;
  width: 56px; height: 56px;
}
.urgencia-pulse span {
  position: absolute; inset: 0; background: rgba(255,255,255,0.2);
  border-radius: 50%; animation: urgencia-ring 1.6s ease-out infinite;
}
.urgencia-pulse svg { position: relative; z-index: 1; margin: 14px; }
@keyframes urgencia-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}
.urgencia-text { flex: 1; }
.urgencia-text h3 {
  font-family: var(--font); font-size: 22px; font-weight: 900;
  color: var(--white); margin-bottom: 6px; letter-spacing: -0.025em;
}
.urgencia-text p { color: rgba(255,255,255,0.82); font-size: 15px; }

/* =================== FORMULARIO =================== */
.form-section { padding: 96px 0; background: var(--white); }
.form-wrapper {
  display: grid; grid-template-columns: 300px 1fr;
  gap: 40px; margin-top: 0; align-items: start;
}
.form-asesora {
  background: var(--dark); border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}

/* Configuracion Imagen Asesora por CSS */
.asesora-img-wrap { height: 260px; overflow: hidden; position: relative; }
.asesora-img-wrap img { display: none; }
.asesora-img-wrap::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('asesora_wsp.png');
  background-size: cover; background-position: top;
}

.asesora-info { padding: 26px; }
.asesora-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; color: #4ade80;
  background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.2);
  padding: 4px 12px; border-radius: 20px; margin-bottom: 14px;
}
.asesora-nombre {
  font-family: var(--font); font-size: 18px; font-weight: 800;
  color: var(--white); margin-bottom: 8px;
}
.asesora-cargo { color: rgba(255,255,255,0.58); font-size: 14px; margin-bottom: 22px; line-height: 1.6; }

.formulario {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 38px; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 16px;
  border: 1px solid rgba(229,231,235,0.7);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: span 2; }
.form-group label {
  font-weight: 700; font-size: 13px; color: var(--dark2);
  letter-spacing: 0.01em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: 10px; font-family: var(--font);
  font-size: 14px; color: var(--dark); background: var(--white);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(237,132,48,0.10);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #c4c4c4; }
.form-group textarea { resize: vertical; min-height: 90px; }
.checkbox-consent {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 13px; color: var(--gray); cursor: pointer; line-height: 1.6;
}
.checkbox-consent input {
  width: 16px; height: 16px; flex-shrink: 0;
  accent-color: var(--orange); margin-top: 3px;
}
.form-submit { padding-top: 4px; }
.form-note {
  font-size: 12px; color: var(--gray-light); margin-top: 12px;
  display: flex; align-items: center; gap: 6px;
}
.form-note::before { content: '⚡'; }

/* =================== FAQ =================== */
.faq-section { padding: 96px 0; background: var(--light); }
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  transition: box-shadow 0.25s, transform 0.25s;
}
.faq-item:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.faq-pregunta {
  width: 100%; padding: 20px 24px; background: none; border: none;
  font-family: var(--font); font-size: 15px; font-weight: 700;
  color: var(--dark); text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; transition: color 0.2s;
}
.faq-pregunta:hover { color: var(--orange); }
.faq-pregunta span:first-child { flex: 1; }
.faq-arrow {
  font-size: 22px; font-weight: 400; color: var(--orange);
  transition: transform 0.3s; flex-shrink: 0; line-height: 1;
}
.faq-arrow.open { transform: rotate(45deg); }
.faq-respuesta {
  padding: 0 24px; max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-respuesta.open { max-height: 300px; padding: 0 24px 22px; }
.faq-respuesta p { color: var(--gray); font-size: 15px; line-height: 1.78; }

/* =================== CTA FINAL =================== */
.cta-final {
  background: var(--orange); padding: 96px 0;
  position: relative; overflow: hidden;
}
.cta-bg-shape {
  position: absolute; right: -120px; top: -120px;
  width: 500px; height: 500px;
  background: rgba(255,255,255,0.07); border-radius: 50%;
}
.cta-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.cta-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.72); margin-bottom: 12px;
}
.cta-text h2 {
  font-family: var(--font);
  font-size: clamp(26px, 3.5vw, 46px); font-weight: 900;
  color: var(--white); margin-bottom: 12px; letter-spacing: -0.04em; line-height: 1.06;
}
.cta-sub { color: rgba(255,255,255,0.78); font-size: 16px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* =================== FOOTER =================== */
.footer { background: #0d0d0d; padding: 72px 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
}
.footer-brand .footer-logo { text-decoration: none; }
.footer-brand .logo-espacios { color: rgba(255,255,255,0.88); }
.footer-brand .logo-flex { color: var(--orange); }
.footer-col p { color: rgba(255,255,255,0.42); font-size: 14px; line-height: 1.78; margin-bottom: 20px; }
.footer-col h4 {
  font-size: 12px; font-weight: 800; color: rgba(255,255,255,0.88);
  margin-bottom: 18px; letter-spacing: 0.1em; text-transform: uppercase;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.42); font-size: 14px;
}
.footer-col ul li a {
  color: rgba(255,255,255,0.42); text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--orange); }
.footer-col ul li svg { flex-shrink: 0; opacity: 0.45; }
.footer-social { display: flex; gap: 10px; margin-top: 8px; }
.footer-social a {
  width: 38px; height: 38px; background: rgba(255,255,255,0.06);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45); transition: all 0.2s;
}
.footer-social a:hover { background: var(--orange); color: white; }
.footer-bottom {
  margin-top: 56px; border-top: 1px solid rgba(255,255,255,0.05);
  padding: 20px 0;
}
.footer-bottom p { color: rgba(255,255,255,0.22); font-size: 13px; text-align: center; }

/* =================== WHATSAPP FLOAT =================== */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 58px; height: 58px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,0.55);
  transition: transform 0.3s, box-shadow 0.3s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 36px rgba(37,211,102,0.65);
}

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }
  .galeria-item { height: 210px; }
  .calc-wrapper { grid-template-columns: 240px 1fr; }
}

@media (max-width: 900px) {
  .calc-wrapper { grid-template-columns: 1fr; }
  .calc-sidebar { padding: 32px 24px; }
  .calc-sidebar .price-amount { font-size: 44px; }
  .form-wrapper { grid-template-columns: 1fr; }
  .form-asesora { display: grid; grid-template-columns: 200px 1fr; }
  .asesora-img-wrap { height: 100%; }
  .espacios-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .hamburger { display: flex; }
  .trust-grid { grid-template-columns: 1fr; }
  .espacios-grid { grid-template-columns: 1fr; }
  .calc-columns { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-group.full { grid-column: span 1; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
  .urgencia-inner { flex-direction: column; text-align: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }
  .galeria-item { height: 180px; }
  .stats-grid { gap: 0; }
  .stat-item { padding: 8px 24px; }
  .stat-divider { display: none; }
  .form-asesora { grid-template-columns: 1fr; }
  .asesora-img-wrap { height: 200px; }
  .formulario { padding: 24px; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; display: grid; gap: 4px; }
  .stat-divider { display: none; }
  .stat-item { padding: 16px 12px; }
  .hero-title { font-size: 38px; }
  .hero-subtitle { font-size: 22px; }
  .galeria-grid { grid-template-columns: 1fr; }
  .galeria-item { height: 200px; }
}

/* ---- TARJETA WHATSAPP ---- */
.hero-wa-card {
  background: #1a1a1a;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
  /* animación de entrada */
  animation: wa-card-in 0.7s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.3s;
  opacity: 0;
}
@keyframes wa-card-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Foto de la asesora */
.hero-wa-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 2.6;
  overflow: hidden;
  background: #d4c5b0;    /* tono piel de fondo */
}
.hero-wa-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Cuerpo de la tarjeta */
.hero-wa-body {
  padding: 22px 24px 26px;
}

/* Badge "En línea ahora" */
.hero-wa-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.3);
  color: #4ade80;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 14px;
}
.hero-wa-dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.25);
  animation: pulse-dot 2s infinite;
}

/* Título y texto */
.hero-wa-title {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.hero-wa-text {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Botón WhatsApp */
.hero-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  background: #25D366;
  color: #ffffff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  letter-spacing: -0.01em;
}
.hero-wa-btn:hover {
  background: #1cb855;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37,211,102,0.55);
}

/* ---- RESPONSIVE HERO 2-col ---- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 300px;
    gap: 28px;
  }
}
@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 100px 28px 60px;
  }
  .hero-wa-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-radius: 16px;
    max-width: 520px;
  }
  .hero-wa-img-wrap {
    aspect-ratio: auto;
    min-height: 200px;
  }
}
@media (max-width: 540px) {
  .hero-wa-card {
    grid-template-columns: 1fr;
  }
  .hero-wa-img-wrap {
    aspect-ratio: 4 / 3;
    min-height: unset;
  }
}
