/* Verificación pública. Sin JavaScript y sin estilos en línea: la política de contenido de
   estas páginas prohíbe ambos (script-src 'none', style-src 'self'). Las fuentes viajan en
   el repositorio, así que la web se lee igual que el certificado impreso. */

@font-face { font-family: 'Montserrat'; font-weight: 500; font-display: swap;
  src: url('/estatico/fuentes/Montserrat-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Montserrat'; font-weight: 600; font-display: swap;
  src: url('/estatico/fuentes/Montserrat-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Lato'; font-weight: 300; font-display: swap;
  src: url('/estatico/fuentes/Lato-Light.ttf') format('truetype'); }
@font-face { font-family: 'Lato'; font-weight: 400; font-display: swap;
  src: url('/estatico/fuentes/Lato-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Lato'; font-weight: 800; font-display: swap;
  src: url('/estatico/fuentes/Lato-Black.ttf') format('truetype'); }

:root {
  --navy: #232559;        /* títulos y texto fuerte */
  --oscuro: #141A28;      /* panel de validación del certificado */
  --azul: #5BB8E8;        /* acento de marca */
  --azul-hondo: #1d6fa5;  /* el acento sobre blanco, con contraste suficiente */
  --tinta: #1c2333;
  --suave: #5b6580;
  --borde: #dde3ee;
  --ok: #1B7A3A;
  --aviso: #A85E00;
  --mal: #B3261E;
  --titulo: 'Montserrat', 'Lato', system-ui, sans-serif;
  --texto: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--tinta); background: #fff; font: 400 17px/1.55 var(--texto); }
img { max-width: 100%; }
a { color: var(--azul-hondo); }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; border-radius: 4px; }

/* ── Bandas de resultado ───────────────────────────────────────────────── */
.banda { padding: 1.1rem 1rem; text-align: center; color: #fff; font-family: var(--titulo);
  font-weight: 600; font-size: 1.3rem; letter-spacing: .04em; }
.banda.vigente { background: var(--ok); }
.banda.vencido { background: var(--aviso); }
.banda.revocado { background: var(--mal); }
.banda.neutro { background: #4a5470; }

/* ── Encabezado de las páginas de resultado ────────────────────────────── */
.marca { display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: 1.25rem 1rem .25rem; }
.marca .palabra { font-family: var(--titulo); font-weight: 600; font-size: 1.6rem;
  letter-spacing: .12em; color: var(--navy); }
.marca .sub { color: var(--suave); font-size: .95rem; }

main { max-width: 38rem; margin: 0 auto; padding: .75rem 1rem 1.5rem; }
h1 { font-family: var(--titulo); font-weight: 600; color: var(--navy); font-size: 1.5rem;
  margin: .5rem 0 1rem; line-height: 1.25; }
h2 { font-family: var(--titulo); font-weight: 600; color: var(--navy); font-size: 1.05rem;
  letter-spacing: .01em; margin: 0 0 1rem; }
h3 { font-family: var(--titulo); font-weight: 600; font-size: 1rem; color: var(--navy);
  margin: 0 0 .2rem; text-wrap: balance; }

/* ── Resultado de un certificado ───────────────────────────────────────── */
.numero { text-align: center; margin: .25rem 0; color: var(--suave); }
.numero strong { color: var(--navy); font-size: 1.15em; }
.etiqueta-titular { text-align: center; margin: 1rem 0 0; font-size: .8rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--suave); }
h1.titular { text-align: center; font-family: var(--titulo); color: var(--azul-hondo);
  font-size: 1.6rem; line-height: 1.2; text-transform: uppercase; overflow-wrap: anywhere;
  margin: .25rem 0 1.25rem; }
dl { margin: 0; }
dt { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--suave);
  margin-top: .85rem; }
dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
dd.resaltado { color: var(--aviso); font-size: 1.1em; }
code { font-size: 1em; letter-spacing: .04em; }
.aviso { border-left: 5px solid var(--aviso); background: #fff6e6; padding: .75rem 1rem;
  margin: 0 0 1rem; border-radius: 4px; }
.grande { font-size: 1.15rem; text-align: center; }

/* ── Formulario de consulta de las páginas de resultado ────────────────── */
.consulta { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.25rem; }
.consulta label { font-weight: 800; font-size: .9rem; }
.consulta input { display: block; width: 100%; margin-top: .3rem; padding: .7rem; font: inherit;
  border: 1px solid #c9d0e0; border-radius: 8px; }
.consulta button { padding: .75rem; border: 0; border-radius: 8px; background: var(--navy);
  color: #fff; font: inherit; font-weight: 800; cursor: pointer; }

/* ── Portada ───────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--oscuro); color: #fff;
  padding: 2.25rem 1rem 2.5rem; text-align: center;
  background-image: radial-gradient(60% 70% at 50% 0%, #1e2942 0%, #141A28 70%); }
/* Dos órbitas, como el átomo del logo. Decorativas: no deben robar atención. */
.hero::before, .hero::after { content: ""; position: absolute; left: 50%; top: 50%;
  border: 1px solid var(--azul); border-radius: 50%; pointer-events: none; }
.hero::before { width: 780px; height: 300px; margin: -150px 0 0 -390px; opacity: .17;
  transform: rotate(26deg); }
.hero::after { width: 640px; height: 250px; margin: -125px 0 0 -320px; opacity: .11;
  transform: rotate(-30deg); }
.hero-dentro { position: relative; max-width: 34rem; margin: 0 auto; }
.hero-logo { width: 168px; }
.hero .palabra { display: block; font-family: var(--titulo); font-weight: 600; font-size: 2rem;
  letter-spacing: .18em; }
.hero-ante { margin: .85rem 0 0; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--azul); font-weight: 800; }
.hero h1 { font-family: var(--titulo); font-weight: 600; color: #fff; font-size: 1.5rem;
  line-height: 1.25; margin: .5rem 0 1.5rem; text-wrap: balance; }

.buscador { text-align: left; }
.buscador-etiqueta { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--azul); font-weight: 800; margin-bottom: .45rem; }
.buscador-fila { display: flex; align-items: stretch; gap: .5rem; background: #fff;
  border-radius: 12px; padding: .4rem .4rem .4rem .9rem; box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.buscador-prefijo { align-self: center; font-family: var(--titulo); font-weight: 600;
  color: var(--suave); font-size: 1.05rem; }
.buscador input { flex: 1; min-width: 0; border: 0; padding: .65rem .2rem; font: inherit;
  font-family: var(--titulo); font-weight: 600; font-size: 1.35rem; letter-spacing: .06em;
  color: var(--navy); background: transparent; }
.buscador input::placeholder { color: #b9c1d4; font-weight: 500; letter-spacing: .06em; }
.buscador input:focus { outline: none; }
.buscador-fila:focus-within { box-shadow: 0 0 0 3px var(--azul), 0 10px 30px rgba(0,0,0,.28); }
.buscador button { border: 0; border-radius: 9px; background: var(--azul); color: #0d1422;
  font-family: var(--titulo); font-weight: 600; font-size: 1rem; padding: 0 1.15rem;
  cursor: pointer; white-space: nowrap; }
.buscador button:hover { background: #7cc8ef; }
.pista { margin: .7rem 0 0; font-size: .88rem; color: #aab4cc; }

.portada main { max-width: 44rem; padding-top: 2rem; }
.pasos ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.pasos li { position: relative; border: 1px solid var(--borde); border-radius: 12px;
  padding: 1.1rem 1.1rem 1.1rem 3.9rem; background: #fff; }
.pasos svg { position: absolute; left: 1.1rem; top: 1.1rem; width: 30px; height: 30px;
  fill: none; stroke: var(--azul-hondo); stroke-width: 1.6; stroke-linecap: round;
  stroke-linejoin: round; }
.pasos p { margin: 0; color: var(--suave); font-size: .95rem; }

.estados { margin-top: 2.25rem; }
.estados dl { display: grid; gap: .55rem; }
.estado { display: grid; grid-template-columns: 8.5rem 1fr; gap: .75rem; align-items: baseline;
  border-left: 5px solid var(--borde); padding: .5rem 0 .5rem .85rem; background: #f7f9fc;
  border-radius: 0 8px 8px 0; }
.estado dt { margin: 0; font-family: var(--titulo); font-weight: 600; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase; }
.estado dd { font-weight: 400; color: var(--suave); font-size: .95rem; }
.estado.vigente { border-color: var(--ok); } .estado.vigente dt { color: var(--ok); }
.estado.vencido { border-color: var(--aviso); } .estado.vencido dt { color: var(--aviso); }
.estado.revocado { border-color: var(--mal); } .estado.revocado dt { color: var(--mal); }
.estado.ninguno { border-color: #97a1ba; } .estado.ninguno dt { color: #5b6580; }
.nota-emisor { margin: 1.25rem 0 0; padding: 1rem 1.1rem; border: 1px dashed var(--borde);
  border-radius: 10px; font-size: .92rem; color: var(--suave); background: #fbfcfe; }
.nota-emisor strong { color: var(--navy); }

footer { text-align: center; padding: 1.5rem 1rem 2.25rem; color: var(--suave); font-size: .9rem;
  border-top: 1px solid #e3e7f0; margin-top: 2rem; }
footer strong { font-family: var(--titulo); font-weight: 600; color: var(--navy); }
.pie-panel { display: block; margin-top: .9rem; font-size: .82rem; }
.pie-panel a { color: #8791a8; }

@media (min-width: 40rem) {
  body { font-size: 18px; }
  h1.titular { font-size: 2rem; }
  .hero { padding: 3rem 1rem 3.25rem; }
  .hero h1 { font-size: 2.1rem; }
  .hero-logo { width: 196px; }
  .buscador input { font-size: 1.55rem; }
  .buscador button { padding: 0 1.6rem; font-size: 1.05rem; }
  .pasos ol { grid-template-columns: repeat(3, 1fr); }
  .pasos li { padding: 3.4rem 1.1rem 1.2rem; }
  main > dl { display: grid; grid-template-columns: 11rem 1fr; gap: .5rem 1rem; }
  main > dl > dt { margin: .15rem 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-dentro > * { animation: surge .5s ease-out both; }
  .hero-ante { animation-delay: .04s; } .hero h1 { animation-delay: .09s; }
  .buscador { animation-delay: .14s; }
  @keyframes surge { from { opacity: 0; transform: translateY(9px); } }
}
@media print { .hero::before, .hero::after, .buscador, .pie-panel { display: none; } }
