/* ============ FONTS (locales) ============ */
/* cyrillic */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/geist-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/geist-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/geist-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/geist-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/geist-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/geist-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/geist-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/geist-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/geist-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============ TOKENS ============ */
:root {
  --navy-900: #0a1f3d;
  --navy-800: #13294d;
  --navy-700: #1a3a6b;
  --navy-600: #27528e;
  --gold-500: #c9a961;
  --gold-400: #d9bd7e;
  --gold-100: #f0e6cf;
  --cream-50: #faf7f1;
  --cream-100: #f5f1ea;
  --cream-200: #ebe4d6;
  --cream-300: #ddd2be;
  --ink-900: #1a1814;
  --ink-700: #3d372e;
  --ink-500: #6b6355;
  --ink-400: #8a8274;

  --accent: var(--gold-500);
  --accent-soft: var(--gold-100);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 22px;
  --r-xl: 36px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(10, 31, 61, 0.06), 0 2px 8px rgba(10, 31, 61, 0.04);
  --shadow-md: 0 4px 14px rgba(10, 31, 61, 0.08), 0 12px 32px rgba(10, 31, 61, 0.06);
  --shadow-lg: 0 16px 48px rgba(10, 31, 61, 0.12), 0 2px 4px rgba(10, 31, 61, 0.05);

  --font-display: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --max-w: 1180px;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--cream-100);
  line-height: 1.55;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }

/* ============ LAYOUT ============ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--ink-500);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

.display em {
  font-style: italic;
  color: var(--navy-700);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  will-change: transform;
}
.btn-primary {
  background: var(--navy-900);
  color: var(--cream-50);
  box-shadow: 0 4px 14px rgba(10, 31, 61, 0.22);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(10, 31, 61, 0.28);
  background: var(--navy-800);
}
.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border: 1px solid rgba(10, 31, 61, 0.18);
}
.btn-ghost:hover {
  background: rgba(10, 31, 61, 0.04);
  border-color: rgba(10, 31, 61, 0.32);
}
.btn .arrow {
  transition: transform 0.2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: rgba(245, 241, 234, 0.78);
  border-bottom: 1px solid rgba(10, 31, 61, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1;
  text-decoration: none;
}
.logo-top {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--navy-900);
}
.logo-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  line-height: 1;
  color: var(--gold-500);
  letter-spacing: -0.01em;
  margin-top: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  color: var(--ink-700);
}
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--navy-900); }
.nav .btn { padding: 10px 20px; font-size: 14px; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* El CTA duplicado dentro del menú solo se ve en móvil */
.nav-links .nav-links-cta { display: none; }

@media (max-width: 820px) {
  .nav-inner { padding: 14px 0; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream-50);
    border-bottom: 1px solid rgba(10, 31, 61, 0.08);
    box-shadow: var(--shadow-md);
    padding: 8px 20px 18px;
  }
  .nav.nav-open .nav-links { display: flex; }
  .nav-links a {
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--cream-200);
  }
  .nav-links .nav-links-cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 14px;
    padding: 14px 24px;
    font-size: 15px;
    border-bottom: 0;
  }
}
@media (max-width: 480px) {
  /* En pantallas muy chicas el CTA vive dentro del menú */
  .nav-actions .nav-cta { display: none; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 72px 0 120px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero { padding: 48px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 640px) {
  .hero { padding: 36px 0 64px; }
  .hero-grid { gap: 40px; }
  .hero-lede { font-size: 16px; }
  .hero-ctas { gap: 12px; margin-bottom: 36px; }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-trust { gap: 20px 28px; padding-top: 24px; }
  .hero-trust-item .num { font-size: 26px; }
}

.hero h1 {
  font-size: clamp(38px, 7vw, 92px);
  margin-top: 22px;
  margin-bottom: 28px;
  color: var(--navy-900);
}
.hero-lede {
  font-size: 18px;
  color: var(--ink-700);
  max-width: 52ch;
  margin-bottom: 36px;
  line-height: 1.6;
  text-align: justify;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-trust {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(10, 31, 61, 0.1);
}
.hero-trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-trust-item .num {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--navy-900);
  line-height: 1;
}
.hero-trust-item .lbl {
  font-size: 12px;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Hero visual — not a photograph, a composition */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 480px;
  justify-self: end;
  width: 100%;
}
@media (max-width: 900px) {
  .hero-visual { justify-self: center; max-width: 380px; }
}
@media (max-width: 640px) {
  .hero-visual { max-width: 320px; }
  .floating-pill {
    top: -14px;
    right: 0;
    padding: 10px 16px;
    font-size: 12px;
  }
  .hero-card .ribbon { top: 20px; left: 20px; right: 20px; }
  .hero-card-body { left: 16px; right: 16px; bottom: 16px; padding: 20px; }
  .hero-card-body .quote { font-size: 20px; }
}

.hero-card {
  position: absolute;
  inset: 0;
  background: var(--cream-50);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--cream-200);
}
.hero-card .ribbon {
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.hero-card .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.2); }

