/* Pulso Conductor · v1 (decisión 43, bloque 2).
   Para usar en el auto y de noche: oscuro, letras grandes y botones que se aciertan con el pulgar (48 px o más).
   En el celular: el mapa ocupa todo; la lista es una hoja que se arrastra con el dedo y se queda en tres alturas
   (mínima, media, completa); al elegir un lugar salen tarjetas que se pasan deslizando.
   En pantalla ancha: la lista va fija a la izquierda. */
:root {
  --fondo: #0a0e14;
  --panel: #10161f;
  --panel-2: #161e2a;
  --panel-3: #1c2634;
  --linea: #263244;
  --texto: #eef2f7;
  --texto-2: #a9b5c6;
  --texto-3: #74829a;
  --ambar: #f5a524;
  --ambar-suave: rgba(245, 165, 36, 0.16);
  --verde: #3ddc97;
  --rojo: #ff6b6b;
  --f-titulo: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --f-texto: "Barlow", "Segoe UI", system-ui, sans-serif;
  --seguro-abajo: env(safe-area-inset-bottom, 0px);
  --seguro-arriba: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body { background: var(--fondo); color: var(--texto); font: 16px/1.4 var(--f-texto); -webkit-font-smoothing: antialiased; overflow: hidden; overscroll-behavior: none; }
button, select { font: inherit; color: inherit; }
h1, h2, h3, p, ol { margin: 0; padding: 0; }
ol { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ambar); outline-offset: 2px; }

.app { position: fixed; inset: 0; }
#mapa { position: absolute; inset: 0; background: var(--fondo); }

