/* ════════════════════════════════════════════════════════════════════
   ESTILOS — Guía MAD Formación

   Dirección de diseño: tipografía Montserrat, look plano y estructurado
   (bordes sólidos, esquinas poco redondeadas, sin degradados/blur
   decorativos ni tarjetas "cristal"), inspirado en la densidad de
   información y el tono directo de sitios de test de oposiciones —
   sin copiar su maquetación.

   Paleta: solo navy, gold y blanco (+ derivados neutros para texto/
   fondos). Regla aplicada:
     - Relleno sólido con texto encima → fondo --gold + texto --navy
       (máximo contraste, look "insignia").
     - Texto/acento sobre fondo navy → --gold (claro, se lee bien).
     - Texto/acento sobre fondo blanco o crema → --gold-dk (más oscuro,
       contraste AA en texto pequeño).
     - Bordes y detalles puramente decorativos (sin texto encima) →
       --gold, para que el acento se note.
════════════════════════════════════════════════════════════════════ */

:root {
  --navy:        #0E1F42;
  --navy-mid:    #1A3468;
  --gold:        #FBBC04;
  --gold-dk:     #8A6100;
  --gold-lt:     #FEF2D6;
  --cream:       #F6F4EF;
  --cream-dk:    #EBE6DB;
  --white:       #FFFFFF;
  --text:        #14181F;
  --muted:       #5B6472;
  --border:      #D8D2C4;
  --border-dk:   #0E1F42;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ─── ICONOS (Font Awesome PRO duotone) ─────────────
   Por defecto: primario gold / secundario navy, a juego con la
   paleta. Sobre fondos navy el secundario se aclara (si no,
   desaparecería); sobre fondos gold (insignias/CTA) se invierte a
   navy/blanco para que el icono no se funda con el fondo. */
.fa-duotone, .fa-kit {
  --fa-primary-color: var(--gold);
  --fa-secondary-color: var(--navy);
  --fa-secondary-opacity: .9;
}
.hero .fa-duotone,
.tool-hero .fa-duotone,
.res-main .fa-duotone,
.sw-tag .fa-duotone {
  --fa-secondary-color: #fff;
  --fa-secondary-opacity: .55;
}
.promo-bar .fa-duotone,
.btn-primary .fa-duotone,
.q-area-tag .fa-duotone,
.res-badge .fa-duotone {
  --fa-primary-color: var(--navy);
  --fa-secondary-color: #fff;
  --fa-secondary-opacity: .6;
}
/* ─── PROMO BAR ──────────────────────────────────── */
.promo-bar {
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  font-size: 13px; font-weight: 700;
  letter-spacing: .01em;
  padding: 9px 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* ─── NAV ────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  border-bottom: 2px solid var(--navy);
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  position: relative;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px; font-weight: 800;
  color: var(--navy); text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center;
}
.nav-logo img { height: 34px; width: auto; display: block; visibility: hidden; }
/* El logo original es azul claro de un único color plano: se repinta a
   navy con una máscara CSS (usa el propio PNG como plantilla de forma)
   en vez de tocar el fichero de imagen. */
.nav-logo::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--navy);
  -webkit-mask-image: url(/assets/img/logo-mad.png);
  mask-image: url(/assets/img/logo-mad.png);
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: left center; mask-position: left center;
}
.nav-links { display: flex; gap: 6px; list-style: none; align-items: center; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: 8px;
  font-size: 13.5px; font-weight: 700;
  text-decoration: none; color: var(--navy);
  transition: all .15s; cursor: pointer; border: 2px solid transparent; background: var(--cream);
}
.nav-links a:hover { background: var(--cream-dk); }
.nav-links a.active { color: var(--white); font-weight: 700; background: var(--navy); }
.nav-divider { width: 1px; height: 24px; background: var(--border); margin: 0 4px; }
.nav-label-short { display: none; }

/* ─── PAGES ──────────────────────────────────────── */
.page { display: none; }
.page.active { display: block; }

/* ════════════════════════════════════════════════
   HOME
═══════════════════════════════════════════════════ */

