:root {
  --cream: #f5f2ed;
  --on-dark: #faf7f2; /* texto sobre azul marino/foto oscura: más claro que el fondo cream para no verse grisáceo */
  --white: #ebe6dc;
  --sand: #f3ead6;

  --navy: #1d253a;
  --navy-hover: #141a2b;
  --navy-light: rgba(29, 37, 58, 0.07);
  --navy-border: rgba(29, 37, 58, 0.18);

  --slate: #aab4c8;
  --slate-hover: #55627f;
  --slate-light: rgba(170, 180, 200, 0.24);

  --gold: #c9a86a;
  --gold-hover: #b3945a;
  --gold-light: rgba(201, 168, 106, 0.18);
  --gold-text: #664e22; /* gold-hover fails AA as text; use this where gold labels the reader — not just accents an icon */

  --divider: #d3c9b8;

  --text-main: #1a2030;
  --text-muted: #4d4d4d; /* gris piedra oscuro: fondos más oscuros + público adulto mayor → ≥6:1 sobre cream/marfil/blush */
  --text-subtle: #4d4d4d;

  --border-color: #d3c9b8;
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 22px;
  --border-radius-full: 9999px;

  --shadow-sm: 0 2px 10px rgba(29, 37, 58, 0.05);
  --shadow-md: 0 14px 30px -8px rgba(29, 37, 58, 0.1), 0 8px 10px -6px rgba(29, 37, 58, 0.04);
  --shadow-lg: 0 30px 54px -16px rgba(29, 37, 58, 0.18), 0 12px 18px -10px rgba(29, 37, 58, 0.08);
  --shadow-gold: 0 14px 30px -8px rgba(201, 168, 106, 0.5);

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Motion tokens — strong, deliberate curves (Apple/Emil Kowalski house style) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --transition: all 0.25s var(--ease-out);
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--navy), var(--gold));
  z-index: 9999; box-shadow: 0 0 12px rgba(201, 168, 106, 0.6); pointer-events: none;
}

.perspective-container { perspective: 1200px; }
.will-animate-hero { will-change: transform, opacity; }

.ambient-glow-orb { position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; opacity: 0.5; z-index: 0; }
.orb-gold { width: 440px; height: 440px; background: radial-gradient(circle, rgba(201, 168, 106, 0.35), transparent 70%); top: -140px; right: -80px; }
.orb-navy { width: 380px; height: 380px; background: radial-gradient(circle, rgba(29, 37, 58, 0.14), transparent 70%); bottom: -100px; left: -100px; }
.orb-slate { width: 340px; height: 340px; background: radial-gradient(circle, rgba(170, 180, 200, 0.3), transparent 70%); top: 40%; left: -60px; }

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background-color: var(--cream);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 1rem;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }
h1, h2 { font-family: var(--font-display); }
h3, h4 { font-family: var(--font-main); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.text-gradient { color: var(--gold); }

/* Icons (Phosphor, thin weight — monoline, burgundy/gold only) */
.icon { font-size: 20px; line-height: 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 32px; font-weight: 600; font-size: 1rem;
  border-radius: var(--border-radius-full); border: 1.5px solid transparent;
  cursor: pointer; transition: transform 120ms var(--ease-out), background-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
  font-family: var(--font-main); text-align: center;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--navy); color: var(--on-dark); box-shadow: var(--shadow-md); font-weight: 600; }