.hero-card-body {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 28px;
  background: var(--navy-900);
  color: var(--cream-50);
  border-radius: var(--r-lg);
}
.hero-card-body .label {
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-400);
  margin-bottom: 10px;
}
.hero-card-body .quote {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 20px;
}
.hero-card-body .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(250, 247, 241, 0.7);
  padding-top: 16px;
  border-top: 1px solid rgba(250, 247, 241, 0.15);
}

.hero-card-illus {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 35%, var(--cream-100) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, var(--gold-100) 0%, transparent 55%),
    linear-gradient(135deg, var(--cream-50), var(--cream-200));
}
.hero-card-illus::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-400), var(--gold-500) 60%, var(--navy-800) 140%);
  box-shadow: inset -20px -30px 60px rgba(10, 31, 61, 0.3);
  opacity: 0.85;
}
.hero-card-illus::after {
  content: "";
  position: absolute;
  left: 55%;
  top: 30%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--cream-50), var(--cream-200));
  box-shadow: 0 10px 30px rgba(10, 31, 61, 0.1);
}

/* Small pill — floating badge */
.floating-pill {
  position: absolute;
  top: -22px;
  right: -22px;
  background: var(--navy-900);
  color: var(--cream-50);
  padding: 14px 20px;
  border-radius: var(--r-pill);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  transform: rotate(4deg);
  z-index: 2;
}
.floating-pill .ring { width: 10px; height: 10px; border-radius: 50%; background: #7bd88f; box-shadow: 0 0 0 3px rgba(123, 216, 143, 0.3); }

.hero-decor {
  position: absolute;
  top: 10%;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--gold-100), transparent 70%);
  filter: blur(30px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

/* ============ SECTIONS ============ */
section { position: relative; }

.section-pad { padding: 120px 0; }
@media (max-width: 900px) { .section-pad { padding: 80px 0; } }

.section-header {
  max-width: 740px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-header h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-family: var(--font-display);
  margin-top: 20px;
  margin-bottom: 20px;
  color: var(--navy-900);
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.section-header p {
  font-size: 18px;
  color: var(--ink-700);
  line-height: 1.6;
  text-align: justify;
}
@media (max-width: 640px) {
  .section-header { margin-bottom: 44px; }
  .section-header p { font-size: 16px; }
}
@media (max-width: 480px) {
  .section-header h2 { font-size: 30px; }
}

/* ============ PROBLEMA ============ */
.problema {
  background: var(--navy-900);
  color: var(--cream-50);
  position: relative;
  overflow: hidden;
}
.problema::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(201, 169, 97, 0.18), transparent 60%);
  pointer-events: none;
}
.problema .section-header h2 {
  color: var(--cream-50);
}
.problema .section-header h2 em {
  color: var(--gold-400);
}
.problema .section-header p {
  color: rgba(250, 247, 241, 0.72);
}
.problema .eyebrow { color: var(--gold-400); }
.problema .eyebrow::before { background: var(--gold-400); }