.hero {
  background: var(--navy);
  padding: 76px 40px 64px;
  position: relative; overflow: hidden;
  border-bottom: 6px solid var(--gold);
}
.hero-inner {
  max-width: 880px; margin: 0 auto;
  position: relative; z-index: 1;
}
.hero-top {
  display: flex; align-items: center; gap: 28px;
  margin-bottom: 28px;
}
.hero-mark {
  flex-shrink: 0;
  font-size: 90px; line-height: 1;
  color: var(--gold);
  opacity: .92;
}
.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800; color: var(--white);
  line-height: 1.14; margin-bottom: 0;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--gold); }
.hero-sub {
  font-size: 17px; color: rgba(255,255,255,.72);
  line-height: 1.6; margin-bottom: 34px;
}
.hero-sub strong { color: var(--white); font-weight: 700; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-cta-row.is-centered { justify-content: center; }
@media (max-width: 560px) {
  .hero-top { flex-direction: column; text-align: center; gap: 16px; }
  .hero-mark { font-size: 64px; }
}

/* — Herramientas section — */
.section {
  padding: 88px 40px;
  max-width: 1100px; margin: 0 auto;
}
.section-eyebrow {
  display: inline-block;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-dk); margin-bottom: 14px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
}
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800; color: var(--navy);
  line-height: 1.2; margin-bottom: 52px;
  max-width: 600px; letter-spacing: -0.02em;
}
.section-eyebrow.is-centered { display: block; text-align: center; }
.section-title.is-centered { text-align: center; max-width: 100%; margin-left: auto; margin-right: auto; }
.section-title.is-centered.is-tight { margin-bottom: 36px; }
.section-lead {
  text-align: center;
  font-size: 16.5px; color: var(--muted); font-weight: 500;
  max-width: 620px; margin: 0 auto 40px;
  line-height: 1.6;
}
.tools-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.tool-card {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 10px; padding: 40px 36px;
  cursor: pointer; transition: transform .18s, box-shadow .18s;
  position: relative; overflow: hidden;
}
.tool-card-accent { display: none; }
.tool-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--gold);
}
.tool-num {
  display: inline-block;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--white); background: var(--navy);
  padding: 4px 10px; border-radius: 4px;
  margin-bottom: 22px;
}
.tool-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px; font-weight: 800;
  color: var(--navy); line-height: 1.28; margin-bottom: 12px;
}
.tool-card h3 b { color: var(--gold-dk); font-weight: inherit; }
.tool-card .tool-desc {
  font-size: 14.5px; color: var(--muted);
  line-height: 1.65; margin-bottom: 26px;
}
.feat-list { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 10px; }
.feat-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text); font-weight: 500;
}
.feat-check {
  width: 19px; height: 19px; border-radius: 4px;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--white); flex-shrink: 0;
}

/* — Buttons — */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 8px;
  font-size: 14.5px; font-weight: 700;
  text-decoration: none; cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: transform .15s, box-shadow .15s;
}
.btn-dark {
  background: var(--navy); color: var(--white);
  border: 2px solid var(--navy);
}
.btn-dark:hover { background: var(--gold); color: var(--navy); border-color: var(--gold-dk); }
.btn-primary {
  background: var(--gold); color: var(--navy);
  border: 2px solid var(--gold-dk);
  box-shadow: 4px 4px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(255,255,255,.18); }
