/* ==========================================================================
   AptoGC · aptogc.es — «Brújula Edition»
   Estética editorial serena. Sin frameworks. Modo claro editorial fijo.
   ========================================================================== */

:root {
  /* Superficies Alabastro-Salvia */
  --bg: #F3F6F3;
  --surface: #FFFFFF;
  --surface-alt: #E7EFE9;
  --border: #DEE7E0;
  --divider: #DCE5DE;

  /* Marca Verde Pino Editorial */
  --primary: #205A40;
  --primary-pressed: #184732;
  --primary-soft: #E2EEE6;
  --ring-track: #DDEAE1;

  /* Acento Oro Cálido */
  --gold: #A87B22;
  --gold-soft: #F7EFE0;
  /* Variante de texto del oro: misma tonalidad, oscurecida para cumplir
     contraste WCAG AA (≥4,5:1) en texto pequeño sobre blanco y --gold-soft. */
  --gold-ink: #8A6418;

  /* Tipografía Carbón-Bosque */
  --text-primary: #17251E;
  --text-muted: #5D6E64;

  /* Semántico */
  --danger: #B8322E;
  --danger-soft: #FCEAEA;

  /* Radios y Sombras */
  --radius-hero: 24px;
  --radius-card: 18px;
  --radius-btn: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 10px 30px rgba(23, 37, 30, 0.05), 0 1px 2px rgba(23, 37, 30, 0.04);
  --shadow-hero: 0 22px 50px rgba(32, 90, 64, 0.10), 0 2px 6px rgba(23, 37, 30, 0.05);

  /* Layout */
  --maxw: 1140px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --section-pad: clamp(64px, 8vw, 112px);

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;

  color-scheme: light;
}

/* ---------- Reset mínimo ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 750; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-pressed); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.num, .tabular { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

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

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--primary);
  color: #fff;
  font-weight: 650;
  border-radius: var(--radius-btn);
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-pad); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow.gold { color: var(--gold-ink); }
.h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.lead { margin-top: 16px; font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: var(--text-muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(32, 90, 64, .18); }
.btn-primary:hover { background: var(--primary-pressed); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: var(--surface); color: var(--primary); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary-pressed); }
.btn-sm { min-height: 42px; padding: 9px 16px; font-size: .94rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 246, 243, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 750;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text-primary); }
.brand-logo { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 26px; list-style: none; }
.nav-list a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 550;
  font-size: .97rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover { color: var(--primary); border-bottom-color: var(--ring-track); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 839.98px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px var(--gutter) 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 30px rgba(23, 37, 30, .06);
  }
  .js .site-nav:not(.is-open) { display: none; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--divider); }
  .nav-list a:hover { border-bottom-color: var(--divider); }
  .nav-cta { margin-top: 10px; min-height: 50px; }
  /* Sin JS: el menú queda visible en flujo normal */
  html:not(.js) .site-nav { position: static; box-shadow: none; border: 0; padding: 0 0 12px; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 96px); overflow: hidden; overflow: clip; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.45rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.hero h1 .accent { color: var(--primary); }
.hero .lead { max-width: 560px; margin-top: 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-ctas .btn-primary { max-width: 100%; }
@media (max-width: 559.98px) {
  .hero-ctas .btn { width: 100%; }
}
.trust-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; list-style: none; }
.trust-pills li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: .86rem;
  font-weight: 600;
  color: var(--text-muted);
}
.trust-pills svg { width: 15px; height: 15px; color: var(--primary); }

.hero-visual { position: relative; justify-self: center; width: 100%; max-width: 460px; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -8% -6% 10%;
  background: radial-gradient(closest-side, var(--primary-soft), transparent);
  z-index: -1;
}
.hero-frame {
  overflow: hidden;
  border-radius: var(--radius-hero);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  box-shadow: var(--shadow-hero);
}
.hero-frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.hero-badge {
  position: absolute;
  left: -18px; bottom: 34px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
  font-size: .88rem;
  font-weight: 650;
}
.hero-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }

@media (max-width: 899.98px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 400px; }
  .hero-badge { left: 12px; }
}

