/* Pestañas Viaje, Club, Rodito y Cuenta (con Pay adentro). Mismo sistema que app.css (docs/DISENO.md):
   renglones entre filetes, cifras en Eurostile, y el negro reservado para lo que más importa. */
.pagina > * + * { margin-top: var(--e4); }
.bajada { color: var(--tinta-2); max-width: 40ch; }
.bloque { border-top: 2px solid var(--tinta); padding-top: var(--e4); }
.pagina > .bloque { margin-top: var(--e6); }
.bloque > * + * { margin-top: var(--e3); }
.vacio { color: var(--tinta-2); }
.supuesto { font-size: .8125rem; line-height: 1.45; color: var(--tinta-2); }
.dato-vivo { font-weight: 600; }

.renglones { border-top: 1px solid var(--linea); }
.renglones > li { display: flex; justify-content: space-between; align-items: center; gap: var(--e3); padding: var(--e3) 0; border-bottom: 1px solid var(--linea); min-width: 0; }
.renglones span:first-child { min-width: 0; }
.renglones b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.renglones small { display: block; font-size: .8125rem; line-height: 1.35; color: var(--tinta-2); }
.renglones .der { text-align: right; flex: none; max-width: 46%; }
.renglones b.cifras, .viaje-llega b { font-family: var(--f-cifras); font-weight: 500; }
.renglones .enlace { min-height: 2.5rem; padding: 0; }
.renglones > li:has(> .renglon-enlace) { padding: 0; }
.renglon-enlace { display: flex; justify-content: space-between; align-items: center; gap: var(--e3); width: 100%; padding: var(--e3) 0; text-decoration: none; color: inherit; }

.campo { display: grid; gap: var(--e1); min-width: 0; }
.campo label { font-weight: 600; font-size: .875rem; display: flex; justify-content: space-between; align-items: baseline; gap: var(--e2); }
.campo select, .campo input, .charla-form input { width: 100%; min-width: 0; min-height: 3rem; padding: 0 var(--e3); font: inherit; color: var(--tinta); background: var(--hoja); border: 1.5px solid var(--linea-fuerte); border-radius: var(--r-chico); }
.campo input[type="range"] { padding: 0; border: 0; background: none; height: 2.75rem; accent-color: var(--accion); }
.campo output { font-size: 1rem; min-width: 5.6ch; text-align: right; white-space: nowrap; }
.par { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e3); align-items: end; }
.interruptor { display: flex; align-items: center; gap: var(--e3); min-height: 3rem; font-weight: 600; cursor: pointer; }
.interruptor input { width: 1.375rem; height: 1.375rem; margin: 0; accent-color: var(--accion); flex: none; }