.btn-outline {
  background: transparent; color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* — Trust strip — */
.trust-strip {
  background: var(--cream);
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  padding: 56px 40px;
}
.trust-inner { max-width: 1000px; margin: 0 auto; }
.trust-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--navy); text-align: center; margin-bottom: 44px;
}
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.trust-item {
  text-align: center;
  border-left: 2px solid var(--border);
  padding: 0 16px;
}
.trust-item:first-child { border-left: none; }
.trust-val {
  font-family: 'Montserrat', sans-serif;
  font-size: 34px; font-weight: 800;
  color: var(--gold-dk); line-height: 1; margin-bottom: 8px;
}
.trust-lbl {
  font-size: 14.5px; font-weight: 700; color: var(--navy); margin-bottom: 5px;
}
.trust-desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* — Cómo funciona — */
.steps-section { padding-bottom: 88px; }
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.step-card {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 32px 28px;
  position: relative;
}
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--navy); color: var(--white);
  font-weight: 800; font-size: 16px;
  margin-bottom: 18px;
}
.step-card h4 { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* — After section — */
.after-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.after-card {
  background: var(--white); border: 2px solid var(--border);
  border-radius: 10px; padding: 34px;
}
.after-tag {
  display: inline-block;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--navy);
  background: var(--cream); padding: 4px 10px; border-radius: 4px;
  margin-bottom: 16px;
}
.after-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 19px; font-weight: 800;
  color: var(--navy); margin-bottom: 10px; line-height: 1.35;
}
.after-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.resource-pill {
  display: flex; align-items: center; gap: 12px;
  margin-top: 20px; padding: 13px 16px;
  background: var(--cream); border-radius: 8px;
  border: 1px solid var(--border);
}
.resource-pill-text { font-size: 13px; font-weight: 700; color: var(--navy); }
.resource-emoji { font-size: 20px; }

/* ════════════════════════════════════════════════
   TOOL PAGES — shared styles
═══════════════════════════════════════════════════ */

.tool-hero {
  background: var(--navy);
  padding: 64px 40px 56px;
  position: relative; overflow: hidden;
  border-bottom: 6px solid var(--gold);
}
.tool-hero-inner {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 200px;
  gap: 56px; align-items: center;
  position: relative; z-index: 1;
}
.tool-hero-inner.single-col { grid-template-columns: 1fr; }
.tool-pre {
  font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.tool-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 800; color: var(--white);
  line-height: 1.18; margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.tool-hero h1 b { color: var(--gold); font-weight: inherit; }
.tool-hero-sub {
  font-size: 15.5px; color: rgba(255,255,255,.7);
  line-height: 1.6; margin-bottom: 28px;
}
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.85);
}
.stat-stack { display: flex; flex-direction: column; gap: 14px; }
.stat-box {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px; padding: 20px 24px;
  text-align: center;
}
.stat-n {
  font-family: 'Montserrat', sans-serif;
  font-size: 34px; font-weight: 800;
  color: var(--gold); line-height: 1; margin-bottom: 4px;
}
.stat-l { font-size: 11px; color: rgba(255,255,255,.5); letter-spacing: .06em; text-transform: uppercase; }

/* ─── QUIZ ─── */
.quiz-wrap {
  padding: 64px 40px;
  max-width: 900px; margin: 0 auto;
}
.quiz-progress { display: flex; align-items: center; gap: 16px; margin-bottom: 34px; }
.progress-track {
  flex: 1; height: 8px; background: var(--cream-dk);
  border-radius: 4px; overflow: hidden;
  border: 1px solid var(--border);
}
.progress-fill {
  height: 100%; background: var(--gold);
  transition: width .4s ease;
}
.progress-txt { font-size: 13px; font-weight: 700; color: var(--navy); white-space: nowrap; }

.quiz-card {
  background: var(--white); border: 2px solid var(--navy);
  border-radius: 10px; padding: 46px;
}
.q-area-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--navy);
  background: var(--gold);
  padding: 4px 10px; border-radius: 4px;
  margin-bottom: 16px;
}
.q-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 23px; font-weight: 800;
  color: var(--navy); line-height: 1.32; margin-bottom: 30px;
}
.q-options { display: flex; flex-direction: column; gap: 11px; }
.q-opt {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 20px;
  border: 2px solid var(--border); border-radius: 8px;
  cursor: pointer; transition: all .15s;
  font-size: 15px; color: var(--text); background: var(--white);
  width: 100%; text-align: left; font-family: 'Montserrat', sans-serif; font-weight: 500;
}
.q-opt:hover { border-color: var(--navy); }
.q-opt.sel { border-color: var(--gold); background: var(--gold-lt); color: var(--navy); font-weight: 700; }
.q-radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.q-opt.sel .q-radio { border-color: var(--gold-dk); background: var(--gold-dk); }
.q-opt.sel .q-radio::after {
  content: ''; width: 6px; height: 6px;
  background: white; border-radius: 50%;
}
.quiz-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 32px;
}
.btn-ghost {
  background: none; border: none;
  font-size: 13.5px; font-weight: 700; color: var(--muted);
  cursor: pointer; padding: 6px; font-family: 'Montserrat', sans-serif;
  transition: color .15s;
}
.btn-ghost:hover { color: var(--navy); }
.btn-next {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 24px; border-radius: 8px;
  background: var(--navy); color: white;
  border: 2px solid var(--navy);
  font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: 'Montserrat', sans-serif;
  transition: all .15s;
}
.btn-next:hover { background: var(--gold); color: var(--navy); border-color: var(--gold-dk); }
.btn-next:disabled { opacity: .3; pointer-events: none; }
.is-invisible { visibility: hidden; }