.btn-primary:hover { background: var(--navy-hover); transform: translateY(-2px); box-shadow: 0 18px 34px -8px rgba(29, 37, 58, 0.35); }
.btn-primary:active { transform: scale(0.97); }
.btn-whatsapp { background-color: var(--navy); color: #ffffff; box-shadow: 0 12px 26px -6px rgba(29, 37, 58, 0.45); }
.btn-whatsapp:hover { background-color: var(--navy-hover); transform: translateY(-2px); }
.btn-outline { background-color: transparent; border-color: var(--navy-border); color: var(--navy); }
.btn-outline:hover { background-color: var(--navy-light); border-color: var(--navy); }
.btn-outline-white { background-color: transparent; border-color: var(--navy-border); color: var(--navy); }
.btn-outline-white:hover { background-color: var(--navy); border-color: var(--navy); color: var(--on-dark); }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.nav-actions .btn-outline-white .icon { color: var(--navy); }
.nav-actions .btn-outline-white:hover .icon { color: var(--on-dark); }
.btn-block { width: 100%; }

/* Navbar */
.navbar {
  position: sticky; top: 0; left: 0; width: 100%; z-index: 1000;
  background-color: rgba(245, 242, 237, 0.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--divider);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: 0 8px 24px rgba(29, 37, 58, 0.08); background-color: rgba(245, 242, 237, 0.98); }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo-brand { display: flex; align-items: center; gap: 14px; }
.logo-brand img { height: 46px; width: auto; object-fit: contain; transition: var(--transition); }
.logo-brand .logo-wordmark { height: 40px; }
.logo-name { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); }
.logo-brand:hover img { transform: scale(1.03); }
@media (max-width: 1320px) { .logo-brand img { height: 40px; } .logo-brand .logo-wordmark { height: 34px; } }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { font-weight: 500; font-size: 0.92rem; color: var(--text-main); position: relative; letter-spacing: 0.2px; }
.nav-link:hover, .nav-link.active { color: var(--navy); }
.nav-cta-mobile { display: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--navy); cursor: pointer; }

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px;
  background-color: var(--gold-light); color: var(--navy);
  font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.4px;
  border-radius: var(--border-radius-full); margin-bottom: 18px;
  border: 1px solid rgba(201, 168, 106, 0.4);
}
.badge-light { background: var(--white); color: var(--navy); border-color: var(--navy-border); }
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}

/* ==========================================================================
   Hero — full-bleed video
   ========================================================================== */
.hero-video-section {
  position: relative; overflow: hidden; min-height: 88vh;
  display: flex; align-items: center; padding: 64px 0 0;
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--navy-hover); }
.hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(10, 14, 24,0.84) 0%, rgba(10, 14, 24,0.52) 32%, rgba(10, 14, 24,0.16) 54%, rgba(10, 14, 24,0.12) 100%),
    linear-gradient(0deg, rgba(8, 10, 18,0.55) 0%, transparent 22%, transparent 78%, rgba(8, 10, 18,0.3) 100%);
}
.hero-logo-motion {
  position: absolute; z-index: 1; pointer-events: none;
  top: 50%; right: -6%; width: 620px; height: 620px; max-width: 60vw; max-height: 60vw;
  transform: translateY(-50%);
  background-image: url('../assets/images/avvena/monograma-ag-dorado.png');
  background-size: contain; background-repeat: no-repeat; background-position: center;
  opacity: 0.16; mix-blend-mode: screen;
  animation: heroLogoDrift 24s var(--ease-in-out) infinite;
}
@keyframes heroLogoDrift {
  0%, 100% { transform: translateY(-50%) rotate(0deg) scale(1); }
  50% { transform: translateY(-53%) rotate(3deg) scale(1.05); }
}
.hero-ring {
  position: absolute; z-index: 1; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(170, 180, 200,0.4);
  width: 560px; height: 560px; right: -180px; bottom: -200px;
}
.hero-ring::after {
  content: ''; position: absolute; inset: 60px; border-radius: 50%; border: 1px solid rgba(170, 180, 200,0.28);
}

