/* =====================================================================
   SPEIN — Sistema de diseño del sitio público
   -----------------------------------------------------------------
   Concepto: la línea de ruta de un viaje en carretera. El motivo que
   se repite en todo el sitio es la línea punteada con paraderos (●),
   y las tarjetas con muesca perforada de un boleto de bus real.
   ===================================================================== */

:root {
  /* Color — asfalto nocturno + línea de carretera color ámbar */
  /*
  --asfalto-950: #12161c;
  --asfalto-800: #1b2430;
  --asfalto-600: #303c4d;
  --papel-100: #f4f2ec;
  --ambar-500: #e8823d;
  --ambar-400: #f0a15f;
  --verde-confirmacion: #2f6f5e;
  --texto-tenue: #93a0b3;
  */
  --asfalto-950: darkblue;
  --asfalto-800: deepskyblue;
  --asfalto-600: #333;
  --papel-100: #f4f2ec;
  --ambar-500: darkblue;
  --ambar-400: white;
  --verde-confirmacion: #2f6f5e;
  --texto-tenue: #93a0b3;
  /* Tipografía */
  --fuente-display: 'Space Grotesk', sans-serif;
  --fuente-cuerpo: 'IBM Plex Sans', sans-serif;
  --fuente-utilitaria: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--papel-100);
  color: var(--asfalto-950);
  font-family: var(--fuente-cuerpo);
  line-height: 1.5;
  /* Las muescas de .tarjeta-boleto y los paraderos de .linea-ruta sobresalen
     unos px a los lados; sin esto aparece una barra de scroll horizontal. */
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--fuente-display);
  letter-spacing: -0.01em;
  margin: 0;
}

.mono { font-family: var(--fuente-utilitaria); }

a { color: inherit; }

.contenedor {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Encabezado ---------- */
.encabezado {
  background: var(--ambar-500);
  color: var(--papel-100);
  padding: 18px 0;
}
.encabezado .contenedor { display: flex; align-items: center; justify-content: space-between; }
.marca { font-family: var(--fuente-display); font-weight: 700; font-size: 1.4rem; letter-spacing: 0.02em; }
.marca span { color: var(--texto-tenue); }
.nav-encabezado a { margin-left: 24px; text-decoration: none; color: var(--texto-tenue); font-size: 0.95rem; }
.nav-encabezado a:hover { color: var(--papel-100); }

/* ---------- Línea de ruta (motivo de firma) ---------- */
.linea-ruta {
  position: relative;
  height: 2px;
  background: repeating-linear-gradient(
    to right, var(--ambar-500) 0 10px, transparent 10px 20px
  );
  margin: 48px 0;
}
.linea-ruta::before, .linea-ruta::after {
  content: '';
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ambar-500);
}
.linea-ruta::before { left: -4px; }
.linea-ruta::after { right: -4px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--ambar-500);
  color: var(--papel-100);
  padding: 72px 0 96px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 14ch;
}
.hero h1 em { font-style: normal; color: var(--asfalto-800); }
.hero p.subtitulo {
  color: var(--texto-tenue);
  font-size: 1.15rem;
  max-width: 46ch;
  margin-top: 16px;
}

/* Tarjeta de búsqueda estilo "boleto" con muesca perforada a los lados */
.tarjeta-boleto {
  position: relative;
  background: var(--papel-100);
  color: var(--asfalto-950);
  border-radius: 4px;
  padding: 28px;
  margin-top: 40px;
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.4);
}
.tarjeta-boleto::before, .tarjeta-boleto::after {
  content: '';
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--asfalto-950);
}
.tarjeta-boleto::before { left: -12px; }
.tarjeta-boleto::after { right: -12px; }