/* ---------- viaje ---------- */
.viaje-form { display: grid; gap: var(--e3); }
/* recorridos sugeridos: renglones entre filetes con "›", plegados (D9 a) */
.recorridos { margin: var(--e4) 0 var(--e3); border-bottom: 1px solid var(--linea); }
.recorridos[open] { border-bottom: 0; }
.recorridos .renglones { margin: 0; }
.recorridos .renglon-enlace { background: none; border: 0; font: inherit; text-align: left; cursor: pointer; min-height: 3.5rem; }
.recorridos [aria-pressed="true"] b::after { content: "  ·  elegido"; font-weight: 400; color: var(--tinta-2); }
/* resumen del viaje: contenido, sin caja */
.viaje-llega { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--e1) var(--e3); margin: var(--e2) 0 var(--e3); }
.viaje-llega b { font-size: clamp(2rem, 11vw, 2.75rem); line-height: 1; color: var(--tinta); white-space: nowrap; }
.viaje-llega > span { color: var(--tinta-2); font-size: .875rem; }
.no-llega .viaje-llega b { color: var(--error); }
.viaje-resumen .cifras-fila dd { font-size: 1rem; }
/* renglón de estado (ámbar o error), sin caja */
.viaje-nota { margin: var(--e2) 0 0; }
.viaje-nota .enlace { min-height: 2.75rem; padding: 0; text-align: left; }
.estado-aviso { display: flex; gap: var(--e2); align-items: flex-start; margin: var(--e3) 0 0; color: var(--aviso-tinta); font-size: .9375rem; line-height: 1.35; }
.estado-aviso b { display: block; font-weight: 600; }
.estado-error { color: var(--error-tinta); }
.estado-icono { width: 1.125rem; height: 1.125rem; flex: none; margin-top: .0625rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* mapa: colores de la marca, claro y oscuro por variables */
.mapa { position: relative; margin-top: var(--e4); height: min(64vh, 34rem); min-height: 20rem; overflow: hidden; background: var(--hoja-2); }
/* en el teléfono el mapa va a todo el ancho, sin borde ni esquinas */
@media (max-width: 59.99rem) { .mapa { margin-inline: calc(-1 * var(--e4)); } }
.mapa-svg { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.mapa-svg:active { cursor: grabbing; }
.mapa-gl { background: #a9d3ee; }
.mapa-gl .mapa-lienzo { position: absolute; inset: 0; }
.mapa-gl [data-lista] { left: 0; top: 0; }
.mapa-gl [data-lista] > * { display: block; max-width: 1px; overflow: hidden; white-space: nowrap; }
.mapa-gl .maplibregl-canvas:focus-visible { outline: 3px solid var(--foco); outline-offset: -3px; }
.mapa.mapa-gl .maplibregl-ctrl.maplibregl-ctrl-attrib { background: color-mix(in srgb, var(--hoja) 72%, transparent); font: 400 .625rem/1.4 var(--f-texto); color: var(--tinta-2); border-radius: 6px 0 0 0; padding: 1px 6px; }
.mapa-gl .maplibregl-ctrl-attrib a { color: inherit; }
.mapa-gl .maplibregl-ctrl-bottom-right .maplibregl-ctrl { margin: 0; }
@media (prefers-color-scheme: dark) { .mapa-gl { background: #1d3247; } }
.m-mar { fill: var(--hoja-2); }
.m-pais { fill: var(--hoja); stroke: var(--linea-fuerte); stroke-width: 1; stroke-linejoin: round; }
.m-cl { fill: var(--papel); }
.m-ruta { fill: none; stroke: var(--linea-fuerte); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.m-trazo-halo { fill: none; stroke: var(--acento); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.m-trazo { fill: none; stroke: var(--tinta); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.m-pais-nombre { font: 500 10px var(--f-cifras); letter-spacing: .25em; fill: var(--tinta-2); opacity: .55; text-anchor: middle; }
.m-ciudad circle { fill: var(--tinta); }
.m-ciudad text { font: 600 11px var(--f-texto); fill: var(--tinta); paint-order: stroke; stroke: var(--hoja); stroke-width: 3px; stroke-linejoin: round; }
.m-ciudad.n2 text, .m-ciudad.n3 text { font-weight: 400; fill: var(--tinta-2); }
.m-ciudad.m-extremo circle { fill: var(--hoja); stroke: var(--tinta); stroke-width: 2.5; }
.m-ciudad.m-extremo text { font-weight: 700; fill: var(--tinta); font-size: 12px; }
.m-escudo rect { fill: var(--hoja); stroke: var(--linea-fuerte); }
.m-escudo text { font: 500 9px var(--f-cifras); fill: var(--tinta-2); text-anchor: middle; }
.m-toque { fill: transparent; }
.m-marcas [role="button"] { cursor: pointer; outline: none; }
.m-ecoroad .m-punto { fill: var(--acento); stroke: var(--negro); stroke-width: 1.5; }
.m-aliado .m-punto { fill: var(--hoja); stroke: var(--tinta-2); stroke-width: 2; }
.m-en-ruta .m-punto { stroke: var(--tinta); stroke-width: 2.5; }
.m-grupo text, .m-parada text { font: 500 11px var(--f-cifras); text-anchor: middle; fill: var(--negro); pointer-events: none; }
/* grupos: oscuros con borde de color, para no confundirlos con las paradas numeradas */
.m-grupo .m-punto { fill: var(--tinta); stroke-width: 3; }
.m-grupo.m-ecoroad .m-punto { stroke: var(--acento); }
.m-grupo.m-aliado .m-punto { stroke: var(--linea-fuerte); }
.m-grupo text { fill: var(--hoja); }
.m-parada .m-punto { fill: var(--acento); stroke: var(--tinta); stroke-width: 3; }
.m-sel .m-punto { stroke: var(--tinta); stroke-width: 3.5; }
.m-marcas [role="button"]:focus-visible .m-toque { fill: none; stroke: var(--foco); stroke-width: 2.5; }
.mapa-controles { position: absolute; right: var(--e2); top: var(--e2); display: grid; gap: 1px; background: var(--linea); border: 1px solid var(--linea); border-radius: var(--r-chico); overflow: hidden; box-shadow: var(--sombra); }
.mapa-controles button { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; padding: 0; border: 0; background: var(--hoja); color: var(--tinta); font: 500 1.375rem/1 var(--f-texto); cursor: pointer; }
.mapa-controles svg { width: 1.125rem; height: 1.125rem; }
.mapa-leyenda { display: flex; flex-wrap: wrap; gap: var(--e1) var(--e4); margin: var(--e2) 0 0; padding: 0; list-style: none; font-size: .8125rem; color: var(--tinta-2); }
.mapa-leyenda li { display: flex; align-items: center; gap: var(--e2); }
.mapa-leyenda i { display: inline-grid; place-items: center; width: .875rem; height: .875rem; border-radius: 50%; box-sizing: border-box; font: normal 500 .5625rem/1 var(--f-cifras); color: var(--negro); }
.mapa-leyenda .ley-eco { background: var(--acento); border: 1.5px solid var(--negro); }
.mapa-leyenda .ley-aliado { background: var(--hoja); border: 2px solid var(--tinta-2); }
.mapa-leyenda .ley-parada { width: 1.125rem; height: 1.125rem; background: var(--acento); border: 2px solid var(--tinta); }

/* ficha del cargador */
#v-ficha:not(:empty) { margin-top: var(--e3); }
.ficha { position: relative; border-top: 2px solid var(--tinta); padding-top: var(--e3); }
.ficha > * + * { margin-top: var(--e3); }
.ficha-cabeza { padding-right: 2.5rem; }
.ficha-cabeza h2 { margin: 0; font-size: 1.25rem; }
.ficha-cabeza p { margin: var(--e1) 0 0; }
.ficha-cerrar { position: absolute; top: 0; right: calc(-1 * var(--e2)); width: 2.75rem; height: 2.75rem; border: 0; background: none; color: var(--tinta-2); font-size: 1.5rem; cursor: pointer; }
.ficha-datos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--e3); border-top: 1px solid var(--linea); margin-bottom: 0; }
.ficha-datos div { padding: var(--e2) 0; border-bottom: 1px solid var(--linea); min-width: 0; }
.ficha-datos dt { font-size: .75rem; color: var(--tinta-2); }
.ficha-datos dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ficha-datos dd small { display: block; font-weight: 400; font-size: .75rem; line-height: 1.3; color: var(--tinta-2); }
.ficha-datos .sup { display: inline; font-size: .6875rem; color: var(--aviso); }
.ficha-accion { width: 100%; }
/* la parada: un renglón entre filetes, en Oskari; "Parada 1" y la cifra en 700 (dentro de una frase, la fuente de la frase) */
.ruta-indicacion { display: block; padding: var(--e3) 0; border-top: 1px solid var(--linea); font-weight: 600; font-size: 1.0625rem; }
.ruta-indicacion b { font-weight: 700; }
.ruta-indicacion small { display: block; margin-top: var(--e1); font-weight: 400; font-size: .875rem; color: var(--tinta-2); }

/* resumen chico del viaje (la línea de tiempo de antes) */
.tira { list-style: none; margin: 0; padding: 0; }
.tira li { display: grid; grid-template-columns: 3.75rem minmax(0, 1fr); gap: var(--e3); padding: var(--e2) 0; border-bottom: 1px solid var(--linea); }
.tira-km { font: 400 .6875rem/1.3 var(--f-cifras); text-align: right; color: var(--tinta-2); padding-top: .25rem; }
.tira b { font-weight: 600; }
.tira small { display: block; font-size: .8125rem; line-height: 1.35; color: var(--tinta-2); }
.tira .enlace { min-height: 2.25rem; text-align: left; }
.tira .enlace i { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--acento); color: var(--negro); border: 2px solid var(--tinta); box-sizing: border-box; font: normal 500 .625rem/1 var(--f-cifras); flex: none; }

/* ---------- reservas ---------- */
.cupo { font-size: 1.0625rem; font-weight: 600; }
.cupo b { font-weight: 700; }
.dias { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--linea); }
.dias button { min-height: 3rem; min-width: 0; padding: 0; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; font-weight: 600; color: var(--tinta-2); cursor: pointer; }
.dias button[aria-pressed="true"] { color: var(--tinta); border-bottom-color: var(--accion); }
/* Los turnos, como un horario de trenes: una grilla de filetes, sin botones sueltos. */
.horas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--linea); border-left: 1px solid var(--linea); }
.horas button { min-height: 3.5rem; min-width: 0; padding: var(--e2) 0; background: none; border: 0; border-right: 1px solid var(--linea); border-bottom: 1px solid var(--linea); text-align: center; cursor: pointer; }
.horas b { display: block; font: 500 .8125rem/1.3 var(--f-cifras); }
.horas small { display: block; font-size: .6875rem; color: var(--tinta-2); }
.horas button:disabled { cursor: not-allowed; }
.horas button:disabled b { opacity: .35; text-decoration: line-through; }
.horas button[aria-pressed="true"] { background: var(--accion); color: var(--accion-sobre); }
.horas button[aria-pressed="true"] small { color: inherit; }
.confirmar > * + * { margin-top: var(--e3); }
.reglas li { position: relative; padding-left: 1.25rem; font-size: .9375rem; }
.reglas li + li { margin-top: var(--e1); }
.reglas li::before { content: "–"; position: absolute; left: 0; color: var(--tinta-2); }

/* ---------- pay ---------- */
.paquetes .der { display: flex; align-items: center; gap: var(--e3); max-width: none; }

/* ---------- rodito ---------- */
.charla { display: grid; gap: var(--e2); }
.charla li { display: flex; }
.charla span { max-width: 86%; padding: var(--e3) var(--e4); border-radius: var(--r); overflow-wrap: anywhere; }
.charla .de-rodito span { background: var(--hoja-2); border-bottom-left-radius: 2px; }
.charla .de-vos { justify-content: flex-end; }
.charla .de-vos span { background: var(--accion); color: var(--accion-sobre); border-bottom-right-radius: 2px; }
.charla-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--e2); }
.charla-form .btn { width: auto; min-height: 3rem; }
.sugeridas > li { padding: 0; }
.sugeridas button { display: flex; justify-content: space-between; align-items: center; gap: var(--e3); width: 100%; min-height: 3rem; padding: 0; background: none; border: 0; text-align: left; font-weight: 600; cursor: pointer; }
.sugeridas button::after { content: "→"; color: var(--tinta-2); }