.problema-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}
@media (max-width: 820px) {
  .problema-grid { grid-template-columns: 1fr; }
}

.problema-card {
  background: rgba(250, 247, 241, 0.04);
  border: 1px solid rgba(250, 247, 241, 0.1);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  backdrop-filter: blur(6px);
}
.problema-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-400);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}
.problema-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--cream-50);
  margin-bottom: 14px;
  line-height: 1.15;
}
.problema-card p {
  color: rgba(250, 247, 241, 0.7);
  font-size: 15px;
  line-height: 1.6;
  text-align: justify;
}

/* ============ PILARES / POR QUÉ ============ */
.pilares {
  background: var(--cream-50);
}
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 820px) { .pilares-grid { grid-template-columns: 1fr; } }

.pilar {
  background: var(--cream-100);
  border: 1px solid var(--cream-200);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pilar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--cream-300);
}
.pilar-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--navy-900);
  color: var(--gold-400);
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}
.pilar h3 {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--navy-900);
  line-height: 1.1;
}
.pilar p {
  color: var(--ink-700);
  line-height: 1.6;
  font-size: 15px;
  text-align: justify;
}
.pilar .pilar-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ============ METODOLOGÍA ============ */
.metodologia {
  background: var(--cream-100);
  position: relative;
}
.metodo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .metodo-grid { grid-template-columns: 1fr; gap: 48px; }
}

.metodo-sticky {
  position: static;
}
.metodo-sticky h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 60px);
  color: var(--navy-900);
  line-height: 1.05;
  margin: 20px 0 24px;
}
.metodo-sticky p {
  color: var(--ink-700);
  font-size: 17px;
  line-height: 1.6;
  max-width: 50ch;
  text-align: justify;
}

.metodo-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.metodo-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid rgba(10, 31, 61, 0.1);
  align-items: start;
}
.metodo-step:first-child { border-top: 0; padding-top: 0; }
.metodo-step-num {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  color: var(--gold-500);
  width: 60px;
}
.metodo-step h4 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--navy-900);
  margin-bottom: 8px;
  line-height: 1.2;
}
.metodo-step p {
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.6;
  text-align: justify;
}
@media (max-width: 640px) {
  .metodo-step { gap: 16px; padding: 22px 0; }
  .metodo-step-num { font-size: 34px; width: 44px; }
  .metodo-step h4 { font-size: 21px; }
}

/* ============ ENCUESTA ============ */
.encuesta {
  background: var(--cream-50);
  position: relative;
  scroll-margin-top: 80px;
}
.encuesta-wrap {
  max-width: 900px;
  margin: 0 auto;
}
.encuesta-shell {
  background: var(--cream-100);
  border: 1px solid var(--cream-200);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.encuesta-header {
  padding: 36px 40px 28px;
  border-bottom: 1px solid var(--cream-200);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.encuesta-header h3 {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--navy-900);
  margin-bottom: 6px;
  line-height: 1.15;
}
.encuesta-header p {
  color: var(--ink-500);
  font-size: 14px;
}
.encuesta-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.progress-track {
  width: 140px;
  height: 4px;
  background: var(--cream-300);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--navy-900);
  border-radius: var(--r-pill);
  transition: width 0.4s ease;
}

.fases {
  padding: 8px 0;
}
.fase {
  padding: 24px 40px;
  border-bottom: 1px solid var(--cream-200);
}
.fase:last-of-type { border-bottom: 0; }
.fase-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}
.fase-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--cream-200);
  color: var(--navy-900);
  font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease;
}
.fase.completed .fase-num {
  background: var(--navy-900);
  color: var(--gold-400);
}
.fase-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.fase-subtitle {
  font-size: 13px;
  color: var(--ink-500);
  margin-left: 50px;
  margin-bottom: 20px;
}