.hero-content-wrap { position: relative; z-index: 2; max-width: 700px; margin: 0; padding-left: clamp(24px, 6vw, 72px); padding-right: 24px; padding-bottom: 176px; text-align: left; }
.hero-eyebrow { color: var(--gold); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.hero-title { font-family: var(--font-display); font-size: 3.4rem; line-height: 1.14; font-weight: 600; color: var(--on-dark); margin-bottom: 22px; letter-spacing: -0.01em; text-shadow: 0 2px 20px rgba(8, 10, 18,0.35); }
.hero-subtitle { font-size: 1rem; color: rgba(248,246,242,0.88); margin-bottom: 34px; max-width: 520px; line-height: 1.7; font-weight: 400; text-align: left; }
.hero-video-section .btn-outline-white { border-color: rgba(248,246,242,0.5); color: var(--on-dark); }
.hero-video-section .btn-outline-white:hover { background-color: var(--cream); border-color: var(--cream); color: var(--navy); }

.hero-stats-inline { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 28px; }
.hero-stat-pill { display: flex; align-items: center; gap: 12px; }
.hero-stat-pill .icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(248,246,242,0.12); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.hero-stat-pill strong { display: block; font-size: 0.92rem; font-weight: 700; color: var(--on-dark); line-height: 1.2; }
.hero-stat-pill span { display: block; font-size: 0.78rem; color: rgba(248,246,242,0.7); font-weight: 400; }

/* Floating trust badges over the video, bottom bar */
.hero-floating-row {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  background: var(--white);
  border-top: 1px solid rgba(201, 168, 106,0.5);
  padding: 32px clamp(24px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
}
.hero-cta-strip { background: var(--white); text-align: center; padding: 8px 24px 44px; border-bottom: 1px solid var(--divider); }
.hero-cta-strip .btn { padding: 17px 44px; font-size: 1.05rem; }
.hero-badge-item { justify-self: center; display: flex; align-items: flex-start; gap: 14px; font-size: 0.86rem; font-weight: 400; color: var(--navy-hover); max-width: 360px; line-height: 1.55; }
.hero-badge-item strong { display: block; color: var(--navy); font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; line-height: 1.3; }
.hero-badge-item .icon { color: var(--navy); font-size: 22px; flex-shrink: 0; margin-top: 1px; }

/* ==========================================================================
   Trust Strip
   ========================================================================== */
.trust-strip { background-color: var(--white); padding: 64px 0; border-bottom: 1px solid var(--divider); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; }
.trust-item { display: flex; align-items: center; gap: 16px; padding: 0 8px; }
.trust-item .icon {
  width: 46px; height: 46px; border-radius: 50%; background: var(--gold-light); color: var(--navy);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 20px;
}
.trust-item strong { display: block; font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.trust-item span { font-size: 0.875rem; color: var(--text-muted); }

/* Common Section Layout */
.section { padding: 104px 0; }
.section-dark { background-color: var(--slate); color: var(--text-main); }
.section-cream { background-color: var(--white); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-header.align-left { margin: 0 0 56px; text-align: left; }
.section-tag {
  display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 600;
  color: var(--navy); letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 12px;
}
.section-dark .section-tag { color: var(--navy); }
.section-title { font-family: var(--font-main); font-size: 1.3rem; font-weight: 600; letter-spacing: 0; margin-bottom: 16px; line-height: 1.4; color: var(--navy); }
.section-subtitle { font-size: 1rem; color: var(--text-muted); line-height: 1.7; font-weight: 400; }
.section-dark .section-subtitle { color: #3d3733; } /* text-muted only hits 2.5:1 on the sage background — this clears 5:1 */

/* ==========================================================================
   Aliados — logo strip
   ========================================================================== */
.allies-strip { background: var(--white); padding: 64px 0; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); text-align: center; }
.allies-strip .section-tag { margin-left: auto; margin-right: auto; }
.allies-header { max-width: 620px; margin: 0 auto 32px; }
.allies-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 32px 64px; max-width: 1040px; margin: 0 auto; }
.ally-logo-box { display: flex; align-items: center; justify-content: center; height: 84px; transition: transform 0.3s var(--ease-out); }
.ally-logo-box:hover { transform: translateY(-3px); }
.ally-logo { max-height: 100%; max-width: 210px; width: auto; object-fit: contain; filter: grayscale(1) contrast(1.05) opacity(0.75); transition: var(--transition); }
.ally-logo-box:hover .ally-logo { filter: grayscale(0) opacity(1); }

/* ==========================================================================
   El Dolor — bloque de conexión emocional
   ========================================================================== */
.pain-section { background: var(--sand); padding-top: 80px; }
.pain-content { max-width: 780px; margin: 0 auto; text-align: center; }
/* Fondos decorativos sutiles: marca de agua del isotipo AV y lavados tonales de la paleta.
   Detrás del contenido (isolation + z-index:-1), sin eventos de puntero, muy baja opacidad. */
.bg-mark, .bg-wash { position: relative; overflow: hidden; isolation: isolate; }
.bg-mark::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  top: 50%; width: 520px; height: 520px; transform: translateY(-50%);
  background: url('../assets/images/avvena/monograma-ag-dorado.png') center / contain no-repeat;
  opacity: 0.07;
}
.bg-mark--right::before { right: -110px; }
.bg-mark--left::before { left: -110px; opacity: 0.14; }
.bg-wash::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(640px 420px at 95% 0%, rgba(201, 168, 106,0.20), transparent 70%),
    radial-gradient(560px 420px at 0% 100%, rgba(170, 180, 200,0.24), transparent 70%);
}
.bg-wash--alt::before {
  background:
    radial-gradient(600px 420px at 0% 0%, rgba(201, 168, 106,0.18), transparent 70%),
    radial-gradient(560px 420px at 100% 100%, rgba(29, 37, 58,0.07), transparent 70%);
}


/* ==========================================================================
   Quiénes Somos — Consejo de Dirección
   ========================================================================== */
.board-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.board-intro { background: var(--cream); border-radius: var(--border-radius-lg); padding: 0 40px 0 0; }
.board-photo { width: 100%; aspect-ratio: 1408 / 768; object-fit: cover; border-radius: var(--border-radius-md); margin-bottom: 28px; }
.board-intro h2 { font-family: var(--font-main); font-size: 1.3rem; font-weight: 600; letter-spacing: 0; margin-bottom: 18px; line-height: 1.4; color: var(--navy); }
.board-intro p { color: var(--text-muted); font-size: 1rem; line-height: 1.75; margin-bottom: 18px; font-weight: 400; }
.board-intro .board-closing { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--divider); font-style: italic; color: var(--text-main); }