/* ---------- Arriba: nombre, qué buscas y filtros ---------- */
.arriba { position: absolute; left: 0; right: 0; top: 0; z-index: 3; padding: calc(8px + var(--seguro-arriba)) 0 10px;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.96) 0%, rgba(10, 14, 20, 0.86) 72%, rgba(10, 14, 20, 0) 100%); pointer-events: none; }
.arriba > * { pointer-events: auto; }
.titulo { display: flex; align-items: center; gap: 9px; padding: 0 14px 8px; font: 600 20px/1 var(--f-titulo); letter-spacing: 0.02em; }
.titulo b { color: var(--ambar); font-weight: 700; }
.punto { width: 11px; height: 11px; border-radius: 50%; background: var(--ambar); box-shadow: 0 0 0 4px var(--ambar-suave), 0 0 12px var(--ambar); flex: none; }
.vista-previa { margin-left: auto; font: 600 12px/1 var(--f-texto); letter-spacing: 0.08em; text-transform: uppercase; color: #0a0e14; background: var(--ambar); padding: 5px 8px; border-radius: 5px; }

.modos, .filtros { display: flex; gap: 8px; overflow-x: auto; padding: 2px 14px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.modos::-webkit-scrollbar, .filtros::-webkit-scrollbar { display: none; }
.modos { gap: 2px; padding-bottom: 4px; }
.modo { flex: none; min-width: 70px; height: 62px; padding: 5px 8px 0; display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: 0; border-bottom: 3px solid transparent; font: 600 13.5px/1.1 var(--f-texto); color: var(--texto-3); cursor: pointer; scroll-snap-align: start; white-space: nowrap; }
.modo svg { width: 28px; height: 28px; flex: none; }
.modo svg, .pin svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.modo.activo { color: var(--texto); border-bottom-color: var(--c, var(--ambar)); }
.modo.activo svg { stroke: var(--c, var(--ambar)); }
.filtro { flex: none; min-height: 44px; padding: 0 15px; display: inline-flex; align-items: center; gap: 7px; border-radius: 22px;
  background: rgba(16, 22, 31, 0.94); border: 1.5px solid var(--linea); font: 500 15.5px/1 var(--f-texto); color: var(--texto-2); cursor: pointer; white-space: nowrap; }
.filtro.activo { border-color: var(--ambar); color: var(--ambar); background: #1d1a12; }
.filtro.activo::before { content: "✓"; font-weight: 700; }
.filtro[disabled] { opacity: 0.4; }
.segmento { flex: none; display: inline-flex; border: 1.5px solid var(--linea); border-radius: 22px; overflow: hidden; background: rgba(16, 22, 31, 0.94); }
.segmento button { min-height: 44px; padding: 0 12px; border: 0; background: none; font: 500 15.5px/1 var(--f-texto); color: var(--texto-2); cursor: pointer; }
.segmento button + button { border-left: 1.5px solid var(--linea); }
.segmento button.activo { background: var(--ambar); color: #0a0e14; font-weight: 600; }

/* ---------- Botones flotantes ---------- */
.flotantes { position: absolute; right: 12px; z-index: 3; display: flex; flex-direction: column; gap: 10px; bottom: calc(var(--hoja-alto, 42vh) + 14px); transition: bottom 0.26s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.15s; }
.redondo { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--linea); background: var(--panel); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); }
.redondo svg { width: 26px; height: 26px; fill: none; stroke: var(--texto); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.redondo.activo { border-color: var(--ambar); background: #1d1a12; }
.redondo.activo svg { stroke: var(--ambar); }
.hoja-alta .flotantes { opacity: 0; pointer-events: none; }
.con-tarjetas .flotantes { bottom: calc(var(--tarjetas-alto, 210px) + 22px); }

/* «Buscar en esta zona» (al mover el mapa) y «Mapa» (cuando la lista lo tapa todo) */
.zona, .ver-mapa { position: absolute; left: 50%; transform: translateX(-50%); z-index: 3; min-height: 46px; padding: 0 18px 0 14px; display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 23px; background: #eef2f7; color: #0a0e14; font: 600 16px/1 var(--f-texto); white-space: nowrap; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55); }
.zona svg, .ver-mapa svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.zona { top: calc(var(--arriba-alto, 190px) + 2px); }
.ver-mapa { bottom: calc(18px + var(--seguro-abajo)); z-index: 5; min-height: 50px; padding: 0 22px 0 18px; }

/* ---------- La hoja de la lista: se arrastra y se queda en tres alturas ---------- */
.hoja { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: var(--hoja-alto, 42vh); display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel); border-top: 1px solid var(--linea); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  transition: height 0.26s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.22s ease; }
.arrastrando .hoja, .arrastrando .flotantes { transition: none; }
.con-tarjetas .hoja { transform: translateY(105%); }
.hoja-asa { flex: none; height: 24px; border: 0; background: none; cursor: grab; display: grid; place-items: center; touch-action: none; }
.hoja-asa i { width: 44px; height: 5px; border-radius: 3px; background: #3a4a61; }
.hoja-cabeza { flex: none; padding: 0 16px 11px; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.hoja-cabeza h2 { font: 600 22px/1.1 var(--f-titulo); letter-spacing: 0.01em; }
.hoja-cabeza p { color: var(--texto-3); font-size: 14px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista { flex: 1; min-height: 0; overflow: hidden; padding: 0 10px; overscroll-behavior: contain; touch-action: none; }
.hoja-alta .lista { overflow-y: auto; touch-action: pan-y; padding-bottom: calc(76px + var(--seguro-abajo)); }
.fila { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; width: 100%; text-align: left; padding: 12px 8px; min-height: 68px;
  background: none; border: 0; border-top: 1px solid var(--linea); cursor: pointer; }
li:first-child > .fila { border-top: 0; }
.fila.elegida { background: var(--panel-2); border-radius: 10px; }
.fila h3 { font: 600 18px/1.2 var(--f-texto); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila .sub { color: var(--texto-2); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila .derecha { grid-row: 1 / span 3; grid-column: 2; text-align: right; }
.precio { font: 700 26px/1 var(--f-titulo); color: var(--ambar); letter-spacing: 0.01em; white-space: nowrap; }
.precio small { font: 500 12px/1 var(--f-texto); color: var(--texto-3); display: block; margin-top: 3px; }
.dist { font: 600 17px/1 var(--f-titulo); color: var(--texto-2); white-space: nowrap; }
.precio + .dist { margin-top: 6px; font-size: 15px; }
.hora { font: 700 26px/1 var(--f-titulo); color: var(--ambar); white-space: nowrap; }
.hora small { font: 500 12px/1 var(--f-texto); color: var(--texto-3); display: block; margin-top: 3px; }
.marcas { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.marca-p { font: 600 12px/1 var(--f-texto); padding: 4px 7px; border-radius: 5px; background: var(--panel-3); color: var(--texto-2); white-space: nowrap; }
.marca-p.abierto { background: rgba(61, 220, 151, 0.15); color: var(--verde); }
.marca-p.cerrado { background: rgba(255, 107, 107, 0.14); color: var(--rojo); }
.marca-p.aviso-p { background: var(--ambar-suave); color: var(--ambar); }
.vacio { padding: 22px 12px; color: var(--texto-2); font-size: 16px; text-align: center; }
.pie { padding: 12px 8px calc(12px + var(--seguro-abajo)); color: var(--texto-3); font-size: 12px; line-height: 1.4; border-top: 1px solid var(--linea); }
.pie a { color: var(--texto-2); }

/* ---------- Tarjetas del lugar elegido: se pasan deslizando ---------- */
.tarjetas { position: absolute; left: 0; right: 0; bottom: calc(12px + var(--seguro-abajo)); z-index: 5; display: flex; gap: 10px; overflow-x: auto; padding: 0 18px;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.tarjetas::-webkit-scrollbar { display: none; }
.tarjeta { position: relative; flex: 0 0 calc(100% - 22px); max-width: 420px; scroll-snap-align: center; background: var(--panel-2); border: 1px solid var(--linea); border-radius: 18px;
  padding: 13px 14px 14px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6); }
.tarjeta:only-child { flex-basis: 100%; }
.tarjeta .sobre { color: var(--texto-2); font-size: 13.5px; display: flex; align-items: center; gap: 7px; margin-right: 44px; }
.tarjeta .sobre i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--ambar)); flex: none; }
.tarjeta .x { position: absolute; right: 2px; top: 0; width: 48px; height: 46px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--texto-2); cursor: pointer; }
.t-cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; align-items: center; margin-top: 4px; min-height: 66px; }
.t-cuerpo h3 { font: 600 19px/1.2 var(--f-texto); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-cuerpo .sub { color: var(--texto-2); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-cuerpo .derecha { grid-row: 1 / span 3; grid-column: 2; text-align: right; }
.tarjeta .acciones { margin-top: 11px; }
.tarjeta .grande { min-height: 54px; }

/* ---------- Ficha de un lugar ---------- */
.detalle { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--panel-2); border-top: 2px solid var(--ambar); border-radius: 16px 16px 0 0;
  padding: 14px 16px calc(14px + var(--seguro-abajo)); box-shadow: 0 -12px 34px rgba(0, 0, 0, 0.6); max-height: 78vh; overflow-y: auto; }
.detalle .sobre { color: var(--texto-2); font-size: 14px; display: flex; align-items: center; gap: 7px; }
.detalle .sobre i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--ambar)); }
.detalle h2 { font: 600 25px/1.15 var(--f-titulo); margin: 3px 44px 2px 0; }
.detalle .donde { color: var(--texto-2); font-size: 15.5px; }
.detalle .x { position: absolute; right: 8px; top: 8px; width: 48px; height: 48px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--texto-2); cursor: pointer; }
.precios { display: grid; grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); gap: 8px; margin: 12px 0 4px; }
.precios div { background: var(--panel); border: 1px solid var(--linea); border-radius: 10px; padding: 8px 6px 7px; text-align: center; }
.precios div.elegido { border-color: var(--ambar); }
.precios span { display: block; color: var(--texto-2); font-size: 13px; }
.precios b { display: block; font: 700 24px/1.1 var(--f-titulo); color: var(--ambar); }
.precios small { display: block; color: var(--texto-3); font-size: 11px; }
.nota { color: var(--texto-3); font-size: 13px; margin-top: 6px; }
.datos { margin: 10px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 12px; font-size: 15px; }
.datos dt { color: var(--texto-3); }
.datos dd { margin: 0; overflow-wrap: anywhere; }
.acciones { display: flex; gap: 10px; margin-top: 14px; }
.grande { display: flex; align-items: center; justify-content: center; min-height: 58px; width: 100%; border-radius: 12px; border: 0; cursor: pointer;
  font: 700 21px/1 var(--f-titulo); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; }
.grande.ir-b { background: var(--ambar); color: #0a0e14; }
.grande.voz-b { background: var(--panel-3); color: var(--texto); flex: 0 0 32%; border: 1.5px solid var(--linea); }

.aviso { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--hoja-alto, 42vh) + 14px); z-index: 7; max-width: min(88vw, 420px);
  background: #1d1a12; border: 1.5px solid var(--ambar); color: var(--texto); padding: 11px 14px; border-radius: 10px; font-size: 15px; text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6); }

/* ---------- Elegir con qué ir ---------- */
.ir { border: 1.5px solid var(--linea); background: var(--panel-2); color: var(--texto); border-radius: 16px; padding: 18px; width: min(92vw, 400px); }
.ir::backdrop { background: rgba(4, 7, 11, 0.72); }
.ir form { display: flex; flex-direction: column; gap: 10px; }
.ir h2 { font: 600 23px/1.15 var(--f-titulo); }
.ir p { color: var(--texto-2); font-size: 15px; margin-bottom: 4px; }
.grande.waze { background: #33ccff; color: #06202b; }
.grande.gmaps { background: #e6ebf2; color: #0a0e14; }
.grande.cerrar { background: none; border: 1.5px solid var(--linea); color: var(--texto-2); }

.con-tarjetas .aviso { bottom: calc(var(--tarjetas-alto, 210px) + 22px); }
.hoja-alta .aviso { bottom: calc(82px + var(--seguro-abajo)); }

/* ---------- En el mapa ---------- */
/* Los de la lista llevan marcador propio: una píldora con el precio, o un círculo con el ícono de su categoría. */
.pildora { background: #eef2f7; color: #0a0e14; border: 0; border-radius: 15px; padding: 6px 10px; font: 700 15px/1 var(--f-titulo); letter-spacing: 0.01em; white-space: nowrap; cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.65); }
.pin { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #0a0e14; background: var(--c, var(--ambar)); color: #0a0e14; display: grid; place-items: center; padding: 0; cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.65); }
.pin svg { width: 17px; height: 17px; stroke-width: 2; }
.pildora.elegida { background: var(--ambar); padding: 8px 13px; font-size: 18px; border-radius: 18px; box-shadow: 0 0 0 3px rgba(245, 165, 36, 0.35), 0 4px 14px rgba(0, 0, 0, 0.7); }
.pin.elegida { width: 42px; height: 42px; border-color: #fff; box-shadow: 0 0 0 4px rgba(245, 165, 36, 0.55), 0 4px 14px rgba(0, 0, 0, 0.7); }
.pin.elegida svg { width: 24px; height: 24px; }
.globo.elegida { background: var(--ambar); color: #0a0e14; text-decoration: none; }
.globo.elegida small { color: #3b2c0a; }
.globo { background: var(--panel); border: 2px solid var(--ambar); color: var(--texto); border-radius: 9px; padding: 4px 8px 5px; font: 700 15px/1 var(--f-titulo); white-space: nowrap; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6); }
.globo small { display: block; font: 500 10px/1 var(--f-texto); color: var(--texto-3); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.06em; }
.globo.cancelado { border-color: var(--rojo); color: var(--texto-3); text-decoration: line-through; }
.globo.ya { border-color: var(--linea); color: var(--texto-3); }
.maplibregl-ctrl-attrib { font-size: 10.5px; background: rgba(10, 14, 20, 0.75) !important; color: #74829a; }
.maplibregl-ctrl-attrib a { color: #a9b5c6; }
.maplibregl-ctrl-top-right { top: calc(var(--arriba-alto, 190px) + var(--seguro-arriba)); }

/* ---------- Pantalla ancha (tablet apaisada o PC): la lista fija a la izquierda ---------- */
@media (min-width: 900px) {
  .arriba { right: auto; width: 420px; bottom: 0; background: var(--panel); border-right: 1px solid var(--linea); padding-bottom: 0; pointer-events: auto; }
  .modos, .filtros { flex-wrap: wrap; overflow: visible; }
  .modo { min-width: 62px; }
  #mapa { left: 420px; }
  .hoja { left: 0; right: auto; width: 420px; top: var(--arriba-alto, 230px); height: auto !important; transform: none !important; border-radius: 0; border-top: 1px solid var(--linea); box-shadow: none; border-right: 1px solid var(--linea); }
  .hoja-asa { display: none; }
  .hoja-cabeza { padding-top: 12px; cursor: default; }
  .lista, .hoja-alta .lista { overflow-y: auto; touch-action: pan-y; padding-bottom: 0; }
  .flotantes, .con-tarjetas .flotantes { bottom: 30px; opacity: 1 !important; pointer-events: auto !important; }
  .tarjetas, .ver-mapa { display: none !important; }
  .zona { left: calc(420px + (100vw - 420px) / 2); top: 16px; }
  .detalle { left: 436px; right: auto; bottom: 16px; width: 400px; border-radius: 14px; border: 1px solid var(--linea); border-top: 2px solid var(--ambar); }
  .aviso, .con-tarjetas .aviso, .hoja-alta .aviso { left: calc(420px + (100vw - 420px) / 2); bottom: 30px; }
  .maplibregl-ctrl-top-right { top: 0; }
}
@media (prefers-reduced-motion: reduce) { .hoja, .flotantes { transition: none; } }

/* ---------- La barra de categorías: vertical, a la izquierda, con todo lo que muestra la app a la vista ---------- */
:root { --riel: 64px; }
.riel { position: absolute; left: 0; top: 0; bottom: 0; width: var(--riel); z-index: 5; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: none;
  background: var(--panel); border-right: 1px solid var(--linea); padding: calc(4px + var(--seguro-arriba)) 0 calc(2px + var(--seguro-abajo)); }
.riel::-webkit-scrollbar { display: none; }
.riel .modo { flex: 1 0 46px; max-height: 66px; width: 100%; min-width: 0; height: auto; padding: 0 1px; justify-content: center; gap: 3px;
  border-bottom: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; font: 600 11px/1.05 var(--f-texto); letter-spacing: -0.01em; }
.riel .modo svg { width: 23px; height: 23px; }
.riel .modo.activo { border-left-color: var(--c, var(--ambar)); background: var(--panel-3); }
.arriba, .hoja, .tarjetas, .detalle { left: var(--riel); }
.zona, .ver-mapa, .aviso { left: calc(var(--riel) + (100% - var(--riel)) / 2); }
.aviso { width: max-content; max-width: calc(100% - var(--riel) - 24px); }
.titulo { font-size: 18px; padding-bottom: 7px; }

/* ---------- El botón «Filtros» y su hoja con todas las opciones ---------- */
.filtro.mas { background: #eef2f7; border-color: #eef2f7; color: #0a0e14; font-weight: 600; padding: 0 14px 0 11px; }
.filtro.mas svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.filtro.mas b { min-width: 22px; height: 22px; border-radius: 11px; background: var(--ambar); display: inline-grid; place-items: center; font: 700 13px/1 var(--f-texto); padding: 0 5px; }
.opciones { border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: none; max-height: 86vh; background: var(--panel-2); color: var(--texto);
  border-top: 1px solid var(--linea); border-radius: 18px 18px 0 0; box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.6); }
.opciones[open] { display: flex; flex-direction: column; }
.opciones::backdrop { background: rgba(4, 7, 11, 0.66); }
.opciones header { flex: none; display: flex; align-items: center; padding: 6px 6px 4px 18px; border-bottom: 1px solid var(--linea); }
.opciones header h2 { font: 600 23px/1 var(--f-titulo); flex: 1; }
.opciones .x { width: 50px; height: 50px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--texto-2); cursor: pointer; }
.op-cuerpo { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 18px 14px; }
.op-cuerpo h3 { font: 600 13px/1 var(--f-texto); letter-spacing: 0.08em; text-transform: uppercase; color: var(--texto-3); margin: 18px 0 9px; }
.segmento.ancho { display: flex; }
.segmento.ancho button { flex: 1; min-height: 50px; padding: 0 6px; font-size: 16px; }
.opcion { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 0 2px; background: none; border: 0; border-top: 1px solid var(--linea); text-align: left; font-size: 17px; cursor: pointer; }
.op-cuerpo h3 + .opcion { border-top: 0; }
.opcion span { flex: 1; }
.opcion i { flex: none; width: 50px; height: 30px; border-radius: 15px; background: var(--panel-3); border: 1.5px solid var(--linea); position: relative; transition: background 0.15s; }
.opcion i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 21px; height: 21px; border-radius: 50%; background: var(--texto-3); transition: transform 0.15s, background 0.15s; }
.opcion[aria-pressed="true"] i { background: var(--ambar); border-color: var(--ambar); }
.opcion[aria-pressed="true"] i::after { transform: translateX(20px); background: #0a0e14; }
.opciones footer { flex: none; display: flex; gap: 10px; padding: 12px 18px calc(14px + var(--seguro-abajo)); border-top: 1px solid var(--linea); }
.opciones footer .cerrar { flex: 0 0 42%; font-size: 17px; }

@media (min-width: 900px) {
  :root { --riel: 78px; }
  .riel .modo { font-size: 12px; max-height: 60px; }
  .arriba, .hoja { left: var(--riel); }
  #mapa { left: calc(var(--riel) + 420px); }
  .detalle { left: calc(var(--riel) + 436px); }
  .zona, .aviso, .con-tarjetas .aviso, .hoja-alta .aviso { left: calc(var(--riel) + 420px + (100vw - var(--riel) - 420px) / 2); }
  .opciones { margin: auto; width: 440px; border-radius: 18px; border: 1px solid var(--linea); }
}
