/* Rutracto — sitio estático. Colores = src/tema.ts (paleta oficial de la app).
   Contraste AA calculado (WCAG 2.x):
   tinta/fondo 16.69 · tinta/panel 15.55 · tenue/fondo 5.47 · tenue/panel 5.10
   fondo/marca 16.69 · acento/marca 9.01 · tinta/acento 9.01 · azul/fondo 4.77
   rojo/fondo 4.83 · verde/fondo 5.02 · verde/panel 4.67
   NO pasan como texto: acento/fondo 1.85, ambar/fondo 3.19, azul/panel 4.44, rojo/panel 4.50 (justo bajo 4.5).
   Por eso el amarillo solo va de fondo (con tinta) o sobre marca, y las ligas van en tinta subrayada. */
:root {
  --fondo: #FFFFFF;
  --tinta: #0B1F33;
  --tenue: #5B6B7C;
  --linea: #E3E8EE;
  --marca: #0B1F33;
  --acento: #F5B301;
  --azul: #1D6FE0;
  --rojo: #DC2626;
  --ambar: #D97706;
  --verde: #15803D;
  --panel: #F5F7FA;
  --ancho: 68rem;
  --radio: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); font-weight: 850; }
h3 { font-size: 1.15rem; font-weight: 800; }
p, ul, ol { margin: 0 0 1em; }
a { color: var(--tinta); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--azul); }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 4px; }
.oscuro :focus-visible { outline-color: var(--acento); }

.saltar { position: absolute; left: -999px; top: 0; background: var(--acento); color: var(--tinta); padding: .7rem 1rem; font-weight: 800; z-index: 10; }
.saltar:focus { left: 1rem; top: 1rem; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 16px; }

/* Barra superior */
.barra { background: var(--marca); color: var(--fondo); border-bottom: 4px solid var(--acento); }
.barra .contenedor { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.25rem; padding-top: .8rem; padding-bottom: .8rem; }
.logo { color: var(--fondo); text-decoration: none; font-weight: 900; font-size: 1.45rem; letter-spacing: .14em; font-family: "Arial Black", "Helvetica Neue", Impact, system-ui, sans-serif; }
.logo span { color: var(--acento); }
.barra nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1rem; list-style: none; margin: 0; padding: 0; }
.barra nav a { color: var(--fondo); text-decoration: none; font-weight: 700; padding: .35rem 0; display: inline-block; }
.barra nav a:hover, .barra nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--acento); }

/* Bloques */
.oscuro { background: var(--marca); color: var(--fondo); }
.oscuro a { color: var(--fondo); }
.oscuro .tenue { color: var(--linea); }
.heroe { padding: 3.5rem 0 3rem; }
.heroe .lema { color: var(--acento); font-weight: 900; font-size: clamp(1.25rem, 4vw, 1.6rem); margin-bottom: .4rem; }
.heroe p.grande { font-size: 1.2rem; max-width: 40rem; }
.seccion { padding: 3rem 0; }
.seccion.gris { background: var(--panel); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.tenue { color: var(--tenue); }

.botones { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: .8rem 1.4rem; border-radius: var(--radio); font-weight: 850; font-size: 1.1rem; text-decoration: none; border: 2px solid transparent; }
.boton.principal { background: var(--acento); color: var(--tinta); }
.boton.secundario { background: transparent; color: var(--fondo); border-color: var(--fondo); }
.boton.sobre-blanco { background: var(--marca); color: var(--fondo); }
.boton:hover { filter: brightness(1.06); text-decoration: none; }

.pronto { display: inline-block; background: var(--fondo); color: var(--tinta); border-radius: 999px; padding: .4rem 1rem; font-weight: 800; font-size: .95rem; margin-top: 1.25rem; }

.rejilla { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); padding: 0; list-style: none; }
.tarjeta { background: var(--fondo); border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.2rem 1.25rem; border-top: 5px solid var(--acento); }
.tarjeta h3 { margin-bottom: .35rem; }
.tarjeta p { margin: 0; color: var(--tenue); }
.tarjeta.sos { border-top-color: var(--rojo); }
.tarjeta.ok { border-top-color: var(--verde); }

.nota { border-left: 5px solid var(--acento); background: var(--panel); padding: 1rem 1.2rem; border-radius: 0 var(--radio) var(--radio) 0; }
.aviso-rojo { border-left-color: var(--rojo); }

/* Texto largo (avisos legales) */
.legal { max-width: 46rem; padding: 2.5rem 16px 3rem; margin: 0 auto; }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--linea); }
.legal h3 { margin-top: 1.4rem; }
.legal li { margin-bottom: .4em; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .97rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .55rem .6rem; border-bottom: 1px solid var(--linea); }
.legal th { background: var(--panel); }
.tabla-scroll { overflow-x: auto; }
.actualizado { color: var(--tenue); font-size: .95rem; }
.por-definir { background: var(--acento); color: var(--tinta); font-weight: 800; padding: 0 .25em; border-radius: 4px; }

.pie { background: var(--marca); color: var(--linea); padding: 2rem 0; font-size: .95rem; }
.pie a { color: var(--fondo); }
.pie ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0 0 1rem; }
.pie p { margin: .2rem 0; }

.error404 { text-align: center; padding: 4rem 16px; }
.error404 .numero { font-size: clamp(4rem, 20vw, 8rem); font-weight: 900; color: var(--acento); line-height: 1; margin: 0; }
.error404 .botones { justify-content: center; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