.preguntas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-left: 50px;
}
.pregunta {
  background: var(--cream-50);
  border: 1px solid var(--cream-200);
  border-radius: var(--r-md);
  padding: 18px 20px;
  transition: border-color 0.2s ease;
}
.pregunta.answered {
  border-color: rgba(10, 31, 61, 0.18);
}
.pregunta-text {
  font-size: 15px;
  color: var(--navy-900);
  line-height: 1.45;
  margin-bottom: 14px;
  font-weight: 500;
}
.opciones {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.opcion {
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--cream-300);
  background: var(--cream-100);
  font-size: 14px;
  color: var(--ink-700);
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.opcion:hover {
  border-color: var(--navy-700);
  color: var(--navy-900);
}
.opcion.selected {
  background: var(--navy-900);
  color: var(--cream-50);
  border-color: var(--navy-900);
}
.opcion.selected .check {
  opacity: 1;
  transform: scale(1);
}
.opcion .check {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.18s ease;
  width: 14px;
  height: 14px;
}
.opcion-multi {
  border-radius: var(--r-md);
  padding: 10px 14px;
}

.pregunta-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-500);
  font-style: italic;
  padding-left: 0;
  line-height: 1.5;
}

/* Encuesta en móvil: recuperar el ancho que consumen sangrías y paddings */
@media (max-width: 640px) {
  .encuesta-header { padding: 26px 22px 20px; }
  .encuesta-header h3 { font-size: 25px; }
  .encuesta-progress { width: 100%; }
  .progress-track { flex: 1; width: auto; }
  .fase { padding: 20px 22px; }
  .fase-title { font-size: 20px; }
  .fase-subtitle { margin-left: 0; margin-top: 6px; }
  .preguntas { margin-left: 0; }
  .pregunta { padding: 16px; }
  .opciones { gap: 8px; }
  .opcion { padding: 10px 14px; font-size: 13px; }
}

/* ============ RESULTADO ============ */
.resultado {
  padding: 40px;
  background: var(--navy-900);
  color: var(--cream-50);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 760px) {
  .resultado { grid-template-columns: 1fr; padding: 32px 28px; gap: 28px; text-align: center; justify-items: center; }
}
@media (max-width: 480px) {
  .resultado { padding: 28px 20px; }
  .gauge-wrap { width: 180px; height: 180px; }
  .gauge-percent { font-size: 52px; }
  .resultado-body h4 { font-size: 30px; }
  .resultado-cta { width: 100%; }
  .resultado-cta .btn { width: 100%; justify-content: center; }
}

.gauge-wrap {
  position: relative;
  width: 220px;
  height: 220px;
}
.gauge-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}
.gauge-bg {
  fill: none;
  stroke: rgba(250, 247, 241, 0.1);
  stroke-width: 14;
}
.gauge-fill {
  fill: none;
  stroke: var(--gold-400);
  stroke-width: 14;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.4s ease;
}
.gauge-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.gauge-percent {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: var(--cream-50);
  letter-spacing: -0.02em;
}
.gauge-percent sup {
  font-size: 24px;
  vertical-align: super;
  color: var(--gold-400);
  font-family: var(--font-sans);
  font-weight: 400;
}
.gauge-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(250, 247, 241, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 6px;
}