/* ---------- Franja de cifras ---------- */
.metrics-strip { padding-bottom: clamp(24px, 4vw, 40px); }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-hero);
  box-shadow: var(--shadow-card);
  list-style: none;
  overflow: hidden;
}
.metric { padding: 26px 22px; border-left: 1px solid var(--divider); }
.metric:first-child { border-left: 0; }
.metric-value {
  display: block;
  font-size: clamp(1.55rem, 2.3vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.metric-value small { font-size: .62em; font-weight: 700; letter-spacing: -0.01em; color: var(--text-primary); }
.metric-label { display: block; margin-top: 8px; font-size: .88rem; line-height: 1.45; color: var(--text-muted); }

@media (max-width: 979.98px) {
  .metrics-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .metric { grid-column: span 2; border-left: 0; border-top: 1px solid var(--divider); }
  .metric:nth-child(-n+3) { border-top: 0; }
  .metric:nth-child(2), .metric:nth-child(3), .metric:nth-child(5) { border-left: 1px solid var(--divider); }
  .metric:nth-child(4), .metric:nth-child(5) { grid-column: span 3; }
}
@media (max-width: 599.98px) {
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric, .metric:nth-child(4), .metric:nth-child(5) { grid-column: span 1; border-left: 0; border-top: 1px solid var(--divider); padding: 20px 18px; }
  .metric:nth-child(-n+2) { border-top: 0; }
  .metric:nth-child(3) { border-top: 1px solid var(--divider); }
  .metric:nth-child(even) { border-left: 1px solid var(--divider); }
  .metric:last-child { grid-column: 1 / -1; }
}

/* ---------- Problema vs. Solución ---------- */
.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.compare-card { padding: clamp(26px, 3.5vw, 40px); border-radius: var(--radius-card); border: 1px solid var(--border); }
.compare-card h3 { font-size: 1.3rem; margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.compare-card.is-noise { background: var(--surface-alt); }
.compare-card.is-noise h3 { color: var(--text-muted); }
.compare-card.is-brujula {
  background: var(--surface);
  border-color: rgba(32, 90, 64, .35);
  box-shadow: var(--shadow-hero);
}
.tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.tag-muted { background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); }
.tag-primary { background: var(--primary-soft); color: var(--primary); }
.icon-list { list-style: none; display: grid; gap: 16px; }
.icon-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.icon-list .ic {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  margin-top: 1px;
}
.icon-list .ic svg { width: 14px; height: 14px; }
.ic-x { background: var(--surface); color: #8A9A90; border: 1px solid var(--border); }
.ic-check { background: var(--primary); color: #fff; }
.is-noise .icon-list li { color: var(--text-muted); }

@media (max-width: 767.98px) {
  .compare-grid { grid-template-columns: 1fr; }
}

/* ---------- Funciones: bloques alternados ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.feature + .feature, .feature + .bento, .bento + .feature { margin-top: clamp(72px, 9vw, 120px); }
.feature.is-reversed .feature-media { order: 2; }
.feature-media {
  overflow: hidden;
  border-radius: var(--radius-hero);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  box-shadow: var(--shadow-hero);
}
.feature-media img { width: 100%; aspect-ratio: 1200 / 896; object-fit: cover; }
.feature-body h3 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
.feature-body > p { margin-top: 16px; color: var(--text-muted); }
.feature-body > p + p { margin-top: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
  padding: 5px 12px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: .74rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase;
}
.badge.gold { background: var(--gold-soft); color: var(--gold-ink); }
.bento-card .badge { align-self: flex-start; }

@media (max-width: 899.98px) {
  .feature { grid-template-columns: 1fr; }
  .feature.is-reversed .feature-media { order: 0; }
}

/* Explorador 4 Mochilas (tabs) */
.mochilas { margin-top: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 18px; }
.mochilas-title { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.tablist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tab {
  display: block;
  min-height: 46px;
  padding: 12px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: .9rem; font-weight: 650; line-height: 1.25;
  text-align: left;
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.tab:hover { border-color: rgba(32, 90, 64, .4); }
.tab[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.tab .m { font-weight: 800; font-variant-numeric: tabular-nums; }
.tabpanel { margin-top: 16px; padding: 4px 4px 2px; }
.tabpanel[hidden] { display: none; }
.tabpanel h4 { font-size: 1.05rem; letter-spacing: -0.01em; }
.tabpanel .topics { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; list-style: none; }
.tabpanel .topics li {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: .82rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tabpanel p { color: var(--text-muted); font-size: .97rem; }
.tabpanel .meta { margin-top: 10px; font-size: .84rem; color: var(--text-muted); }

/* Ficha del simulacro */
.exam-sheet { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; }
.exam-part {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.exam-part .name { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 700; }
.exam-part .count { font-size: 1.35rem; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.exam-part .rule { display: block; margin-top: 6px; font-size: .86rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.exam-part .kind { display: inline-block; margin-top: 8px; font-size: .7rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.kind-elim { color: var(--danger); }
.kind-punt { color: var(--primary); }
.acta {
  display: flex; align-items: center; gap: 14px;
  margin-top: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--gold-soft) 100%);
  border: 1px solid rgba(168, 123, 34, .45);
  border-radius: 14px;
}
.acta-stamp {
  flex: none;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-weight: 800; font-size: .85rem; letter-spacing: .06em;
  white-space: nowrap;
}
.acta-stamp .no { opacity: .78; }
.acta p { font-size: .92rem; color: var(--text-primary); }
.express-note { margin-top: 14px !important; font-size: .95rem; }

@media (max-width: 459.98px) {
  .acta { flex-direction: column; align-items: flex-start; }
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 20px;
}
.bento-card {
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.bento-card.is-tall { grid-row: span 2; display: flex; flex-direction: column; }
.bento-card h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); }
.bento-card > p { margin-top: 12px; color: var(--text-muted); }
.vueltas { display: flex; gap: 8px; margin: 22px 0 6px; list-style: none; flex-wrap: wrap; }
.vueltas li {
  flex: 1 1 0;
  min-width: 82px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.vueltas .v { font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.vueltas .bar { display: block; height: 6px; margin-top: 8px; border-radius: 6px; background: var(--ring-track); overflow: hidden; }
.vueltas .bar i { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.cool-note { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 14px; background: var(--gold-soft); border-radius: 12px; font-size: .9rem; color: var(--text-primary); }
.cool-note strong { color: var(--gold-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.points { list-style: none; display: grid; gap: 14px; margin-top: 22px; }
.points li { padding-top: 14px; border-top: 1px solid var(--divider); }
.points strong { display: block; font-size: .98rem; }
.points li > span { display: block; margin-top: 2px; font-size: .94rem; color: var(--text-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; list-style: none; }
.chips li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: .84rem; font-weight: 600;
}
.chips svg { width: 14px; height: 14px; color: var(--primary); }

@media (max-width: 839.98px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card.is-tall { grid-row: auto; }
}

/* Físicas */
.fisicas-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.fisicas-list li { padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.fisicas-list .code { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .08em; color: var(--primary); background: var(--primary-soft); padding: 2px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.fisicas-list strong { display: block; margin-top: 8px; font-size: .96rem; line-height: 1.35; }
.fisicas-list span.try { display: block; margin-top: 4px; font-size: .85rem; color: var(--text-muted); }
.age-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: .9rem; color: var(--text-muted); }
.age-row .chip-age { padding: 4px 12px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.pdf-box { margin-top: 20px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.pdf-box h4 { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.pdf-box h4 svg { width: 20px; height: 20px; color: var(--primary); }
.pdf-box p { margin-top: 8px; font-size: .94rem; color: var(--text-muted); }
.pdf-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; list-style: none; }
.pdf-modes li { padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: .88rem; }
.pdf-modes strong { display: block; font-size: .92rem; }

@media (max-width: 459.98px) {
  .fisicas-list, .pdf-modes { grid-template-columns: 1fr; }
  .exam-part { padding: 14px; }
  .exam-part .name { flex-wrap: wrap; column-gap: 8px; row-gap: 0; }
}
@media (max-width: 339.98px) {
  .exam-sheet { grid-template-columns: 1fr; }
}

/* ---------- Beta ---------- */
.beta-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(18px, 5vw, 56px);
  background: linear-gradient(135deg, #FFFFFF 0%, #F7EFE0 100%);
  border: 1px solid rgba(168, 123, 34, .38);
  border-radius: var(--radius-hero);
  box-shadow: var(--shadow-hero);
}
.beta-card .lead { color: var(--text-muted); }
.benefits { list-style: none; display: grid; gap: 12px; margin-top: 26px; counter-reset: b; }
.benefits li {
  display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: .97rem;
}
.benefits li::before {
  counter-increment: b;
  content: counter(b);
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid rgba(168, 123, 34, .45);
  color: var(--gold-ink);
  font-weight: 800; font-size: .9rem;
  font-variant-numeric: tabular-nums;
}

.beta-form {
  align-self: start;
  padding: clamp(18px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.form-title { font-size: 1.2rem; margin-bottom: 18px; }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-weight: 650; font-size: .94rem; }
.field .hint { font-size: .84rem; color: var(--text-muted); }
.input, .select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23205A40' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.input:hover, .select:hover { border-color: #C6D4CA; }
.input:focus, .select:focus { outline: none; border-color: var(--primary); background-color: var(--surface); box-shadow: 0 0 0 4px var(--primary-soft); }
.input[aria-invalid="true"] { border-color: var(--danger); background-color: var(--danger-soft); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin-bottom: 20px; font-size: .9rem; color: var(--text-muted); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); cursor: pointer; }
.check label { cursor: pointer; }
.check[data-invalid="true"] label { color: var(--danger); }
.error-msg { display: none; font-size: .86rem; font-weight: 600; color: var(--danger); }
.error-msg.is-visible { display: block; }
.check .error-msg { grid-column: 2; }
.form-note { margin-top: 12px; font-size: .82rem; color: var(--text-muted); text-align: center; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 16px; padding: 18px; border-radius: 14px; background: var(--primary-soft); border: 1px solid rgba(32, 90, 64, .25); }
.form-status[hidden] { display: none; }
.form-status.is-warning { background: var(--gold-soft); border-color: rgba(168, 123, 34, .45); }
.form-status h4 { font-size: 1.02rem; display: flex; align-items: center; gap: 8px; }
.form-status h4 svg { width: 20px; height: 20px; color: var(--primary); flex: none; }
.form-status p { margin-top: 8px; font-size: .92rem; }
.form-status .btn { margin-top: 14px; }
.form-status .small { font-size: .82rem; color: var(--text-muted); }

@media (max-width: 899.98px) {
  .beta-card { grid-template-columns: 1fr; }
}

/* ---------- Precios ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.price-card.is-featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-hero);
  padding-top: clamp(34px, 4vw, 44px);
}
.price-ribbon {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  border-radius: var(--radius-pill);
  color: var(--gold-ink);
  font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.price-label { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.price-name { margin-top: 6px; font-size: 1.3rem; }
.price {
  display: flex; align-items: baseline; gap: 6px;
  margin-top: 18px;
  font-variant-numeric: tabular-nums;
}
.price .amount { font-size: clamp(2.3rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price .per { font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.price-sub { margin-top: 10px; font-size: .92rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.price-sub strong { color: var(--primary); }
.trial-pill {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: .84rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.price-includes { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--divider); flex: 1; }
.price-includes .inc-title { font-size: .86rem; font-weight: 700; margin-bottom: 12px; }
.price-includes ul { list-style: none; display: grid; gap: 10px; }
.price-includes li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: .93rem; line-height: 1.45; }
.price-includes li svg { width: 18px; height: 18px; margin-top: 2px; color: var(--primary); }
.price-card .btn { margin-top: 26px; }
.pricing-note { margin-top: 26px; text-align: center; font-size: .9rem; color: var(--text-muted); }

@media (max-width: 979.98px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; gap: 28px; }
  .price-card.is-featured { order: -1; }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.faq-item[open] { box-shadow: var(--shadow-card); border-color: #CFDCD3; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px;
  font-weight: 700;
  font-size: 1.03rem;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-card);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23205A40' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 22px; color: var(--text-muted); max-width: 70ch; }

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(48px, 6vw, 72px) 36px; background: var(--surface); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 12px; max-width: 34ch; color: var(--text-muted); font-size: .95rem; }
.footer-title { font-size: .8rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.footer-links { list-style: none; display: grid; gap: 4px; }
.footer-links a { display: inline-block; padding: 6px 0; color: var(--text-primary); text-decoration: none; font-size: .96rem; }
.footer-links a:hover { color: var(--primary); text-decoration: underline; }
.independence-note {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px;
  margin-top: 36px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  font-size: .9rem;
  color: var(--text-primary);
}
.independence-note svg { width: 20px; height: 20px; color: var(--gold-ink); margin-top: 1px; }
.copyright { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--divider); font-size: .86rem; color: var(--text-muted); }
.copyright a { color: var(--text-muted); }

@media (max-width: 699.98px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Páginas legales / soporte ---------- */
.page-hero { padding-block: clamp(36px, 5vw, 64px) clamp(24px, 3vw, 36px); }
.page-wrap { max-width: 760px; margin-inline: auto; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; font-size: .9rem; color: var(--text-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #A3B2A9; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs [aria-current] { color: var(--text-primary); font-weight: 600; }
.page-hero h1 { margin-top: 18px; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.03em; }
.page-hero .lead { margin-top: 12px; }
.updated { display: inline-flex; margin-top: 16px; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); font-size: .86rem; color: var(--text-muted); }
.legal-card {
  padding: clamp(24px, 5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-hero);
  box-shadow: var(--shadow-card);
}
.legal-section { padding-block: 26px; border-top: 1px solid var(--divider); }
.legal-section:first-of-type { border-top: 0; padding-top: 0; }
.legal-section:last-child { padding-bottom: 0; }
.legal-section h2 { font-size: clamp(1.2rem, 2vw, 1.4rem); display: flex; gap: 12px; align-items: baseline; }
.legal-section h2 .n { color: var(--primary); font-variant-numeric: tabular-nums; }
.legal-section h3 { margin-top: 20px; font-size: 1.04rem; letter-spacing: -0.01em; }
.prose { max-width: 65ch; }
.prose p, .prose ul, .prose ol { margin-top: 12px; color: #2F3E36; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 8px; }
.prose li::marker { color: var(--primary); }
.prose code { padding: 1px 6px; border-radius: 6px; background: var(--surface-alt); font-size: .88em; font-family: ui-monospace, "SF Mono", Menlo, monospace; word-break: break-word; }
.prose a { word-break: break-word; }
.data-list { list-style: none !important; padding: 0 !important; display: grid; gap: 0 !important; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.data-list li { display: grid; grid-template-columns: minmax(130px, 34%) 1fr; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--divider); font-size: .95rem; }
.data-list li:first-child { border-top: 0; }
.data-list .k { font-weight: 650; color: var(--text-primary); }
.ph {
  display: inline-block;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--gold-soft);
  border: 1px dashed var(--gold);
  color: var(--gold-ink);
  font-weight: 650;
  font-size: .92em;
  word-break: break-word;
}
.toc { margin-bottom: 28px; padding: 18px 20px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; }
.toc-title { font-size: .8rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.toc ol { margin-top: 10px; padding-left: 1.3em; display: grid; gap: 4px; font-size: .95rem; }
.toc a { color: var(--text-primary); text-decoration: none; }
.toc a:hover { color: var(--primary); text-decoration: underline; }
.callout { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--primary-soft); border: 1px solid rgba(32, 90, 64, .2); }
.callout.gold { background: var(--gold-soft); border-color: rgba(168, 123, 34, .4); }
.steps { counter-reset: s; list-style: none !important; padding: 0 !important; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: .82rem; }
.guide { margin-top: 18px; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.guide h3 { margin-top: 0; }
.contact-card { display: grid; gap: 14px; padding: 22px; margin-top: 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--border); }
.contact-card .mail { font-size: 1.2rem; font-weight: 750; }
.back-row { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 539.98px) {
  .data-list li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- 404 ---------- */
.notfound { min-height: calc(100vh - var(--header-h) - 320px); display: grid; place-items: center; text-align: center; padding-block: var(--section-pad); }
.notfound .code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; letter-spacing: -0.05em; color: var(--primary); line-height: 1; font-variant-numeric: tabular-nums; }
.notfound-compass { width: 88px; height: 88px; margin: 0 auto 18px; color: var(--primary); }
.notfound h1 { margin-top: 12px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.notfound p { margin: 14px auto 0; max-width: 46ch; color: var(--text-muted); }
.notfound .back-row { justify-content: center; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Impresión ---------- */
@media print {
  .site-header, .skip-link, .nav-toggle, .beta-form, .back-row { display: none !important; }
  body { background: #fff; }
  .legal-card { box-shadow: none; border: 0; padding: 0; }
}

/* ---------- Utilidades ---------- */
.pt-0 { padding-top: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.page-body { padding-bottom: var(--section-pad); }
.contact-card .mail { margin-top: 4px; }
.vueltas .bar i.w-100 { width: 100%; }
.vueltas .bar i.w-64 { width: 64%; }
.vueltas .bar i.w-22 { width: 22%; }
