/* Adif rehecha: azul marino medido en el icono real; ámbar de los paneles para los retrasos */
:root { --azul: #0f2444; --azul-hondo: #0a1730; --azul-claro: #e1e7f2; --ambar: #ffb62e; --ambar-texto: #a45200; --tinta: #0f2444; --fondo: #eef1f6; }

.vivo { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--bien); }
.vivo i { width: 9px; height: 9px; border-radius: 50%; background: var(--bien); box-shadow: 0 0 0 4px rgb(10 116 72 / .18); }

/* ---------- tu tren: el retraso y la vía, en grande ---------- */
.heroe { border-radius: var(--r-l); padding: 16px 16px 16px; color: #fff; background: linear-gradient(160deg, #1b3766 0%, var(--azul) 55%, var(--azul-hondo) 100%); box-shadow: 0 1px 2px rgb(10 23 48 / .3), 0 16px 30px -16px rgb(10 23 48 / .7); }
.h-cab small { display: block; font-size: .8125rem; color: rgb(255 255 255 / .75); }
.h-cab b { display: block; font-size: 1.625rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.h-cab span { display: block; font-size: .875rem; color: rgb(255 255 255 / .85); }
.h-datos { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 14px; }
.h-ret, .h-via { border-radius: 16px; padding: 10px 14px 12px; background: rgb(255 255 255 / .1); }
.h-ret small, .h-via small { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: rgb(255 255 255 / .75); }
.h-ret b { display: flex; align-items: baseline; gap: 6px; font-size: 3.5rem; font-weight: 900; line-height: 1; letter-spacing: -.03em; color: var(--ambar); font-variant-numeric: tabular-nums; }
.h-ret em { font-style: normal; font-size: 1.25rem; font-weight: 800; letter-spacing: 0; }
.h-ret span, .h-via span { display: block; margin-top: 4px; font-size: .8125rem; color: rgb(255 255 255 / .85); white-space: nowrap; }
.h-ret s { opacity: .65; margin-left: 4px; }
.h-via { min-width: 104px; text-align: center; }
.h-via b { display: block; font-size: 3.5rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }

.fila-aviso { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r-m); background: var(--papel); box-shadow: inset 0 0 0 1px var(--linea); cursor: pointer; }
.fila-aviso svg { color: var(--azul); }
.fila-aviso b { display: block; font-size: .9375rem; font-weight: 800; } .fila-aviso small { display: block; color: var(--tinta-2); font-size: .8125rem; }
.fila-aviso input { position: absolute; opacity: 0; pointer-events: none; }
.fila-aviso input:checked + .carril { background: var(--bien); } .fila-aviso input:checked + .carril::after { translate: 20px 0; }

/* ---------- en directo: parada a parada ---------- */
.ahora { border-radius: var(--r-m); padding: 12px 14px; background: var(--azul); color: #fff; }
.ahora b { display: block; font-size: 1.125rem; font-weight: 800; } .ahora span { display: block; font-size: .8125rem; color: rgb(255 255 255 / .85); }
.paradas { position: relative; list-style: none; padding: 0; margin-top: 16px; }
.paradas li { position: relative; display: grid; grid-template-columns: 50px 30px 1fr auto; align-items: center; min-height: 66px; }
.paradas time { font-size: .875rem; color: var(--tinta-2); font-variant-numeric: tabular-nums; text-decoration: line-through; }
.paradas .punto { justify-self: center; width: 16px; height: 16px; border-radius: 50%; background: var(--papel); box-shadow: inset 0 0 0 3.5px var(--azul); position: relative; z-index: 1; }
.paradas .pasada .punto { background: var(--azul); }
.paradas b { font-size: 1rem; font-weight: 800; line-height: 1.2; } .paradas small { display: block; font-size: .8125rem; color: var(--tinta-2); font-weight: 400; }
.paradas .real { font-size: 1rem; font-weight: 800; color: var(--ambar-texto); font-variant-numeric: tabular-nums; }
.carril-tren { position: absolute; left: 63px; top: 33px; bottom: 33px; width: 4px; border-radius: 2px; background: #c3cee0; }
.carril-tren i { position: absolute; left: 0; top: 0; width: 4px; height: 15%; border-radius: 2px; background: var(--azul); }
.marca { position: absolute; left: 49px; top: calc(33px + (100% - 66px) * .15 - 16px); width: 32px; height: 32px; border-radius: 50%; background: var(--ambar); color: var(--azul-hondo); display: grid; place-items: center; box-shadow: 0 0 0 4px rgb(255 182 46 / .3), 0 6px 12px -4px rgb(10 23 48 / .6); z-index: 2; }
.marca svg { stroke-width: 2.2; }

/* ---------- la estación: el mismo panel ---------- */
.salidas { list-style: none; padding: 6px 0; border-radius: var(--r-m); background: var(--azul-hondo); color: #fff; font-variant-numeric: tabular-nums; }
.salidas li { display: grid; grid-template-columns: 52px 1fr 34px auto; gap: 10px; align-items: center; padding: 10px 14px; font-size: .9375rem; font-weight: 700; }
.salidas li + li { border-top: 1px solid rgb(255 255 255 / .12); }
.salidas time { color: var(--ambar); } .salidas .via { text-align: center; padding: 2px 0; border-radius: 6px; background: rgb(255 255 255 / .14); }
.salidas .est { font-size: .8125rem; color: #7be0aa; } .salidas .est.tarde { color: var(--ambar); }

.pestanas button[aria-current="page"] { color: var(--azul); } .pestanas button[aria-current="page"] svg { background: var(--azul-claro); }