.resultado-body .tier {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 14px;
}
.resultado-body .tier.baja { background: rgba(224, 113, 94, 0.18); color: #f2b3a3; }
.resultado-body .tier.media { background: rgba(201, 169, 97, 0.2); color: var(--gold-400); }
.resultado-body .tier.alta { background: rgba(123, 216, 143, 0.18); color: #a8e4b8; }
.resultado-body .tier.muy-alta { background: rgba(123, 216, 143, 0.28); color: #c4eed1; }

.resultado-body h4 {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.1;
  color: var(--cream-50);
  margin-bottom: 12px;
}
.resultado-body p {
  color: rgba(250, 247, 241, 0.75);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 52ch;
  text-align: justify;
}
.resultado-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.resultado .btn-primary {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 4px 14px rgba(201, 169, 97, 0.3);
}
.resultado .btn-primary:hover {
  background: var(--gold-400);
  box-shadow: 0 8px 22px rgba(201, 169, 97, 0.4);
}
.resultado .btn-ghost {
  color: var(--cream-50);
  border-color: rgba(250, 247, 241, 0.2);
}
.resultado .btn-ghost:hover {
  background: rgba(250, 247, 241, 0.08);
  border-color: rgba(250, 247, 241, 0.4);
}

.resultado-pre {
  padding: 64px 40px;
  text-align: center;
  color: var(--ink-500);
  font-size: 15px;
  border-top: 1px dashed var(--cream-300);
}
.resultado-pre .big {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--navy-900);
  margin-bottom: 8px;
  line-height: 1.2;
}

/* ============ FAQ ============ */
.faq {
  background: var(--cream-50);
}
.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--cream-200);
}
.faq-item:first-child { border-top: 1px solid var(--cream-200); }
.faq-q {
  width: 100%;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy-900);
  text-align: left;
  gap: 24px;
  transition: color 0.2s ease;
}
.faq-q:hover { color: var(--navy-700); }
.faq-q .plus {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  position: relative;
  border-radius: 50%;
  border: 1px solid var(--cream-300);
  transition: transform 0.25s ease, background 0.25s ease;
}
.faq-q .plus::before,
.faq-q .plus::after {
  content: "";
  position: absolute;
  background: var(--navy-900);
  left: 50%;
  top: 50%;
  transition: transform 0.25s ease;
}
.faq-q .plus::before { width: 12px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-q .plus::after { width: 1.5px; height: 12px; transform: translate(-50%, -50%); }
.faq-item.open .plus::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-item.open .plus { background: var(--cream-100); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.65;
  text-align: justify;
}
.faq-item.open .faq-a {
  max-height: 1200px; /* la respuesta con tabla de honorarios es alta */
  padding-bottom: 24px;
  padding-right: 50px;
}
@media (max-width: 640px) {
  .faq-q { font-size: 18px; padding: 20px 0; gap: 16px; }
  .faq-item.open .faq-a { padding-right: 0; max-height: 1400px; }
}

/* ============ CTA FINAL ============ */
.cta-final {
  padding: 80px 0 120px;
  background: var(--cream-100);
}
.cta-box {
  background: var(--navy-900);
  color: var(--cream-50);
  border-radius: var(--r-xl);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(201, 169, 97, 0.15), transparent 40%),
    radial-gradient(ellipse at 85% 80%, rgba(201, 169, 97, 0.1), transparent 45%);
  pointer-events: none;
}
.cta-box > * { position: relative; }
.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  margin: 16px 0 20px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--gold-400);
}
.cta-box h2 em { color: var(--gold-400); }
/* Refuerzo contra los colores de heading del tema activo (Astra) */
.al-root .cta-box h2,
.al-root .cta-box h2 em { color: var(--gold-400); }
.cta-box p {
  max-width: 52ch;
  margin: 0 auto 32px;
  color: rgba(250, 247, 241, 0.72);
  font-size: 17px;
  line-height: 1.6;
  text-align: justify;
}
.cta-box .btn-primary {
  background: var(--gold-500);
  color: var(--navy-900);
}
.cta-box .btn-primary:hover { background: var(--gold-400); }
.cta-box .eyebrow { color: var(--gold-400); }
.cta-box .eyebrow::before { background: var(--gold-400); }

@media (max-width: 760px) {
  .cta-box { padding: 56px 32px; }
  .cta-final { padding: 56px 0 80px; }
}
@media (max-width: 480px) {
  .cta-box { padding: 44px 24px; border-radius: var(--r-lg); }
  .cta-box h2 { font-size: 32px; }
  .cta-box p { font-size: 15px; }
  .cta-box .btn { width: 100%; justify-content: center; }
}