/* ─── SWIPE CARDS (Tool 1 – Fase 2) ─── */
.swipe-wrap {
  padding: 14px 40px 76px;
  max-width: 900px; margin: 0 auto;
  display: none;
}
.swipe-intro { text-align: center; margin-bottom: 32px; }
.swipe-intro h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 23px; font-weight: 800; color: var(--navy); margin-bottom: 8px;
}
.swipe-intro p { font-size: 14px; color: var(--muted); }
.swipe-step { font-size: 12px; font-weight: 700; color: var(--gold-dk); margin-bottom: 6px; letter-spacing: .06em; text-transform: uppercase; }
.swipe-card-ui {
  background: var(--white); border: 2px solid var(--navy);
  border-radius: 10px; padding: 38px; text-align: center;
}
.sw-tag {
  display: inline-block;
  background: var(--navy); color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 4px;
  margin-bottom: 18px;
}
.sw-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 27px; font-weight: 800;
  color: var(--navy); margin-bottom: 24px;
}
.sw-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; margin-bottom: 32px;
}
.sw-cell { background: var(--cream); padding: 16px; }
.sw-cell-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 5px;
}
.sw-cell-val { font-size: 14px; font-weight: 700; color: var(--navy); }
.sw-desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-bottom: 22px; text-align: left; }
.sw-meta-note { font-size: 11px; color: var(--muted); margin-bottom: 16px; letter-spacing: .04em; }
.sw-actions { display: flex; justify-content: center; gap: 14px; }
.sw-btn {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 15px 24px; border-radius: 10px;
  border: 2px solid var(--border); background: var(--white);
  cursor: pointer; transition: all .15s; font-family: 'Montserrat', sans-serif;
}
.sw-btn:hover { transform: translateY(-2px); }
.sw-btn.pass:hover  { border-color: #94A3B8; background: #F8FAFC; }
.sw-btn.like:hover  { border-color: var(--gold-dk); background: var(--gold-lt); }
.sw-btn.mine:hover  { border-color: var(--gold); background: var(--gold-lt); }
.sw-btn-icon { font-size: 24px; }
.sw-btn-txt { font-size: 12px; font-weight: 700; color: var(--muted); }

/* ─── RESULTS (Tool 1) ─── */
.results-wrap {
  padding: 14px 40px 76px;
  max-width: 900px; margin: 0 auto;
  display: none;
}
.results-hd { text-align: center; margin-bottom: 34px; }
.results-hd h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 27px; font-weight: 800; color: var(--navy); margin-bottom: 8px;
}
.results-hd p { font-size: 14.5px; color: var(--muted); }
.res-main {
  background: var(--navy); border-radius: 10px;
  border: 2px solid var(--navy);
  padding: 38px; margin-bottom: 16px;
  position: relative; overflow: hidden;
}
.res-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--gold); color: var(--navy);
  font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 4px; margin-bottom: 16px;
}
.res-pct {
  font-family: 'Montserrat', sans-serif;
  font-size: 54px; font-weight: 800;
  color: var(--gold); line-height: 1; margin-bottom: 2px;
}
.res-pct-label { font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 18px; }
.res-opp-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 25px; font-weight: 800;
  color: white; margin-bottom: 20px;
  position: relative; z-index: 1;
}
.res-reasons { list-style: none; display: flex; flex-direction: column; gap: 9px; position: relative; z-index: 1; }
.res-reasons li {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: rgba(255,255,255,.72); font-weight: 500;
}
.res-reasons li::before { content: '✓'; color: var(--gold); font-weight: 700; }
.res-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.res-sec-card {
  background: var(--white); border: 2px solid var(--border);
  border-radius: 8px; padding: 24px;
  display: flex; flex-direction: column;
  justify-content: space-between;
}
.res-sec-pct {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px; font-weight: 800;
  color: var(--gold-dk); margin-bottom: 5px;
}
.res-sec-name { font-size: 15px; font-weight: 700; color: var(--navy); }
.res-sec-info { margin-top: 8px; }
.res-sec-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.res-sec-meta { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.res-sec-link {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 14px; font-size: 12.5px; font-weight: 700;
  color: var(--gold-dk); text-decoration: none;
  padding: 8px 14px; border: 2px solid var(--gold);
  border-radius: 6px; transition: all .15s;
}
.res-sec-link:hover { background: var(--gold); color: var(--navy); }
.res-sec-link--hero { display: inline-block; margin-top: 22px; border-color: rgba(255,255,255,.4); color: #fff; }

/* ─── AVISO ORIENTATIVO ─── */
.res-disclaimer {
  font-size: 12px; color: var(--muted); line-height: 1.55;
  text-align: center; max-width: 620px; margin: 0 auto 26px;
}

/* ─── PROFILE RESULT (Tool 2) ─── */
.profile-wrap {
  padding: 14px 40px 56px;
  max-width: 900px; margin: 0 auto;
  display: none;
}
.profile-card {
  background: var(--white); border: 2px solid var(--navy);
  border-radius: 10px; padding: 46px; text-align: center;
  margin-bottom: 22px;
}
.profile-emoji { font-size: 50px; display: block; margin-bottom: 14px; }
.profile-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 34px; font-weight: 800;
  color: var(--navy); margin-bottom: 12px;
}
.profile-tagline {
  font-size: 18px; font-weight: 600; font-style: italic;
  color: var(--gold-dk); margin-bottom: 18px; line-height: 1.4;
}
.profile-desc {
  font-size: 15px; color: var(--muted);
  line-height: 1.7; max-width: 540px; margin: 0 auto 32px;
}
.scores-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 32px;
}
.score-box { background: var(--cream); border: 1px solid var(--border); border-radius: 8px; padding: 18px; }
.score-box-label {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.score-track {
  height: 8px; background: var(--cream-dk); border-radius: 4px;
  overflow: hidden; margin-bottom: 8px; border: 1px solid var(--border);
}
.score-fill { height: 100%; background: var(--gold); }
.score-val { font-size: 14px; font-weight: 800; color: var(--navy); }
.scroll-hint { text-align: center; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.recs-box { background: var(--cream); border: 1px solid var(--border); border-radius: 8px; padding: 26px; text-align: left; }
.recs-box-title {
  font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 16px;
}
.rec-row {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 12px; font-size: 14px; color: var(--text); line-height: 1.6;
}
.rec-row::before { content: '→'; color: var(--gold-dk); font-weight: 700; flex-shrink: 0; line-height: 1; }
.rec-row span { flex: 1; }

/* ─── CAPTACIÓN / FORMULARIO ÚNICO ─── */
.capture-section {
  background: var(--cream-dk);
  border-top: 2px solid var(--border);
  padding: 60px 40px;
}
.capture-inner { max-width: 480px; margin: 0 auto; text-align: center; }
.capture-inner h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px; font-weight: 800;
  color: var(--navy); margin-bottom: 10px;
}
.capture-inner p { font-size: 14.5px; color: var(--muted); line-height: 1.65; margin-bottom: 20px; }
.capture-benefits {
  list-style: none; margin-bottom: 26px; display: flex;
  flex-direction: column; gap: 12px; text-align: left;
}
.capture-benefits li {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 14.5px; color: var(--text); font-weight: 500;
}
.capture-benefits li::before {
  content: '✓'; color: var(--gold-dk); font-weight: 700;
  flex-shrink: 0; line-height: 1;
}
.capture-form { display: flex; flex-direction: column; gap: 12px; }
/* Sin esto, [hidden] (display:none del user-agent) queda anulado por el
   display:flex de arriba: misma especificidad, y las reglas de autor
   siempre ganan a las del user-agent salvo que este use !important. */
.capture-form[hidden] { display: none; }
.f-field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.f-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted);
}
.f-input {
  padding: 14px 18px;
  border: 2px solid var(--border); border-radius: 8px;
  font-size: 15px; font-family: 'Montserrat', sans-serif;
  background: var(--white); color: var(--text);
  outline: none; transition: border-color .15s;
  width: 100%;
}
.f-input:focus { border-color: var(--gold-dk); }
.f-input::placeholder { color: #A6A199; }
.f-privacy { font-size: 11.5px; color: #8B8579; text-align: center; }
.f-privacy a { color: #8B8579; }
.btn-submit {
  padding: 16px; border-radius: 8px;
  background: var(--navy); color: white;
  border: 2px solid var(--navy);
  font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: 'Montserrat', sans-serif;
  transition: background .15s;
}
.btn-submit:hover { background: var(--gold); color: var(--navy); border-color: var(--gold-dk); }
.btn-submit:disabled { opacity: .55; cursor: not-allowed; }
.btn-submit:disabled:hover { background: var(--navy); color: white; }
.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}
.lead-consents { display: flex; flex-direction: column; gap: 12px; margin: 4px 0; }
.lead-consents:empty { display: none; }
.f-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12.5px; color: var(--muted); line-height: 1.5;
  text-align: left; cursor: pointer;
}
.f-check input[type="checkbox"] {
  flex-shrink: 0; width: 17px; height: 17px; margin-top: 1px;
  accent-color: var(--gold-dk); cursor: pointer;
}
.f-check a { color: var(--navy); font-weight: 700; }
.f-required-note { font-size: 11px; color: #8B8579; text-align: left; margin-top: -4px; }
.lead-status {
  display: none;
  font-size: 13.5px; line-height: 1.55; text-align: left;
  padding: 13px 16px; border-radius: 8px; margin-bottom: 14px;
  border: 2px solid var(--border); background: var(--white); color: var(--text);
}
.lead-status.is-visible { display: block; }
.lead-status.is-error   { border-color: #D66B57; background: #FDF1EE; color: #9A3B2C; }
.lead-status.is-success { border-color: #4FAE7C; background: #E8F7EF; color: #146C43; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* ─── FOOTER ─── */
footer {
  background: var(--navy); padding: 34px 40px; text-align: center;
  border-top: 6px solid var(--gold);
}
footer p { font-size: 13px; color: rgba(255,255,255,.4); }
footer p + p { margin-top: 8px; }
footer strong { color: rgba(255,255,255,.7); }
.footer-link { color: rgba(255,255,255,.4); }
.footer-link:hover { color: var(--gold); }

.social-media {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-top: 18px;
}
.social-media-label { font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.4); }
.social-media-links { display: flex; align-items: center; gap: 14px; }
.social-media-links a {
  display: inline-flex; color: rgba(255,255,255,.5);
  transition: color .15s;
}
.social-media-links a:hover { color: var(--gold); }
@media (max-width: 480px) {
  .social-media { flex-direction: column; gap: 10px; }
}

/* ─── QUIZ SUMMARY TABLE ─── */
.quiz-summary {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 8px; padding: 22px 26px;
  margin-bottom: 26px;
}
.quiz-summary-title {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.quiz-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.quiz-summary-row:last-child { border-bottom: none; padding-bottom: 0; }
.quiz-summary-q { color: var(--muted); font-weight: 500; }
.quiz-summary-a { font-weight: 700; color: var(--navy); text-align: right; max-width: 55%; }

/* ─── REVIEWS ─── */
.reviews-section {
  background: var(--white);
  padding: 88px 40px;
}
.reviews-inner { max-width: 1000px; margin: 0 auto; }
.reviews-eyebrow {
  display: block;
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-dk);
  margin-bottom: 14px; text-align: center;
}
.reviews-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(22px, 3vw, 34px); font-weight: 800;
  color: var(--navy); text-align: center;
  margin-bottom: 48px; letter-spacing: -0.02em;
}
.reviews-widget { margin-bottom: 36px; }

.faq-section {
  background: var(--cream-dk);
  padding: 76px 40px;
}
.faq-inner { max-width: 940px; margin: 0 auto; }
.faq-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px; font-weight: 800;
  color: var(--navy); text-align: center;
  margin-bottom: 40px; letter-spacing: -0.02em;
}
.faq-item {
  background: var(--white); border-radius: 8px;
  margin-bottom: 12px; border: 2px solid var(--border);
  overflow: hidden;
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%;
  padding: 20px 26px;
  font-size: 15px; font-weight: 700; color: var(--navy);
  cursor: pointer; user-select: none;
  transition: background .15s;
  background: none; border: none; text-align: left;
  font-family: 'Montserrat', sans-serif;
}
.faq-q:hover { background: var(--cream); }
.faq-q .faq-icon {
  flex-shrink: 0; width: 24px; height: 24px;
  border-radius: 4px; background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--white); font-weight: 700;
  transition: transform .2s, background .15s;
}
.faq-item.open { border-color: var(--gold-dk); }
.faq-item.open .faq-q .faq-icon { transform: rotate(45deg); background: var(--gold-dk); }
.faq-a {
  font-size: 14px; color: var(--muted); line-height: 1.65;
  padding: 0 26px;
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 26px 22px; }