.board-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.board-pillar { background: var(--white); border: 1px solid var(--divider); border-radius: var(--border-radius-lg); padding: 28px 24px; transition: var(--transition); }
.board-pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.board-pillar .icon-box {
  width: 44px; height: 44px; border-radius: 12px; background: var(--gold-light); color: var(--navy);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.board-pillar .icon-box .icon { font-size: 22px; }
.board-pillar h3 { font-size: 0.98rem; font-weight: 700; margin-bottom: 8px; color: var(--navy); line-height: 1.3; }
.board-pillar p { font-size: 0.85rem; color: var(--text-muted); margin: 0; line-height: 1.6; font-weight: 400; }

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-section { background: var(--slate); padding: 88px 0; position: relative; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.stat-box {
  position: relative; padding: 36px 20px 30px; background: var(--white);
  border-radius: var(--border-radius-lg); border: 1px solid rgba(255,255,255,0.45);
  box-shadow: var(--shadow-md), 0 2px 0 rgba(255,255,255,0.35) inset;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.stat-box:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.stat-number { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
.stat-number-static { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.stat-number-static .icon {
  width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0; font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--navy), var(--navy-hover)); color: var(--gold);
  box-shadow: 0 12px 22px -8px rgba(29, 37, 58,0.55), inset 0 1px 0 rgba(255,255,255,0.18);
}
.stat-label { font-size: 0.9rem; color: var(--navy-hover); font-weight: 500; }

/* ==========================================================================
   Servicios — Feature Cards
   ========================================================================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--white); border-radius: var(--border-radius-lg); padding: 34px 26px;
  border: 1px solid var(--divider); box-shadow: var(--shadow-sm); transition: var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.service-card .icon-box {
  width: 54px; height: 54px; border-radius: 15px; background: var(--gold-light); color: var(--navy);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.service-card .icon-box .icon { font-size: 24px; }
.service-card h3 { font-family: var(--font-main); font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--navy); }
.service-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; font-weight: 400; }
.service-card p strong { color: var(--text-main); font-weight: 600; }
.service-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 0 28px; align-items: start; padding: 40px 40px; background: linear-gradient(135deg, var(--white), var(--sand)); border-color: var(--gold); box-shadow: var(--shadow-md); }
.service-card--featured .icon-box { width: 68px; height: 68px; border-radius: 20px; margin-bottom: 0; background: var(--navy); color: var(--gold); box-shadow: 0 12px 22px -8px rgba(29, 37, 58,0.5); }
.service-card--featured .icon-box .icon { font-size: 32px; }
.service-card--featured h3 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; margin-bottom: 12px; }
.service-card--featured p { font-size: 1rem; line-height: 1.75; max-width: 940px; }

/* ==========================================================================
   Perfiles / Para Quién Es
   ========================================================================== */
.profiles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.profile-card {
  background: var(--white); border: 1px solid var(--divider); border-top: 3px solid var(--gold);
  border-radius: var(--border-radius-lg);
  padding: 40px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
}
.profile-card .profile-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.profile-card .profile-eyebrow .icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--navy-light); color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.profile-card h3 { font-family: var(--font-main); font-size: 1.2rem; font-weight: 700; color: var(--navy); }
.profile-row { margin-bottom: 18px; }
.profile-row .lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 8px; }
.profile-row .lbl .icon { font-size: 15px; }
.profile-row.problem .lbl { color: var(--navy); }
.profile-row.solution .lbl { color: var(--slate-hover); }
.profile-row p { color: var(--text-muted); font-size: 0.94rem; line-height: 1.65; font-weight: 400; }

/* ==========================================================================
   Cómo Funciona — Steps
   ========================================================================== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; position: relative; align-items: stretch; }
.step-card {
  position: relative; display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--divider); border-radius: var(--border-radius-lg); box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.step-media { position: relative; border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0; }
.step-photo { width: 100%; height: 210px; object-fit: cover; object-position: center 25%; border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0; display: block; }
.step-card:nth-child(1) .step-photo { object-position: center 8%; }
.step-media::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(20, 26, 43,0) 55%, rgba(20, 26, 43,0.35)); pointer-events: none; }
.step-card .step-num {
  position: absolute; left: 26px; bottom: -28px; z-index: 2; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--navy), var(--navy-hover)); color: var(--gold);
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1;
  border: 3px solid var(--white); box-shadow: 0 12px 22px -8px rgba(29, 37, 58,0.55);
}
.step-body { padding: 46px 28px 32px; flex: 1; }
.step-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; color: var(--navy); font-family: var(--font-main); line-height: 1.35; }
.step-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; font-weight: 400; }
.step-card p strong { color: var(--text-main); font-weight: 600; }
.step-connector { position: absolute; top: 105px; left: calc(100% + 6px); width: 32px; border-top: 2px dashed var(--gold); display: none; }
.step-connector::after { content: ''; position: absolute; right: -2px; top: -6px; width: 9px; height: 10px; background: var(--gold); clip-path: polygon(0 0, 100% 50%, 0 100%); }
@media (min-width: 1025px) { .step-card:not(:last-child) .step-connector { display: block; } }

/* ==========================================================================
   Círculo de las 50 Familias Fundadoras — Bloque único de inversión
   ========================================================================== */
.founding-card {
  max-width: 980px; margin: 0 auto; background: var(--white);
  border: 1px solid var(--gold); border-radius: var(--border-radius-lg);
  padding: 56px; box-shadow: var(--shadow-lg); position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.founding-main { text-align: center; border-right: 1px solid var(--divider); padding-right: 56px; }
.founding-scarcity { margin-bottom: 24px; }
.founding-scarcity-label {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.6px;
  color: var(--navy); margin-bottom: 12px;
}
.founding-scarcity-track {
  width: 100%; max-width: 280px; height: 3px; background: var(--divider);
  border-radius: var(--border-radius-full); margin: 0 auto; overflow: hidden;
}
.founding-scarcity-fill { height: 100%; background: var(--gold); border-radius: var(--border-radius-full); }
.founding-tagline { font-size: 0.95rem; color: var(--text-muted); max-width: 420px; margin: 0 auto 28px; font-weight: 400; }
.founding-price-row { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-bottom: 6px; }
.founding-price-row .amount { font-family: var(--font-display); font-size: 3.4rem; font-weight: 600; color: var(--navy); }
.founding-price-row .currency { font-size: 1.1rem; color: var(--text-muted); align-self: flex-start; margin-top: 10px; }
.founding-price-note { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.55; }
.founding-price-note strong { color: var(--text-main); font-weight: 600; }
.founding-price-note--condition { margin-bottom: 26px; }
.founding-cta { width: 100%; white-space: normal; line-height: 1.3; }
.founding-compare { display: flex; flex-direction: column; gap: 20px; text-align: left; }
.founding-compare-col { padding: 22px 24px; border: 1px solid var(--divider); border-radius: var(--border-radius-md); }
.founding-compare-col.active { border-color: var(--gold); background: var(--sand); }
.founding-compare-phase { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; color: var(--gold-text); margin-bottom: 8px; }
.founding-compare-price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.founding-compare-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--white); border: 1px solid var(--divider); border-radius: var(--border-radius-md); overflow: hidden; }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 26px; cursor: pointer; font-weight: 600; font-size: 1rem; color: var(--navy);
}
.faq-question .icon { color: var(--navy); font-size: 22px; transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.active .faq-question .icon { transform: rotate(45deg); }
/* grid-rows 0fr→1fr instead of a guessed max-height: it always fits the real content
   height exactly (no risk of clipping a longer answer), animates cheaply, no JS measuring. */
.faq-answer { display: grid; grid-template-rows: 0fr; overflow: hidden; transition: grid-template-rows 300ms var(--ease-out); }
.faq-answer-inner { min-height: 0; overflow: hidden; padding: 0 26px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; font-weight: 400; }
.faq-item.active .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner p { margin-bottom: 12px; }
.faq-answer-inner strong { color: var(--text-main); font-weight: 600; }
.faq-list-detail { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.faq-list-icons { list-style: none; padding-left: 0; gap: 14px; }
.faq-list-icons li { display: flex; align-items: flex-start; gap: 14px; }
.faq-list-icons .icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: var(--gold-light); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.faq-answer-inner::after { content: ""; display: block; height: 24px; }
.faq-question:hover { background: var(--navy-light); }
.faq-item { transition: box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out); }
.faq-item.active { border-color: var(--gold); box-shadow: var(--shadow-md); }

/* ==========================================================================
   Formulario de Admisión Confidencial
   ========================================================================== */
.admission-section { background: var(--sand); }
.admission-wrap { max-width: 720px; margin: 0 auto; background: var(--white); border-radius: var(--border-radius-lg); border: 1px solid var(--divider); box-shadow: var(--shadow-lg); padding: 56px; }
.admission-header { text-align: center; margin-bottom: 44px; }
.admission-header h2 { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.admission-header .admission-subhead { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--gold-text); margin-bottom: 18px; }
.admission-header p { font-size: 0.92rem; color: var(--text-muted); max-width: 520px; margin: 0 auto; line-height: 1.7; }

/* Step progress indicator */
.form-progress { display: flex; align-items: center; justify-content: center; margin-bottom: 44px; }
.form-progress-step { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 600; color: var(--text-subtle); }
.form-progress-step span {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--cream); border: 1.5px solid var(--divider); color: var(--text-subtle);
  font-family: var(--font-display); font-size: 1rem; transition: var(--transition);
}
.form-progress-step.active span, .form-progress-step.done span { background: var(--navy); border-color: var(--navy); color: var(--on-dark); }
.form-progress-step.active, .form-progress-step.done { color: var(--navy); }
.form-progress-line { width: 56px; height: 1px; background: var(--divider); margin: 0 10px 22px; }