/* ============ FOOTER ============ */
.footer {
  background: var(--navy-900);
  color: rgba(250, 247, 241, 0.7);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250, 247, 241, 0.1);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
.footer .logo { margin-bottom: 16px; }
.footer .logo-top { color: var(--cream-50); }
.footer .logo-name { color: var(--gold-400); }
.footer h5 {
  color: var(--cream-50);
  font-family: var(--font-sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer a:hover { color: var(--cream-50); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============ UTILITIES ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============ EMAIL GATE (añadido por plugin) ============ */
.al-emailgate {
  padding: 48px 40px 56px;
  background: var(--cream-50);
  border-top: 1px solid var(--cream-200);
}
@media (max-width: 760px) { .al-emailgate { padding: 36px 28px; } }
.al-emailgate-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.al-emailgate-inner .eyebrow { justify-content: center; }
.al-emailgate-inner h4 {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--navy-900);
  margin: 18px 0 8px;
  line-height: 1.15;
}
.al-emailgate-inner > p {
  color: var(--ink-700);
  margin-bottom: 28px;
}
.al-emailgate-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
.al-emailgate-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-700);
  font-weight: 500;
}
.al-emailgate-form label small { color: var(--ink-500); font-weight: 400; }
.al-emailgate-form input[type="text"],
.al-emailgate-form input[type="email"],
.al-emailgate-form input[type="tel"] {
  font: 400 16px var(--font-sans);
  padding: 14px 16px;
  border: 1px solid var(--cream-300);
  border-radius: var(--r-md);
  background: var(--cream-50);
  color: var(--ink-900);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.al-emailgate-form input:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(10, 31, 61, 0.08);
}
.al-emailgate-form .al-consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-700);
  font-weight: 400;
}
.al-emailgate-form .al-consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--navy-900);
}
.al-emailgate-form button {
  margin-top: 8px;
  align-self: stretch;
  justify-content: center;
}
.al-emailgate-error {
  background: rgba(224, 113, 94, 0.12);
  border: 1px solid rgba(224, 113, 94, 0.4);
  color: #a83a25;
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 14px;
}

/* Resultado: estado oculto inicial */
.resultado[hidden] { display: none; }
.al-emailgate[hidden] { display: none; }

/* Mobile nav toggle (hamburguesa) */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(10, 31, 61, 0.18);
  border-radius: 50%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nav-toggle:hover {
  background: rgba(10, 31, 61, 0.04);
  border-color: rgba(10, 31, 61, 0.32);
}
.nav-toggle-bar {
  display: block;
  width: 16px;
  height: 1.6px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
}

/* Anclar nav-target con scroll-margin para que no quede tapado por el sticky nav */
[id] { scroll-margin-top: 80px; }

/* Refuerzo: el reset del CSS no debe derramar hacia el admin de WP */
body.wp-admin .al-root { all: initial; }

/* ============ EMAIL GATE — siempre visible (override) ============ */
.al-emailgate {
  display: block !important;
  background: var(--cream-50);
  border: 1px solid var(--cream-200);
  border-radius: var(--r-xl);
  padding: 36px 40px;
  margin: 0 auto 32px;
  max-width: 900px;
  box-shadow: var(--shadow-sm);
}
.al-emailgate-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}
.al-emailgate-inner > .eyebrow {
  justify-content: flex-start;
}
.al-emailgate-inner h4 {
  text-align: left;
  margin-top: 12px;
  margin-bottom: 4px;
}
.al-emailgate-inner > p {
  text-align: left;
  margin-bottom: 24px;
}
.al-emailgate-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
.al-emailgate-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-700);
  font-weight: 500;
}
.al-emailgate-form label:first-child,
.al-emailgate-form .al-consent,
.al-emailgate-form .al-emailgate-error {
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .al-emailgate { padding: 24px 20px; }
  .al-emailgate-form { grid-template-columns: 1fr; }
}