/* ════════════════════════════════════════════════
   PÁGINAS LEGALES
═══════════════════════════════════════════════════ */
.legal-hero {
  background: var(--navy);
  padding: 52px 40px 40px;
  border-bottom: 6px solid var(--gold);
}
.legal-hero-inner { max-width: 740px; margin: 0 auto; }
.legal-hero .tool-pre { margin-bottom: 10px; }
.legal-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 800; color: var(--white);
  letter-spacing: -0.02em;
}
.legal-wrap {
  max-width: 740px; margin: 0 auto;
  padding: 52px 40px 96px;
}
.legal-updated { font-size: 12.5px; color: var(--muted); margin-bottom: 36px; }
.legal-wrap h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px; font-weight: 800;
  color: var(--navy); margin-top: 38px; margin-bottom: 14px;
}
.legal-wrap h2:first-of-type { margin-top: 0; }
.legal-wrap h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-top: 24px; margin-bottom: 10px; }
.legal-wrap p { font-size: 15px; color: var(--text); line-height: 1.75; margin-bottom: 14px; }
.legal-wrap ul, .legal-wrap ol { padding-left: 22px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.legal-wrap li { font-size: 15px; color: var(--text); line-height: 1.7; }
.legal-wrap a { color: var(--gold-dk); text-decoration: underline; }
.legal-wrap a:hover { color: var(--gold); }
.legal-wrap strong { color: var(--navy); }
.legal-wrap p.legal-fineprint { font-size: 12.5px; color: var(--muted); }
.legal-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--muted);
  text-decoration: none; margin-bottom: 26px;
}
.legal-back:hover { color: var(--gold-dk); }

