/* ==========================================================================
   Aspirantes 2028 · PLD
   Sistema visual: ver GUIA-VISUAL.md
   ========================================================================== */

:root {
  --violet-950: #1c0230;
  --violet-900: #2a0545;
  --violet-800: #3d0763;
  --violet-700: #520575;
  --violet-600: #691992;
  --violet-500: #8a1fc0;
  --violet-400: #b51de2;
  --violet-300: #cb49dd;
  --violet-100: #f1e3f8;
  --violet-50:  #f8f1fc;

  --gold: #f9a01b;
  --gold-600: #e38a00;
  --gold-100: #fff1d9;

  --flag-red: #ce1126;
  --flag-blue: #002d62;

  --paper: #fbfaf7;
  --paper-2: #f3f0ea;
  --ink: #140816;
  --ink-2: #4b3f52;
  --line: rgba(42, 5, 69, .12);

  --grad-violet: linear-gradient(100deg, var(--violet-900) 0%, var(--violet-700) 28%, var(--violet-400) 52%, var(--violet-700) 74%, var(--violet-900) 100%);
  --grad-violet-soft: linear-gradient(140deg, var(--violet-800), var(--violet-600) 55%, var(--violet-400));

  --font-display: "Anton", "Bebas Neue", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", Georgia, serif;

  --fs-hero: clamp(3.4rem, 1.6rem + 6.4vw, 7rem);
  --fs-h2: clamp(2.6rem, 1.6rem + 4vw, 5.2rem);
  --fs-lead: clamp(1.05rem, .98rem + .4vw, 1.3rem);

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 20px 50px -20px rgba(42, 5, 69, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  background: var(--violet-700); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.section--dark { background: var(--violet-950); color: #fff; }
.section--alt { background: var(--paper-2); }
.section__head { max-width: 900px; margin-bottom: clamp(36px, 5vw, 64px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--violet-600);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); flex: none; }
.on-dark .eyebrow { color: var(--gold); }
.on-dark .eyebrow::before { background: var(--violet-300); }

.display {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .005em; line-height: .92;
}
.h2 { font-size: var(--fs-h2); margin: 14px 0 22px; line-height: 1; }
.grad-text {
  background: var(--grad-violet); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s ease-in-out infinite;
}
.on-dark__gold { color: var(--gold); }
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 62ch; }
.on-dark .lead { color: rgba(255,255,255,.78); }

.brush {
  position: relative; display: inline-block; isolation: isolate;
  padding: .15em .7em .2em; color: var(--ink); font-weight: 800;
}
.brush::before {
  content: ""; position: absolute; inset: -6% -4%; z-index: -1;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80' preserveAspectRatio='none'%3E%3Cpath d='M6 22 L40 10 L120 14 L210 6 L300 12 L372 4 L394 18 L386 30 L398 44 L384 56 L392 70 L300 74 L200 78 L110 72 L30 76 L2 64 L14 52 L0 40 L12 30 Z' fill='black'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80' preserveAspectRatio='none'%3E%3Cpath d='M6 22 L40 10 L120 14 L210 6 L300 12 L372 4 L394 18 L386 30 L398 44 L384 56 L392 70 L300 74 L200 78 L110 72 L30 76 L2 64 L14 52 L0 40 L12 30 Z' fill='black'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform: rotate(-1.2deg);
}

/* Botones */
.btn {
  --bg: var(--violet-700); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font-weight: 700; letter-spacing: .01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  box-shadow: 0 10px 30px -12px rgba(82, 5, 117, .7);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(82, 5, 117, .8); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn--gold { --bg: var(--gold); --fg: var(--ink); box-shadow: 0 10px 30px -12px rgba(249, 160, 27, .9); }
.btn--ghost { --bg: transparent; --fg: var(--violet-700); box-shadow: inset 0 0 0 2px var(--violet-700); }
.btn--ghost:hover { --bg: var(--violet-700); --fg: #fff; box-shadow: inset 0 0 0 2px var(--violet-700); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Encabezado ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 900; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s, box-shadow .4s;
}
.header.is-scrolled {
  background: rgba(251, 250, 247, .9);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand__mark {
  width: 48px; height: 44px; border-radius: 14px; display: grid; place-items: center; position: relative; flex: none;
  background: var(--grad-violet-soft); color: #fff; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .03em;
}
.brand__mark svg { position: absolute; width: 18px; height: 18px; right: -6px; top: -6px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.brand__text { line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-size: 1.3rem; text-transform: uppercase; color: var(--violet-800); letter-spacing: .02em; }
.brand__role { font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 999px; text-decoration: none;
  font-size: .92rem; font-weight: 600; color: var(--ink);
  transition: color .25s, background .25s;
}
.nav a:hover { color: var(--violet-600); background: var(--violet-50); }
.nav .nav__cta {
  margin-left: 8px; background: var(--violet-700); color: #fff; padding: 10px 18px;
  display: inline-flex; align-items: center; gap: 8px;
}
.nav .nav__cta:hover { background: var(--violet-600); color: #fff; }
.nav .nav__cta svg { width: 16px; height: 16px; color: var(--gold); }

.burger { display: none; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--violet-700); color: #fff; place-items: center; flex: none; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s var(--ease), opacity .3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Portada ---------- */
.hero {
  min-height: 100svh; padding: calc(var(--header-h) + 40px) 0 0; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.hero__flag { position: absolute; pointer-events: none; filter: blur(60px); opacity: .32; border-radius: 50%; }
.hero__flag--red { width: 520px; height: 260px; background: var(--flag-red); top: -120px; left: -160px; transform: rotate(-18deg); }
.hero__flag--blue { width: 420px; height: 220px; background: var(--flag-blue); top: -80px; right: -140px; transform: rotate(22deg); opacity: .22; }
.hero__flag--violet { width: 700px; height: 500px; background: var(--violet-300); bottom: -260px; right: -200px; opacity: .25; }

.hero__grid {
  flex: 1; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(24px, 5vw, 70px);
  position: relative; z-index: 1;
}
.hero__title { font-size: var(--fs-hero); margin: 18px 0 14px; }
.hero__title .line { display: block; overflow: hidden; margin-top: -.1em; }
.hero__title .line > span { display: inline-block; padding-top: .18em; transform: translateY(115%); animation: rise 1.1s var(--ease) forwards, sheen 9s ease-in-out infinite; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s, 0s; }
.hero__title .line:nth-child(3) > span { animation-delay: .24s, 0s; }
@keyframes rise { to { transform: none; } }

.hero__tag { font-size: clamp(1.1rem, .9rem + 1vw, 1.7rem); margin: 6px 0 26px; opacity: 0; animation: fadeUp .9s .5s var(--ease) forwards; }
.hero__copy { opacity: 0; animation: fadeUp .9s .7s var(--ease) forwards; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; opacity: 0; animation: fadeUp .9s .85s var(--ease) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero__visual { position: relative; justify-self: center; width: min(100%, 420px); opacity: 0; animation: fadeUp 1.1s .3s var(--ease) forwards; isolation: isolate; }
.arch {
  position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  overflow: hidden; background: var(--grad-violet-soft); box-shadow: var(--shadow);
}
.arch-outline { position: absolute; inset: -16px -16px auto auto; width: 100%; aspect-ratio: 4/5; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); border: 2px solid var(--gold); z-index: -1; }
.arch--count { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 34px 30px; color: #fff; }
.arch__star { width: 46px; height: 46px; color: var(--gold); margin-bottom: 8px; flex: none; }
.arch__kicker { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.arch__num { font-size: clamp(5.6rem, 4rem + 6vw, 8.4rem); margin: 6px 0 6px; color: #fff; }
.arch__label { margin: 0 0 16px; font-weight: 600; line-height: 1.35; max-width: 24ch; }
.arch__next { margin: 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.28); font-size: .86rem; line-height: 1.35; color: rgba(255,255,255,.85); }
.arch__next strong { color: var(--gold); }

.badge-star {
  position: absolute; left: -22px; bottom: -24px; z-index: 2;
  display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px;
  background: #fff; border-radius: 999px; box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.badge-star__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--violet-700); display: grid; place-items: center; flex: none; }
.badge-star__icon svg { width: 24px; height: 24px; color: var(--gold); }
.badge-star strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; line-height: 1.1; color: var(--violet-700); }
.badge-star small { display: block; font-size: .74rem; font-weight: 600; line-height: 1.2; color: var(--ink-2); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.marquee { position: relative; z-index: 1; margin-top: clamp(40px, 6vw, 70px); margin-bottom: 14px; background: var(--violet-800); color: #fff; overflow: hidden; padding: 16px 0; transform: rotate(-1deg); margin-inline: -20px; }
.marquee__track { display: flex; width: max-content; gap: 40px; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem); text-transform: uppercase; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 40px; white-space: nowrap; }
.marquee svg { width: 22px; height: 22px; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Números ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity 1s var(--ease);
}
.stat:hover { box-shadow: var(--shadow); }
.stat__num { font-size: clamp(3.2rem, 2.4rem + 3vw, 5rem); margin: 0 0 12px; color: var(--violet-700); font-variant-numeric: tabular-nums; }
.stat h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.stat p:last-child { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- Momento ---------- */
.chart-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.chart { position: relative; margin: 0; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-lg); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); min-width: 0; }
.chart__title { font-weight: 700; line-height: 1.35; margin-bottom: 12px; }
.chart__legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0 0 8px; font-size: .84rem; color: rgba(255,255,255,.8); }
.chart__legend li { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 18px; height: 0; border-top: 3px solid; border-radius: 2px; }
.swatch--pld { border-color: var(--gold); }
.swatch--prm { border-color: #fff; }
.swatch--fp { border-color: #b9a3cc; border-top-style: dashed; }
.chart__plot { width: 100%; height: clamp(320px, 42vw, 430px); }
.chart__plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart__plot text { font-family: var(--font-body); }
.chart__tip {
  position: absolute; z-index: 3; pointer-events: none; padding: 8px 12px; border-radius: 10px;
  background: #fff; color: var(--ink); font-size: .84rem; line-height: 1.3; box-shadow: var(--shadow); white-space: nowrap;
  transform: translate(-50%, calc(-100% - 12px));
}
.chart__tip strong { display: block; }
.chart__table { margin-top: 10px; font-size: .88rem; }
.chart__table summary { cursor: pointer; font-weight: 700; color: var(--gold); min-height: 44px; display: flex; align-items: center; }
.chart__table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.chart__table th, .chart__table td { padding: 8px 6px; text-align: right; border-bottom: 1px solid rgba(255,255,255,.14); font-weight: 500; }
.chart__table th:first-child { text-align: left; }
.chart__table thead th { font-size: .76rem; color: rgba(255,255,255,.7); }
.chart__note { margin: 12px 0 0; font-size: .82rem; line-height: 1.5; color: rgba(255,255,255,.65); }

.gaps { display: grid; gap: 28px; }
.gap { padding-left: 22px; border-left: 2px solid var(--gold); }
.gap__num { font-size: clamp(3rem, 2.4rem + 2.4vw, 4.4rem); margin: 0 0 8px; color: #fff; }
.gap p:last-child { margin: 0; color: rgba(255,255,255,.8); }

/* ---------- Niveles ---------- */
.levels__hint { font-weight: 700; color: var(--violet-700); margin-bottom: 18px; }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.level {
  display: flex; flex-direction: column; padding: 24px 26px; text-decoration: none; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); position: relative;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s, opacity 1s var(--ease);
}
.level:hover { box-shadow: var(--shadow); border-color: var(--violet-400); transform: translateY(-4px); }
.level__when { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--violet-600); }
.level__num { font-size: clamp(3rem, 2.4rem + 2.2vw, 4.4rem); margin: 8px 0 8px; color: var(--violet-700); }
.level strong { font-size: 1.05rem; font-weight: 800; line-height: 1.25; margin-bottom: 4px; }
.level small { font-size: .9rem; line-height: 1.45; color: var(--ink-2); }

.quota { display: flex; gap: 18px; align-items: flex-start; margin-top: 28px; padding: clamp(20px, 3vw, 30px); border-radius: var(--radius-lg); background: var(--gold-100); }
.quota svg { width: 30px; height: 30px; color: var(--gold-600); flex: none; margin-top: 2px; }
.quota p { margin: 0; color: var(--ink); max-width: 90ch; }
.quota--legal { background: var(--violet-50); }
.quota--legal svg { color: var(--violet-700); }

/* ---------- Estructura ---------- */
.estructura { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.map { margin-top: 18px; }
.map svg { display: block; width: 100%; height: auto; overflow: visible; }
.map path {
  fill: var(--violet-600); stroke: var(--violet-950); stroke-width: 1; cursor: pointer; vector-effect: non-scaling-stroke;
  transition: fill .25s;
}
.map path:hover, .map path:focus-visible { fill: var(--violet-300); outline: none; }
.map path.is-selected { fill: var(--gold); }
.map__status { margin: 12px 0; font-weight: 700; min-height: 1.6em; color: #fff; }

.pillars__title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.9rem; margin-bottom: 18px; }
.pillar { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.18); }
.pillar h4 { font-size: 1.1rem; font-weight: 800; color: var(--gold); margin-bottom: 8px; }
.pillar p { margin: 0; color: rgba(255,255,255,.82); }
.quote { margin: 18px 0 0; padding: 26px 28px; border-radius: var(--radius-lg); background: var(--grad-violet-soft); }
.quote p { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); line-height: 1.25; margin-bottom: 12px; }
.quote cite { font-style: normal; font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.85); }

/* ---------- Calendario ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tl { padding: 24px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.tl__date { display: block; font-size: clamp(1.7rem, 1.4rem + 1vw, 2.3rem); color: var(--violet-700); margin-bottom: 12px; }
.tl h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; line-height: 1.25; }
.tl p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.tl--now { background: var(--violet-700); border-color: transparent; color: #fff; }
.tl--now .tl__date { color: var(--gold); }
.tl--now p { color: rgba(255,255,255,.85); }

/* ---------- Preguntas ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 70px); align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  min-height: 60px; padding: 14px 0; font-weight: 700; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.6rem; color: var(--violet-600); flex: none; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 8px; max-width: 62ch; }

/* ---------- Registro ---------- */
.registro { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.registro > .form { grid-column: 2; }
.registro__intro { grid-row: 1 / span 2; }
.promise { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; font-weight: 600; }
.promise li { display: flex; align-items: center; gap: 12px; }
.promise svg { width: 20px; height: 20px; color: var(--gold); flex: none; }

.form { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); min-width: 0; }
.steps__bar { display: block; height: 6px; border-radius: 6px; background: var(--violet-100); overflow: hidden; }
.steps__bar i { display: block; height: 100%; width: 25%; border-radius: 6px; background: var(--gold); transition: width .5s var(--ease); }
.steps__label { margin: 10px 0 14px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--violet-600); }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step legend { padding: 0; margin-bottom: 18px; font-family: var(--font-display); font-size: clamp(1.9rem, 1.6rem + 1vw, 2.5rem); text-transform: uppercase; line-height: 1; color: var(--violet-800); }
.field { display: grid; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field label, .field__label { font-size: .86rem; font-weight: 700; color: var(--ink-2); }
.field small { font-weight: 500; }
.field em, .consent em { font-style: normal; color: var(--violet-600); }
.field input, .field textarea, .field select {
  width: 100%; min-width: 0; font: inherit; color: var(--ink); min-height: 50px; padding: 12px 16px; border-radius: 12px;
  border: 1.5px solid rgba(42, 5, 69, .24); background: var(--paper); transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--violet-400); box-shadow: 0 0 0 4px rgba(181,29,226,.14); }
.field textarea { min-height: 130px; resize: vertical; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--violet-700); border-width: 2px; }
.field__error { font-size: .82rem; font-weight: 700; color: var(--violet-700); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; min-height: 0; }
.chip span {
  display: flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink);
  border: 1.5px solid rgba(42, 5, 69, .24); background: var(--paper); transition: background .2s, color .2s, border-color .2s;
}
.chip:hover span { border-color: var(--violet-400); }
.chip input:checked + span { background: var(--violet-700); border-color: var(--violet-700); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.review { margin-bottom: 16px; padding: 16px 18px; border-radius: 14px; background: var(--violet-50); font-size: .9rem; line-height: 1.5; }
.review strong { display: block; margin-bottom: 4px; color: var(--violet-800); }
.review p { margin: 0; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; line-height: 1.5; color: var(--ink-2); cursor: pointer; padding: 4px 0; }
.consent input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--violet-700); }
.consent.has-error span { color: var(--violet-700); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 12px 0 0; font-size: .9rem; font-weight: 600; color: var(--violet-700); }
.form__status:empty { display: none; }
.form__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.form__nav #prevBtn { margin-right: auto; }
.form--done { text-align: center; padding-block: clamp(40px, 6vw, 70px); outline: none; }
.form--done h3 { font-size: clamp(2.2rem, 1.8rem + 2vw, 3.4rem); color: var(--violet-800); margin-bottom: 14px; }
.form--done p { max-width: 46ch; margin-inline: auto; color: var(--ink-2); }
.form__star { width: 64px; height: 64px; color: var(--gold); margin-bottom: 14px; }

/* ---------- Pie ---------- */

.footer { background: var(--violet-950); color: rgba(255,255,255,.7); padding: 60px 0 30px; }
.footer__top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand__name { color: #fff; }
.footer .brand__role { color: rgba(255,255,255,.6); }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer nav a { text-decoration: none; font-weight: 600; font-size: .9rem; padding: 10px 0; }
.footer nav a:hover { color: var(--gold); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-size: .82rem; }

/* ---------- Animación al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.is-visible.level:hover, .js .reveal.is-visible.stat:hover { transform: translateY(-4px); transition-delay: 0s; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px var(--gutter) 22px; background: var(--paper); box-shadow: 0 24px 40px -24px rgba(42,5,69,.4);
    transform: translateY(-130%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s; z-index: -1;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { padding: 14px 16px; font-size: 1.05rem; border-radius: 14px; }
  .nav .nav__cta { margin: 10px 0 0; justify-content: center; }
  .burger { display: grid; }
  .header.is-open { background: var(--paper); }
  .chart-grid, .estructura, .faq-wrap, .registro { grid-template-columns: 1fr; }
  .registro > .form { grid-column: 1; }
  .registro__intro { grid-row: auto; }
  .gaps { grid-template-columns: repeat(3, 1fr); }
  .levels, .stats, .timeline { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero { min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { width: min(calc(100% - 28px), 380px); margin-top: 30px; }
    .gaps { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .levels, .stats, .timeline, .form__row { grid-template-columns: 1fr; }
  .brand__role { font-size: .54rem; letter-spacing: .06em; }
  .hero__actions .btn { width: 100%; }
  .badge-star { left: -8px; }
  .arch--count { padding-inline: 26px; }
  .form__nav .btn { flex: 1 1 auto; }
  .quota { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
}