.form-busqueda {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}
@media (max-width: 720px) {
  .form-busqueda { grid-template-columns: 1fr; }
}
.campo label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--asfalto-600);
  margin-bottom: 6px;
  font-family: var(--fuente-utilitaria);
}
.campo input, .campo select {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--asfalto-800);
  background: transparent;
  padding: 8px 2px;
  font-size: 1.05rem;
  font-family: var(--fuente-cuerpo);
  color: var(--asfalto-950);
}
.campo input:focus, .campo select:focus { outline: none; border-color: var(--ambar-500); }
.campo input:focus-visible, .campo select:focus-visible { outline: 2px solid var(--ambar-500); outline-offset: 2px; }
.boton-primary{
    background-color: var(--ambar-950) !important;
    color:  var(--asfalto-950) !important;
}
.bg-maestra{
    background-color: var(--asfalto-950) !important;
    color:  var(--asfalto-950) !important;
}
.boton {
  background: var(--ambar-500);
  color: var(--asfalto-800);
  border: none;
  border-radius: 4px;
  padding: 14px 28px;
  font-family: var(--fuente-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.boton:hover { background: var(--ambar-400); }
.boton:focus-visible { outline: 2px solid var(--asfalto-950); outline-offset: 2px; }
.boton:disabled { opacity: 0.5; cursor: not-allowed; }
.boton-secundario {
  background: transparent;
  border: 1px solid var(--asfalto-600);
  color: var(--papel-100);
}
.boton-secundario:hover { border-color: var(--ambar-500); color: var(--ambar-500); }

/* ---------- Franja de confianza ---------- */
.franja-datos {
  padding: 40px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.franja-datos .contenedor {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 720px) { .franja-datos .contenedor { grid-template-columns: repeat(2, 1fr); } }
.dato-numero { font-family: var(--fuente-display); font-size: 2rem; color: var(--ambar-500); }
.dato-etiqueta { font-size: 0.85rem; color: var(--asfalto-600); font-family: var(--fuente-utilitaria); }

/* ---------- Destinos ---------- */
.seccion { padding: 64px 0; }
.seccion h2 { font-size: 1.8rem; margin-bottom: 8px; }
.seccion .intro { color: var(--asfalto-600); max-width: 56ch; margin-bottom: 32px; }

.grid-destinos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.tarjeta-destino {
  background: var(--asfalto-950);
  color: var(--papel-100);
  border-radius: 4px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.tarjeta-destino::after {
  content: ' ';
  position: absolute;
  right: 16px; bottom: 12px;
  color: var(--ambar-500);
  font-size: 1.4rem;
}
.tarjeta-destino .ruta { font-family: var(--fuente-utilitaria); color: var(--texto-tenue); font-size: 0.8rem; }
.tarjeta-destino .nombre { font-family: var(--fuente-display); font-size: 1.3rem; margin-top: 4px; }
.tarjeta-destino .precio-desde { margin-top: 12px; font-size: 0.9rem; color: var(--ambar-500); }

/* ---------- Resultados de búsqueda ---------- */
.lista-viajes { display: flex; flex-direction: column; gap: 12px; }
.item-viaje {
  display: flex; align-items: center; justify-content: space-between;
  background: white; border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px; padding: 18px 20px;
}
.item-viaje .hora { font-family: var(--fuente-display); font-size: 1.4rem; }
.item-viaje .detalle { color: var(--asfalto-600); font-size: 0.9rem; }
.item-viaje .precio { font-family: var(--fuente-utilitaria); font-size: 1.2rem; color: var(--ambar-500); }

/* ---------- Asientos ---------- */
.pestanas-piso { display: none; gap: 8px; margin-bottom: 16px; }

/* ---------- Carrocería del bus (marco decorativo de la grilla) ---------- */
.carroceria-bus {
  position: relative;
  border: 6px solid var(--asfalto-950);
  border-radius: 28px 28px 14px 14px;
  padding: 30px 20px 18px;
  margin: 20px 0 32px;
  background: var(--papel-100);
  max-width: fit-content;
}
/* Parabrisas panorámico: franja curva arriba, como el frente del bus */
.carroceria-bus::before {
  content: '';
  position: absolute;
  top: -6px; left: 14%; right: 14%;
  height: 16px;
  background: linear-gradient(180deg, #d7ecff, #f3faff);
  border: 3px solid var(--asfalto-950);
  border-bottom: none;
  border-radius: 40px 40px 0 0;
}
/* Espejos retrovisores, uno a cada lado */
.espejo {
  position: absolute;
  top: 14px;
  width: 16px; height: 28px;
  background: var(--asfalto-950);
  border-radius: 6px;
  z-index: 1;
}
.espejo-izq { left: -11px; }
.espejo-der { right: -11px; }
.pestana-piso {
  padding: 8px 20px; border: 2px solid var(--asfalto-800); border-radius: 4px;
  background: white; font-family: var(--fuente-display); font-weight: 700; cursor: pointer;
}
.pestana-piso.activa { background: var(--asfalto-950); color: var(--papel-100); }

.grid-asientos {
  display: flex; flex-direction: column; gap: 10px;
  max-width: 100%; overflow-x: auto; margin: 24px 0; padding-bottom: 4px;
}
.fila-bus { display: flex; gap: 10px; }
.asiento {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 6px; border: 2px solid var(--asfalto-800);
  background: white; font-family: var(--fuente-utilitaria); cursor: pointer;
}
.asiento.hueco {
  border-style: dashed; border-color: #d1d5db; color: #9ca3af;
  display: flex; align-items: center; justify-content: center; cursor: default; font-size: 0.8rem;
}
.asiento[disabled] { background: #e5e1d6; color: var(--texto-tenue); border-color: #d8d4c8; cursor: not-allowed; }
.asiento.elegido { background: var(--ambar-500); border-color: var(--ambar-500); color: var(--asfalto-950); }

/* ---------- Pie ---------- */
.pie { background: var(--asfalto-950); color: var(--texto-tenue); padding: 40px 0; font-size: 0.9rem; }
.pie .contenedor { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.pie .marca-dev { color: inherit; font-weight: 600; text-decoration: none; border-bottom: 1px dotted currentColor; }
.pie .marca-dev:hover { opacity: 0.8; }

.uppercase{
     text-transform: uppercase;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* =====================================================================
   REDISEÑO 2026-10 — portada con foto, buscador por ciudad, ventajas,
   destinos, preguntas frecuentes, agencias y Libro de Reclamaciones.
   Usa los mismos colores configurables (--ambar-500 = azul marca,
   --asfalto-950 = azul, --asfalto-800 = turquesa).
   ===================================================================== */
.contenedor-angosto { max-width: 820px; }
.titulo-centrado { text-align: center; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 32px; }
.titulo-centrado .acento { color: var(--asfalto-950); }
.intro-centrada { text-align: center; color: #4b5563; margin: -16px auto 28px; max-width: 60ch; }
.intro-centrada a { color: var(--asfalto-950); font-weight: 600; }
.seccion-alterna { background: #fff; }

/* ---------- Cabecera blanca con logo ---------- */
.cabecera { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(2, 9, 95, 0.08); }
.cabecera-fila { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.cabecera-logo img { display: block; height: 46px; width: auto; }
.cabecera-nav { display: flex; align-items: center; gap: 22px; }
.cabecera-nav a { text-decoration: none; color: var(--ambar-500); font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.cabecera-nav a:hover { color: var(--asfalto-950); }
.cabecera-nav .cabecera-libro { border: 2px solid var(--ambar-500); border-radius: 6px; padding: 6px 12px; }
.cabecera-menu-boton { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.cabecera-menu-boton span { display: block; width: 24px; height: 3px; margin: 4px 0; background: var(--ambar-500); border-radius: 2px; }
@media (max-width: 960px) {
  .cabecera-menu-boton { display: block; }
  .cabecera-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff;
                  flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
                  box-shadow: 0 12px 24px rgba(2, 9, 95, 0.12); }
  .cabecera-nav.abierto { display: flex; }
  .cabecera-nav a { padding: 12px 4px; border-bottom: 1px solid #eef0f6; }
  .cabecera-nav .cabecera-libro { margin-top: 10px; text-align: center; border-bottom: 2px solid var(--ambar-500); }
}

/* ---------- Portada ---------- */
.portada { position: relative; min-height: 480px; display: flex; align-items: flex-end; color: #fff; overflow: hidden;
  background: var(--ambar-500) url("/web/img/portada.jpg") center / cover no-repeat; }
.portada-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portada-velo { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2, 9, 95, 0) 35%, rgba(2, 9, 95, 0.8) 100%); }
.portada-texto { position: relative; padding-bottom: 92px; text-align: right; }
.portada h1 { margin: 0; line-height: 0; }
.portada-banner { width: min(560px, 90%); height: auto; filter: drop-shadow(0 3px 10px rgba(0,0,0,.45)); }
.portada-sub { font-weight: 600; font-size: 1.05rem; margin: 6px 0 0; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
@media (max-width: 720px) {
  .portada { min-height: 320px; }
  .portada-texto { text-align: left; padding-bottom: 76px; }
}

/* ---------- Flota (foto del bus + datos) ---------- */
.flota { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; margin-top: 48px; }
.flota img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 14px 30px -12px rgba(2, 9, 95, 0.45); }
.flota h3 { font-size: 1.5rem; color: var(--ambar-500); margin-bottom: 10px; }
.flota p { color: #4b5563; margin: 0 0 10px; }
@media (max-width: 820px) { .flota { grid-template-columns: 1fr; } }

/* ---------- Buscador ---------- */
.buscador { position: relative; z-index: 2; margin-top: -56px; background: #fff; border-radius: 14px;
  box-shadow: 0 18px 40px -12px rgba(2, 9, 95, 0.35); padding: 20px;
  display: grid; grid-template-columns: 2fr 1fr auto; gap: 16px; align-items: end; }
.buscador-ruta { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.campo-buscador label { display: block; font-size: 0.8rem; font-weight: 600; color: #4b5563; margin-bottom: 6px; }
.campo-buscador select, .campo-buscador input {
  width: 100%; height: 48px; border: 1px solid #d5d9e4; border-radius: 10px; background: #f7f8fb;
  padding: 0 12px; font: inherit; font-size: 1rem; color: var(--ambar-500); }
.campo-buscador select:focus, .campo-buscador input:focus { outline: 2px solid var(--asfalto-950); border-color: transparent; }
.boton-invertir { width: 44px; height: 44px; margin-bottom: 2px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--asfalto-950); color: #fff; font-size: 1.2rem; font-weight: 700; }
.boton-invertir:hover { background: var(--ambar-500); }
.boton-buscar { height: 48px; padding: 0 36px; background: var(--asfalto-950); color: #fff; border-radius: 10px; }
.boton-buscar:hover { background: var(--ambar-500); color: #fff; }
@media (max-width: 820px) {
  .buscador { grid-template-columns: 1fr; margin-top: -40px; }
  .buscador-ruta { grid-template-columns: 1fr; }
  .boton-invertir { justify-self: end; margin: -8px 0; }
  .boton-buscar { width: 100%; }
}

/* ---------- Resultados ---------- */
.resultados { margin: 40px 0 8px; scroll-margin-top: 90px; }
.resultados h2 { font-size: 1.4rem; margin-bottom: 16px; color: var(--ambar-500); }
.lista-viajes { display: flex; flex-direction: column; gap: 14px; }
.sin-viajes { background: #fff; border-radius: 12px; padding: 24px; text-align: center; color: #4b5563; }
.viaje { display: grid; grid-template-columns: 130px 1fr 190px; gap: 20px; align-items: center;
  background: #fff; border-radius: 14px; padding: 18px 22px; border-left: 6px solid var(--asfalto-950);
  box-shadow: 0 6px 18px -8px rgba(2, 9, 95, 0.25); }
.viaje-hora-valor { display: block; font-family: var(--fuente-display); font-size: 1.6rem; color: var(--ambar-500); }
.viaje-etiqueta { font-size: 0.75rem; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; }
.viaje-ruta { font-weight: 700; color: var(--ambar-500); }
.viaje-extra { font-size: 0.85rem; color: #6b7280; margin-bottom: 8px; }
.viaje-elegir { display: flex; flex-wrap: wrap; gap: 12px; }
.viaje-elegir label { font-size: 0.75rem; color: #4b5563; font-weight: 600; display: flex; flex-direction: column; gap: 4px; flex: 1 1 200px; }
.viaje-elegir select { height: 40px; border: 1px solid #d5d9e4; border-radius: 8px; padding: 0 8px; font: inherit; font-size: 0.9rem; background: #f7f8fb; }
.viaje-compra { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.viaje-precio { font-family: var(--fuente-display); font-size: 1.6rem; color: var(--asfalto-950); }
.viaje-compra .boton { background: var(--asfalto-950); color: #fff; border-radius: 10px; padding: 12px 20px; }
.viaje-compra .boton:hover { background: var(--ambar-500); }
@media (max-width: 760px) {
  .viaje { grid-template-columns: 1fr; gap: 10px; }
  .viaje-compra { align-items: stretch; text-align: left; }
}

/* ---------- Ventajas ---------- */
.ventajas { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.ventaja { text-align: center; padding: 8px; }
.ventaja-icono { width: 76px; height: 76px; margin: 0 auto 12px; border-radius: 50%;
  background: #e6eef9; display: grid; place-items: center; }
.ventaja-icono svg { width: 38px; height: 38px; fill: var(--asfalto-950); }
.ventaja-nombre { font-weight: 700; color: var(--ambar-500); }
.ventaja-texto { font-size: 0.85rem; color: #6b7280; margin-top: 4px; }
@media (max-width: 960px) { .ventajas { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .ventajas { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Destinos ---------- */
.destinos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.destino { position: relative; min-height: 170px; border: 0; border-radius: 14px; cursor: pointer; color: #fff; text-align: left;
  padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; font: inherit;
  transition: transform .15s ease, box-shadow .15s ease; }
.destino:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -10px rgba(2, 9, 95, 0.5); }
.destino::before { content: ""; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 50%;
  border: 18px solid rgba(255,255,255,.12); }
.destino-0 { background: linear-gradient(135deg, var(--ambar-500), var(--asfalto-950)); }
.destino-1 { background: linear-gradient(135deg, var(--asfalto-950), var(--asfalto-800)); }
.destino-2 { background: linear-gradient(135deg, #0b3d91, var(--asfalto-950)); }
.destino-3 { background: linear-gradient(135deg, var(--asfalto-800), var(--ambar-500)); }
.destino-depto { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.destino-nombre { font-family: var(--fuente-display); font-size: 1.7rem; font-weight: 700; }
.destino-agencias { font-size: 0.85rem; opacity: .9; }

/* ---------- Preguntas frecuentes ---------- */
.preguntas details { background: #fff; border-radius: 12px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(2, 9, 95, 0.06); }
.preguntas summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 600; color: var(--ambar-500); list-style: none; position: relative; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--asfalto-950); }
.preguntas details[open] summary::after { content: "−"; }
.preguntas details p { margin: 0; padding: 0 18px 16px; color: #374151; }

/* ---------- Agencias ---------- */
.agencias-ciudades { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.agencias-ciudad h3 { color: var(--asfalto-950); font-size: 1.15rem; border-bottom: 2px solid var(--asfalto-950); padding-bottom: 6px; margin-bottom: 10px; }
.agencia { padding: 8px 0; border-bottom: 1px solid #eef0f6; }
.agencia-nombre { font-weight: 700; color: var(--ambar-500); font-size: 0.95rem; }
.agencia-dato { font-size: 0.85rem; color: #4b5563; }
.agencia-dato a { color: var(--asfalto-950); text-decoration: none; font-weight: 600; }

/* ---------- Pie nuevo ---------- */
.pie { background: var(--ambar-500); color: rgba(255,255,255,.85); }
.pie .contenedor.pie-columnas { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 24px; align-items: start; }
.pie-columnas a { display: block; color: #fff; text-decoration: none; margin: 4px 0; }
.pie-columnas a:hover { text-decoration: underline; }
.pie-titulo { font-family: var(--fuente-display); font-weight: 700; color: #fff; margin-bottom: 6px; }
.pie a.pie-libro { display: flex; align-items: center; gap: 10px; border: 2px solid #fff; border-radius: 10px; padding: 10px 14px;
  font-weight: 700; line-height: 1.15; }
.pie .contenedor.pie-legal { border-top: 1px solid rgba(255,255,255,.2); margin-top: 24px; padding-top: 16px; font-size: 0.82rem; }
@media (max-width: 720px) { .pie .contenedor.pie-columnas { grid-template-columns: 1fr; } }

/* ---------- Libro de Reclamaciones ---------- */
.hoja { background: #fff; border-radius: 14px; padding: 28px; box-shadow: 0 6px 18px -8px rgba(2, 9, 95, 0.25); }
.hoja h2 { color: var(--ambar-500); }
.hoja fieldset { border: 1px solid #e3e6ef; border-radius: 10px; padding: 16px 18px; margin: 0 0 18px; }
.hoja legend { font-weight: 700; color: var(--asfalto-950); padding: 0 6px; }
.hoja-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hoja-grid .ancho { grid-column: 1 / -1; }
.hoja label { display: block; font-size: 0.82rem; font-weight: 600; color: #4b5563; margin-bottom: 4px; }
.hoja input, .hoja select, .hoja textarea { width: 100%; border: 1px solid #d5d9e4; border-radius: 8px; padding: 10px; font: inherit; background: #f7f8fb; }
.hoja textarea { min-height: 110px; resize: vertical; }
.hoja .opciones { display: flex; gap: 18px; flex-wrap: wrap; }
.hoja .opciones label { display: flex; align-items: center; gap: 6px; font-weight: 500; color: #111; }
.hoja .opciones input { width: auto; }
.hoja .nota { font-size: 0.82rem; color: #6b7280; }
.hoja .error { background: #fde8e8; color: #9b1c1c; border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; }
.trampa { position: absolute; left: -9999px; }
@media (max-width: 640px) { .hoja-grid { grid-template-columns: 1fr; } .hoja { padding: 18px; } }
/* ---------- Compra de varios asientos ---------- */
.resumen-viaje { background: #fff; border-left: 6px solid var(--asfalto-950); border-radius: 12px; padding: 14px 18px;
  margin-bottom: 24px; color: var(--ambar-500); box-shadow: 0 4px 14px -8px rgba(2, 9, 95, 0.3); }
.resumen-viaje:empty { display: none; }
.compra-columnas { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .compra-columnas { grid-template-columns: 1fr; } }
.leyenda-asientos { display: flex; gap: 16px; font-size: 0.85rem; color: #4b5563; }
.leyenda-asientos .muestra { display: inline-block; width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--asfalto-800);
  background: #fff; vertical-align: -3px; margin-right: 4px; }
.leyenda-asientos .muestra.elegido { background: var(--ambar-500); border-color: var(--ambar-500); }
.leyenda-asientos .muestra.ocupado { background: #e5e1d6; border-color: #d8d4c8; }
.asiento.elegido { color: #fff; }
.hoja h3 { color: var(--ambar-500); font-size: 1.15rem; margin-bottom: 8px; }
.pasajero { border: 1px solid #e3e6ef; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.pasajero-cab { display: flex; justify-content: space-between; color: var(--ambar-500); margin-bottom: 8px; }
.pasajero-precio { font-family: var(--fuente-display); color: var(--asfalto-950); }
.acepto { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 500 !important; margin: 14px 0 !important; color: #374151 !important; }
.acepto input { width: auto !important; margin-top: 3px; flex: none; }
.acepto span { flex: 1; line-height: 1.5; }
.total-compra { text-align: right; font-size: 1.2rem; color: var(--ambar-500); margin-bottom: 12px; }
.total-compra b { font-family: var(--fuente-display); color: var(--asfalto-950); }
.contador-pago { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 8px 12px; color: #1e3a8a; }
.contador-pago b { font-family: var(--fuente-utilitaria); }
.compra-asientos { width: 100%; border-collapse: collapse; margin: 12px 0; }
.compra-asientos th, .compra-asientos td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #eef0f6; font-size: 0.92rem; }

/* ---------- Compra: pasos, croquis por pisos, panel y modal ---------- */
.pasos-compra { background: #eef1f7; border-bottom: 1px solid #e1e5ee; }
.pasos-fila { display: flex; justify-content: center; gap: 48px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.paso { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #6b7280; }
.paso span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #9ca3af; display: grid; place-items: center; font-size: 0.85rem; }
.paso.activo { color: var(--ambar-500); }
.paso.activo span { background: var(--ambar-500); border-color: var(--ambar-500); color: #fff; }
.paso.hecho { color: var(--asfalto-950); }
.paso.hecho span { background: var(--asfalto-950); border-color: var(--asfalto-950); color: #fff; }
@media (max-width: 640px) { .pasos-fila { gap: 14px; font-size: 0.82rem; } }

.seccion-compra { padding-top: 32px; }
.compra-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
@media (max-width: 980px) { .compra-layout { grid-template-columns: 1fr; } }

.tarjeta-viaje { border: 1px solid #cfd5e1; border-radius: 12px; background: #fff; padding: 14px 20px; text-align: center; margin-bottom: 18px; }
.tarjeta-viaje:empty { display: none; }
.tv-ruta { display: flex; justify-content: center; gap: 20px; font-size: 1.05rem; color: var(--ambar-500); flex-wrap: wrap; }
.tv-flecha { color: var(--asfalto-950); font-weight: 700; }
.tv-datos { display: flex; justify-content: center; gap: 24px; margin-top: 6px; color: #4b5563; }

.leyenda-web { display: flex; justify-content: center; gap: 24px; margin-bottom: 14px; color: #4b5563; flex-wrap: wrap; }
.leyenda-web .punto { display: inline-block; width: 16px; height: 16px; border-radius: 50%; vertical-align: -3px; margin-right: 4px; border: 1.5px solid #6b7280; background: #fff; }
.leyenda-web .punto.ocupado { background: #9aa3b2; border-color: #9aa3b2; }
.leyenda-web .punto.elegido { background: var(--asfalto-950); border-color: var(--ambar-500); }

.pisos-web { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.piso-web h3 { text-align: center; color: #4b5563; font-size: 1.05rem; margin-bottom: 10px; }
.bus-web { display: grid; grid-template-columns: repeat(var(--cols), 52px); grid-auto-rows: 52px; gap: 8px;
  border: 1.5px solid #9aa3b2; border-radius: 48px 48px 18px 18px; padding: 56px 24px 24px; background: #fff; }
.celda-web { width: 52px; height: 52px; }
.celda-web.vacia { display: grid; place-items: center; font-size: 0.7rem; color: #9ca3af; }
.asiento-web { padding: 0; border: 0; background: none; cursor: pointer; }
.asiento-web svg { width: 100%; height: 100%; display: block; }
.asiento-web .silla { fill: #fff; stroke: #4b5563; stroke-width: 2; }
.asiento-web text { font: 700 13px var(--fuente-cuerpo); fill: #374151; }
.asiento-web.libre:hover .silla { fill: #e6eef9; stroke: var(--asfalto-950); }
.asiento-web.ocupado { cursor: not-allowed; }
.asiento-web.ocupado .silla { fill: #9aa3b2; stroke: #7c8596; }
.asiento-web.ocupado text { fill: #eef1f5; }
.asiento-web.elegido .silla { fill: var(--asfalto-950); stroke: var(--ambar-500); }
.asiento-web.elegido text { fill: #fff; }
.asiento-web:focus-visible { outline: 2px solid var(--asfalto-950); outline-offset: 2px; border-radius: 8px; }
@media (max-width: 520px) {
  .bus-web { grid-template-columns: repeat(var(--cols), 42px); grid-auto-rows: 42px; gap: 6px; padding: 44px 14px 16px; }
  .celda-web { width: 42px; height: 42px; }
}

.panel-seleccion { position: sticky; top: 96px; }
.panel-seleccion-caja { background: #fff; border: 1px solid #cfd5e1; border-radius: 12px; padding: 28px 24px; text-align: center; }
.panel-asientos { color: #4b5563; font-size: 1.05rem; margin: 0 0 8px; }
.panel-asientos b { color: #111827; }
.panel-cantidad { color: #6b7280; margin: 0 0 8px; }
.panel-total { font-size: 1.15rem; margin: 0 0 18px; }
.panel-seleccion-caja .error { background: #fde8e8; color: #9b1c1c; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; text-align: left; }
.panel-seleccion-caja .nota { font-size: 0.8rem; color: #6b7280; margin: 12px 0 0; }
.boton-comprar { width: 100%; background: var(--asfalto-950); color: #fff; border-radius: 10px; font-size: 1.15rem; padding: 14px; }
.boton-comprar:hover { background: var(--ambar-500); color: #fff; }
.boton-comprar:disabled { background: #b8c0cf; }

.modal-fondo { position: fixed; inset: 0; z-index: 100; background: rgba(2, 9, 40, 0.55); display: flex; align-items: flex-start;
  justify-content: center; padding: 32px 16px; overflow-y: auto; }
.modal-fondo[hidden] { display: none; }
.modal-caja { background: #fff; border-radius: 16px; width: min(760px, 100%); padding: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.modal-cabecera { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.modal-cabecera h2 { color: var(--ambar-500); }
.modal-cerrar { border: 0; background: #eef1f7; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem; flex-shrink: 0; }
.modal-caja h3 { color: var(--ambar-500); font-size: 1.1rem; margin: 14px 0 8px; }
.modal-caja label { display: block; font-size: 0.82rem; font-weight: 600; color: #4b5563; margin-bottom: 4px; }
.modal-caja input, .modal-caja select { width: 100%; border: 1px solid #d5d9e4; border-radius: 8px; padding: 10px; font: inherit; background: #f7f8fb; }
.modal-caja .error { background: #fde8e8; color: #9b1c1c; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.contador-pago b.urgente { color: #b91c1c; }

@media print {
  .cabecera, .pie, .no-imprimir { display: none !important; }
  body { background: #fff; }
  .hoja { box-shadow: none; padding: 0; }
}

/* ---------- Páginas legales ---------- */
.legal h1 { color: var(--ambar-500); font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 4px; }
.legal h2 { color: var(--asfalto-950); font-size: 1.15rem; margin: 22px 0 8px; }
.legal p, .legal li { color: #374151; line-height: 1.6; }
.legal ul { padding-left: 20px; margin: 0; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--asfalto-950); font-weight: 600; }
