:root {
  --bg: #f4f3ee;
  --navy: #101f2c;
  --gold: #FFCC01;
  --gold-2: #E0B200;
  --gold-dark: #7A5C00;
  --gold-soft: #FFF6CC;
  --ink: #182632;
  --muted: #657079;
  --line: #dedfd9;
  --card: #f9f9f5;
  --bad: #9b2c2c;
  --ok: #2e6b3a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 'Segoe UI', Arial, sans-serif; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.wrap { width: min(1200px, calc(100% - 64px)); margin: auto; }
.skip { position: fixed; top: -100px; background: white; padding: 12px; z-index: 100; }
.skip:focus { top: 0; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 5px; }

/* Cinta y navegación */
.cinta { background: #0b161f; color: #b9c3c9; font-size: 10px; letter-spacing: .13em; padding: 9px 0; }
.cinta .wrap { display: flex; justify-content: space-between; gap: 16px; }
.nav { position: sticky; top: 0; z-index: 20; background: #f4f3eef5; border-bottom: 1px solid var(--line); backdrop-filter: blur(15px); }
.nav .wrap { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img { width: 47px; height: 55px; object-fit: contain; }
.brand b { display: block; font-size: 12px; letter-spacing: .06em; }
.brand small { display: block; font-size: 9px; letter-spacing: .16em; color: var(--muted); }
.links { display: flex; align-items: center; gap: 25px; }
.links > a { font-size: 12px; font-weight: 600; text-decoration: none; }
.links a[aria-current] { color: var(--gold-dark); }
.burger { display: none; }

/* Botones y enlaces */
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 30px; background: var(--gold); color: #14212a !important; text-decoration: none; padding: 14px 21px; font-size: 13px; font-weight: 700; border: 1px solid var(--gold); border-radius: 3px; cursor: pointer; transition: background .2s; }
.btn:hover { background: #FFD633; border-color: #FFD633; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.sec { background: transparent; border-color: #c9ccc4; }
.btn.sec:hover { background: #ebeae3; }
.text-link { font-size: 13px; font-weight: 650; text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 5px; }
.text-link:hover { color: var(--gold-dark); }

/* Portada */
.hero { background: var(--navy); color: #fff; padding: 76px 0 65px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: center; }
.eyebrow { display: block; font-size: 10px; font-weight: 700; letter-spacing: .18em; color: var(--gold-dark); margin-bottom: 20px; }
.hero .eyebrow, .page-head .eyebrow { color: var(--gold); }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { font-size: clamp(42px, 5.4vw, 74px); line-height: 1.08; letter-spacing: -.055em; font-weight: 650; margin-bottom: 25px; }
h1 em { font-family: Georgia, serif; font-weight: 400; color: var(--gold); }
h2 { font-size: clamp(29px, 3.3vw, 43px); line-height: 1.2; letter-spacing: -.035em; font-weight: 600; margin-bottom: 23px; }
h3 { font-size: 23px; line-height: 1.3; }
h4 { font-size: 17px; line-height: 1.35; margin-bottom: 10px; }
.hero p, .page-head p { max-width: 510px; color: #bcc6cc; font-size: 17px; }
.acc { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 32px; }
.hero-note { font-size: 10px; letter-spacing: .06em; margin-top: 44px; color: #9aaab5; }
.dot { display: inline-block; background: #a5b58f; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; }
.insignia { position: relative; display: flex; align-items: center; flex-direction: column; justify-content: center; min-height: 385px; }
.insignia img { width: 210px; height: 250px; object-fit: contain; z-index: 1; filter: drop-shadow(0 22px 22px #0007); }
.insignia > span { color: var(--gold); font-size: 12px; letter-spacing: .23em; margin-top: 20px; }
.insignia small { color: #788c9b; font-size: 9px; letter-spacing: .17em; margin-top: 8px; }
.orbit { position: absolute; width: 370px; height: 370px; border: 1px solid rgba(255, 204, 1, .18); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255, 204, 1, .035), 0 0 0 70px rgba(255, 204, 1, .02); }
.principles { background: #e9e8e0; border-bottom: 1px solid #dcddd6; }
.principles .wrap { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; }
.principles span { font-size: 11px; color: var(--gold-dark); }
.principles b { color: #26343d; font-size: 12px; margin-left: 16px; }

/* Secciones */
section { padding: 82px 0; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.lead { font-size: 20px; line-height: 1.6; color: #273943; }
p { color: var(--muted); }
.alt { background: #eaece7; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; padding: 30px; background: var(--card); border: 1px solid #d7dcd5; border-radius: 4px; text-decoration: none; }
a.card:hover { border-color: var(--gold); }
.tag { display: block; font-size: 9px; letter-spacing: .14em; color: var(--gold-dark); font-weight: 700; margin-bottom: 30px; }
.unit { min-height: 250px; }
.unit h2 { font-size: 27px; }
.unit p { font-size: 14px; }
.arrow { display: block; text-align: right; font-size: 23px; color: var(--gold-2); }
.norma { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 650; letter-spacing: .04em; text-decoration: none; color: var(--gold-dark); border-bottom: 2px solid var(--gold); padding-bottom: 3px; }
.norma:hover { color: var(--ink); }
.unit:target { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 204, 1, .4); }
.journey { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 25px 55px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.steps li:before { content: '0' counter(step); position: absolute; left: 0; top: 0; color: var(--gold-dark); font-size: 13px; }
.steps b { font-size: 18px; }
.steps p { font-size: 14px; margin: 8px 0 0; }
.horizontal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.library { background: var(--navy); color: white; }
.library p { color: #bec8cb; max-width: 600px; }
.library .eyebrow { color: var(--gold); }
.page-head { padding: 68px 0; background: var(--navy); color: white; }
.page-head h1 { font-size: clamp(40px, 5vw, 64px); }
.apply .tag { margin-bottom: 18px; }
.apply h2 { font-size: 30px; }
.help { font-size: 12px; margin: 20px 0 0; }
.faq { max-width: 900px; }
.faq details { padding: 22px 0; border-bottom: 1px solid var(--line); }
summary { font-size: 18px; font-weight: 600; cursor: pointer; }
.faq details p { margin: 16px 0; }

/* Guía: tablas, avisos y listas */
.tscroll { overflow: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; background: #fafaf7; }
td, th { padding: 14px 16px; border: 1px solid var(--line); text-align: left; }
th { background: var(--navy); color: white; }
td.c, th.c { text-align: center; }
td p { margin: 0; }
.pill { display: inline-block; font-size: 11px; color: var(--gold); border: 1px solid rgba(255, 204, 1, .4); padding: 5px 11px; margin-bottom: 18px; }
.sub { max-width: 780px; }
.tit { margin-bottom: 16px; }
.nota { background: var(--card); border: 1px solid #d7dcd5; border-left: 4px solid var(--gold); border-radius: 3px; padding: 14px 18px; color: var(--muted); font-size: 14px; margin: 20px 0 0; }
.nota b { color: var(--ink); }
.aviso { background: var(--navy); color: #fff; border-left: 4px solid var(--gold); border-radius: 3px; padding: 18px 22px; margin: 22px 0; font-size: 15px; font-weight: 600; }
.lista { margin: 0; padding: 0; list-style: none; }
.lista li { position: relative; padding: 6px 0 6px 24px; font-size: 14px; color: #33434f; }
.lista li::before { content: ''; position: absolute; left: 3px; top: 15px; width: 8px; height: 8px; background: var(--gold); border-radius: 2px; }
.lista.no li::before { background: var(--bad); }

/* Biblioteca normativa: cada PDF aparece una sola vez en toda la web */
.doc { display: flex; flex-direction: column; scroll-margin-top: 110px; }
.doc p { font-size: 14px; flex: 1; }
.doc .tag { margin-bottom: 18px; }
.doc-pie { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.doc-meta { font-size: 11px; color: var(--muted); letter-spacing: .03em; }
.doc:target { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 204, 1, .5); }

/* Formulario de ingreso */
.form-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: start; }
.formulario { max-width: 780px; margin: 0 auto; }
.progreso { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; font-size: 12px; color: var(--muted); }
.barra { flex: 1; height: 6px; background: #dcdcd4; border-radius: 3px; overflow: hidden; }
.barra div { height: 100%; width: 20%; background: var(--gold); transition: width .25s; }
.paso { background: var(--card); border: 1px solid #d7dcd5; border-radius: 4px; }
.paso[hidden] { display: none; }
.paso-cab { padding: 24px 28px; border-bottom: 1px solid var(--line); border-left: 4px solid var(--gold); }
.paso-cab span { font-size: 10px; letter-spacing: .16em; font-weight: 700; color: var(--gold-dark); }
.paso-cab h2 { font-size: 26px; margin: 6px 0 4px; }
.paso-cab p { margin: 0; font-size: 14px; }
.q { padding: 20px 28px; border-bottom: 1px solid var(--line); }
.q > .t { display: block; font-weight: 650; font-size: 15px; margin-bottom: 8px; color: var(--ink); }
.paso-cab h2:focus { outline: none; }
.q .t i { color: var(--bad); font-style: normal; margin-left: 3px; }
.ayuda { font-size: 13px; color: var(--muted); margin: -2px 0 10px; }
.formulario input[type=text], .formulario input[type=number], .formulario textarea {
  width: 100%; padding: 12px 14px; background: #fff; color: var(--ink); border: 1px solid #c9cdc5; border-radius: 3px;
}
.formulario textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.formulario textarea.alta { min-height: 160px; }
.formulario input:focus, .formulario textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.contador { display: block; text-align: right; font-size: 11px; color: #8a9097; margin-top: 4px; }
.ops { display: grid; gap: 8px; }
.ops.fila { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.ops label { display: flex; align-items: center; gap: 10px; padding: 10px 13px; background: #fff; border: 1px solid #d3d6cf; border-radius: 3px; cursor: pointer; font-size: 14px; }
.ops label:hover { border-color: var(--gold); }
.ops label:has(input:checked) { border-color: var(--gold-2); background: var(--gold-soft); }
.ops input { accent-color: var(--navy); width: 17px; height: 17px; flex: 0 0 auto; margin: 0; }
.q.invalida input[type=text], .q.invalida input[type=number], .q.invalida textarea, .q.invalida .ops label { border-color: #c98c87; }
.err { color: var(--bad); font-size: 13px; margin: 8px 0 0; font-weight: 600; }
.err:empty { display: none; }
.navf { display: flex; align-items: center; gap: 10px; padding: 20px 28px; flex-wrap: wrap; }
.navf .estado-envio { margin-left: auto; font-size: 13px; color: var(--muted); }
.estado-envio.mal { color: var(--bad); font-weight: 600; }
.aviso-form { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13px; background: var(--gold-soft); border: 1px solid #F0DC8A; border-radius: 3px; padding: 10px 14px; margin-bottom: 18px; color: #5A4600; }
.aviso-form button { background: none; border: 0; padding: 0; color: #5A4600; text-decoration: underline; cursor: pointer; font-size: 13px; }
.aviso-form.mal { background: #f6e3e1; border-color: #e0b7b2; color: #7a2522; }
.trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.requisitos h3 { font-size: 19px; margin-bottom: 14px; }
.gracias { max-width: 640px; text-align: center; }
section:has(> .gracias) { padding-top: 40px; }
.gracias img { width: 72px; margin-bottom: 12px; }
.gracias h1 { font-size: clamp(34px, 4vw, 50px); margin-bottom: 12px; }
.gracias > p { margin-bottom: 8px; }
.gracias .ref { display: inline-block; font: 700 20px/1 Consolas, monospace; letter-spacing: .18em; background: #fff; border: 2px dashed var(--gold-2); padding: 10px 16px; margin: 2px 0 18px; color: var(--ink); }
.gracias .nota { text-align: left; }
.discord-paso { background: var(--navy); color: #fff; border-left: 4px solid var(--gold); border-radius: 3px; padding: 28px 26px; margin: 0 0 22px; }
.discord-paso .eyebrow { color: var(--gold); margin-bottom: 10px; }
.discord-paso h2 { font-size: 26px; margin-bottom: 10px; }
.discord-paso p { color: #bcc6cc; margin: 0 auto 20px; max-width: 520px; }
.discord-paso .cuenta-atras { font-size: 13px; margin: 16px auto 0; }
.cuenta-atras button { background: none; border: 0; padding: 0; color: var(--gold); text-decoration: underline; cursor: pointer; font-size: 13px; }

/* Pie */
footer { padding: 44px 0; background: #0b161f; color: #bdc6cb; }
footer .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
footer .brand small { color: #9faeb8; }
footer .wrap > div:nth-child(2) { display: flex; justify-content: flex-end; gap: 22px; align-items: center; }
footer a { font-size: 11px; text-decoration: none; }
footer a:hover { color: #fff; }
footer p { grid-column: 1 / -1; font-size: 10px; border-top: 1px solid #ffffff12; padding-top: 20px; margin: 0; }

@media (max-width: 960px) {
  .links { gap: 15px; }
  .brand b { font-size: 10px; }
  .links > a { font-size: 11px; }
  .intro-grid, .journey, .form-intro { gap: 40px; }
  .hero-grid { gap: 20px; }
  .insignia img { width: 170px; }
  .orbit { width: 280px; height: 280px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .cinta span { font-size: 8px; max-width: 245px; text-align: right; }
  .nav .wrap { min-height: 74px; }
  .burger { display: block; border: 1px solid #ccd0c9; background: transparent; padding: 6px 12px; border-radius: 3px; }
  .links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #f4f3ee; padding: 20px; flex-direction: column; align-items: stretch; border-bottom: 1px solid #ddd; }
  .links.open { display: flex; }
  .links > a { padding: 10px; font-size: 14px; }
  .hero { padding: 50px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .insignia { min-height: 280px; margin-top: 20px; }
  .insignia img { height: 185px; }
  .insignia > span { font-size: 10px; }
  .orbit { width: 260px; height: 260px; }
  .principles .wrap { flex-direction: column; gap: 10px; }
  .principles b { margin-left: 22px; }
  section { padding: 50px 0; }
  .intro-grid, .journey, .g3, .g2, .horizontal, .form-intro { grid-template-columns: 1fr; gap: 25px; }
  .section-head { align-items: start; flex-direction: column; margin-bottom: 25px; }
  .section-head h2 { margin-bottom: 0; }
  .page-head { padding: 50px 0; }
  .card { padding: 25px; }
  .unit { min-height: 200px; }
  .paso-cab, .q, .navf { padding-left: 18px; padding-right: 18px; }
  .navf .estado-envio { margin-left: 0; width: 100%; }
  footer .wrap { grid-template-columns: 1fr; }
  footer .wrap > div:nth-child(2) { justify-content: flex-start; flex-wrap: wrap; }
  footer p { grid-column: 1; }
  .hero .acc { gap: 20px; }
}

/* ---------- Animaciones ---------- */
@keyframes subir { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes latido { 0% { box-shadow: 0 0 0 0 rgba(165, 181, 143, .7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(165, 181, 143, 0); } }
@keyframes sirena-roja { 0%, 46% { opacity: .42; } 50%, 100% { opacity: .06; } }
@keyframes sirena-azul { 0%, 46% { opacity: .06; } 50%, 100% { opacity: .42; } }
@keyframes cinta { from { background-position: 0 0; } to { background-position: 28px 0; } }
@keyframes brillo { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(260%) skewX(-20deg); } }
@keyframes trazar { to { stroke-dashoffset: 0; } }

/* Barra de progreso de lectura */
.progreso-lectura { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--gold); transform-origin: left; transform: scaleX(0); z-index: 60; pointer-events: none; }

/* Navegación: sombra al bajar y subrayado animado */
.nav { transition: box-shadow .3s; }
.nav .wrap { transition: min-height .3s; }
.nav.con-sombra { box-shadow: 0 10px 28px rgba(16, 31, 44, .09); }
.nav.con-sombra .wrap { min-height: 74px; }
.links > a:not(.btn) { position: relative; }
.links > a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.links > a:not(.btn):hover::after, .links > a[aria-current]::after { transform: scaleX(1); }

/* Portada: entrada, escudo flotante, anillos y luces de sirena */
.hero { position: relative; }
.hero::before { content: ''; position: absolute; inset: -40%; background: radial-gradient(circle at 32% 40%, rgba(255, 204, 1, .07), transparent 38%), radial-gradient(circle at 70% 62%, rgba(47, 107, 255, .07), transparent 34%); animation: girar 70s linear infinite; pointer-events: none; }
.hero > .wrap { position: relative; z-index: 1; }
.hero .eyebrow, .hero h1, .hero p, .hero .acc, .hero-note { animation: subir .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero h1 { animation-delay: .12s; }
.hero p { animation-delay: .26s; }
.hero .acc { animation-delay: .4s; }
.hero-note { animation-delay: .55s; }
.insignia { animation: subir 1s .2s cubic-bezier(.2, .7, .2, 1) both; }
.insignia > img, .insignia > span, .insignia > small { position: relative; z-index: 1; }
.insignia > img { animation: flotar 6s ease-in-out infinite; }
.insignia::before, .insignia::after { content: ''; position: absolute; top: 24%; width: 180px; height: 180px; border-radius: 50%; filter: blur(46px); opacity: .14; pointer-events: none; }
.insignia::before { left: 14%; background: #E5303B; animation: sirena-roja 2.4s infinite; }
.insignia::after { right: 14%; background: #2F6BFF; animation: sirena-azul 2.4s infinite; }
.orbit::before { content: ''; position: absolute; inset: -18px; border-radius: 50%; border: 1px dashed rgba(255, 204, 1, .35); animation: girar 50s linear infinite; }
.orbit::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid transparent; border-top-color: rgba(255, 204, 1, .65); border-right-color: rgba(255, 204, 1, .15); animation: girar 7s linear infinite; }
.dot { animation: latido 2s infinite; }

/* Cinta policial en movimiento al pie de las cabeceras */
.hero::after, .page-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; background-color: var(--navy); background-image: linear-gradient(-45deg, var(--gold) 25%, transparent 25%, transparent 50%, var(--gold) 50%, var(--gold) 75%, transparent 75%, transparent); background-size: 28px 28px; animation: cinta 1.6s linear infinite; z-index: 2; }
.page-head { position: relative; overflow: hidden; }
.page-head::before, .library::before { content: ''; position: absolute; right: -40px; top: 50%; width: 300px; height: 360px; transform: translateY(-50%) rotate(-8deg); background: url(escudo.png) no-repeat center / contain; opacity: .07; pointer-events: none; }
.library { position: relative; overflow: hidden; }
.page-head .wrap, .library .wrap { position: relative; z-index: 1; }
.page-head .wrap > * { animation: subir .8s cubic-bezier(.2, .7, .2, 1) both; }
.page-head .wrap > :nth-child(2) { animation-delay: .1s; }
.page-head .wrap > :nth-child(3) { animation-delay: .22s; }
.page-head .wrap > :nth-child(4) { animation-delay: .34s; }

/* Aparición al bajar (la activa app.js solo fuera de la primera pantalla) */
html .revelar { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--retraso, 0ms); }
html .revelar.visible { opacity: 1; transform: none; }

/* Tarjetas y botones */
.card { transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s; }
a.card:hover, .unit:hover, .doc:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(16, 31, 44, .12); border-color: var(--gold); }
.unit::before, .doc::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.unit:hover::before, .doc:hover::before, .unit:target::before, .doc:target::before { transform: scaleX(1); }
.arrow { transition: transform .3s; }
a.card:hover .arrow { transform: translate(5px, -5px); }
.btn { position: relative; overflow: hidden; transition: background .2s, transform .2s, box-shadow .2s; }
.btn::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); transform: translateX(-120%) skewX(-20deg); pointer-events: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 204, 1, .35); }
.btn:hover::after { animation: brillo .75s ease; }
.btn span { display: inline-block; transition: transform .2s; }
.btn:hover span { transform: translate(3px, -3px); }
.btn:disabled, .btn.sec:hover { transform: none; box-shadow: none; }
.steps li:before { transition: color .3s; }
.steps li:hover:before { color: var(--gold-2); }
.faq summary { transition: color .2s; }
.faq summary:hover { color: var(--gold-dark); }

/* El Negociado en cifras */
.cifras { background: var(--navy); color: #fff; padding: 56px 0; }
.cifras .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cifra { border-left: 3px solid var(--gold); padding: 4px 0 4px 20px; }
.cifra strong { display: block; font-size: clamp(38px, 4.4vw, 56px); line-height: 1; letter-spacing: -.04em; color: var(--gold); font-variant-numeric: tabular-nums; }
.cifra span { display: block; margin-top: 10px; font-size: 13px; color: #bcc6cc; }
a.cifra { color: inherit; text-decoration: none; transition: border-color .25s, transform .25s; }
a.cifra:hover { border-left-color: #fff; transform: translateX(4px); }
a.cifra:hover span { color: #fff; }

/* Formulario: cada paso entra suavemente */
.paso:not([hidden]) { animation: subir .45s cubic-bezier(.2, .7, .2, 1) both; }

/* Confirmación: ✓ que se dibuja */
.check { width: 84px; height: 84px; margin-bottom: 14px; }
.check circle { fill: none; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 152; stroke-dashoffset: 152; animation: trazar .7s .1s ease forwards; }
.check path { fill: none; stroke: var(--navy); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: trazar .4s .7s ease forwards; }

@media (max-width: 760px) {
  .cifras .wrap { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
  .insignia::before, .insignia::after { width: 130px; height: 130px; }
  .page-head::before, .library::before { width: 200px; height: 240px; right: -70px; }
}

/* Si el sistema pide reducir el movimiento (en Windows, «Efectos de animación»
   desactivado), se quitan los movimientos continuos y los desplazamientos, pero
   se mantienen los fundidos, las luces, los contadores y los efectos al pasar el ratón. */
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .insignia > img, .orbit::before, .orbit::after, .hero::before, .hero::after, .page-head::after { animation: none; }
  .hero .eyebrow, .hero h1, .hero p, .hero .acc, .hero-note, .insignia, .page-head .wrap > *, .paso:not([hidden]) { animation-name: aparecer; }
  html .revelar { transform: none; }
  a.card:hover, .unit:hover, .doc:hover, .btn:hover, a.cifra:hover { transform: none; }
}
