/* Rutera — rutera.com.ar · fuentes locales, sin servicios de terceros */
@font-face { font-family: Barlow; font-weight: 400; font-display: swap; src: url(/fuentes/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Barlow; font-weight: 600; font-display: swap; src: url(/fuentes/barlow-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Barlow; font-weight: 700; font-display: swap; src: url(/fuentes/barlow-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url(/fuentes/barlow-condensed-latin-800-normal.woff2) format("woff2"); }

:root {
  --fondo: #0F1012; --sup: #17191C; --sup2: #22252A; --linea: #2A2D33; --borde: #3A3E45;
  --texto: #F4F4F2; --gris: #B8BCC4; --gris2: #8E939B; --ambar: #FFB21E; --ambar2: #FFC857;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fondo); color: var(--texto); font-family: Barlow, system-ui, sans-serif; font-size: 16px; line-height: 1.4; -webkit-text-size-adjust: 100%; }
a { color: var(--ambar); text-decoration: none; }
a:hover { color: var(--ambar2); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--ambar); outline-offset: 2px; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--ambar); color: var(--fondo); padding: 10px 14px; border-radius: 10px; z-index: 50; }
.saltar:focus { left: 8px; }
.contenedor { max-width: 1240px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.gris { color: var(--gris); }
main:focus { outline: none; }

/* Encabezado */
.encabezado { position: sticky; top: 0; z-index: 20; background: rgba(15,16,18,.96); border-bottom: 1px solid #23262B; backdrop-filter: blur(6px); }
.encabezado__fila { display: flex; align-items: center; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--texto); font-family: var(--cond); font-weight: 800; font-size: 28px; letter-spacing: 1px; }
.logo:hover { color: var(--texto); }
.logo__barra { width: 30px; height: 6px; background: var(--ambar); border-radius: 3px; }
.menu { display: flex; gap: 4px; flex: 1; }
.menu a { color: var(--texto); font-weight: 600; padding: 10px 12px; border-radius: 10px; }
.menu a:hover, .menu a[aria-current="page"] { background: var(--sup2); color: var(--texto); }
.encabezado__acciones { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.selector { height: 44px; border-radius: 12px; border: 1px solid var(--borde); background: var(--sup); color: var(--texto); font: inherit; font-weight: 600; font-size: 15px; padding: 0 10px; }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: 16px; border: 1px solid transparent; }
.boton--ambar { background: var(--ambar); color: var(--fondo); }
.boton--ambar:hover { background: var(--ambar2); color: var(--fondo); }
.boton--borde { border-color: var(--borde); color: var(--texto); }
.boton--borde:hover { background: var(--sup2); color: var(--texto); }
.boton--oscuro { background: var(--fondo); color: var(--texto); }
.boton--oscuro:hover { color: var(--ambar); }

/* Portada */
.portada { position: relative; overflow: hidden; border-bottom: 1px solid #23262B; }
.portada__ruta { position: absolute; inset: 0; width: 100%; height: 100%; }
.ruta-asfalto { stroke: #1C1F23; stroke-width: 120; fill: none; }
.ruta-linea { stroke: var(--ambar); stroke-opacity: .5; stroke-width: 4; stroke-dasharray: 40 30; fill: none; }
.portada__fila { position: relative; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; padding-top: clamp(24px, 4.5vw, 56px); padding-bottom: clamp(24px, 4.5vw, 56px); }
.portada__texto { flex: 999 1 480px; min-width: 0; }
.sobretitulo { color: var(--ambar); font-weight: 700; font-size: 13px; letter-spacing: 3px; margin-bottom: 10px; }
.titulo-grande { font-family: var(--cond); font-weight: 800; font-size: clamp(40px, 6.5vw, 80px); line-height: .92; }
.bajada { color: var(--gris); font-size: clamp(16px, 1.6vw, 18px); max-width: 560px; margin-top: 14px; }
.botones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.tarjeta { background: var(--sup); border: 1px solid var(--linea); border-radius: 16px; color: var(--texto); }
a.tarjeta:hover { border-color: var(--borde); color: var(--texto); }
.destacado { flex: 1 1 320px; padding: 16px; display: flex; gap: 16px; align-items: center; }
.fecha { width: 66px; height: 74px; flex: none; border-radius: 14px; background: var(--ambar); color: var(--fondo); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.fecha--suave { background: var(--sup2); color: var(--texto); }
.fecha__mes { font-weight: 700; font-size: 13px; text-transform: uppercase; }
.fecha--suave .fecha__mes { color: var(--ambar); }
.fecha__dia { font-family: var(--cond); font-weight: 800; font-size: 32px; line-height: 1; }
.etiqueta-chica { color: var(--ambar); font-weight: 700; font-size: 12px; letter-spacing: 2px; }

/* Columnas */
.columnas { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-top: 24px; padding-bottom: 40px; }
.columna-principal { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.columna-lateral { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cabecera { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 12px; margin-bottom: 12px; }
.cabecera--pagina { align-items: flex-end; margin-bottom: 20px; }
.titulo { font-family: var(--cond); font-weight: 800; font-size: clamp(26px, 3vw, 34px); }
.titulo--chico { font-size: 26px; line-height: 1; margin-bottom: 4px; }
.titulo-pagina { font-family: var(--cond); font-weight: 800; font-size: clamp(36px, 5vw, 56px); line-height: 1; margin-bottom: 6px; }
.ver-todo { font-weight: 700; font-size: 15px; white-space: nowrap; }
.pagina { padding-top: clamp(24px, 4vw, 44px); padding-bottom: 48px; display: flex; flex-direction: column; gap: 24px; }

.carrusel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.carrusel > * { flex: 1 0 min(240px, 78%); scroll-snap-align: start; }
.lista { display: flex; flex-direction: column; gap: 10px; }
.panel { padding: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { background: var(--sup2); color: var(--texto); border-radius: 20px; padding: 8px 12px; font-size: 14px; font-weight: 600; }
a.chip:hover { color: var(--ambar); }

/* Tarjetas de contenido */
.evento { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.evento-fila { padding: 14px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.evento-fila__texto { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tipo { align-self: flex-start; background: var(--sup2); color: var(--ambar); border-radius: 8px; padding: 4px 8px; font-weight: 700; font-size: 12px; letter-spacing: 1px; }
.nombre { font-weight: 700; font-size: 18px; }
.detalle { color: var(--gris); font-size: 14px; }
.etiquetas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.etiqueta { background: var(--sup2); border-radius: 6px; padding: 3px 8px; font-size: 12px; font-weight: 600; color: #D9DCE1; }
.etiqueta--borde { background: transparent; border: 1px solid var(--borde); }
.novedad { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.descarga { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid #23262B; color: var(--texto); }
.descarga:first-child { border-top: 0; }
.descarga:hover { color: var(--ambar); }
.vacio { border: 1px dashed var(--borde); border-radius: 14px; padding: 18px; color: var(--gris); font-size: 15px; }
.vacio a { font-weight: 700; }

/* Filtros y buscador */
.filtros { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.filtro { flex: none; min-height: 42px; border-radius: 20px; padding: 0 16px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; background: var(--sup); color: var(--texto); border: 1px solid var(--borde); }
.filtro[aria-pressed="true"] { background: var(--ambar); color: var(--fondo); border-color: var(--ambar); }
.buscador input { width: 100%; height: 50px; border-radius: 12px; border: 1px solid var(--borde); background: var(--sup); color: var(--texto); font: inherit; font-size: 16px; padding: 0 14px; }

/* Avisos */
.aviso:empty { display: none; }
.aviso__etiqueta { color: var(--gris2); font-size: 11px; letter-spacing: 2px; margin-bottom: 6px; }
.aviso__caja { display: flex; align-items: center; justify-content: center; border-radius: 14px; overflow: hidden; border: 1px dashed var(--borde); background: #141619; color: var(--gris2); font-size: 14px; text-align: center; padding: 10px; }
.aviso--banner .aviso__caja { min-height: clamp(80px, 10vw, 110px); }
.aviso--lateral .aviso__caja { min-height: 250px; }
.aviso__caja img { width: 100%; height: auto; display: block; }
.aviso__caja picture { display: block; width: 100%; }
.aviso--lateral.solo-cel { max-width: 340px; margin-left: auto; margin-right: auto; }
.aviso__caja--imagen { border-style: solid; padding: 0; }

/* App */
.app-tarjeta { background: var(--ambar); color: var(--fondo); border-radius: 18px; padding: 18px; display: flex; gap: 14px; align-items: center; }
.app-tarjeta p { font-size: 14px; margin: 6px 0 12px; }
.app-tarjeta img { width: 104px; height: 104px; border-radius: 10px; flex: none; }

/* Pie */
.pie { border-top: 1px solid #23262B; background: #0B0C0E; }
.pie__columnas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 20px; padding-top: 28px; padding-bottom: 12px; }
.pie nav { display: flex; flex-direction: column; }
.pie strong { font-size: 14px; letter-spacing: 1px; margin-bottom: 4px; }
.pie nav a { color: var(--gris); font-size: 14px; padding: 7px 0; }
.pie nav a:hover { color: var(--ambar); }
.pie__legal { color: var(--gris2); font-size: 13px; padding-top: 12px; padding-bottom: 24px; border-top: 1px solid #1C1F23; }

/* Accesos rápidos (celular) */
.accesos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 16px 16px 0; }
.accesos a { height: 76px; border: 1px solid var(--linea); border-radius: 14px; background: var(--sup); color: var(--texto); font-weight: 700; font-size: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.marca { width: 24px; height: 4px; border-radius: 2px; background: var(--ambar); }

/* Barra tipo app (celular) */
.barra-app { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #0B0C0E; border-top: 1px solid #23262B; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.barra-app a { color: var(--gris); font-weight: 700; font-size: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.barra-app .icono { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #5A5F67; }
.barra-app a[aria-current="page"] { color: var(--ambar); }
.barra-app a[aria-current="page"] .icono { border-color: var(--ambar); }

/* PC vs celular */
@media (min-width: 761px) { .solo-cel { display: none !important; } }
@media (max-width: 760px) {
  .solo-pc { display: none !important; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .contenedor { padding-left: 16px; padding-right: 16px; }
  .logo { font-size: 26px; }
  .selector { height: 40px; font-size: 14px; }
  .portada__fila { padding-top: 16px; padding-bottom: 16px; gap: 14px; }
  .sobretitulo { display: none; }
  .titulo-grande { font-size: 30px; }
  .columnas { padding-top: 18px; padding-bottom: 20px; gap: 18px; }
  .columna-principal { gap: 18px; }
  .titulo { font-size: 26px; }
  .destacado { padding: 14px; }
  .pie__columnas { display: none; }
  .pie__legal { text-align: center; border-top: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