/* Resultado pre con botón */
.resultado-pre .al-reveal-btn {
  margin-top: 18px;
  display: inline-flex;
}
.resultado-pre .al-reveal-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--ink-400);
  box-shadow: none;
  transform: none;
}
.resultado-pre .al-reveal-btn:disabled:hover {
  background: var(--ink-400);
  transform: none;
  box-shadow: none;
}

/* ============ MODALES ============ */
.al-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.al-modal[hidden] { display: none; }
.al-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 31, 61, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.al-modal-panel {
  position: relative;
  background: var(--cream-50);
  border-radius: var(--r-lg);
  max-width: 720px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 36px 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--cream-200);
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.al-modal.al-modal-open .al-modal-backdrop { opacity: 1; }
.al-modal.al-modal-open .al-modal-panel { opacity: 1; transform: translateY(0) scale(1); }

.al-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--cream-300);
  background: var(--cream-50);
  font-size: 22px;
  line-height: 1;
  color: var(--ink-700);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  display: grid;
  place-items: center;
}
.al-modal-close:hover {
  background: var(--cream-100);
  border-color: var(--navy-700);
  color: var(--navy-900);
}

.al-modal-title {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--navy-900);
  font-size: 32px;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  padding-right: 40px;
}

.al-modal-body {
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.65;
}
.al-modal-body h3, .al-modal-body h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  font-weight: 400;
  font-size: 22px;
  margin: 24px 0 8px;
}
.al-modal-body p { margin: 0 0 12px; text-align: justify; }
.al-modal-body ul, .al-modal-body ol { margin: 0 0 12px 20px; padding: 0; }
.al-modal-body li { margin-bottom: 6px; }

/* Tabla de honorarios (modal T&C y FAQ) */
.al-fee-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 16px;
  font-size: 14px;
}
.al-fee-table th,
.al-fee-table td {
  border: 1px solid rgba(10, 31, 61, 0.18);
  padding: 8px 12px;
  text-align: left;
}
.al-fee-table th {
  background: rgba(10, 31, 61, 0.06);
  font-weight: 600;
}
/* En superficies oscuras (resultado/CTA) los bordes claros */
.problema .al-fee-table th, .problema .al-fee-table td,
.resultado-body .al-fee-table th, .resultado-body .al-fee-table td {
  border-color: rgba(250, 247, 241, 0.25);
}
.al-modal-body a { color: var(--navy-700); text-decoration: underline; }
.al-modal-body strong { color: var(--navy-900); }

.al-modal-trigger {
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  text-decoration-color: var(--gold-500);
  text-underline-offset: 3px;
}
.al-modal-trigger:hover { color: var(--navy-700); }

@media (max-width: 640px) {
  .al-modal { padding: 14px; }
  .al-modal-panel { padding: 28px 22px; max-height: 90vh; max-height: 90dvh; }
  .al-modal-title { font-size: 24px; }
}

/* Reveal button wrap */
.al-reveal-wrap {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--cream-200);
}
.al-reveal-hint {
  font-size: 13px;
  color: var(--ink-500);
}

/* ============ ESPACIO Y AJUSTES FINALES ============ */
/* Separación entre encuesta y form de contacto */
.encuesta-shell {
  margin-bottom: 24px;
}

/* Quitar subrayado dorado del footer en links de modal trigger */
.footer .al-modal-trigger {
  text-decoration: none;
  color: inherit;
}
.footer .al-modal-trigger:hover {
  color: var(--cream-50);
  text-decoration: underline;
  text-decoration-color: currentColor;
}

/* Mantener el subrayado dorado solo en el consent del form (donde lo queremos) */
.al-consent .al-modal-trigger {
  color: var(--navy-900);
  text-decoration: underline;
  text-decoration-color: var(--gold-500);
  text-underline-offset: 3px;
}
.al-consent .al-modal-trigger:hover {
  color: var(--navy-700);
}

