/* Sitio público de la terminal. Primero celular; en pantallas grandes se abre en columnas. */
:root {
    --azul: #08245a;
    --azul-2: #0d3274;
    --azul-claro: #1e63e6;
    --verde: #10b981;
    --amarillo: #facc15;
    --naranja: #f59e0b;
    --rojo: #dc2626;
    --texto: #0f172a;
    --suave: #475569;
    --borde: #e2e8f0;
    --fondo: #ffffff;
    --fondo-2: #f1f5f9;
    --titulo: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { font: 400 1rem/1.5 "Barlow", system-ui, sans-serif; color: var(--texto); background: var(--fondo); -webkit-font-smoothing: antialiased; }
a { color: var(--azul-claro); }
h1, h2, h3 { font-family: var(--titulo); line-height: 1.1; text-wrap: balance; }
.contenedor { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.hora { font-family: var(--titulo); font-weight: 800; font-variant-numeric: tabular-nums; }
.nada { color: var(--suave); padding: 1rem 0; }

/* Barra */
.barra {
    position: sticky; top: 0; z-index: 10;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .55rem max(1rem, (100% - 72rem) / 2);
    background: rgba(8, 36, 90, .96); backdrop-filter: blur(8px); color: #fff;
}
.marca { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-family: var(--titulo); font-size: 1.2rem; font-weight: 600; }
.marca img { height: 2.3rem; width: auto; }
.barra nav { display: none; gap: 1.4rem; }
.barra nav a { color: #dbe5f7; text-decoration: none; font-weight: 500; }
.barra nav a:hover { color: #fff; }
@media (min-width: 48rem) { .barra nav { display: flex; } }

/* Portada */
.portada { padding: 2.2rem 0 2.6rem; color: #fff; background: radial-gradient(120% 90% at 0% 0%, var(--azul-2) 0%, var(--azul) 55%, #061a42 100%); }
.sobre { color: var(--amarillo); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.portada h1 { font-size: clamp(2.4rem, 8vw, 4rem); font-weight: 800; margin: .2rem 0 .5rem; }
.bajada { color: #cbd5e1; max-width: 38rem; font-size: 1.1rem; }
.vivo { display: grid; gap: 1rem; margin: 1.6rem 0 1.4rem; }
@media (min-width: 56rem) { .vivo { grid-template-columns: 1fr 1fr; } }
.vivo-caja { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: .8rem; padding: .9rem 1rem; }
.vivo-caja h2 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .05em; color: #dbe5f7; margin-bottom: .4rem; }
.vivo-fila { display: grid; grid-template-columns: 3.6rem 1fr auto; grid-template-areas: "hora lugar anden" "hora lugar estado"; align-items: center; column-gap: .7rem; padding: .55rem 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.vivo-fila .hora { grid-area: hora; font-size: 1.5rem; }
.vivo-fila .lugar { grid-area: lugar; min-width: 0; }
.vivo-fila .lugar b { display: block; font-weight: 600; }
.vivo-fila .lugar small { color: #9fb3d9; }
.vivo-fila .anden { grid-area: anden; justify-self: end; font-family: var(--titulo); font-weight: 700; font-size: .85rem; padding: 0 .45rem; border-radius: .3rem; background: rgba(255, 255, 255, .12); }
.vivo-fila .anden::before { content: "Andén "; font-weight: 500; }
.vivo-fila .estado { grid-area: estado; justify-self: end; font-size: .85rem; font-weight: 600; color: #cbd5e1; }
.vivo-fila.e-embarcando .estado, .vivo-fila.e-arribo .estado { color: #34d399; }
.vivo-fila.e-proximo .estado { color: #60a5fa; }
.vivo-fila.e-demorado .estado { color: var(--naranja); }
.vivo-fila.e-cancelado .estado { color: #f87171; }
.vivo-fila.e-partio { opacity: .55; }
.boton { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .6rem 1.2rem; border-radius: .5rem; background: var(--amarillo); color: #1c1917; font-weight: 600; text-decoration: none; transition: transform .15s ease; }
.boton:active { transform: scale(.97); }

/* Avisos */
.avisos { background: #fef9c3; border-bottom: 1px solid #fde047; }
.avisos p { padding: .7rem 0; font-weight: 500; }

/* Secciones */
.seccion { padding: 2.6rem 0; }
.seccion.alterna { background: var(--fondo-2); }
.seccion h2 { font-size: 2rem; font-weight: 800; color: var(--azul); }
.ayuda { color: var(--suave); margin: .3rem 0 1rem; }

.controles { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.pestanas { display: inline-flex; padding: .25rem; border-radius: .6rem; background: var(--fondo-2); }
.pestanas button { min-height: 2.5rem; padding: 0 1.1rem; border: 0; border-radius: .45rem; background: transparent; font: 600 1rem var(--titulo); color: var(--suave); cursor: pointer; }
.pestanas button[aria-selected="true"] { background: var(--azul); color: #fff; }
.solo-hoy { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; cursor: pointer; }
.solo-hoy input { width: 1.15rem; height: 1.15rem; accent-color: var(--azul); }

.panel { display: grid; gap: 1rem; }
.panel[hidden] { display: none; }
@media (min-width: 48rem) { .panel { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .panel { grid-template-columns: repeat(3, 1fr); } }
.destino { border: 1px solid var(--borde); border-radius: .8rem; overflow: hidden; align-self: start; }
.destino h3 { padding: .7rem 1rem; font-size: 1.1rem; font-weight: 600; background: var(--fondo-2); }
.destino h3 b { font-weight: 800; color: var(--azul); font-size: 1.3rem; }
.destino ul { list-style: none; }
.destino li { display: grid; grid-template-columns: 3.4rem 1fr auto; align-items: center; gap: .7rem; padding: .6rem 1rem; border-top: 1px solid var(--borde); }
.destino li .hora { font-size: 1.35rem; color: var(--azul); }
.destino li small { display: block; color: var(--suave); line-height: 1.35; }
.destino li .anden { font: 700 .85rem var(--titulo); padding: .1rem .45rem; border-radius: .3rem; background: var(--fondo-2); color: var(--suave); }
.destino li .anden::before { content: "Andén "; font-weight: 500; }
.filtro-hoy .destino li:not(.hoy) { display: none; }
.filtro-hoy .destino:not(:has(li.hoy)) { display: none; }

.grilla { display: grid; gap: 1rem; margin-top: 1.2rem; }
@media (min-width: 40rem) { .grilla { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .grilla { grid-template-columns: repeat(3, 1fr); } }
.empresa, .local { background: #fff; border: 1px solid var(--borde); border-radius: .8rem; padding: 1.1rem; }
.empresa img { height: 3rem; max-width: 10rem; object-fit: contain; }
.empresa .sigla { display: inline-grid; place-items: center; width: 4.2rem; height: 2.6rem; border-radius: .4rem; color: #fff; font: 800 1.1rem var(--titulo); }
.empresa h3, .local h3 { font-size: 1.4rem; margin: .5rem 0 .2rem; }
.empresa p, .local p { color: var(--suave); }
.enlaces { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.enlaces a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 .9rem; border-radius: .45rem; border: 1px solid var(--borde); color: var(--azul); font-weight: 600; text-decoration: none; }
.enlaces a:hover { border-color: var(--azul-claro); }
.local { display: grid; gap: .8rem; }
.local img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: .5rem; }
.subtitulo { margin-top: 2.2rem; font-size: 1.5rem; color: var(--azul); }
.promo img { aspect-ratio: 16 / 10; }
.promo .condiciones { font-size: .9rem; }
.rubro { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--azul-claro); }
.local .dato { margin-top: .3rem; color: var(--texto); font-weight: 500; }

.llegar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.direccion { font-size: 1.2rem; font-weight: 500; margin-top: .3rem; }
.mapa { width: 100%; height: 18rem; border: 0; border-radius: .8rem; }

.pie { padding: 1.4rem 0; background: var(--azul); color: #cbd5e1; }
.pie .contenedor { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; }
.pie a { color: #fff; }

/* Portada con clima */
.portada-arriba { display: grid; gap: 1.2rem; align-items: start; }
@media (min-width: 56rem) { .portada-arriba { grid-template-columns: 1fr auto; } }
.clima { padding: .8rem 1rem; border-radius: .8rem; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); min-width: 16rem; }
.clima-ahora { display: flex; align-items: center; gap: .6rem; }
.clima .icono { width: 3rem; height: 3rem; }
.clima .temp { font: 800 2.4rem/1 var(--titulo); }
.clima .estado { font-weight: 600; }
.clima-dias { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid rgba(255, 255, 255, .14); text-align: center; font-size: .9rem; }
.clima-dias li { display: grid; justify-items: center; }
.clima .mini { width: 2rem; height: 2rem; }
.clima .fuente { display: inline-block; margin-top: .3rem; font-size: .72rem; color: #9fb3d9; }
.acciones { display: flex; flex-wrap: wrap; gap: .6rem; }
.boton.secundario { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }

/* Novedades */
.noticias { display: grid; gap: 1rem; margin-top: 1.2rem; }
@media (min-width: 40rem) { .noticias { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .noticias { grid-template-columns: repeat(3, 1fr); } }
.noticia { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem; border-radius: .8rem; border: 1px solid var(--borde); border-top: .3rem solid var(--azul-claro); background: #fff; color: var(--texto); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.noticia:hover { transform: translateY(-2px); box-shadow: 0 .6rem 1.4rem rgba(15, 23, 42, .08); }
.noticia img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: .5rem; }
.noticia h3 { font-size: 1.35rem; }
.noticia p { color: var(--suave); }
.noticia .leer { margin-top: auto; padding-top: .3rem; font-weight: 600; color: var(--azul-claro); }
.categoria { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--azul-claro); }
.cat-servicios { border-top-color: var(--verde); }
.cat-empresas { border-top-color: var(--naranja); }
.cat-sarandi { border-top-color: #0E5E6F; }

/* Publicidad del portal */
.publicidad { padding: 2rem 0; background: linear-gradient(120deg, #0E5E6F 0%, #17312B 100%); color: #fff; }
.publicidad-caja { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; }
.publicidad h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); margin: .2rem 0 .4rem; }
.publicidad p { color: #d7e7e2; max-width: 36rem; margin-bottom: 1rem; }
.publicidad .sobre { color: #F2A93B; margin: 0; }
.publicidad .qr { width: 9.4rem; height: 9.4rem; padding: .4rem; border-radius: .6rem; background: #fff; }

/* Página de una novedad */
.nota { max-width: 44rem; }
.nota .volver { display: inline-block; margin-bottom: 1rem; font-weight: 600; text-decoration: none; }
.nota h1 { font-size: clamp(2rem, 6vw, 2.8rem); color: var(--azul); margin: .2rem 0 .6rem; }
.nota .resumen { font-size: 1.2rem; color: var(--suave); }
.nota .fecha { margin: .6rem 0 1.2rem; font-size: .9rem; color: var(--suave); }
.nota .foto { width: 100%; border-radius: .8rem; margin-bottom: 1.2rem; }
.cuerpo { font-size: 1.08rem; line-height: 1.65; }
.cuerpo p, .cuerpo ul, .cuerpo ol { margin-bottom: 1rem; }
.cuerpo ul, .cuerpo ol { padding-left: 1.3rem; }
.cuerpo li { margin-bottom: .4rem; }
.cuerpo h2 { font-size: 1.5rem; color: var(--azul); margin: 1.4rem 0 .5rem; }
.nota .fuente { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--borde); color: var(--suave); font-size: .95rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .noticia { transition: none; } }
