/* Un día-luz · interactivo de Kosmodínē (Biblidom). Móvil primero, letra Lexend, colores de brand/colors.json sobre fondo de noche. */
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fuentes/lexend-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fuentes/lexend-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --noche: #060E1F; --noche-2: #0D1A33; --superficie: #12223F; --borde: #2B3B5C;
  --texto: #F4EFE9; --texto-suave: #C9D2E3; --enlace: #8FCBFF;
  --amarillo: #FCB931; --rojo: #DD4136; --celeste: #1596DC; --verde: #76BB4D; --crema: #FFF9F4;
  --radio: 14px; --ancho: 46rem;
  --letra: 'Lexend', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (min-width: 40rem) { html { font-size: 125%; } }
body { margin: 0; background: var(--noche); color: var(--texto); font-family: var(--letra); line-height: 1.6; overflow-wrap: break-word;
  background-image: radial-gradient(1px 1px at 12% 18%, #fff8 50%, transparent 51%), radial-gradient(1px 1px at 72% 9%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 38% 66%, #fff5 50%, transparent 51%), radial-gradient(1.5px 1.5px at 88% 44%, #fff7 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 30%, #fff4 50%, transparent 51%), radial-gradient(1px 1px at 22% 88%, #fff5 50%, transparent 51%);
  background-size: 480px 480px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--enlace); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 4px solid var(--amarillo); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 2.6rem; letter-spacing: -.02em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
.solo-lectores { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 1rem; top: -10rem; background: var(--amarillo); color: var(--noche); padding: .6rem 1rem; z-index: 10; font-weight: 700; border-radius: 8px; }
.saltar:focus { top: 1rem; }
.franja { display: flex; height: 6px; }
.franja span { flex: 1; } .franja span:nth-child(1) { background: var(--rojo); } .franja span:nth-child(2) { background: var(--amarillo); }
.franja span:nth-child(3) { background: var(--celeste); } .franja span:nth-child(4) { background: var(--verde); }

.cabecera, main, .pie { max-width: var(--ancho); margin: 0 auto; padding: 0 1rem; }
.cabecera { padding-top: .75rem; padding-bottom: 1rem; }
.arriba { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.marca { font-weight: 800; font-size: 1.15rem; color: var(--texto); text-decoration: none; min-height: 48px; display: inline-flex; align-items: center; }
.volver { min-height: 48px; display: inline-flex; align-items: center; font-weight: 600; }
.serie { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--amarillo); margin-bottom: .4rem; }
.entrada { font-size: 1.1rem; color: var(--texto-suave); }
.entrada strong { color: var(--texto); }

.bloque { background: color-mix(in srgb, var(--noche-2) 92%, transparent); border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 1.25rem 1rem; margin: 0 0 1.5rem; }
@media (min-width: 40rem) { .bloque { padding: 1.75rem 1.75rem; } }
figure { margin: 0 0 1.25rem; }
figcaption { font-size: .8rem; color: var(--texto-suave); margin-top: .45rem; }
.nave img, .antena img { border-radius: 10px; }
.sello { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--noche);
  background: var(--amarillo); border-radius: 4px; padding: 0 .35rem; margin-right: .3rem; }

.cifra-grande { margin: .25rem 0 1rem; line-height: 1.1; }
.numero { font-size: clamp(1.9rem, 8.5vw, 3.1rem); font-weight: 800; color: var(--amarillo); font-variant-numeric: tabular-nums; letter-spacing: -.02em; display: block; }
.unidad { font-size: 1rem; color: var(--texto-suave); font-weight: 600; }
.datos { display: grid; grid-template-columns: 1fr; gap: .6rem; margin: 0 0 1rem; }
@media (min-width: 30rem) { .datos { grid-template-columns: 1fr 1fr; } }
.datos div { background: var(--superficie); border-radius: 10px; padding: .7rem .85rem; }
.datos dt { font-size: .8rem; color: var(--texto-suave); }
.datos dd { margin: 0; font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.nota { font-size: .85rem; color: var(--texto-suave); }
.tarjeta-v2 { border-top: 1px solid var(--borde); padding-top: 1rem; margin-top: 1rem; }
.tarjeta-v2 p { margin: 0; }

.boton { font: inherit; font-weight: 700; font-size: 1rem; min-height: 48px; padding: .6rem 1.2rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--amarillo); color: var(--noche); display: inline-flex; align-items: center; justify-content: center; gap: .4rem; text-decoration: none; }
.boton:hover { filter: brightness(1.07); }
.boton-claro { background: transparent; color: var(--texto); border: 2px solid var(--borde); }

