/* VisitaPass · manuales públicos. Mismos tokens que el landing (index.html). */
@font-face {
  font-family: "Space Grotesk"; src: url("/fonts/space-grotesk.ttf") format("truetype");
  font-weight: 300 700; font-display: swap;
}
:root {
  --ground: #F4F5FB; --surface: #FFFFFF; --surface-2: #ECEEF8;
  --ink: #11162A; --muted: #575D7E; --subtle: #8A8FAE; --line: #E2E5F1;
  --brand: #2B348C; --brand-2: #5560F0; --accent: #12A46F; --wa: #1FA855;
  --ok: #12804F; --bad: #C0392B; --warn: #A86A00;
  --night: #0B0E22; --night-2: #141A3C;
  --shadow: 0 1px 2px rgba(17,22,42,.05), 0 18px 44px -24px rgba(17,22,42,.38);
  --display: "Space Grotesk", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #090B19; --surface: #11152B; --surface-2: #181D3A;
    --ink: #EEF0FA; --muted: #A5ABD0; --subtle: #7A80A8; --line: #252B4D;
    --brand: #9AA3FF; --brand-2: #8C93FF; --accent: #3DD69C; --wa: #25C266;
    --ok: #3DD69C; --bad: #FF7A6E; --warn: #F2B544;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 22px 50px -26px rgba(0,0,0,.8);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; }
body {
  background: var(--ground); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.wrap.ancho { max-width: 1120px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); letter-spacing: -0.02em; }
p { margin: 0; }

/* Barra superior (la del landing) */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11,14,34,.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; }
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 18px; }
.logo .mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(140deg, #6B74FF, #2B348C); box-shadow: 0 6px 18px -6px rgba(107,116,255,.8); }
.logo .mark svg { width: 17px; height: 17px; }
.logo small { font-family: system-ui, sans-serif; font-weight: 500; font-size: 14px; color: #9AA3FF; letter-spacing: 0; }
.nav-links { display: flex; gap: 20px; margin-left: auto; font-size: 14.5px; }
.nav-links a { text-decoration: none; color: rgba(255,255,255,.76); }
.nav-links a:hover, .nav-links a[aria-current] { color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border-radius: 13px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 14px 30px -14px rgba(31,168,85,.8); }
.btn-light { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.nav .btn { padding: 8px 14px; font-size: 13.5px; border-radius: 10px; white-space: nowrap; }

/* Encabezado oscuro, como el hero del landing */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 520px at 85% 0%, rgba(85,96,240,.42), transparent 62%), radial-gradient(700px 420px at 0% 100%, rgba(18,164,111,.18), transparent 60%), linear-gradient(180deg, var(--night) 0%, #10153A 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .07; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: radial-gradient(circle at 75% 20%, #000, transparent 70%); mask-image: radial-gradient(circle at 75% 20%, #000, transparent 70%); }
.hero .wrap { position: relative; padding-top: 40px; padding-bottom: 44px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9AA3FF; }
.hero h1 { margin-top: 10px; font-size: clamp(32px, 6vw, 52px); font-weight: 700; line-height: 1.05; }
.hero .lede { margin-top: 14px; font-size: clamp(16px, 2.1vw, 18.5px); color: rgba(255,255,255,.8); max-width: 56ch; }
.hero .acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.roles { display: flex; gap: 8px; overflow-x: auto; margin-top: 26px; padding-bottom: 2px; scrollbar-width: none; }
.roles::-webkit-scrollbar { display: none; }
.roles a { white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 8px 16px; border-radius: 999px; color: rgba(255,255,255,.82); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.roles a[aria-current] { background: #fff; color: #11162A; border-color: #fff; }

/* Índice de pasos: se queda bajo la barra */
.indice { position: sticky; top: 60px; z-index: 40; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.indice .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.indice .wrap::-webkit-scrollbar { display: none; }
.indice a { white-space: nowrap; text-decoration: none; font-size: 14px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.indice a b { color: var(--brand-2); margin-right: 4px; }
.indice a:hover { border-color: var(--brand-2); }

/* Tarjetas de paso */
main.pasos-web { padding-top: 28px; padding-bottom: 40px; display: grid; gap: 20px; }
.paso { scroll-margin-top: 124px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.paso > h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(21px, 3vw, 26px); line-height: 1.2; margin-bottom: 16px; }
.paso > h2 .n { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; color: #fff; background: linear-gradient(140deg, #6B74FF, #2B348C); box-shadow: 0 8px 20px -10px rgba(85,96,240,.9); }

/* Contenido de cada paso (clases que vienen de la fuente de los PDF) */
.cuerpo { font-size: 16.5px; }
.cuerpo p { margin: 0 0 12px; }
.cuerpo h3 { font-size: 18.5px; margin: 22px 0 10px; }
.cuerpo h4 { font-size: 16px; margin: 0 0 6px; }
.cuerpo ul, .cuerpo ol { margin: 0 0 12px; padding-left: 22px; }
.cuerpo li { margin-bottom: 7px; }
.cuerpo li::marker { color: var(--brand-2); font-weight: 700; }
.cuerpo b, .cuerpo strong { font-weight: 650; }
.cuerpo .nota { color: var(--muted); font-size: 14.5px; }
.cuerpo .pasos { list-style: none; padding: 0; counter-reset: p; }
.cuerpo .pasos > li { counter-increment: p; position: relative; padding-left: 40px; margin-bottom: 12px; }
.cuerpo .pasos > li::before { content: counter(p); position: absolute; left: 0; top: 1px; width: 27px; height: 27px; border-radius: 9px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 14px; color: #fff; background: var(--brand); }
@media (prefers-color-scheme: dark) { .cuerpo .pasos > li::before { color: #0B0E22; } }

.cuerpo .caja { border: 1px solid var(--line); background: var(--surface-2); border-radius: 16px; padding: 15px 18px; margin: 16px 0; }
.cuerpo .caja > :last-child { margin-bottom: 0; }
.cuerpo .caja.ok { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.cuerpo .caja.aviso { background: color-mix(in srgb, var(--warn) 11%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 38%, var(--line)); }
.cuerpo .caja.mal { background: color-mix(in srgb, var(--bad) 9%, var(--surface)); border-color: color-mix(in srgb, var(--bad) 32%, var(--line)); }
.cuerpo .dos { display: grid; gap: 12px; }
@media (min-width: 640px) { .cuerpo .dos { grid-template-columns: 1fr 1fr; } }
.cuerpo .dos .caja { margin: 0; }

/* «iPhone / Android» */
.cuerpo .plat { position: relative; border-radius: 16px; padding: 14px 18px 14px 20px; margin: 16px 0; background: color-mix(in srgb, var(--brand-2) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand-2) 28%, var(--line)); }
.cuerpo .plat::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand-2); }
.cuerpo .plat p { margin: 0 0 6px; font-size: 15.5px; }
.cuerpo .plat p:last-child { margin: 0; }
.cuerpo .plat b.so { color: var(--brand-2); }

/* Los 4 pasos del inicio */
.cuerpo .flujo { display: grid; gap: 10px; margin: 6px 0 16px; counter-reset: f; }
@media (min-width: 680px) { .cuerpo .flujo { grid-template-columns: repeat(4, 1fr); } }
.cuerpo .flujo .f { display: none; }
.cuerpo .flujo .n { border: 1px solid var(--line); border-top: 3px solid var(--brand-2); background: var(--surface-2); border-radius: 14px; padding: 12px 14px; font-size: 14.5px; color: var(--muted); }
.cuerpo .flujo .n > b:first-child { display: block; color: var(--ink); font-family: var(--display); font-size: 15.5px; margin-bottom: 2px; }

/* Capturas */
.cuerpo .galeria { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; margin: 18px 0; }
.cuerpo .galeria > div[style] { min-width: 0 !important; flex: 1 1 280px !important; }
.cuerpo .fig { margin: 0 auto; }
.cuerpo .fig .pie { font-size: 13.5px; color: var(--subtle); text-align: center; margin-top: 8px; max-width: 230px; margin-left: auto; margin-right: auto; }
.cuerpo .cap-app { width: 230px; border-radius: 26px; border: 6px solid #1A1E33; box-shadow: 0 24px 50px -26px rgba(11,14,34,.7); background: #0B0D1A; }
.cuerpo .cap-app.chica { width: 180px; border-radius: 22px; border-width: 5px; }

/* Tablas */
.cuerpo table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 16px 0; font-size: 15px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: block; overflow-x: auto; }
.cuerpo th { background: var(--surface-2); color: var(--ink); text-align: left; font-weight: 700; padding: 10px 12px; font-size: 14px; }
.cuerpo th[style] { width: auto !important; }
.cuerpo td { border-top: 1px solid var(--line); padding: 10px 12px; vertical-align: top; }

/* Etiquetas */
.cuerpo .badge, .cuerpo .etq { display: inline-block; border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.cuerpo .badge.act, .cuerpo .etq.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.cuerpo .badge.exp { background: color-mix(in srgb, var(--muted) 16%, transparent); color: var(--muted); }
.cuerpo .badge.can, .cuerpo .etq.mal { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }
.cuerpo .etq.med { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.cuerpo .etq.info { background: color-mix(in srgb, var(--brand-2) 16%, transparent); color: var(--brand-2); }

/* Preguntas frecuentes */
.cuerpo .faq { margin: 0; }
.cuerpo .faq dt { font-family: var(--display); font-weight: 700; font-size: 16.5px; margin-top: 16px; }
.cuerpo .faq dd { margin: 4px 0 0; color: var(--muted); }

/* Portada de manuales */
.tarjetas { display: grid; gap: 18px; padding-top: 34px; padding-bottom: 20px; }
@media (min-width: 820px) { .tarjetas { grid-template-columns: repeat(3, 1fr); } }
.tarjeta { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); text-decoration: none; transition: transform .15s, border-color .15s; }
.tarjeta:hover { transform: translateY(-3px); border-color: var(--brand-2); }
.tarjeta .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand-2) 14%, transparent); color: var(--brand-2); margin-bottom: 16px; }
.tarjeta .ico svg { width: 23px; height: 23px; }
.tarjeta h2 { font-size: 22px; }
.tarjeta p { margin-top: 8px; color: var(--muted); font-size: 15.5px; flex: 1; }
.tarjeta .ir { margin-top: 18px; font-weight: 700; color: var(--brand-2); }

/* Cierre y pie */
.cierre { margin: 10px 0 40px; border-radius: 24px; padding: 28px; color: #fff; background: radial-gradient(600px 300px at 90% 0%, rgba(85,96,240,.45), transparent 60%), var(--night); }
.cierre h2 { font-size: 24px; }
.cierre p { margin-top: 8px; color: rgba(255,255,255,.75); }
.cierre .acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cierre a.correo { color: #fff; font-weight: 600; }
.demo { color: var(--subtle); font-size: 13px; text-align: center; margin-bottom: 30px; }
footer { padding: 26px 0 80px; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25C266; color: #fff; box-shadow: 0 16px 34px -10px rgba(0,0,0,.5); }
.wa-float svg { width: 28px; height: 28px; }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .paso { padding: 20px 18px; border-radius: 20px; }
  .hero .wrap { padding-top: 30px; padding-bottom: 34px; }
}
@media print {
  .nav, .indice, .wa-float, .cierre, .hero .acciones { display: none !important; }
  .paso { box-shadow: none; break-inside: avoid-page; }
}