/* Multi-step visibility */
.form-step { display: none; }
.form-step.active { display: block; }
.form-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 32px; }
.form-nav .btn { width: auto; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.82rem; font-weight: 600; color: var(--navy); }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select {
  font-family: var(--font-main); font-size: 0.95rem; color: var(--text-main);
  background: var(--cream); border: 1px solid var(--navy-border);
  border-radius: var(--border-radius-sm); padding: 13px 16px; transition: var(--transition);
  width: 100%; min-width: 0; max-width: 100%;
}
.form-field input::placeholder { color: var(--text-subtle); }
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--gold); background: var(--white); }
.phone-field { display: flex; gap: 10px; min-width: 0; }
.phone-field select, .phone-field input { min-width: 0; }
.phone-field select { flex: 0 0 100px; }
.phone-field input { flex: 1; }
.form-consent { display: flex; align-items: flex-start; gap: 12px; margin: 30px 0 8px; }
.form-consent input[type="checkbox"] { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--navy); flex-shrink: 0; }
.form-consent label { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }
.form-error { margin-top: 20px; padding: 14px 18px; border: 1px solid #b4403a; border-radius: var(--border-radius-sm); background: #fbeeec; color: #7a1f1a; font-size: 0.9rem; line-height: 1.6; font-weight: 500; }
.form-error[hidden] { display: none; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent a { color: var(--navy); text-decoration: underline; }
.admission-submit { width: 100%; margin-top: 24px; padding: 17px 32px; font-size: 1rem; white-space: normal; line-height: 1.3; }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta { background: var(--slate); color: var(--text-main); padding: 120px 0; position: relative; overflow: hidden; text-align: center; }
.final-cta h2 { font-family: var(--font-display); font-size: 2.7rem; font-weight: 600; max-width: 780px; margin: 0 auto 20px; line-height: 1.28; letter-spacing: -0.01em; color: var(--navy); }
.final-cta h2 span { color: var(--navy); font-style: italic; }
.final-cta p { color: #3d3733; font-size: 1.06rem; max-width: 560px; margin: 0 auto 40px; font-weight: 400; } /* text-muted only hits 2.3:1 on the sage background — this clears 5:1, same fix as .section-dark .section-subtitle */
.final-cta-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.final-cta-socials { display: flex; gap: 14px; justify-content: center; }
.social-icon {
  width: 46px; height: 46px; border-radius: 50%; background: var(--white);
  border: 1px solid var(--navy-border); display: flex; align-items: center; justify-content: center;
  color: var(--navy); transition: var(--transition);
}
.social-icon:hover { background: var(--navy); color: var(--on-dark); border-color: var(--navy); transform: translateY(-3px); }
.social-icon svg { width: 20px; height: 20px; fill: currentColor; }

/* Footer */
.footer { background-color: var(--white); color: var(--text-muted); padding-top: 72px; border-top: 1px solid var(--divider); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--divider); }
.footer-brand .logo-brand { margin-bottom: 18px; }
.footer-brand .logo-brand img.logo-mark { height: 38px; }
.footer-brand .logo-name { font-size: 1.2rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; max-width: 300px; margin-bottom: 18px; font-weight: 400; }
.footer-brand .social-icon { width: 38px; height: 38px; }
.footer-brand .social-row { display: flex; gap: 10px; }
.footer-column h3 { color: var(--navy); font-size: 0.9rem; font-weight: 700; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-main); }
.footer-links li { margin-bottom: 11px; font-size: 0.875rem; font-weight: 400; }
.footer-links a:hover { color: var(--navy); }
.footer-links .icon { font-size: 15px; vertical-align: -2px; margin-right: 4px; color: var(--gold-hover); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; font-size: 0.8rem; flex-wrap: wrap; gap: 10px; }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom-links a:hover { color: var(--navy); }

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 900;
  width: 62px; height: 62px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(29, 37, 58, 0.5);
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; }
.whatsapp-float::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--navy);
  opacity: 0.6; animation: wa-ping 2.2s ease-out infinite;
}
@keyframes wa-ping { 0% { transform: scale(0.9); opacity: 0.6; } 100% { transform: scale(1.5); opacity: 0; } }

