:root {
  --fondo: #0b0812;
  --cristal: rgba(19, 14, 30, .9);
  --cristal-2: rgba(22, 16, 35, .97);
  --borde: rgba(255, 255, 255, .09);
  --texto: #f3effc;
  --suave: #a79fbd;
  --acento: #b9a0ff;
  --acento-fuerte: #9b7bff;
  --sobre-acento: #1b1033;
  --naranja: #ff8a3d;
  --rojo: #ff3b4e;
  --azul: #6d95ff;
  --verde: #3ddc84;
  --radio: 18px;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Inter Tight", system-ui, sans-serif; /* una sola familia: menos que descargar */
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--fondo); color: var(--texto); font-family: var(--sans); overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
#mapa { position: fixed; inset: 0; }
.maplibregl-ctrl-attrib { display: none !important; } /* la atribución va en el pie, completa */
.maplibregl-canvas { outline: none; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--verde); }
@keyframes latido { 50% { opacity: .35; } }

.glass { background: var(--cristal); border: 1px solid var(--borde); }

/* ---------- Entrada ---------- */
.intro { position: fixed; inset: 0; z-index: 50; pointer-events: none; display: grid; place-items: center; background: #08050e; transition: opacity .8s ease; }
#tierra { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
.intro-txt { position: relative; text-shadow: 0 4px 30px rgba(0,0,0,.7); }
.intro.fuera { opacity: 0; }
.intro-txt { text-align: center; position: absolute !important; top: max(7vh, 40px); left: 0; right: 0; transition: opacity .4s ease, transform .4s ease; }
.intro.zoom .intro-txt { opacity: 0; transform: translateY(-12px); }
.intro h1 { font-size: clamp(36px, 6vw, 72px) !important; }
.intro h1 { margin: .25em 0 .2em; font-size: clamp(48px, 10vw, 128px); line-height: .86; font-weight: 800; letter-spacing: -.045em; }
.intro h1 em { font-style: normal; color: var(--acento); }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--suave); display: inline-flex; gap: 10px; align-items: center; }
.intro-sub { font-family: var(--mono); color: var(--suave); font-size: 13px; letter-spacing: .08em; }
.intro h1, .intro .kicker, .intro-sub { animation: sube .9s cubic-bezier(.2,.8,.2,1) both; }
.intro .kicker { animation-delay: .1s; } .intro h1 { animation-delay: .25s; } .intro-sub { animation-delay: .5s; }
@keyframes sube { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

/* Los mandos aparecen cuando acaba el vuelo */
.top, .accesos, .panel, .herr, .pie { transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
body.volando .top, body.volando .accesos, body.volando .banda, body.volando .panel, body.volando .herr, body.volando .pie { opacity: 0; pointer-events: none; }
body.volando .panel { transform: translateX(-24px); }

/* ---------- Cabecera ---------- */
.top { position: fixed; top: 16px; left: 16px; z-index: 10; display: flex; gap: 10px; align-items: center; }
.marca { display: flex; gap: 10px; align-items: center; text-decoration: none; padding: 10px 14px 10px 10px; border-radius: 999px; }
.marca, .vivo, .idioma, .acceso, .btn-sm, .btn-ico, .btn-ruta { background: var(--cristal); border: 1px solid var(--borde); }
.marca-ico { width: 26px; height: 26px; border-radius: 8px; background: url(assets/icono.svg) center/cover; }
.marca-txt { font-size: 15px; letter-spacing: -.01em; color: var(--suave); }
.marca-txt b { color: var(--texto); font-weight: 800; letter-spacing: .02em; }
.vivo { white-space: nowrap; display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 999px; font-family: var(--mono); font-size: 12px; color: var(--suave); }
.vivo.viejo .dot { background: var(--naranja); animation: none; }

.idiomas { display: flex; border-radius: 999px; padding: 3px; }
.idiomas button { border: 0; background: none; padding: 7px 10px; border-radius: 999px; font: 700 11.5px var(--mono); color: var(--suave); letter-spacing: .06em; }
.idiomas button[aria-pressed="true"] { background: rgba(255,255,255,.12); color: var(--texto); }

/* Estado de las tres salidas */
.accesos { position: fixed; top: 16px; right: 16px; z-index: 10; display: flex; gap: 8px; }
.acceso { display: flex; gap: 10px; align-items: center; border-radius: 14px; padding: 9px 14px 9px 12px; text-align: left; line-height: 1.15; transition: border-color .2s, transform .2s; }
.acceso:hover { transform: translateY(-2px); border-color: rgba(185,160,255,.4); }
.acceso i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 10px rgba(61,220,132,.7); }
.acceso b { display: block; font-size: 13px; font-weight: 700; white-space: nowrap; }
.acceso small { display: block; font: 500 11px var(--mono); color: var(--suave); white-space: nowrap; }
.acceso.aviso { border-color: rgba(255,138,61,.55); }
.acceso.aviso i { background: var(--naranja); box-shadow: 0 0 10px rgba(255,138,61,.8); }
.acceso.aviso small { color: var(--naranja); }
.acceso.nieve i { background: var(--azul); box-shadow: 0 0 10px rgba(109,149,255,.8); }

/* ---------- Panel lateral / hoja inferior ---------- */
.panel { position: fixed; z-index: 9; left: 16px; top: 76px; bottom: 56px; width: 360px; border-radius: var(--radio); display: flex; flex-direction: column; overflow: hidden; background: rgba(19, 14, 30, .94); border: 1px solid var(--borde); }
.asa { display: none; }
.tabs { display: flex; gap: 4px; padding: 6px; border-bottom: 1px solid var(--borde); }
.tabs button { flex: 1; border: 0; background: none; padding: 9px 4px; border-radius: 11px; font-size: 13.5px; font-weight: 600; color: var(--suave); transition: background .2s, color .2s; }
.tabs button[aria-selected="true"] { background: rgba(255,255,255,.08); color: var(--texto); }
.cuerpo { flex: 1; overflow-y: auto; padding: 14px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.cuerpo h2 { font-size: 13px; font-weight: 600; color: var(--suave); text-transform: uppercase; letter-spacing: .12em; margin: 18px 2px 8px; }
.cuerpo h2:first-child { margin-top: 2px; }
.nota { font-size: 12.5px; color: var(--suave); line-height: 1.45; margin: 8px 2px; }
.vacio { color: var(--suave); font-size: 14px; padding: 18px 4px; }

/* Fronteras */
.front { position: relative; display: block; width: 100%; border: 1px solid var(--borde); background: #000; border-radius: 14px; overflow: hidden; padding: 0; margin-bottom: 12px; text-align: left; aspect-ratio: 16 / 10; }
.front img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .5s; }
.front img.ok { opacity: 1; }
.front .lbl { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.front .lbl b { display: block; font-size: 16px; font-weight: 700; }
.front .lbl span { font-size: 12px; color: #c8d2e0; font-family: var(--mono); }
.front .tag { position: absolute; top: 10px; right: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; padding: 4px 8px; border-radius: 999px; background: rgba(0,0,0,.6); display: inline-flex; gap: 6px; align-items: center; }
.cargando { position: absolute; inset: 0; display: grid; place-items: center; color: var(--suave); font-family: var(--mono); font-size: 12px; }

/* Listas */
.fila { display: flex; gap: 12px; align-items: center; width: 100%; border: 0; background: none; text-align: left; padding: 10px 8px; border-radius: 12px; transition: background .15s; }
.fila:hover, .fila:focus-visible { background: rgba(255,255,255,.06); }
.fila .ico { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-weight: 700; background: rgba(185,160,255,.12); color: var(--acento); }
.fila .txt { min-width: 0; flex: 1; }
.fila .t1, .fila .t2 { display: block; }
.fila .t1 { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fila .t2 { font-size: 12px; color: var(--suave); font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fila.taronja .ico { background: rgba(255,138,61,.14); color: var(--naranja); }
.fila.vermell .ico { background: rgba(255,59,78,.15); color: var(--rojo); }
.fila.blau .ico { background: rgba(109,149,255,.15); color: var(--azul); }

/* Negocios */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--borde); background: rgba(255,255,255,.04); border-radius: 999px; padding: 7px 11px; font-size: 13px; display: inline-flex; gap: 7px; align-items: center; transition: background .2s, border-color .2s; }
.chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.chip small { color: var(--suave); font-family: var(--mono); font-size: 11px; }
.chip[aria-pressed="true"] { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); }
/* Buscador y lista de negocios */
.buscador input { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--borde); background: rgba(255,255,255,.05); color: var(--texto); font: 500 15px var(--sans); padding: 0 14px; outline: none; }
.buscador input:focus { border-color: rgba(185,160,255,.5); }
.buscador { margin-bottom: 10px; }
.chip.abierto-ya i { background: var(--verde); }
.chip.abierto-ya[aria-pressed="true"] { border-color: rgba(61,220,132,.6); background: rgba(61,220,132,.12); }
.h-si { color: var(--verde) !important; font-style: normal; }
.h-no { color: #ff8a9a !important; font-style: normal; }
.h-nd { color: var(--suave); font-style: normal; }
.neg-fila .ico { font-size: 12px; }
.mas { width: 100%; margin-top: 8px; border: 1px solid var(--borde); background: rgba(255,255,255,.04); border-radius: 12px; padding: 11px; font-weight: 600; font-size: 14px; }
/* Destacados (de pago): más grandes y con su color */
.dest-fila { position: relative; display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 12px; margin-bottom: 8px; border-radius: 16px; border: 1px solid var(--c); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 18%, transparent), rgba(255,255,255,.02)); }
.dest-fila img { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--c); background: #0b0b0c; object-fit: cover; }
.dest-fila.oro { padding: 14px; }
.dest-fila.oro img { width: 64px; height: 64px; }
.dest-fila .txt { min-width: 0; flex: 1; }
.dest-fila b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.dest-fila .txt span { display: block; font-size: 13px; color: #d9cfb8; }
.dest-fila em { position: absolute; top: 8px; right: 10px; font: 600 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c); font-style: normal; opacity: .9; }
.dest-cab { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; }
.dest-cab img { flex: none; border-radius: 50%; border: 3px solid; background: #0b0b0c; object-fit: cover; }
.dest-cab h3 { margin: 2px 0 0; }
.nav-dest a:first-child { background: var(--c); border-color: var(--c); color: #0b0b0c; }
/* Cómo anunciarse */
.cta { margin: 18px 0 6px; padding: 16px; border-radius: 16px; border: 1px solid rgba(185,160,255,.3); background: linear-gradient(135deg, rgba(185,160,255,.1), rgba(255,255,255,.02)); }
.cta b { display: block; font-size: 16px; font-weight: 800; }
.cta p { margin: 6px 0 12px; font-size: 13.5px; color: #d8d0e8; line-height: 1.45; }
.cta-b { display: inline-block; background: var(--acento); color: #1b1033; font-weight: 800; font-size: 14px; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.cta-w { display: block; margin-top: 10px; font-size: 12.5px; color: var(--suave); }
.tuyo { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: rgba(185,160,255,.07); border: 1px solid rgba(185,160,255,.2); font-size: 13px; color: #d8d0e8; }
.tuyo a { flex: none; color: var(--acento); font-weight: 700; }
.azul { color: var(--azul); }

/* Banda de retenciones */
.banda { position: fixed; z-index: 11; top: 18px; left: 50%; transform: translateX(-50%); max-width: min(560px, calc(100vw - 32px)); display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 10px; border-radius: 999px; border: 1px solid rgba(255,59,78,.45); background: rgba(40,8,14,.94); color: var(--texto); font: 500 13.5px var(--sans); text-align: left; transition: opacity .8s; }
.banda[hidden] { display: none; }
.b-ico { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--rojo); color: #fff; font: 800 13px var(--mono); animation: latido 1.6s ease-in-out infinite; }
.b-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-txt i { font-style: normal; color: var(--suave); }
.b-campana { flex: none; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 12px; font-weight: 700; }
.b-campana[aria-pressed="true"] { background: var(--rojo); }
/* En escritorio la banda va bajo las salidas, a la derecha: centrada arriba chocaba con ellas */
@media (min-width: 761px) {
  .banda { top: 76px; left: auto; right: 16px; transform: none; max-width: 460px; }
  body.con-retencion .ficha { top: 132px; max-height: calc(100vh - 210px); }
}
/* Tablet y portátil estrecho: no caben cabecera y salidas en una fila; las salidas bajan */
@media (min-width: 761px) and (max-width: 1100px) {
  .accesos { top: 76px; }
  .banda { top: 132px; }
  .ficha { top: 136px; max-height: calc(100vh - 210px); }
  body.con-retencion .ficha { top: 190px; max-height: calc(100vh - 265px); }
  .panel { top: 76px; }
  .accesos { left: 392px; right: 16px; justify-content: flex-end; }
  .acceso { padding: 9px 12px 9px 10px; }
  .acceso small { display: none; } /* el color del punto ya dice si hay aviso */
  .banda { left: 392px; max-width: none; }
}

/* ---------- Ficha ---------- */
.ficha { position: fixed; z-index: 12; right: 16px; top: 84px; width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 160px); overflow-y: auto; border-radius: var(--radio); background: var(--cristal-2); border: 1px solid var(--borde); box-shadow: 0 30px 80px rgba(0,0,0,.55); animation: entra .35s cubic-bezier(.2,.8,.2,1); }
@keyframes entra { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.cerrar { position: absolute; z-index: 2; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); font-size: 14px; }
.video { position: relative; aspect-ratio: 16 / 10; background: #000; }
/* La imagen tapa el «Cargando…» al pintarse, aunque el onload no llegue (caché) */
.video img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.video .tag { z-index: 2; }
.video .tag { position: absolute; bottom: 12px; left: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; background: rgba(0,0,0,.6); border-radius: 999px; padding: 5px 9px; display: inline-flex; gap: 7px; align-items: center; }
.ficha-txt { padding: 16px 18px 18px; }
.ficha-txt .sup { font-family: var(--mono); font-size: 11.5px; color: var(--acento); letter-spacing: .1em; text-transform: uppercase; }
.ficha-txt h3 { margin: 6px 0 4px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.ficha-txt p { margin: 6px 0; color: #d8d0e8; font-size: 14px; line-height: 1.5; white-space: pre-line; }
.datos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.datos span { font-family: var(--mono); font-size: 12px; padding: 5px 9px; border-radius: 8px; background: rgba(255,255,255,.06); color: #d8d0e8; }
.nav { display: flex; gap: 8px; margin-top: 14px; }
.nav button, .nav a { flex: 1; border: 1px solid var(--borde); background: rgba(255,255,255,.05); border-radius: 12px; padding: 10px; font-size: 13.5px; font-weight: 600; text-align: center; text-decoration: none; }
.nav button:disabled { opacity: .35; cursor: default; }
.ficha.taronja .sup { color: var(--naranja); }
.ficha.vermell .sup { color: var(--rojo); }
.ficha.blau .sup { color: var(--azul); }

/* ---------- Herramientas ---------- */
.herr { position: fixed; z-index: 10; right: 16px; bottom: 44px; display: flex; gap: 8px; align-items: center; }
.btn-sm { border-radius: 999px; padding: 10px 14px; font-size: 13px; font-weight: 600; }
.btn-sm[aria-pressed="true"] { border-color: rgba(185,160,255,.5); color: var(--acento); }
.btn-ruta { border-radius: 999px; padding: 11px 18px 11px 12px; font-weight: 700; font-size: 14px; display: inline-flex; gap: 10px; align-items: center; border-color: rgba(185,160,255,.35); }
.btn-ruta .play { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--acento); color: #1b1033; font-size: 11px; }
.btn-ruta.activo .play { background: var(--rojo); color: #fff; }

.pie { position: fixed; z-index: 8; left: 0; right: 0; bottom: 0; padding: 10px 16px; font-size: 11px; color: rgba(167,159,189,.8); text-align: right; background: linear-gradient(transparent, rgba(11,8,18,.8)); pointer-events: none; }
.pie a { pointer-events: auto; color: #b9c4d6; }

/* Recorrido: rótulo grande */
.rotulo { position: fixed; z-index: 11; left: 50%; bottom: 110px; transform: translateX(-50%); text-align: center; pointer-events: none; }
.rotulo .k { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--acento); text-transform: uppercase; }
.rotulo .n { font-size: clamp(28px, 4.5vw, 54px); font-weight: 800; letter-spacing: -.035em; text-shadow: 0 6px 40px rgba(0,0,0,.8); }
.rotulo .a { font-family: var(--mono); font-size: 13px; color: #d8d0e8; }
.rotulo > * { animation: sube .7s cubic-bezier(.2,.8,.2,1) both; }

/* Marcador HTML de las cámaras (pulso) */
/* El pulso anima transform/opacity en un ::after: va por el compositor y no
   repinta 70 sombras por fotograma mientras se mueve el mapa */
.mk-cam { width: 14px; height: 14px; padding: 0; border-radius: 50%; background: var(--acento); border: 2px solid #1b1033; box-shadow: 0 0 14px rgba(185,160,255,.75); cursor: pointer; }
.mk-cam::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--acento); opacity: 0; animation: pulso 2.4s ease-out infinite; will-change: transform, opacity; }
.mk-cam.sel { background: #fff; box-shadow: 0 0 0 5px rgba(185,160,255,.35), 0 0 26px rgba(185,160,255,1); }
@keyframes pulso { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
/* MapLibre escribe su propio transform en el marcador: el rombo va en ::before */
.mk-avi { width: 24px; height: 24px; border: 0; padding: 0; background: none; display: grid; place-items: center; cursor: pointer; --c: var(--naranja); --g: rgba(255,138,61,.8); }
.mk-avi::before { content: ""; position: absolute; inset: 3px; border-radius: 5px; transform: rotate(45deg); background: var(--c); box-shadow: 0 0 22px var(--g); }
.mk-avi > span { position: relative; font-size: 12px; font-weight: 800; line-height: 1; color: #1b0b00; }
.mk-avi.vermell { --c: var(--rojo); --g: rgba(255,59,78,.9); }
.mk-avi.blau { --c: var(--azul); --g: rgba(109,149,255,.9); }
.mk-avi.vermell > span, .mk-avi.blau > span { color: #fff; }

/* ---------- Móvil ---------- */
@media (max-width: 760px) {
  .top { top: max(12px, env(safe-area-inset-top)); left: 12px; right: 12px; justify-content: space-between; }
  .marca { padding: 8px 12px 8px 8px; }
  .marca-txt { font-size: 13.5px; white-space: nowrap; }
  .vivo-fuente { display: none; }
  .vivo { padding: 8px 11px; font-size: 11px; }
  .accesos { top: calc(max(12px, env(safe-area-inset-top)) + 54px); left: 12px; right: 12px; gap: 6px; }
  .acceso { flex: 1; min-width: 0; padding: 7px 8px; gap: 7px; }
  .acceso b { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
  .acceso small { font-size: 10px; }
  .acceso.nieve { flex: none; }
  .idiomas button { padding: 6px 7px; font-size: 10.5px; }
  .vivo { display: none; }
  .banda { top: calc(max(12px, env(safe-area-inset-top)) + 112px); left: 12px; right: 12px; transform: none; max-width: none; }
  /* La hoja siempre mide 82vh y se desliza con transform (lo mueve la GPU);
     animar height recalculaba el layout de todo el panel en cada fotograma */
  .panel { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 82vh; border-radius: 22px 22px 0 0; border-bottom: 0; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .8s; padding-bottom: env(safe-area-inset-bottom); transform: translateY(38vh); will-change: transform; }
  .panel.mini { transform: translateY(calc(82vh - 112px)); }
  .panel.max { transform: none; }
  .panel:not(.max) .cuerpo { padding-bottom: calc(38vh + 14px); }
  /* Lo que no se ve no se pinta: así los GIF de 2 MB no se animan escondidos */
  .panel.mini .cuerpo, body.con-ficha .panel .cuerpo { visibility: hidden; }
  body.volando .panel { transform: translateY(calc(82vh - 72px)); }
  .asa { display: block; width: 44px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.25); margin: 8px auto 0; flex: none; }
  .asa::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 28px; }
  .herr { right: 12px; left: 12px; bottom: 122px; justify-content: flex-end; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .8s; transform: translateY(calc(112px - 44vh)); }
  body.hoja-mini .herr { transform: none; }
  body.hoja-max .herr { opacity: 0; pointer-events: none; }
  .btn-ruta { padding: 9px 14px 9px 9px; font-size: 13px; }
  .btn-sm { padding: 9px 12px; }
  .pie { display: none; }
  .ficha { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 78vh; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); animation-name: entra-m; }
  @keyframes entra-m { from { transform: translateY(40%); opacity: 0; } }
  .rotulo { bottom: auto; top: 140px; width: 92vw; }
  .rotulo .n { text-shadow: 0 2px 10px rgba(0,0,0,.9); }
  .ficha { box-shadow: 0 -10px 30px rgba(0,0,0,.5); background: #160f22; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.dest-cab { padding-right: 34px; }
#dests h2 { margin-top: 18px; }

@media (max-width: 760px) { .panel { background: #120d1d; } } /* opaca: que no se transparenten los puntos del mapa */
/* Las filas fuera de la vista no se maquetan ni se pintan hasta que se acercan */
.fila { content-visibility: auto; contain-intrinsic-size: auto 52px; }
.btn-ruta { white-space: nowrap; }
@media (max-width: 400px) {
  .btn-ruta { font-size: 12px; padding: 8px 12px 8px 8px; gap: 7px; }
  .btn-ruta .play { width: 22px; height: 22px; }
  .btn-sm { padding: 8px 10px; font-size: 12px; }
  .herr { gap: 6px; }
}
/* Marca Totaquí: «AQUÍ» en cian, como el acento del portal */
.marca-txt b i { font-style: normal; color: var(--acento); }
.intro h1 { letter-spacing: -.05em; }
.intro-lema { margin: 4px 0 0; font: 700 clamp(16px, 2.2vw, 22px) var(--sans); color: var(--texto); letter-spacing: -.01em; animation: sube .9s .4s cubic-bezier(.2,.8,.2,1) both; }
@media (max-width: 760px) { .marca-lema { display: none; } }
/* Compartir */
.compartir { display: flex; align-items: center; justify-content: center; gap: 8px; width: calc(100% - 36px); margin: 0 18px 18px; padding: 11px; border-radius: 12px; border: 1px solid rgba(185,160,255,.35); background: rgba(185,160,255,.08); color: var(--acento); font-weight: 700; font-size: 14px; }
.compartir:hover { background: rgba(185,160,255,.14); }
.captura .top, .captura .accesos, .captura .panel, .captura .herr, .captura .pie, .captura .banda, .captura #intro, .captura .ficha { display: none !important; }

/* ---------- Menos carga visual (26/10/2026) ---------- */
body { font-variant-numeric: tabular-nums; }
.idioma { border-radius: 999px; padding: 10px 13px; font: 800 12px var(--sans); letter-spacing: .08em; color: var(--texto); }
.vivo { display: none; } /* el «fa 1 min» ya va en la pestaña Ara */
.btn-ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; padding: 0; color: var(--suave); }
.btn-ico[aria-pressed="true"] { color: var(--acento); border-color: rgba(185,160,255,.45); }
/* Los tipos de negocio en UNA fila que se desliza (antes ocupaban cuatro) */
.chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 2px; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; scroll-snap-align: start; }
.acceso i { box-shadow: none; }
.marca-ico { background-image: url(assets/icono.svg); }
@media (max-width: 760px) { .idioma { padding: 8px 11px; } .btn-ico { width: 38px; height: 38px; } }
.vivo-linea { color: var(--verde); font-weight: 600; }