.hola { background: var(--superficie); border-radius: 12px; padding: 1rem; margin: 0 0 1.25rem; }
.pista { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; margin: 1.1rem 0 .9rem; font-size: .8rem; font-weight: 600; color: var(--texto-suave); }
.pista-linea { position: relative; height: 10px; border-radius: 99px; background: #26365a; overflow: visible; }
.pista-barra { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, #fcb93155, var(--amarillo)); }
.pista-punto { position: absolute; top: 50%; left: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--amarillo);
  box-shadow: 0 0 12px 4px #fcb93199; opacity: 0; }
.pista.en-viaje .pista-punto { opacity: 1; }
.pista-tierra::before { content: ''; display: inline-block; width: .8em; height: .8em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #8fd0ff, #1d5fa8); margin-right: .3em; vertical-align: -.05em; }
.pista-nave::after { content: ''; display: inline-block; width: .55em; height: .55em; background: var(--crema); margin-left: .3em; transform: rotate(45deg); }
.hola-estado p { margin: 0 0 .4rem; }
.hola-estado .grande { font-size: 1.25rem; font-weight: 700; color: var(--amarillo); font-variant-numeric: tabular-nums; }
.hola-estado ul { margin: .4rem 0 0; padding-left: 1.2rem; font-size: .9rem; color: var(--texto-suave); }

.viaje { background: var(--superficie); border-radius: 12px; padding: 1rem; margin: 0 0 1rem; }
.viaje-etiqueta { display: block; font-weight: 600; margin-bottom: .6rem; }
.viaje-etiqueta output { color: var(--amarillo); font-weight: 800; font-variant-numeric: tabular-nums; }
.viaje-donde { margin: .6rem 0 .9rem; color: var(--texto-suave); min-height: 3.2em; }
input[type=range] { width: 100%; height: 44px; accent-color: var(--amarillo); background: transparent; cursor: pointer; margin: 0; }

.paradas { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.parada { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .85rem; align-items: center; background: var(--superficie);
  border: 2px solid transparent; border-radius: 12px; padding: .6rem; transition: border-color .3s, opacity .3s; }
.parada img { width: 5.5rem; height: 5.5rem; object-fit: cover; border-radius: 8px; background: #000; }
.parada.lejos { opacity: .62; }
.parada.alcanzada { border-color: var(--amarillo); opacity: 1; }
.parada h3 { margin: 0 0 .15rem; font-size: 1.02rem; }
.parada .luz { margin: 0; font-weight: 700; color: var(--amarillo); font-variant-numeric: tabular-nums; }
.parada .lenta { margin: .1rem 0 0; font-size: .82rem; color: var(--texto-suave); }
.parada .credito { margin: .2rem 0 0; font-size: .68rem; color: var(--texto-suave); opacity: .9; }
.parada .ir { font: inherit; font-size: .8rem; font-weight: 600; background: none; border: 0; padding: .3rem 0; min-height: 44px; color: var(--enlace); text-decoration: underline; cursor: pointer; }
.punto-azul { position: relative; margin: 1.5rem 0 0; }
.punto-azul img { border-radius: 10px; }
.foto-marco { position: relative; }
.marca-punto { position: absolute; left: 59.45%; top: 51.95%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 2px solid var(--amarillo);
  border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 2px #0008; }
.estrella { width: 5.5rem; height: 5.5rem; border-radius: 8px; background: radial-gradient(circle, #ffe1a8 0 6%, #ff9a5c55 14%, transparent 36%), #02060f; }

.fuentes { padding-left: 1.2rem; font-size: .9rem; }
.fuentes li { margin-bottom: .5rem; }
.cierre { margin: 1.25rem 0 0; }
.pie { font-size: .85rem; color: var(--texto-suave); padding-bottom: 2.5rem; }

@media (max-width: 22rem) { .parada { grid-template-columns: 4.25rem minmax(0, 1fr); gap: .6rem; } .parada img, .estrella { width: 4.25rem; height: 4.25rem; } }
@media (prefers-reduced-motion: reduce) { .parada { transition: none; } }