/* Scroll to top */
.scroll-top {
  position: fixed; bottom: 26px; left: 26px; z-index: 900; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--on-dark); border: 1px solid var(--navy); display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: var(--transition);
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: var(--navy-hover); }

/* ==========================================================================
   Página Gracias / Política de Privacidad (páginas independientes)
   ========================================================================== */
.simple-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--cream); padding: 80px 24px; }
.simple-page-card { max-width: 620px; text-align: center; }
.simple-page-mark { width: 64px; height: auto; margin: 0 auto 36px; }
.simple-page-card h1 { font-family: var(--font-display); font-weight: 600; font-size: 2rem; color: var(--navy); line-height: 1.3; margin-bottom: 24px; }
.simple-page-card .body-text { font-family: var(--font-main); font-weight: 400; font-size: 1rem; color: var(--text-main); line-height: 1.8; margin-bottom: 20px; }
.simple-page-card .closing-line { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--gold-text); margin-top: 32px; }
.simple-page-card .back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 44px; font-size: 0.85rem; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--navy-border); padding-bottom: 3px; }

.legal-page { background: var(--cream); padding: 160px 0 120px; }
.legal-page .container { max-width: 820px; }
.legal-page h1 { font-family: var(--font-display); font-weight: 600; font-size: 2.2rem; color: var(--navy); margin-bottom: 40px; line-height: 1.3; }
.legal-page h2 { font-family: var(--font-main); font-weight: 700; font-size: 1rem; color: var(--navy); margin: 40px 0 14px; text-transform: uppercase; letter-spacing: 0.6px; }
.legal-page p, .legal-page li { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 14px; font-weight: 400; }
.legal-page ul { padding-left: 20px; list-style: disc; }
.legal-page ol { padding-left: 22px; list-style: decimal; }
.legal-page strong { color: var(--text-main); font-weight: 600; }
.legal-page a.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 48px; font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.legal-page a:not(.back-link) { color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--navy); }