.hero-centered .hero-inner { text-align: center; }
.hero-centered .hero h1 { max-width: 100%; }
.hero-centered .hero-sub { max-width: 600px; margin-left: auto; margin-right: auto; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero-cards, .tools-grid, .after-grid, .trust-grid,
  .tool-hero-inner, .res-secondary, .scores-row, .steps-grid { grid-template-columns: 1fr; }
  .trust-item { border-left: none; border-top: 2px solid var(--border); padding: 20px 0 0; }
  .trust-item:first-child { border-top: none; padding-top: 0; }
  nav { padding: 0 20px; }
  .hero, .section, .quiz-wrap, .swipe-wrap, .results-wrap,
  .capture-section, .trust-strip, .profile-wrap,
  .legal-hero, .legal-wrap { padding-left: 20px; padding-right: 20px; }
  .quiz-card, .swipe-card-ui, .profile-card { padding: 28px 22px; }
  .tool-card:hover { transform: none; box-shadow: none; }
}

@media (max-width: 480px) {
  nav { padding: 0 14px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 8px 10px; font-size: 12px; }
  .nav-label-full { display: none; }
  .nav-label-short { display: inline; }
  .sw-grid { grid-template-columns: 1fr; }
  .hero-cta-row { flex-direction: column; }
  .hero-cta-row .btn { width: 100%; justify-content: center; }
}