/* ---------- aviso de la carga, arriba de todo ---------- */
/* Sale solo para lo que pasa fuera de la vista (A4). Hoja con filete en claro y en oscuro: nunca la
   placa invertida (M2). Entra y sale por arriba, por el mismo camino; mientras se arrastra, sigue al dedo. */
.aviso-vivo { position: fixed; z-index: 40; top: calc(env(safe-area-inset-top) + var(--e3)); left: var(--e3); right: var(--e3); max-width: 30rem; margin-inline: auto; display: grid; gap: .125rem; padding: var(--e3) var(--e4); background: var(--hoja); color: var(--tinta); border: 1px solid var(--linea); border-radius: var(--r); box-shadow: var(--sombra); transform: translateY(calc(-100% - env(safe-area-inset-top) - var(--e5))); transition: transform .35s cubic-bezier(.2, .8, .2, 1); visibility: hidden; touch-action: none; -webkit-user-select: none; user-select: none; cursor: grab; }
.aviso-vivo:not(.visible) { transition: transform .3s cubic-bezier(.4, 0, 1, 1), visibility 0s .3s; }
.aviso-vivo.visible { transform: none; visibility: visible; }
.aviso-vivo.arrastra { transition: none; cursor: grabbing; }
.aviso-vivo span { color: var(--tinta-2); }
.aviso-vivo b { font: 500 .875rem/1.3 var(--f-cifras); }
.aviso-vivo span { font-size: .875rem; line-height: 1.35; }

@media (min-width: 60rem) { .pagina { max-width: 40rem; } }
@media print { .aviso-vivo { display: none; } }
@media (prefers-reduced-motion: reduce) { .aviso-vivo, .aviso-vivo:not(.visible) { transition: opacity .2s, visibility 0s .2s; transform: none; opacity: 0; } .aviso-vivo.visible { opacity: 1; transition: opacity .2s; } }

/* Mi cuenta: el auto, de perfil, arriba de sus datos */

/* ---------- Cuenta: Pay y cargas (A2, D2 a) ---------- */
.bloque .sub { font: 600 .9375rem/1.3 var(--f-texto); color: var(--tinta-2); margin-top: var(--e5); }
.renglon-enlace .mas { width: 1.125rem; height: 1.125rem; fill: none; stroke: var(--tinta-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.pagina > .volver { margin-left: calc(var(--e1) * -1); }
.pagina > .volver + h1 { margin-top: 0; }