/* ============ ERROR INLINE EN FORM ============ */
.al-field-error {
  display: none;
  font-size: 12px;
  color: #c2553f;
  margin-top: 4px;
  font-weight: 500;
}
.al-field-error.show { display: block; }
.al-field-error[hidden] { display: none !important; }
.al-emailgate-form input.al-input-error {
  border-color: #c2553f !important;
  box-shadow: 0 0 0 3px rgba(194, 85, 63, 0.12);
}

/* ============ LISTA DE ERRORES EN FORM ============ */
.al-emailgate-error {
  background: rgba(224, 113, 94, 0.12);
  border: 1px solid rgba(224, 113, 94, 0.4);
  color: #a83a25;
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  line-height: 1.5;
}
.al-emailgate-error strong {
  display: block;
  margin-bottom: 6px;
  color: #8a2818;
}
.al-error-list {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}
.al-error-list li {
  margin: 4px 0;
}

/* ============ RESPONSIVE GLOBAL ============ */
a, button { -webkit-tap-highlight-color: transparent; }

/* Pantallas muy chicas: recuperar unos px de ancho útil */
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  body { font-size: 16px; }
}

/* Botón "Ver mi diagnóstico" a ancho completo en móvil */
@media (max-width: 640px) {
  .al-reveal-wrap { align-items: stretch; }
  .resultado-pre .al-reveal-btn,
  .al-reveal-wrap .al-reveal-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============ CENTRADO EN MÓVIL ============
   En pantallas chicas todo el contenido va en una sola columna:
   centrar los textos para que el diseño se vea equilibrado. */
@media (max-width: 640px) {
  /* En columnas angostas el justificado deja "ríos" de espacio: los párrafos
     cortos que viven en contenedores centrados vuelven a centrarse. Los de
     lectura larga (FAQ, modales, resultado) siguen justificados. */
  .hero-lede,
  .problema-card p,
  .pilar p,
  .metodo-sticky p,
  .metodo-step p,
  .section-header p,
  .cta-box p { text-align: center; }

  /* Hero */
  .hero-grid > div:first-child { text-align: center; }
  .hero-lede { margin-left: auto; margin-right: auto; }
  .hero-trust { justify-content: center; }
  .hero-trust-item { align-items: center; text-align: center; }

  /* Tarjetas de problema y pilares */
  .problema-card { text-align: center; }
  .pilar { align-items: center; text-align: center; }
  .pilar-icon { margin-left: auto; margin-right: auto; }

  /* Metodología */
  .metodo-sticky { text-align: center; }
  .metodo-sticky p { margin-left: auto; margin-right: auto; }
  .metodo-step {
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: center;
    text-align: center;
  }
  .metodo-step-num { width: auto; }

  /* Encuesta */
  .encuesta-header { justify-content: center; text-align: center; }
  .encuesta-header h3 + p { text-align: center; }
  .encuesta-progress { justify-content: center; }
  .fase-head { justify-content: center; }
  .fase-subtitle { text-align: center; }
  .pregunta-text { text-align: center; }
  .opciones { justify-content: center; }
  .pregunta-note { text-align: center; }

  /* Datos de contacto (email gate): títulos centrados, campos a la izquierda */
  .al-emailgate-inner h4,
  .al-emailgate-inner > p { text-align: center; }
  .al-emailgate-inner > .eyebrow {
    justify-content: center;
    width: 100%;
  }
  .al-reveal-wrap { align-items: center; }
  .al-reveal-hint { text-align: center; }

  /* Resultado previo (mensaje antes de completar) */
  .resultado-pre { padding: 48px 24px; }
}

/* Footer centrado cuando queda en una sola columna */
@media (max-width: 520px) {
  .footer-grid > div { text-align: center; }
  .footer .logo { align-items: center; }
  .footer-grid p { margin-left: auto; margin-right: auto; }
}

/* Respetar la preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