/* Responsive */
@media (max-width: 1180px) {
  .nav-links {
    display: none; position: fixed; top: 84px; left: 0; width: 100%; height: calc(100vh - 84px);
    background: rgba(245, 242, 237,0.98); flex-direction: column; padding: 32px 24px; gap: 6px;
    overflow-y: auto; backdrop-filter: blur(20px);
  }
  .nav-links.active { display: flex; }
  .nav-link { width: 100%; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--divider); }
  .nav-cta-mobile { display: block; }
  .nav-actions .btn:not(.menu-toggle) { display: none; }
  .menu-toggle { display: block; }
}

@media (max-width: 1024px) {
  .board-grid { grid-template-columns: 1fr; }
  .board-intro { padding: 36px 28px; }
  .hero-video-section { display: block; min-height: 0; padding: 48px 0 0; }
  .hero-content-wrap { max-width: 560px; padding-bottom: 40px; }
  .hero-floating-row { position: static; gap: 32px; }
  .hero-logo-motion { opacity: 0.16; width: 480px; height: 480px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--featured { padding: 32px 28px; }
  .profiles-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 48px; max-width: 560px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .founding-card { grid-template-columns: 1fr; gap: 32px; padding: 48px 32px; }
  .founding-main { border-right: none; border-bottom: 1px solid var(--divider); padding-right: 0; padding-bottom: 32px; }
  .admission-wrap { padding: 40px 28px; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.1rem; }
  /* Móvil: la foto ocupa arriba (480px) con ambos rostros visibles; el texto arranca a la altura
     de la barbilla y se apoya sobre un degradado que termina en azul marino sólido. */
  .hero-video-section { min-height: 0; display: block; padding-top: 0; background: var(--navy-hover); }
  .hero-media { bottom: auto; height: 480px; }
  .hero-bg-img { object-position: 50% 0%; }
  .hero-scrim { background: linear-gradient(180deg, rgba(20, 26, 43,0) 0%, rgba(20, 26, 43,0) 44%, rgba(20, 26, 43,0.84) 64%, #141a2b 96%); }
  .hero-content-wrap { padding-bottom: 40px; padding-top: 268px; }
  .hero-eyebrow { text-shadow: 0 1px 10px rgba(10, 14, 24,0.7); }
  .hero-ring { display: none; }
  .hero-video-section .btn-primary { background: var(--on-dark); color: var(--navy); }
  .hero-video-section .btn-primary:hover { background: #fff; }
  .hero-floating-row { position: static; grid-template-columns: 1fr; gap: 20px; padding: 20px 18px; border-top: none; }
  .hero-badge-item { max-width: 100%; font-size: 0.8rem; justify-self: start; }
  .hero-logo-motion { display: none; }
  .bg-mark::before { width: 300px; height: 300px; }
  .bg-mark--right::before { right: -90px; }
  .bg-mark--left::before { left: -90px; }
  .hero-stats-inline { gap: 20px; margin-top: 24px; }
  .section { padding: 68px 0; }
  .trust-strip { padding: 56px 0; }
  .stats-section { padding: 64px 0; }
  .final-cta { padding: 88px 0; }
  .section-tag { font-size: 1.7rem; }
  .board-pillars { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card--featured { grid-template-columns: 1fr; gap: 18px 0; padding: 28px 22px; }
  .service-card--featured h3 { font-size: 1.6rem; }
  .final-cta h2 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .founding-card { padding: 40px 20px; }
  .admission-wrap { padding: 32px 20px; }
  .phone-field { flex-wrap: wrap; }
  .phone-field select { flex: 1 1 100%; }
}

@media (max-width: 900px) { .allies-grid { max-width: 520px; } }
@media (max-width: 560px) { .allies-grid { flex-direction: column; gap: 28px; } }
@media (max-width: 380px) {
  .hero-cta-strip .btn, .final-cta-row .btn { width: 100%; }
}

/* Touch: hover can get "stuck" after a tap — kill the transform half of it, keep color/shadow */
@media (hover: none) {
  .btn:hover, .btn-primary:hover, .btn-whatsapp:hover,
  .service-card:hover, .board-pillar:hover, .strategy-visual:hover .strategy-photo,
  .social-icon:hover, .whatsapp-float:hover, .scroll-top:hover {
    transform: none !important;
  }
}

/* Respect the user's motion preference: fewer and gentler, not zero */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-ring, .whatsapp-float::before, .hero-logo-motion { animation: none !important; }
}
