/* ==========================================================================
   Sotraurra S.A.S — hoja de estilos (mobile-first)
   ========================================================================== */

:root {
  --azul: #003CB3;         /* Azul Sotraurra (oficial) */
  --azul-osc: #002C85;
  --noche: #0A1E4A;        /* Azul noche: texto y pie */
  --amarillo: #FFD400;     /* Amarillo Urrá: aro del logo */
  --turquesa: #0B7F77;     /* Turquesa Sinú: olas de las busetas / WhatsApp */
  --turquesa-osc: #086660;
  --asfalto: #F3F5F9;      /* Fondo */
  --blanco: #FFFFFF;
  --linea: #D5DBE8;
  --texto: #1F2A44;
  --suave: #4A5673;
  --error: #B42318;
  --ok: #0B7F77;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --cuerpo: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r: 12px;
  --gutter: 16px;
  --sombra: 0 1px 2px rgba(10, 30, 74, .06), 0 8px 24px rgba(10, 30, 74, .08);
}

/* Tamaño de texto (panel de accesibilidad) */
html { font-size: 100%; }
html[data-texto="grande"] { font-size: 115%; }
html[data-texto="enorme"] { font-size: 130%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--asfalto); color: var(--texto); font: 400 1rem/1.6 var(--cuerpo); }
img, svg, video { max-width: 100%; display: block; }
a { color: var(--azul); text-underline-offset: .18em; }
a:hover { color: var(--azul-osc); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; color: var(--noche); line-height: 1.08; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.i { width: 1.25em; height: 1.25em; flex: none; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 2px; box-shadow: 0 0 0 6px var(--noche); border-radius: 4px; }
main:focus { outline: none; }
.contenedor { width: min(100% - 2 * var(--gutter), 1160px); margin-inline: auto; }
.saltar { position: absolute; left: 8px; top: -80px; z-index: 100; background: var(--amarillo); color: var(--noche); padding: 12px 16px; font-weight: 600; border-radius: 8px; }
.saltar:focus { top: 8px; }

/* Botones ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .6em 1.2em; border-radius: 10px; border: 2px solid transparent; font: 600 1rem/1.2 var(--cuerpo); text-decoration: none; cursor: pointer; text-align: center; transition: background-color .15s, color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-azul { background: var(--azul); color: #fff; }
.btn-azul:hover { background: var(--azul-osc); color: #fff; }
.btn-wa { background: var(--turquesa); color: #fff; }
.btn-wa:hover { background: var(--turquesa-osc); color: #fff; }
.btn-amarillo { background: var(--amarillo); color: var(--noche); }
.btn-amarillo:hover { background: #F2C800; color: var(--noche); }
.btn-linea { background: #fff; color: var(--azul); border-color: var(--azul); }
.btn-linea:hover { background: #EAF0FC; color: var(--azul-osc); }
.btn-claro { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-claro:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-bloque { width: 100%; }
.icono-btn { width: 48px; height: 48px; display: inline-grid; place-items: center; border: 0; background: transparent; color: inherit; border-radius: 10px; cursor: pointer; }
.icono-btn:hover { background: rgba(10, 30, 74, .08); }

/* Barra superior --------------------------------------------------------- */
.barra { position: sticky; top: 0; z-index: 40; background: var(--azul); color: #fff; border-bottom: 4px solid var(--amarillo); }
.barra-in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.marca { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; margin-right: auto; }
.marca:hover { color: #fff; }
.marca picture, .marca img { width: 44px; height: 44px; flex: none; }
.marca-txt b { display: block; font: 700 1.5rem/1 var(--display); letter-spacing: .01em; }
.marca-txt small { display: block; font-size: .72rem; line-height: 1.25; opacity: .9; }
@media (max-width: 419px) { .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .menu-btn { padding: 0 11px; } }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 10px; background: transparent; color: #fff; font: 600 .95rem var(--cuerpo); cursor: pointer; }
.menu { display: none; }
.js .menu.abierto { display: block; position: absolute; inset: 100% 0 auto 0; background: var(--noche); max-height: calc(100vh - 68px); overflow: auto; padding: 8px var(--gutter) 20px; box-shadow: 0 16px 32px rgba(0, 0, 0, .25); }
html:not(.js) .menu { display: block; width: 100%; }
html:not(.js) .barra-in { flex-wrap: wrap; }
.menu-lista, .sub { list-style: none; margin: 0; padding: 0; }
.menu a, .sub-btn { display: flex; align-items: center; width: 100%; min-height: 52px; color: #fff; text-decoration: none; font: 500 1.05rem var(--cuerpo); border: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); background: none; padding: 0; text-align: left; cursor: pointer; }
.menu a[aria-current="page"] { color: var(--amarillo); }
.sub-btn { color: #AFC0E6; font-size: .85rem; min-height: 40px; border-bottom: 0; margin-top: 8px; cursor: default; pointer-events: none; }
.sub a { padding-left: 14px; }
.menu-cta { margin-top: 16px; }
.menu .menu-cta a { justify-content: center; border: 0; min-height: 52px; color: var(--noche); background: var(--amarillo); }
.menu .menu-cta a:hover, .menu .menu-cta a[aria-current="page"] { background: #F2C800; color: var(--noche); box-shadow: none; }

/* Carrusel del inicio ------------------------------------------------------ */
.hero { position: relative; background: var(--noche); color: #fff; overflow: hidden; }
.hero-slides { position: relative; height: min(78svh, 700px); min-height: 520px; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.slide.activa { opacity: 1; visibility: visible; transition: opacity .9s ease; z-index: 1; }
.slide picture, .slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide img { object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 30, 74, .15) 0%, rgba(10, 30, 74, .35) 40%, rgba(10, 30, 74, .92) 100%); }
.slide-texto { position: absolute; z-index: 2; left: 0; right: 0; bottom: 88px; }
.slide-titulo { font: 700 2.6rem/.98 var(--display); color: #fff; margin: 0 0 .35em; max-width: 14ch; text-wrap: balance; }
.slide-bajada { font-size: 1.1rem; line-height: 1.45; margin: 0 0 1.2em; max-width: 34ch; color: #E8EDF8; }
.slide-acciones { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-ui { position: absolute; z-index: 3; left: 0; right: 0; bottom: 18px; }
.hero-ui .contenedor { display: flex; align-items: center; gap: 6px; }
.hero-ui button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: #fff; cursor: pointer; border-radius: 50%; }
.hero-ui button:hover { background: rgba(255, 255, 255, .14); }
.hero-ui .puntos { display: flex; gap: 0; margin-left: 6px; }
.hero-ui .punto { width: 36px; }
.hero-ui .punto::before { content: ""; display: block; width: 24px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .45); overflow: hidden; }
.hero-ui .punto[aria-current="true"]::before { background: linear-gradient(90deg, var(--amarillo) 0 var(--p, 100%), rgba(255, 255, 255, .45) var(--p, 100%)); }
.hero-ui .sep { flex: 1; }

/* Movimiento del carrusel (solo si el usuario no pidió menos movimiento) */
@media (prefers-reduced-motion: no-preference) {
  html:not(.a11y-quieto) .slide.activa img { animation: acercar 9s ease-out both; }
  html:not(.a11y-quieto) .slide.activa .slide-texto > * { animation: subir .8s cubic-bezier(.2, .7, .2, 1) both; }
  html:not(.a11y-quieto) .slide.activa .slide-texto > :nth-child(2) { animation-delay: .12s; }
  html:not(.a11y-quieto) .slide.activa .slide-texto > :nth-child(3) { animation-delay: .24s; }
}
@keyframes acercar { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes subir { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Secciones ---------------------------------------------------------------- */
.seccion { padding: 48px 0; }
.seccion-blanca { background: #fff; }
.intro { margin-bottom: 28px; }
.intro p { color: var(--suave); max-width: 56ch; margin: 0; }
.intro h1, .intro h2 { max-width: 20ch; }

/* Encabezado de páginas interiores */
.cabecera { background: var(--azul); color: #fff; padding: 36px 0 40px; position: relative; overflow: hidden; }
.cabecera .contenedor { position: relative; z-index: 1; }
.cabecera::after { content: ""; position: absolute; right: -90px; bottom: -104px; width: 300px; height: 120px; border-top: 10px solid var(--amarillo); border-radius: 50% 50% 0 0; transform: rotate(-8deg); opacity: .9; pointer-events: none; }
.cabecera h1 { color: #fff; margin: 0 0 .25em; max-width: 22ch; }
.cabecera p { margin: 0; color: #DCE5F8; max-width: 60ch; }

/* Tiquetes de ruta --------------------------------------------------------- */
.tiquetes { display: grid; gap: 22px; }
.tiquete { position: relative; background: #fff; border-radius: 16px; box-shadow: var(--sombra); }
.tq-cabeza { padding: 22px 22px 20px; }
.tq-tipo { font-size: .9rem; color: var(--suave); margin: 0 0 12px; }
.recorrido { margin: 0; display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto 30px auto; column-gap: 14px; align-items: center; }
.recorrido .ciudad { grid-column: 2; font: 700 2rem/1 var(--display); color: var(--azul); }
.recorrido .ciudad-a { grid-row: 1; }
.recorrido .ciudad-b { grid-row: 3; }
.via { grid-column: 1; grid-row: 1 / 4; justify-self: center; position: relative; width: 4px; height: calc(100% - 22px); border-radius: 2px; background: var(--noche); }
.via::before, .via::after { content: ""; position: absolute; left: 50%; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--azul); transform: translateX(-50%); }
.via::before { top: -11px; }
.via::after { bottom: -11px; }
.via > i, .via { background-image: repeating-linear-gradient(180deg, var(--amarillo) 0 8px, transparent 8px 15px); background-color: var(--noche); background-size: 100% 0%; background-repeat: no-repeat; }
.visto .via, html:not(.js) .via { background-size: 100% 100%; }
@media (prefers-reduced-motion: no-preference) { html:not(.a11y-quieto) .via { transition: background-size 1.1s cubic-bezier(.3, .6, .2, 1) .15s; } }
.tq-talon { position: relative; border-top: 2px dashed var(--linea); padding: 18px 22px 22px; display: grid; gap: 16px; }
.tq-talon::before, .tq-talon::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--asfalto); }
.tq-talon::before { left: -12px; }
.tq-talon::after { right: -12px; }
.seccion-blanca .tq-talon::before, .seccion-blanca .tq-talon::after { background: #fff; }
.seccion-blanca .tiquete { background: var(--asfalto); box-shadow: none; }
.seccion-blanca .tiquete .tq-talon::before, .seccion-blanca .tiquete .tq-talon::after { background: #fff; }
.salida p { margin: 0 0 8px; font-weight: 600; color: var(--noche); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.salida-num { font-weight: 500; color: var(--suave); }
.acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.acciones .btn { padding-inline: .6em; }

.aviso { margin-top: 24px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 18px 20px; background: var(--noche); color: #E3E9F6; border-radius: var(--r); }
.aviso .i { width: 32px; height: 32px; color: var(--amarillo); }
.aviso strong { display: block; font: 700 1.3rem/1.15 var(--display); color: var(--amarillo); margin-bottom: 2px; }
.aviso p { margin: 0; }

/* Servicios ------------------------------------------------------------------ */
.servicios { display: grid; gap: 32px; list-style: none; margin: 0; padding: 0; }
.servicio figure { margin: 0 0 16px; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2; background: var(--linea); }
.servicio img { width: 100%; height: 100%; object-fit: cover; }
.servicio h3 { display: flex; align-items: center; gap: 10px; }
.servicio h3 .i { color: var(--azul); width: 28px; height: 28px; }
.servicio p { color: var(--suave); }

/* Banda de transporte especial */
.banda { background: var(--noche); color: #E3E9F6; padding: 44px 0; position: relative; overflow: hidden; }
.banda h2 { color: #fff; }
.banda p { max-width: 52ch; }
.banda .acciones-banda { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.banda::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -70px; height: 140px; border-radius: 50%; border-top: 6px solid var(--turquesa); opacity: .55; }
.banda::after { content: ""; position: absolute; left: -5%; right: -15%; bottom: -95px; height: 150px; border-radius: 50%; border-top: 6px solid var(--azul); opacity: .8; }
.banda .contenedor { position: relative; z-index: 1; }

/* Enlaces de atención */
.enlaces { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.enlace { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; min-height: 72px; padding: 14px 16px; background: #fff; border: 1px solid var(--linea); border-radius: var(--r); color: var(--texto); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.enlace:hover { border-color: var(--azul); box-shadow: var(--sombra); color: var(--texto); }
.enlace > .i:first-child { width: 44px; height: 44px; padding: 10px; border-radius: 10px; background: #EAF0FC; color: var(--azul); }
.enlace b { display: block; font-weight: 600; color: var(--noche); }
.enlace small { display: block; color: var(--suave); font-size: .9rem; line-height: 1.35; }
.enlace > .i:last-child { color: var(--azul); }

/* Terminal / mapa */
.terminal { background: #fff; border: 1px solid var(--linea); border-radius: var(--r); overflow: hidden; }
.mapa { position: relative; aspect-ratio: 4 / 3; background: #DDE6F7 linear-gradient(135deg, #E6EDFA, #C9D6F0); display: grid; place-items: center; }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapa .btn { position: relative; z-index: 1; }
.mapa::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(0, 60, 179, .07) 46px 48px), repeating-linear-gradient(0deg, transparent 0 46px, rgba(0, 60, 179, .07) 46px 48px); }
.mapa.cargado::before { display: none; }
.terminal-txt { padding: 18px 20px 20px; }
.terminal-txt h3 { margin-bottom: .25em; }

/* Contenido general ------------------------------------------------------ */
.prosa { max-width: 68ch; }
.prosa p { color: var(--texto); }
.dos-col { display: grid; gap: 32px; }
.tarjeta { background: #fff; border-radius: var(--r); padding: 22px; border: 1px solid var(--linea); }
.valores { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
.valores li { background: #fff; border-radius: var(--r); padding: 20px; border-left: 5px solid var(--amarillo); }
.valores h3 { margin-bottom: .2em; }
.valores p { margin: 0; color: var(--suave); }
.figura { margin: 0; border-radius: var(--r); overflow: hidden; }
.figura img { width: 100%; height: auto; }
.figura figcaption { font-size: .9rem; color: var(--suave); padding-top: 8px; }

/* Formularios ------------------------------------------------------------- */
.form-caja { background: #fff; border-radius: 16px; padding: 22px; box-shadow: var(--sombra); max-width: 760px; }
.form-caja.angosta { max-width: 520px; }
.campos { display: grid; gap: 18px; }
.campo label, .campo .etiqueta { display: block; font-weight: 600; color: var(--noche); margin-bottom: 6px; }
.campo .opcional { font-weight: 400; color: var(--suave); }
.campo .ayuda { display: block; font-size: .9rem; color: var(--suave); margin-top: 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="time"], input[type="password"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: 400 1rem/1.4 var(--cuerpo); color: var(--texto);
  background: #fff; border: 1.5px solid #9AA7C4; border-radius: 10px; appearance: none;
}
textarea { min-height: 140px; resize: vertical; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003CB3' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 42px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--azul); }
input[type="file"] { width: 100%; padding: 12px; border: 1.5px dashed #9AA7C4; border-radius: 10px; background: var(--asfalto); font: inherit; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--azul); }
.check label { font-weight: 400; margin: 0; }
.form-nota { font-size: .85rem; color: var(--suave); margin: 14px 0 0; }
.form-nota a { color: var(--suave); }
.oculto-bot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.grecaptcha-badge { visibility: hidden !important; }
.alerta { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; border-left: 5px solid; }
.alerta-error { background: #FDECEA; border-color: var(--error); color: #7A1810; }
.alerta-ok { background: #E6F4F2; border-color: var(--ok); color: #064D48; }
.alerta p { margin: 0; }

/* Confirmaciones */
.confirmacion { text-align: center; max-width: 560px; margin-inline: auto; }
.confirmacion .sello { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--turquesa); color: #fff; display: grid; place-items: center; }
.confirmacion .sello .i { width: 36px; height: 36px; }
.radicado { display: inline-block; font: 700 2.2rem/1 var(--display); color: var(--azul); background: #EAF0FC; border: 2px dashed var(--azul); border-radius: 12px; padding: 14px 22px; margin: 6px 0 18px; letter-spacing: .04em; }
.confirmacion .botones { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* PQRSF: detalle y conversación */
.ficha { display: grid; gap: 4px 16px; grid-template-columns: max-content 1fr; margin: 0; }
.ficha dt { font-weight: 600; color: var(--noche); }
.ficha dd { margin: 0 0 8px; }
.hilo { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hilo li { padding: 14px 16px; border-radius: 12px; background: var(--asfalto); max-width: 90%; }
.hilo li.admin { background: #EAF0FC; margin-left: auto; border: 1px solid #C9D6F0; }
.hilo .quien { font-weight: 600; color: var(--noche); }
.hilo time { display: block; font-size: .85rem; color: var(--suave); margin-top: 4px; }
.respuesta-oficial { border-left: 5px solid var(--turquesa); background: #E6F4F2; padding: 14px 16px; border-radius: 8px; }

/* Políticas */
.politicas { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.politica { background: #fff; border: 1px solid var(--linea); border-radius: var(--r); padding: 18px 20px; display: grid; gap: 12px; scroll-margin-top: 96px; }
.politica:target { border-color: var(--azul); box-shadow: 0 0 0 3px #C9D6F0; }
.politica h2 { font-size: 1.35rem; margin: 0; display: flex; gap: 10px; align-items: center; }
.politica h2 .i { color: var(--azul); width: 26px; height: 26px; }
.politica p { margin: 0; color: var(--suave); }
.politica .botones { display: flex; flex-wrap: wrap; gap: 10px; }

/* Administración ------------------------------------------------------- */
.pestanas { display: flex; gap: 8px; margin-bottom: 18px; border-bottom: 2px solid var(--linea); }
.pestanas a { padding: 12px 16px; min-height: 48px; font-weight: 600; text-decoration: none; color: var(--suave); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.pestanas a[aria-current="page"] { color: var(--azul); border-color: var(--azul); }
.filtros { display: grid; gap: 12px; background: #fff; padding: 16px; border-radius: var(--r); border: 1px solid var(--linea); margin-bottom: 18px; }
.filtros .botones { display: flex; gap: 10px; align-items: end; }
.tabla-caja { overflow-x: auto; background: #fff; border-radius: var(--r); border: 1px solid var(--linea); }
.tabla { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 640px; }
.tabla th, .tabla td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--linea); vertical-align: top; }
.tabla th { background: var(--asfalto); color: var(--noche); font-weight: 600; white-space: nowrap; }
.tabla tr:last-child td { border-bottom: 0; }
.estado { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--asfalto); }
.estado-pendiente { background: #FFF4CC; color: #6B5300; }
.estado-efectiva { background: #E6F4F2; color: #064D48; }
.estado-cancelada { background: #FDECEA; color: #7A1810; }
.estado-finalizada { background: #EAF0FC; color: var(--azul-osc); }

/* Pie ------------------------------------------------------------------- */
.pie { background: var(--noche); color: #C9D3EA; padding: 44px 0 110px; margin-top: 0; font-size: .95rem; border-top: 6px solid var(--amarillo); }
.pie h2 { color: #fff; font-size: 1.35rem; }
.pie a { color: #fff; }
.pie-grid { display: grid; gap: 32px; }
.despachos { list-style: none; margin: 0; padding: 0; }
.despachos li { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.despachos a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; white-space: nowrap; }
.pie-dato { display: flex; gap: 10px; align-items: flex-start; }
.pie-dato .i { margin-top: 3px; color: var(--amarillo); }
.pie-enlaces { list-style: none; padding: 0; margin: 12px 0 0; }
.pie-enlaces a { display: inline-flex; min-height: 40px; align-items: center; }
.pie .vigilado { display: inline-flex; align-items: center; gap: 14px; background: #fff; color: var(--noche); padding: 12px 18px; border-radius: var(--r); text-decoration: none; font-size: .95rem; line-height: 1.2; }
.pie .vigilado:hover { color: var(--noche); }
.vigilado img { width: auto; height: 56px; }
.vigilado b { font: 700 1.3rem/1 var(--display); }
.pie-legal { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 32px; padding-top: 20px; font-size: .85rem; color: #AEB9D3; }
.pie-legal p { margin: 0 0 8px; }
.pie-legal a { color: #DCE3F2; }

/* Botones flotantes y hojas -------------------------------------------- */
.flotante-wa { position: fixed; z-index: 35; bottom: 16px; border: 0; cursor: pointer; box-shadow: 0 6px 20px rgba(10, 30, 74, .35); transition: opacity .25s, transform .25s; }
.flotante-wa[hidden] { display: none; }
.flotante-wa.escondido { opacity: 0; transform: translateY(24px); pointer-events: none; visibility: hidden; }
.flotante-wa { right: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 20px 0 16px; border-radius: 28px; background: var(--turquesa); color: #fff; font: 600 1rem var(--cuerpo); }
.flotante-wa .i { width: 26px; height: 26px; }
.flotante-wa:hover { background: var(--turquesa-osc); }
.a11y-btn { width: 48px; height: 48px; flex: none; border-radius: 50%; background: #fff; color: var(--azul); display: grid; place-items: center; border: 0; cursor: pointer; }
.a11y-btn .i { width: 28px; height: 28px; }
.a11y-btn[aria-expanded="true"] { background: var(--amarillo); color: var(--noche); }

.hoja { border: 0; padding: 0; border-radius: 18px 18px 0 0; width: 100%; max-width: 520px; margin: auto auto 0; background: #fff; color: var(--texto); }
.hoja::backdrop { background: rgba(10, 30, 74, .55); }
.hoja-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px 6px 20px; }
.hoja-cab h2 { font-size: 1.4rem; margin: 0; }
.hoja-lista { list-style: none; margin: 0; padding: 4px 12px 20px; }
.hoja-lista a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 8px 10px; border-radius: 12px; color: var(--noche); text-decoration: none; font-weight: 600; }
.hoja-lista a:hover { background: var(--asfalto); }
.hoja-lista .i { width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: var(--turquesa); color: #fff; }
.hoja-lista small { display: block; font-weight: 400; color: var(--suave); }

.panel-a11y { position: fixed; z-index: 45; right: 12px; top: 76px; width: min(340px, calc(100vw - 24px)); max-height: calc(100vh - 92px); overflow: auto; background: #fff; color: var(--texto); border-radius: 16px; box-shadow: 0 16px 48px rgba(10, 30, 74, .35); padding-bottom: 16px; }
.panel-a11y[hidden] { display: none; }
.a11y-texto { padding: 6px 20px 12px; }
.a11y-texto > span { display: block; font-weight: 600; margin-bottom: 8px; }
.a11y-seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--azul); border-radius: 10px; overflow: hidden; }
.a11y-seg button { min-height: 48px; border: 0; background: #fff; color: var(--azul); font: 700 1rem var(--cuerpo); cursor: pointer; }
.a11y-seg button + button { border-left: 2px solid var(--azul); }
.a11y-seg .t2 { font-size: 1.2rem; }
.a11y-seg .t3 { font-size: 1.45rem; }
.a11y-seg button[aria-pressed="true"] { background: var(--azul); color: #fff; }
.a11y-opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 20px; }
.a11y-opciones button { min-height: 56px; padding: 8px; border: 2px solid var(--linea); border-radius: 10px; background: #fff; color: var(--noche); font: 600 .9rem/1.2 var(--cuerpo); cursor: pointer; }
.a11y-opciones button[aria-pressed="true"] { border-color: var(--azul); background: #EAF0FC; color: var(--azul-osc); }
.a11y-opciones button[aria-pressed="true"]::before { content: "✓ "; }
.a11y-reset { margin: 12px 20px 0; width: calc(100% - 40px); }

/* Modos de accesibilidad ---------------------------------------------- */
html.a11y-enlaces a:not(.btn) { text-decoration: underline 2px !important; background: #FFF4A8 !important; color: #001A5C !important; }
html.a11y-enlaces a.btn { outline: 3px dashed var(--amarillo); outline-offset: 2px; }
html.a11y-dislexia body, html.a11y-dislexia button, html.a11y-dislexia input, html.a11y-dislexia select, html.a11y-dislexia textarea { font-family: "OpenDyslexic", "Comic Sans MS", var(--cuerpo) !important; }
html.a11y-espaciado body { line-height: 1.9 !important; letter-spacing: .12em !important; word-spacing: .16em !important; }
html.a11y-espaciado p { margin-bottom: 2em !important; }
html.a11y-quieto *, html.a11y-quieto *::before, html.a11y-quieto *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 10-7 1.5L9.5 21z' fill='%23000' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 4 2, auto !important; }
html.a11y-contraste {
  --asfalto: #000; --blanco: #000; --linea: #FFF; --texto: #FFF; --suave: #FFF; --noche: #000;
  --azul: #FFE600; --azul-osc: #FFE600; --turquesa: #000; --turquesa-osc: #000;
}
html.a11y-contraste body, html.a11y-contraste .tiquete, html.a11y-contraste .tarjeta, html.a11y-contraste .form-caja, html.a11y-contraste .enlace, html.a11y-contraste .terminal, html.a11y-contraste .politica, html.a11y-contraste .valores li, html.a11y-contraste .panel-a11y, html.a11y-contraste .hoja, html.a11y-contraste .filtros, html.a11y-contraste .tabla-caja, html.a11y-contraste .tabla th, html.a11y-contraste input, html.a11y-contraste select, html.a11y-contraste textarea, html.a11y-contraste .barra, html.a11y-contraste .cabecera, html.a11y-contraste .hilo li, html.a11y-contraste .respuesta-oficial, html.a11y-contraste .radicado, html.a11y-contraste .a11y-seg button, html.a11y-contraste .a11y-opciones button { background: #000 !important; color: #FFF !important; border-color: #FFF !important; }
html.a11y-contraste h1, html.a11y-contraste h2, html.a11y-contraste h3, html.a11y-contraste .ciudad, html.a11y-contraste a { color: #FFE600 !important; }
html.a11y-contraste .btn, html.a11y-contraste .flotante-wa, html.a11y-contraste .a11y-btn { background: #000 !important; color: #FFE600 !important; border: 2px solid #FFE600 !important; }
html.a11y-contraste .slide::after { background: rgba(0, 0, 0, .8); }
html.a11y-contraste .a11y-seg button[aria-pressed="true"], html.a11y-contraste .a11y-opciones button[aria-pressed="true"] { background: #FFE600 !important; color: #000 !important; }
html.a11y-contraste img:not(.vigilado img) { filter: grayscale(1) contrast(1.1); }

/* Escritorio -------------------------------------------------------------- */
@media (min-width: 700px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  .form-caja { padding: 32px; }
  .campos-2 { grid-template-columns: 1fr 1fr; }
  .campos-2 .ancho { grid-column: 1 / -1; }
  .servicios { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .valores { grid-template-columns: repeat(3, 1fr); }
  .filtros { grid-template-columns: repeat(4, 1fr); align-items: end; }
  .politicas { grid-template-columns: 1fr 1fr; }
  .hoja { border-radius: 18px; margin: auto; }
  .slide-texto { bottom: 110px; }
}

@media (min-width: 1000px) {
  .menu-btn { display: none; }
  .menu, .js .menu.abierto { display: block; position: static; background: none; padding: 0; box-shadow: none; max-height: none; overflow: visible; }
  .menu-lista { display: flex; align-items: center; gap: 2px; }
  .menu a, .sub-btn { white-space: nowrap; }
  html[data-texto] .marca-txt small { display: none; }
  html[data-texto="enorme"] .menu a, html[data-texto="enorme"] .sub-btn { padding: 0 8px; }
  .menu a, .sub-btn { min-height: 44px; border: 0; padding: 0 12px; font-size: .98rem; border-radius: 8px; width: auto; }
  .menu a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
  .menu a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--amarillo); border-radius: 0; }
  .sub-btn { color: #fff; font-size: .98rem; margin: 0; pointer-events: auto; cursor: pointer; }
  .sub-btn::after { content: ""; width: 8px; height: 8px; margin-left: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
  .sub-btn:hover { background: rgba(255, 255, 255, .1); }
  .sub-btn[data-activo] { box-shadow: inset 0 -3px 0 var(--amarillo); border-radius: 0; }
  .con-sub { position: relative; }
  .sub { display: none; position: absolute; top: calc(100% + 10px); left: 0; min-width: 240px; background: #fff; border-radius: 12px; padding: 8px; box-shadow: var(--sombra); }
  .sub.abierto { display: block; }
  .sub a { color: var(--noche); padding: 0 12px; min-height: 44px; }
  .sub a:hover { background: var(--asfalto); color: var(--azul); }
  .menu-cta { margin: 0 0 0 10px; }
  .menu .menu-cta a { min-height: 44px; padding: 0 16px; border-radius: 10px; box-shadow: none; }

  .hero-slides { height: 640px; }
  .slide-titulo { font-size: 4.4rem; }
  .slide-bajada { font-size: 1.25rem; }
  .slide::after { background: linear-gradient(90deg, rgba(10, 30, 74, .88) 0%, rgba(10, 30, 74, .55) 45%, rgba(10, 30, 74, .05) 80%), linear-gradient(180deg, transparent 60%, rgba(10, 30, 74, .6)); }
  .slide-texto { bottom: 50%; transform: translateY(50%); }
  .hero-ui { bottom: 24px; }

  .seccion { padding: 72px 0; }
  h1 { font-size: 3.5rem; }
  .intro-fila { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: end; }
  .intro-fila p { margin-bottom: 6px; }
  .tiquetes { grid-template-columns: 1fr 1fr; gap: 28px; }
  .recorrido { grid-template-columns: auto 1fr auto; grid-template-rows: auto; column-gap: 16px; }
  .recorrido .ciudad { font-size: 2.3rem; }
  .recorrido .ciudad-a { grid-column: 1; grid-row: 1; }
  .recorrido .ciudad-b { grid-column: 3; grid-row: 1; }
  .via { grid-column: 2; grid-row: 1; width: auto; height: 4px; justify-self: stretch; background-image: repeating-linear-gradient(90deg, var(--amarillo) 0 10px, transparent 10px 18px); background-size: 0% 100%; }
  .visto .via, html:not(.js) .via { background-size: 100% 100%; }
  .via::before, .via::after { top: 50%; left: auto; transform: translateY(-50%); }
  .via::before { left: -8px; }
  .via::after { right: -8px; bottom: auto; }
  .dos-col { grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
  .banda .contenedor { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
  .pie-grid { grid-template-columns: 1.2fr 1fr auto; gap: 48px; }
  .pie { padding-bottom: 44px; }
  .flotante-wa { bottom: 24px; right: 24px; }
  .panel-a11y { right: max(24px, calc((100vw - 1160px) / 2)); top: 80px; }
  .a11y-btn { margin-left: 8px; }
}

@media print {
  .barra, .pie, .flotante-wa, .hero, .panel-a11y { display: none !important; }
  body { background: #fff; }
}
