/* Roundo, de Indian Type Foundry vía Fontshare (licencia Fontshare, uso comercial permitido) */
@font-face { font-family: 'Roundo'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/roundo-400.woff2') format('woff2'); }
@font-face { font-family: 'Roundo'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/roundo-500.woff2') format('woff2'); }
@font-face { font-family: 'Roundo'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/roundo-600.woff2') format('woff2'); }

/* de.datines.com — el mapa manda; el círculo es el punto de cada local */
:root {
  --bg: #cbe4f2;
  --surface: #bcdcee;
  --papel: #e3f0f8;
  --ink: #0a0a0a;
  --muted: #44606e;
  --accent: #b0298f;
  --accent-hover: #8e2173;
  --accent-ink: #ffffff;
  --sand: #f1e3b5;
  --negro: #0a0a0a;
  --negro-ink: #f2f2f2;
  /* Estados: siempre con texto o icono (daltonismo rojo-verde) */
  --ok: #0b57d0;
  --error: #b3261e;
  --pendiente: #8a5a00;
  --yo: #0b57d0;

  --fuente: "Roundo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step-small: 0.875rem;
  --step-body: 1.0625rem;
  --step-lead: 1.1875rem;
  --step-h2: 1.375rem;
  --step-h1: clamp(1.625rem, 1.3rem + 0.8vw, 2rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);

  --margen: clamp(16px, 3vw, 32px);
  --ancho: 1320px;
  --barra-h: 64px;
  --panel-pad: 28px;
  --sombra: 0 1px 2px rgba(10, 10, 10, 0.08), 0 4px 16px rgba(10, 10, 10, 0.12);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fuente);
  font-size: var(--step-body);
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.15em; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-h1); letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-body); }
p { margin: 0; }
p + p { margin-top: 0.75em; }
.lead { font-size: var(--step-lead); line-height: 1.4; }
.muted { color: var(--muted); font-size: var(--step-small); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.visualmente-oculto { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.oculto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: campo trampa, no es una línea */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 12px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.saltar { position: absolute; left: var(--margen); top: -60px; background: var(--ink); color: var(--negro-ink); padding: 8px 16px; border-radius: 999px; z-index: 2000; }
.saltar:focus { top: 12px; }
.icono { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }

/* Botones: una forma, la píldora */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  font: inherit; font-weight: 500; padding: 14px 24px; line-height: 1.2; min-height: 48px;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.boton:active { transform: scale(0.97); }
.boton-ancho { width: 100%; }
.boton-chico { padding: 8px 14px; min-height: 38px; font-size: var(--step-small); }
.boton-negro { background: var(--negro); color: var(--negro-ink); }
.boton-claro { background: var(--sand); color: var(--ink); }
.fila-botones { display: flex; gap: 8px; flex-wrap: wrap; }
@media (hover: hover) and (pointer: fine) {
  .boton:hover { background: var(--accent-hover); }
  .boton-negro:hover { background: #2a2a2a; }
  .boton-claro:hover { background: #e8d79f; }
}
.enlace-boton {
  background: none; border: 0; padding: 4px 0; font: inherit; font-size: var(--step-small); color: var(--ink); text-align: left;
  text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer;
}

/* Barra */
.barra {
  max-width: var(--ancho); margin: 0 auto; padding: 0 var(--margen); height: var(--barra-h);
  display: flex; align-items: center; gap: 24px;
}
.con-explorador .barra { max-width: none; width: 100%; margin: 0; padding: 0 20px; }
/* Logotipo: la i lleva el alfiler de los mapas (el dibujo vive en el sprite, src/Logo.php) */
.marca-sitio { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; white-space: nowrap; color: var(--ink); --pin: var(--accent); -webkit-tap-highlight-color: transparent; }
.marca-sitio .logo { display: block; height: 28px; width: auto; aspect-ratio: 3421 / 908; transition: transform 160ms var(--ease-out); }
.marca-sitio:active .logo { transform: scale(0.97); }
.marca-pais { font-weight: 400; color: var(--muted); font-size: var(--step-body); line-height: 1; }
.barra-nav { display: flex; gap: 20px; margin-left: auto; }
.barra-nav a { text-decoration: none; white-space: nowrap; }
.barra-nav a:hover { text-decoration: underline; }
.nav-corto { display: none; }
.marca-sitio { flex-shrink: 0; }

/* ---------- Menú lateral: todo el sitio ---------- */
.boton-icono {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 999px;
  background: none; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.boton-icono svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.boton-icono:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .boton-icono:hover { background: var(--surface); } }
.boton-menu { display: none; margin-left: -10px; margin-right: -8px; }
.js .boton-menu { display: grid; }
.menu-sitio {
  position: fixed; inset: 0 auto 0 0; width: min(360px, 88vw); height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: hidden; background: var(--papel); color: var(--ink); box-shadow: var(--sombra);
  transform: translateX(-100%);
  /* cerrar: rápido; abrir: curva de cajón (más abajo) */
  transition: transform 200ms var(--ease-out), overlay 200ms allow-discrete, display 200ms allow-discrete;
}
.menu-sitio[open] { transform: none; transition-duration: 320ms; transition-timing-function: var(--ease-drawer); }
@starting-style { .menu-sitio[open] { transform: translateX(-100%); } }
.menu-sitio::backdrop {
  background: rgba(10, 10, 10, 0);
  transition: background-color 200ms ease, overlay 200ms allow-discrete, display 200ms allow-discrete;
}
.menu-sitio[open]::backdrop { background: rgba(10, 10, 10, 0.38); }
@starting-style { .menu-sitio[open]::backdrop { background: rgba(10, 10, 10, 0); } }
html:has(.menu-sitio[open]) { overflow: hidden; }
.menu-caja { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 8px 14px calc(28px + env(safe-area-inset-bottom)); }
.menu-cabeza { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding-left: 6px; }
.menu-titulo-sitio { font-weight: 600; letter-spacing: -0.01em; }
.menu-cabeza .boton-icono { margin-right: -6px; }
.menu-cerca { margin: 6px 0 8px; }
.menu-grupo { font-size: var(--step-small); font-weight: 600; letter-spacing: 0.01em; color: var(--muted); margin: 20px 10px 6px; }
.menu-lista { list-style: none; margin: 0; padding: 0; }
.menu-lista a {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 14px; min-height: 46px; padding: 0 10px;
  border-radius: 14px; text-decoration: none; color: var(--ink); transition: background-color 160ms ease;
}
.menu-lista .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.menu-n { color: var(--muted); font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.menu-lista a[aria-current="page"] { background: var(--surface); font-weight: 600; }
.menu-lista a[aria-current="page"] .ico { color: var(--ink); }
.menu-lista a:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .menu-lista a:hover { background: rgba(255, 255, 255, 0.7); } }
.menu-pie { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 24px 10px 0; padding: 18px 0 0; border-top: 1px solid var(--surface); font-size: var(--step-small); }
.menu-pie a { color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .menu-sitio, .menu-sitio::backdrop { transition: none; }
}
/* Pantallas medianas: «Ferreterías» y «Más» quedan en el pie y en la portada */
@media (max-width: 680px) {
  .barra-nav .nav-secundaria { display: none; }
}
/* Teléfonos angostos: el logo no se encoge; «Supermercados» pasa a «Súper» y «Marcas» queda en el pie */
@media (max-width: 420px) {
  .nav-largo, .barra-nav .nav-secundaria { display: none; }
  .nav-corto { display: inline; }
}
.migas { font-size: var(--step-small); color: var(--muted); }
.migas ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.migas li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.migas a { color: inherit; }
body:not(.con-explorador) > .migas { max-width: var(--ancho); margin: 0 auto; padding: 4px var(--margen) 0; }

main { overflow-x: clip; }
main > * { max-width: var(--ancho); margin-left: auto; margin-right: auto; padding-left: var(--margen); padding-right: var(--margen); }

/* ---------- Explorador: mapa + panel ---------- */
.con-explorador main > .explorador { max-width: none; margin: 0; padding: 0; }
.exp-mapa { position: relative; background: var(--surface); overflow: hidden; isolation: isolate; }
.mapa { position: absolute; inset: 0; background: var(--papel); }
.js .con-explorador { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
.js .con-explorador > .barra { flex: none; }
.js .con-explorador > main { flex: 1; min-height: 0; }
/* El anuncio ancla de AdSense agrega relleno arriba de la página y al plegarlo no siempre lo devuelve.
   La cabecera y el mapa van fijos a la pantalla: ese relleno ya no les quita alto (el anuncio, cuando
   está abierto, se monta encima y al plegarlo el mapa sigue ocupando todo). */
.js .con-explorador > .barra { position: fixed; top: 0; left: 0; right: 0; z-index: 1100; background: var(--bg); }
.js .con-explorador > main { position: fixed; top: var(--barra-h); left: 0; right: 0; bottom: 0; }
html:has(> body.con-explorador) { overflow: hidden; overscroll-behavior: none; }
.js .explorador { height: 100%; overflow: hidden; }
/* Los anuncios automáticos de AdSense ponen «height: auto !important» en línea en <main> y en .explorador
   cuando insertan un anuncio en el panel: el explorador crecía al alto de la lista (17.000 px en una ciudad
   con 79 locales), el mapa se encuadraba en ese bloque gigante (se veía otra zona, sin alfileres) y el panel
   dejaba de desplazarse. max-height no lo toca AdSense y la fila de la rejilla no puede pasar del alto disponible. */
.js .explorador { max-height: 100%; grid-template-rows: minmax(0, 1fr); }
html:not(.js) .exp-mapa, html:not(.js) .hoja-asa { display: none; }
html:not(.js) .exp-panel { padding: 0 var(--margen) 0; max-width: 760px; }

.exp-panel { background: var(--bg); }
.hoja-asa { display: none; }
.hoja-cabeza h1 { padding-right: 8px; }
.hoja-cta { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.hoja-cta .boton-ancho { flex: 1 1 auto; width: auto; }
.hoja-cta .enlace-boton { flex-basis: 100%; }
.hoja-cuerpo > * + * { margin-top: 24px; }
.hoja-cuerpo > .ubicar-estado:empty { display: none; }
.hoja-cuerpo > .ubicar-estado:empty + * { margin-top: 0; }

.ubicar-estado { font-weight: 500; font-size: var(--step-small); display: flex; gap: 8px; align-items: baseline; }
.ubicar-estado::before { flex: none; font-weight: 600; }
.ubicar-estado[data-estado="ok"] { color: var(--ok); }
.ubicar-estado[data-estado="ok"]::before { content: "✓"; }
.ubicar-estado[data-estado="error"] { color: var(--error); }
.ubicar-estado[data-estado="error"]::before { content: "!"; display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; border-radius: 50%; background: var(--error); color: #fff; font-size: 0.8em; }
.ubicar-estado[data-estado="pendiente"] { color: var(--pendiente); }
.ubicar-estado[data-estado="pendiente"]::before { content: "…"; }

/* Botones flotantes del mapa */
.mapa-resumen {
  position: absolute; z-index: 1000; top: 14px; left: 14px; max-width: calc(100% - 96px);
  background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 999px; padding: 9px 16px; font-size: var(--step-small); font-weight: 500; box-shadow: var(--sombra);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mapa-resumen:empty { display: none; }
.mapa-resumen[data-estado="ok"] { color: var(--ok); }
.mapa-resumen .dist-t { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; color: inherit; }
.mapa-resumen .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mapa-botones { position: absolute; z-index: 1000; top: 14px; right: 14px; display: flex; flex-direction: column; gap: 10px; }
.mapa-botones[hidden] { display: none; }
.mapa-grupo { display: flex; flex-direction: column; background: #fff; border-radius: 999px; box-shadow: var(--sombra); overflow: hidden; }
.mapa-boton {
  width: 46px; height: 46px; display: grid; place-items: center; border: 0; background: #fff; color: var(--ink);
  cursor: pointer; padding: 0; border-radius: 999px; -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.mapa-grupo .mapa-boton { border-radius: 0; }
.mapa-grupo .mapa-boton + .mapa-boton { box-shadow: inset 0 1px 0 var(--surface); }
.mapa-boton svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mapa-boton-solo { box-shadow: var(--sombra); }
.mapa-boton:active { transform: scale(0.94); }
.mapa-boton[aria-busy="true"] svg { animation: girar 1.2s linear infinite; }
.mapa-boton.activo { background: var(--yo); color: #fff; }
.mapa-boton[hidden], .enlace-boton[hidden] { display: none; }
/* Elegir un punto: el botón queda presionado y el mapa espera el toque */
.mapa-boton[aria-pressed="true"] { background: var(--ink); color: #fff; }
.mapa.eligiendo.leaflet-grab, .mapa.eligiendo .leaflet-marker-icon { cursor: crosshair; }
.mapa.eligiendo::after { content: ""; position: absolute; inset: 0; z-index: 900; pointer-events: none; box-shadow: inset 0 0 0 3px var(--ink); }
@keyframes girar { to { transform: rotate(360deg); } }
@media (hover: hover) and (pointer: fine) {
  .mapa-boton:hover { background: var(--papel); }
  .mapa-boton.activo:hover { background: #0947ad; }
}

/* Leaflet: fondo apagado para que resalten los puntos */
.mapa.leaflet-container { font-family: var(--fuente); background: var(--papel); }
.mapa .leaflet-tile-pane, .mapa .fondo-fijo { filter: grayscale(1) sepia(0.28) hue-rotate(165deg) saturate(1.5) brightness(1.04) contrast(0.9); }
.mapa .leaflet-control-container .leaflet-control-attribution {
  font-size: 11px; background: rgba(255, 255, 255, 0.86); border-radius: 999px; padding: 3px 10px; margin: 0 16px 12px 0; color: var(--muted);
}
.mapa .leaflet-control-attribution a { color: var(--muted); }
.leaflet-bottom { transition: transform 450ms var(--ease-drawer); }

/* Puntos del mapa (divIcon de tamaño 0: el hijo se centra en la coordenada) */
.pin { background: none; border: 0; }
.pin > span { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); }
.leaflet-marker-icon:focus-visible { outline: none; }
.leaflet-marker-icon:focus-visible > span { outline: 3px solid var(--ink); outline-offset: 3px; }
/* Tiendas: alfiler con la punta en la coordenada (crece desde la punta) */
.pin > .pin-punto {
  width: 24px; height: 32px; color: var(--accent); transform: translate(-50%, -100%); transform-origin: 50% 100%;
  filter: drop-shadow(0 1px 2px rgba(10, 10, 10, 0.35)); transition: transform 160ms var(--ease-out), color 160ms ease;
}
.pin-punto svg, .pin-foco svg { display: block; width: 100%; height: 100%; }
.pin.activo .pin-punto { transform: translate(-50%, -100%) scale(1.3); color: var(--negro); }
.atenuado .pin-punto { opacity: 0.4; }
/* Tienda de la ficha: alfiler grande con el nombre al lado, como en Google Maps */
.pin > .pin-foco { display: flex; align-items: flex-start; gap: 4px; white-space: nowrap; transform: translate(-17px, -100%); }
.pin-foco svg { width: 34px; height: 45px; flex: none; color: var(--accent); filter: drop-shadow(0 2px 3px rgba(10, 10, 10, 0.35)); }
.pin-foco-nombre {
  margin-top: 3px; background: var(--accent); color: #fff; border: 2.5px solid #fff; border-radius: 999px;
  padding: 5px 12px; font-size: var(--step-small); font-weight: 600; box-shadow: var(--sombra);
}
/* Minutos desde tu ubicación: globo con colita que apunta a la tienda */
.pin > .pin-min {
  white-space: nowrap; background: var(--negro); color: #fff; border: 2.5px solid #fff; border-radius: 999px;
  padding: 5px 10px; font-size: 13px; line-height: 1; font-weight: 600; box-shadow: var(--sombra);
  transform: translate(-50%, calc(-100% - 7px)); transform-origin: 50% calc(100% + 7px); transition: transform 160ms var(--ease-out);
}
.pin-min::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 10px; height: 10px; background: inherit;
  border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translate(-50%, -55%) rotate(45deg);
}
.pin-min.cercana { background: var(--accent); font-size: 15px; padding: 7px 12px; }
/* Qué es cada lugar: ícono del tipo de negocio dentro del globo de minutos */
.pin > .pin-min:has(.ico-tipo) { display: inline-flex; align-items: center; gap: 4px; padding-left: 7px; }
.pin-min .ico-tipo { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.pin-min.cercana .ico-tipo { width: 17px; height: 17px; }
.pin > .pin-min.cercana:has(.ico-tipo) { gap: 5px; padding-left: 9px; }
.pin.activo .pin-min { transform: translate(-50%, calc(-100% - 7px)) scale(1.15); background: var(--accent); }
.pin-burbuja {
  width: var(--d); height: var(--d); border-radius: 50%; display: grid; place-items: center;
  background: rgba(176, 41, 143, 0.9); color: #fff; border: 3px solid rgba(255, 255, 255, 0.95);
  font-weight: 600; font-size: 15px; box-shadow: var(--sombra); transition: transform 160ms var(--ease-out);
}
.pin-burbuja b { font-weight: 600; }
.pin-nombre.pin-nombre-oculto { visibility: hidden; }
.pin-nombre {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 5px;
  font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; pointer-events: none;
  background: rgba(255, 255, 255, 0.9); border-radius: 999px; padding: 2px 9px; box-shadow: 0 1px 3px rgba(10, 10, 10, 0.12);
}
@media (hover: hover) and (pointer: fine) {
  .pin:hover .pin-burbuja { transform: translate(-50%, -50%) scale(1.08); }
  .pin:hover .pin-punto { transform: translate(-50%, -100%) scale(1.15); }
}
.pin-yo { width: 20px; height: 20px; border-radius: 50%; background: var(--yo); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(11, 87, 208, 0.5); }
.pin-yo::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%; background: var(--yo); opacity: 0.35;
  animation: halo 2.2s var(--ease-out) infinite; z-index: -1;
}
@keyframes halo { from { transform: scale(1); opacity: 0.35; } to { transform: scale(3); opacity: 0; } }
/* Punto elegido en el mapa: distinto de «tu ubicación» (sin halo, color tinta) */
.pin-yo.es-punto { background: var(--ink); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45); }
.pin-yo.es-punto::after { display: none; }
/* La entrada usa «scale» suelto para no pisar el transform de cada marcador (alfiler anclado en la punta, burbuja al centro) */
.js .entra > span { animation: entra-pin 260ms var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes entra-pin { from { opacity: 0; scale: 0.8; } }

/* Contenido del panel */
.panel-bloque { display: grid; gap: 14px; }
.panel-bloque > h2 { margin-bottom: 2px; }
.aviso-ejemplo { background: var(--sand); padding: 14px 18px; border-radius: 20px; font-size: var(--step-small); }
.aviso-ok { color: var(--ok); font-weight: 500; }
.aviso-error { color: var(--error); font-weight: 500; display: flex; gap: 8px; align-items: baseline; }
.aviso-error { color: var(--error); font-weight: 500; }
.acciones { display: flex; flex-wrap: wrap; gap: 8px; }

/* Distancia y tiempos desde el usuario: una línea propia */
.dist { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; font-size: var(--step-small); line-height: 1.4; }
.dist[hidden] { display: none; }
.dist-m { font-weight: 600; font-variant-numeric: tabular-nums; }
.dist-t { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dist .ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.dist-foco { flex-basis: 100%; }
.nota-tiempos { font-size: 0.8125rem; color: var(--muted); line-height: 1.45; }
/* Mientras no hay ubicación: la misma línea, vacía, que invita a calcularla */
.dist-pedir {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; width: fit-content; max-width: 100%;
  background: none; border: 0; padding: 2px 0; margin: 0; font: inherit; font-size: var(--step-small); text-align: left; color: var(--muted); cursor: pointer;
}
.dist-pedir[hidden] { display: none; }
.dist-pedir .dist-m { font-weight: 600; color: var(--muted); }
.dist-pedir [data-ph]::after { content: attr(data-ph); }

/* Leer en voz alta: interruptor (aria-pressed). Encendido se ve oscuro y con ondas; apagado, claro y con una X:
   el estado se distingue por luminosidad e ícono, no solo por el color */
.voz { margin: 0; }
.boton-voz {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px;
  border: 0; border-radius: 999px; background: var(--surface); color: var(--ink);
  font: inherit; font-size: var(--step-small); font-weight: 500; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease; -webkit-tap-highlight-color: transparent;
}
.boton-voz .ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.boton-voz[aria-pressed="false"] .ico-voz-on, .boton-voz[aria-pressed="true"] .ico-voz-off { display: none; }
.boton-voz[aria-pressed="true"] { background: var(--ink); color: var(--negro-ink); }
.boton-voz:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .boton-voz[aria-pressed="false"]:hover { background: var(--papel); }
  .boton-voz[aria-pressed="true"]:hover { background: #2b2b2b; }
}
@media (prefers-reduced-motion: reduce) { .boton-voz { transition: none; } } /* el guion se dibuja, no se escribe: no es contenido de la página */
.dist-pedir .ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dist-pedir-txt { color: var(--ink); text-decoration: underline; text-underline-offset: 0.15em; }
@media (hover: hover) and (pointer: fine) { .dist-pedir:hover .dist-pedir-txt { color: var(--accent); } }
.nota-tiempos[hidden] { display: none; }

/* Resultados del buscador */
.resultados { display: grid; gap: 16px; }
.resultados[hidden] { display: none; }
.resultado-titulo { font-size: var(--step-h2); }
.lista-tiendas { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lista-tiendas li {
  display: grid; grid-template-columns: 56px 1fr; gap: 6px 14px; align-items: center;
  padding: 10px; margin: 0 -10px; border-radius: 22px; transition: background-color 160ms ease;
}
.lista-tiendas li > :not(.minutos) { grid-column: 2; }
.lista-tiendas li .fila-botones { margin-top: 4px; }
.minutos {
  grid-row: 1 / span 3; grid-column: 1; align-self: start;
  width: 56px; aspect-ratio: 1; border-radius: 50%; background: var(--sand);
  display: grid; place-content: center; text-align: center; line-height: 1; font-weight: 500;
}
.minutos b { font-size: 1.3rem; font-weight: 600; display: block; }
.minutos small { font-size: 12px; }
li.cercana .minutos { background: var(--accent); color: var(--accent-ink); }
.lista-tiendas .nombre { font-weight: 500; text-decoration: none; }
.lista-tiendas .nombre:hover { text-decoration: underline; }
.lista-tiendas .tipo { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: var(--step-small); line-height: 1.35; margin-top: 2px; }
.lista-tiendas .tipo .ico-tipo { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lista-tiendas .direccion { color: var(--muted); font-size: var(--step-small); display: block; line-height: 1.35; }
li.activa { background: var(--surface); }

/* Filas: marca → estado → municipio */
.filas { list-style: none; margin: 0; padding: 0; display: grid; }
.filas > li > a, .fila-proxima {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: baseline;
  padding: 12px 10px; margin: 0 -10px; border-radius: 18px; text-decoration: none;
}
.filas > li > a:hover { background: var(--surface); }
.filas .fila-a { font-weight: 500; }
.filas .fila-b { color: var(--muted); font-size: var(--step-small); grid-column: 1; grid-row: 2; }
.filas .fila-b:empty { display: none; }
.filas .fila-b.fila-horario { grid-row: 3; } /* Öffnungszeiten: tercera línea, bajo la dirección */
.filas .fila-b.fila-ref { grid-row: 4; } /* Ort, Telefon: bajo el horario */
.filas .fila-b.fila-litro { grid-row: 4; } /* gasolineras: precio por litro, bajo las referencias */
.filas .fila-c { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; grid-column: 2; grid-row: 1; }
.fila-proxima { color: var(--muted); }
/* Portada: un encabezado por categoría (Tiendas de conveniencia, Supermercados) sobre su lista de cadenas */
.filas-titulo { font-size: var(--step-body); font-weight: 500; letter-spacing: -0.01em; color: var(--muted); margin-top: 6px; }
.filas-titulo a { color: inherit; }
.filas-titulo:first-of-type { margin-top: 0; }

/* Lista de tiendas de un municipio o cercanas a una tienda */
.filas-tiendas { gap: 2px; }
.filas-tiendas > li[data-tienda] {
  display: grid; gap: 8px; padding: 12px 10px; margin: 0 -10px; border-radius: 22px;
  transition: background-color 160ms ease; scroll-margin-top: 56px;
}
.filas-tiendas .fila-enlace { display: grid; gap: 2px; text-decoration: none; }
.filas-tiendas .fila-enlace:hover .fila-nombre, .filas-tiendas .fila-enlace:hover .fila-a { text-decoration: underline; }
.filas-tiendas .fila-a { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; font-weight: 500; }
.filas-tiendas .fila-b { color: var(--muted); font-size: var(--step-small); }
.filas-tiendas .fila-grupo { margin-top: 18px; padding: 0 0 2px; color: var(--muted); font-size: var(--step-small); font-weight: 500; }
.filas-tiendas .fila-grupo:first-child { margin-top: 0; }
.fila-min { color: var(--accent); font-size: var(--step-small); font-weight: 500; }
.fila-min:empty { display: none; }
.filas-tiendas > li.cercana .fila-a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); align-self: center; }
.fila-anuncio { list-style: none; }

/* Texto de apoyo y preguntas */
.texto-seo p + p { margin-top: 0; }
.faq-simple .pregunta { display: grid; gap: 4px; padding: 14px 0; box-shadow: inset 0 1px 0 var(--surface); }
.faq-simple .pregunta:first-of-type { box-shadow: none; padding-top: 0; }
.faq-simple h3 { font-size: var(--step-body); font-weight: 500; letter-spacing: -0.01em; }
.faq-simple p { color: var(--ink); }

/* Cómo funciona: tres círculos */
.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pasos li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.paso-circulo { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; }
.paso-circulo.p1 { background: var(--surface); }
.paso-circulo.p2 { background: var(--sand); }
.paso-circulo.p3 { background: var(--negro); color: var(--negro-ink); }
.pasos p { padding-top: 8px; }

/* Preguntas: fichas de archivo */
.fichas { display: grid; margin-top: 30px; }
.ficha { position: relative; border-radius: 0 0 24px 24px; margin-top: 34px; }
.ficha:first-child { margin-top: 0; }
.ficha::before {
  content: ""; position: absolute; top: -28px; height: 28px; width: 128px;
  left: calc(var(--n) * 96px); background: inherit;
  clip-path: polygon(0 100%, 12px 0, calc(100% - 12px) 0, 100% 100%);
}
.ficha.f0 { background: var(--sand); }
.ficha.f1 { background: var(--surface); }
.ficha.f2 { background: var(--negro); color: var(--negro-ink); }
.ficha-pregunta { font-size: inherit; margin: 0; }
.ficha-pregunta button {
  width: 100%; text-align: left; background: none; border: 0; color: inherit; font: inherit;
  padding: 20px 22px 18px; cursor: pointer; display: grid; gap: 4px; border-radius: 0 0 24px 24px;
}
.ficha-tema { font-size: var(--step-small); opacity: 0.8; }
.ficha-tema::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }
.ficha-q { font-size: 1.0625rem; font-weight: 500; line-height: 1.3; }
.ficha-respuesta { padding: 0 22px 22px; font-size: 0.97rem; }
.ficha-respuesta[hidden] { display: none; }

/* Vecinos */
.pastillas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pastilla { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); padding: 9px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: var(--step-small); }
.pastilla:hover { background: var(--sand); }
.pastilla-n { background: var(--negro); color: var(--negro-ink); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.pastilla-texto { background: transparent; box-shadow: inset 0 0 0 1px var(--surface); font-weight: 400; }
.pastilla-texto:hover { background: transparent; }

/* Reportar */
.formulario { display: grid; gap: 12px; }
.formulario label { font-weight: 500; }
.formulario fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.formulario legend { font-weight: 500; margin-bottom: 8px; }
.formulario fieldset label { font-weight: 400; display: flex; gap: 10px; align-items: center; }
.formulario input[type="text"], .formulario input[type="email"], .formulario input[type="password"], .formulario textarea, .formulario select, .formulario input[type="file"] {
  font: inherit; padding: 12px 16px; border: 2px solid var(--ink); border-radius: 18px; background: #fff; color: var(--ink); width: 100%;
}
.formulario textarea { border-radius: 22px; }
.formulario .boton { justify-self: start; }
.formulario-linea { display: inline-block; margin: 8px 8px 0 0; }
.formulario-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Anuncios: espacio reservado, nunca sobre el mapa */
.anuncio { display: grid; gap: 6px; margin: 8px 0; }
.anuncio-etiqueta { font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.anuncio-vacio { place-items: center; background: var(--surface); border-radius: 22px; color: var(--muted); font-size: var(--step-small); }
.anuncio-resultados[hidden] { display: none; }
/* Demostración temporal: dónde irán los anuncios */
.anuncio-demo {
  place-content: center; justify-items: center; text-align: center; gap: 6px; padding: 18px;
  background: repeating-linear-gradient(45deg, #ffd400 0 14px, #ffe45c 14px 28px);
  border: 3px dashed var(--negro); border-radius: 22px; color: var(--negro); font-size: var(--step-small);
}
.anuncio-demo strong { font-size: 1.0625rem; font-weight: 600; }
/* Calle y número destacados en la ficha: la familia llega hasta 600, sin negrita sintética */
.lead strong, .texto-seo strong { font-weight: 600; color: var(--ink); }
.anuncio-demo-tag { background: var(--negro); color: #ffd400; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.fila-anuncio { padding: 18px 0; }
main > .anuncio { margin-top: 48px; }
.anuncio ins { width: 100%; }
/* Anuncios de escritorio: arriba de la lista (≥900 px) y columna 300×600 a la derecha del mapa (≥1440×700).
   Ocultos no se piden (site.js solo pide los visibles). Ninguno es fijo sobre el contenido ni va en la hoja móvil. */
.anuncio-panel, .exp-columna, .anuncio-movil { display: none; }
.anuncio-panel .anuncio, .anuncio-movil .anuncio { margin: 0; }
.anuncio-panel ins, .anuncio-movil ins { max-width: 100%; }
/* Móvil: el anuncio de resultados va tras las 3 más cercanas, como una fila más de la lista */
.lista-tiendas > li.fila-anuncio-resultados { display: block; padding: 0; margin: 10px 0; border-radius: 0; background: none; }

/* Pie: cierra con el logotipo a todo el ancho */
.pie { background: var(--negro); color: var(--negro-ink); margin-top: 48px; padding: 40px 0 28px; }
.pie > * { max-width: var(--ancho); margin-left: auto; margin-right: auto; padding-left: var(--margen); padding-right: var(--margen); }
.pie :focus-visible { outline-color: var(--negro-ink); }
.pie-marca { margin: 0; --pin: var(--accent); }
.pie-logo { display: block; width: 100%; height: auto; aspect-ratio: 3421 / 908; color: var(--negro-ink); }
.pie-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.pie-cols > div > a { display: block; text-decoration: none; margin-top: 8px; }
.pie-cols a:hover { text-decoration: underline; }
.pie-titulo { font-weight: 500; margin-bottom: 4px; }
.pie-fuente { font-size: var(--step-small); display: grid; gap: 12px; align-content: start; max-width: 52ch; }
.pie-final { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; font-size: var(--step-small); }
.pie-panel { margin: 40px calc(-1 * var(--panel-pad)) 0; padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; }
.pie-panel > * { padding-left: var(--panel-pad); padding-right: var(--panel-pad); }
.pie-panel .pie-logo { width: min(100%, 280px); }
.pie-panel .pie-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.pie-panel .pie-fuente { grid-column: 1 / -1; }
.pie-panel .pie-final { margin-top: 24px; }

/* Página 404 */
.error-404 { padding: 64px 0; display: grid; gap: 20px; justify-items: start; }
.error-404 h1 { font-size: var(--step-head); }

/* Admin (interfaz de trabajo: aquí sí hay líneas) */
.admin, .admin-caja { padding: 32px 0; }
.admin-caja { max-width: 420px; }
.admin h1, .admin-caja h1 { font-size: var(--step-head); }
.admin-cabecera { display: grid; gap: 8px; margin-bottom: 24px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.admin-panel { background: #fff; border-radius: 24px; padding: 24px; display: grid; gap: 16px; align-content: start; }
.admin-panel h2 { font-size: var(--step-lead); }
.admin-ancho { grid-column: 1 / -1; }
.tabla { width: 100%; border-collapse: collapse; font-size: var(--step-small); }
.tabla th, .tabla td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--surface); vertical-align: top; }

.error-circulo { width: 128px; height: 128px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; font-size: 2.25rem; font-weight: 600; letter-spacing: -0.03em; }

/* ---------- Escritorio: panel a la izquierda, mapa a la derecha ---------- */
@media (min-width: 900px) {
  .js .explorador { display: grid; grid-template-columns: minmax(360px, 420px) minmax(0, 1fr); }
  .js .exp-panel {
    position: relative; grid-column: 1; grid-row: 1; overflow-y: auto; overscroll-behavior: contain;
    padding: 6px var(--panel-pad) 0; display: flex; flex-direction: column; gap: 22px;
    scrollbar-width: thin; scrollbar-color: var(--surface) transparent;
  }
  .js .hoja-cuerpo { display: contents; }
  .js .exp-panel .migas { order: -1; margin-bottom: -10px; }
  .js .hoja-cuerpo > * + * { margin-top: 0; }
  .js .exp-mapa { grid-column: 2; grid-row: 1; margin: 0 14px 14px 0; border-radius: 28px; }
  .js .anuncio-panel { display: block; }
}
@media (min-width: 1440px) and (min-height: 700px) {
  .js .explorador { grid-template-columns: minmax(360px, 420px) minmax(0, 1fr) 314px; }
  .js .exp-mapa { margin-right: 28px; }
  .js .exp-columna { display: grid; grid-column: 3; grid-row: 1; align-content: center; padding: 0 14px 14px 0; min-height: 0; }
  .js .exp-columna .anuncio { margin: 0; }
}

/* ---------- Móvil y tableta vertical: mapa a pantalla completa y hoja inferior ---------- */
@media (max-width: 899.98px) {
  :root { --barra-h: 56px; --panel-pad: 20px; }
  .barra { gap: 14px; padding: 0 16px; }
  .marca-sitio { gap: 8px; }
  .marca-sitio .logo { height: 24px; }
  .marca-pais { font-size: var(--step-small); }
  .barra-nav { gap: 14px; font-size: var(--step-small); }
  .barra > .boton { display: none; }
  .js .explorador { position: relative; }
  .js .exp-mapa { position: absolute; inset: 0; }
  .js .exp-panel {
    position: absolute; z-index: 1100; left: 0; right: 0; bottom: 0; height: 100%;
    border-radius: 24px 24px 0 0; box-shadow: 0 -6px 28px rgba(10, 10, 10, 0.18);
    overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--panel-pad);
    transform: translateY(calc(100% - 172px));
    transition: transform 450ms var(--ease-drawer);
    will-change: transform;
  }
  .js .exp-panel.arrastrando { transition: none; }
  .js .hoja-asa {
    display: flex; justify-content: center; align-items: center; position: sticky; top: 0; z-index: 2;
    width: calc(100% + 2 * var(--panel-pad)); margin: 0 calc(-1 * var(--panel-pad)); height: 26px;
    background: var(--bg); border: 0; padding: 0; cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent;
  }
  .js .hoja-asa::before { content: ""; width: 40px; height: 5px; border-radius: 999px; background: rgba(10, 10, 10, 0.28); }
  .js .hoja-asa:focus-visible { outline-offset: -4px; }
  .js .hoja-cabeza { touch-action: none; cursor: grab; padding-bottom: 12px; }
  .js .hoja-cabeza h1 { font-size: 1.5rem; letter-spacing: -0.02em; }
  .js .hoja-cuerpo { padding-top: 22px; }
  /* Bajo el botón de ubicación: con la hoja a media altura se ve; cerrada (asoma) queda entera bajo el borde */
  .js .anuncio-movil { display: block; margin-top: 36px; }
  .js .hoja-cuerpo::after { content: ""; display: block; height: var(--hoja-oculto, 0px); }
  .js .exp-mapa .leaflet-bottom { transform: translateY(calc(-1 * var(--hoja-visible, 172px))); }
  .mapa-resumen { top: 12px; left: 12px; }
  .mapa-botones { top: 12px; right: 12px; }
  .pie-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pie-fuente { grid-column: 1 / -1; }
  .formulario-dos { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .js .exp-panel, .leaflet-bottom { transition-duration: 0ms; }
  .js .entra > span { animation: none; }
  .pin-yo::after { animation: none; opacity: 0.2; transform: scale(2); }
  .boton, .mapa-boton, .pin > span { transition: none; }
  .mapa-boton[aria-busy="true"] svg { animation: none; }
}

/* Páginas de texto: Acerca, Contacto, Privacidad */
.texto-largo { display: grid; gap: 16px; padding-top: 24px; padding-bottom: 72px; }
.texto-largo > * { max-width: 68ch; }
.texto-largo h1 { font-size: var(--step-head); }
.texto-largo h2 { margin-top: 20px; }
.texto-largo .lead { margin-bottom: 8px; }
.bloque-formulario { display: grid; gap: 16px; margin-top: 20px; }

/* Listas largas (Tijuana tiene cientos de OXXO): el navegador no dibuja las filas que no se ven */
.filas-tiendas > li[data-tienda] { content-visibility: auto; contain-intrinsic-size: auto 132px; }
/* Con muchas tiendas en el mapa, alfileres más chicos hasta acercarse (como Google Maps) */
.mapa-denso .pin > .pin-punto { width: 15px; height: 20px; }

/* Opiniones de visitantes */
.opiniones { --estrella: #c98a00; }
.opiniones h3 { margin-top: 8px; }
.estrellas { color: var(--estrella); letter-spacing: 2px; font-size: 18px; line-height: 1; margin: 0; }
.opiniones-resumen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.opiniones-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.opiniones-lista li { display: grid; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid rgba(10, 10, 10, 0.1); }
.opiniones-lista li p { margin: 0; }
.estrellas-campo { border: 0; padding: 0; margin: 0; }
.estrellas-campo legend { padding: 0; margin-bottom: 4px; font-weight: 600; }
/* De 5 a 1 en el HTML y al revés en pantalla: al pasar el mouse o elegir, se pintan también las de la izquierda */
.estrellas-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; width: max-content; gap: 2px; }
.estrellas-input label { font-size: 34px; line-height: 1; color: #9aa9b3; cursor: pointer; padding: 2px; border-radius: 6px; transition: color 120ms ease, transform 120ms var(--ease-out); }
.estrellas-input input:checked ~ label, .estrellas-input input:checked + label { color: var(--estrella); }
.estrellas-input input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .estrellas-input:hover label { color: #9aa9b3; }
  .estrellas-input label:hover, .estrellas-input label:hover ~ label { color: var(--estrella); }
  .estrellas-input label:active { transform: scale(0.92); }
}
@media (prefers-reduced-motion: reduce) { .estrellas-input label { transition: none; } }

/* Datos de la ficha que no siempre existen: horario (OpenStreetMap), sitio web y tamaño (DENUE) */
.datos-ficha { display: grid; gap: 14px; margin: 0; padding: 16px 18px; background: var(--papel); border-radius: 16px; }
.datos-ficha > div { display: grid; gap: 2px; }
.datos-ficha dt { color: var(--muted); font-size: var(--step-small); }
.datos-ficha dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.datos-ficha .horario-tramo, .datos-ficha .datos-nota { display: block; }
.datos-ficha .datos-nota { margin-top: 4px; }

/* Pantallas de 320 px: el pie en una columna (los nombres largos no caben en dos) */
@media (max-width: 359px) { .pie-cols, .pie-panel .pie-cols { grid-template-columns: minmax(0, 1fr); } }

/* Gasolineras: precio de la gasolina por lugar y por estación */
.tabla-precios { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-variant-numeric: tabular-nums; margin: 4px 0 8px; }
.tabla-precios th, .tabla-precios td { text-align: right; padding: 8px 10px; background: var(--papel); }
.tabla-precios th:first-child, .tabla-precios td:first-child { text-align: left; border-radius: 12px 0 0 12px; }
.tabla-precios tr > :last-child { border-radius: 0 12px 12px 0; }
.tabla-precios thead th { background: none; color: var(--muted); font-size: var(--step-small); font-weight: 400; padding-top: 0; padding-bottom: 0; }
.tabla-precios tbody th { font-weight: 500; }
.tabla-precios td { font-weight: 500; }
.tabla-lugares tbody th a { text-decoration: none; }
.tabla-lugares tbody th a:hover { text-decoration: underline; }
.filas-precios .fila-enlace { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; }
.filas-precios .fila-a, .filas-precios .fila-b { grid-column: 1; }
.filas-precios .fila-precio { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.fila-litro { display: flex; flex-wrap: wrap; gap: 4px 12px; font-variant-numeric: tabular-nums; }
.fila-litro b { font-weight: 600; color: var(--ink); }
.precio-ficha { margin: 0 0 14px; }
.precio-ficha h2 { font-size: 1.1rem; margin: 0 0 8px; }
.litros { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 8px; margin: 0 0 8px; }
.litros > div { background: var(--papel); border-radius: 16px; padding: 10px 12px; }
.litros dt { color: var(--muted); font-size: var(--step-small); }
.litros dd { margin: 2px 0 0; font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
@media (max-width: 420px) {
  .tabla-precios th, .tabla-precios td { padding: 7px 6px; font-size: 15px; }
  .tabla-precios thead th { font-size: 12px; }
  .filas-precios .fila-precio { font-size: 1rem; }
  .litros > div { padding: 9px 10px; }
  .litros dd { font-size: 1.2rem; }
}

/* Avisos pendientes (ámbar con icono: nunca solo color) */
.aviso-pendiente { color: var(--pendiente); font-weight: 500; display: flex; gap: 8px; align-items: baseline; }

/* Spritpreise (Tankerkönig): se cargan al pulsar el botón */
.preise-mandos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 10px 0 12px; }
.preise-rad { display: inline-flex; align-items: center; gap: 8px; font-size: var(--step-small); color: var(--muted); }
.preise-rad select { font: inherit; color: var(--ink); background: var(--papel); border: 1px solid var(--surface); border-radius: 12px; padding: 8px 10px; min-height: 44px; }
.preise-rad select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.preise-ziel:empty { display: none; }
.preise-ziel h3 { font-size: var(--step-body); margin: 14px 0 6px; }
.preise-estado { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: var(--step-small); color: var(--muted); margin: 0 0 8px; }
.preise-estado .aviso-ok, .preise-estado .aviso-pendiente { display: inline-flex; gap: 6px; }
.preise-lista { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.preise-fila { background: var(--papel); border-radius: 16px; padding: 10px 12px; display: grid; gap: 6px; }
.preise-fila.cerrada { opacity: 0.68; }
.preise-zu { color: var(--pendiente); font-weight: 500; }
.preise-nombre { display: block; font-weight: 500; overflow-wrap: anywhere; }
.preise-dir { display: block; color: var(--muted); font-size: var(--step-small); line-height: 1.35; }
.preise-sorten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; font-variant-numeric: tabular-nums; }
.preise-sorten dt { color: var(--muted); font-size: 12px; }
.preise-sorten dd { margin: 0; font-weight: 600; font-size: 1.05rem; }
.preise-sorten .mejor .preis { color: var(--ok); }
.preis sup { font-size: 0.62em; vertical-align: 0.45em; margin-left: 0.5px; }
.preis-leer { color: var(--muted); font-weight: 400; }
.mejor-tag { display: block; font-size: 11px; font-weight: 500; color: var(--ok); letter-spacing: 0.01em; }
.mejor-tag::before { content: "✓ "; }
.preise-quelle { margin-top: 10px; }
.litros dd .preis sup { font-size: 0.55em; }

/* Si AdSense no tiene anuncio para un espacio de escritorio, el espacio se cierra (forma documentada por Google) */
.anuncio:has(> ins[data-ad-status="unfilled"]), .fila-anuncio:has(ins[data-ad-status="unfilled"]),
.anuncio-panel:has(ins[data-ad-status="unfilled"]), .anuncio-movil:has(ins[data-ad-status="unfilled"]) { display: none !important; }
@media (min-width: 1440px) and (min-height: 700px) {
  .js .explorador:has(.exp-columna ins[data-ad-status="unfilled"]) { grid-template-columns: minmax(360px, 420px) minmax(0, 1fr); }
  .js .explorador:has(.exp-columna ins[data-ad-status="unfilled"]) .exp-mapa { margin-right: 14px; }
  .js .explorador:has(.exp-columna ins[data-ad-status="unfilled"]) .exp-columna { display: none; }
}

/* ---------- Otros países: el sufijo del logo abre la lista; también en el menú lateral y en el pie ---------- */
.marca-grupo { display: inline-flex; align-items: baseline; gap: 10px; flex-shrink: 0; }
.paises-boton {
  display: inline-flex; align-items: baseline; gap: 2px; margin: -12px -8px; padding: 12px 8px; border: 0; border-radius: 999px;
  background: none; font-family: inherit; letter-spacing: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.paises-boton:active { transform: scale(0.97); }
.paises-boton:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .paises-boton:hover { background: var(--surface); color: var(--ink); } }
.paises-flecha { width: 14px; height: 14px; align-self: center; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; transition: transform 160ms var(--ease-out); }
.paises-boton[data-abierto] { background: var(--surface); color: var(--ink); }
.paises-boton[data-abierto] .paises-flecha { transform: rotate(180deg); }
/* Lista flotante (popover nativo): sin soporte queda oculta y el botón abre el menú lateral */
.paises-pop {
  display: none; position: fixed; inset: auto; top: calc(var(--barra-h) - 6px); left: 16px; margin: 0;
  width: 320px; max-width: calc(100vw - 24px); max-height: min(calc(100dvh - var(--barra-h) - 16px), 640px); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px; border: 0; border-radius: 18px; background: var(--papel); color: var(--ink); box-shadow: var(--sombra);
  opacity: 0; transform: translateY(-6px) scale(0.98); transform-origin: top left;
  transition: opacity 120ms ease, transform 120ms var(--ease-out), overlay 120ms allow-discrete, display 120ms allow-discrete;
}
.paises-pop:popover-open { display: block; opacity: 1; transform: none; transition-duration: 180ms; }
@starting-style { .paises-pop:popover-open { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.paises-pop::backdrop { background: transparent; }
.paises-titulo { display: flex; align-items: center; gap: 8px; margin: 6px 10px 8px; font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.paises-titulo svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.paises-lista { list-style: none; margin: 0; padding: 0; }
.paises-lista a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 0 10px;
  border-radius: 12px; text-decoration: none; color: var(--ink); transition: background-color 160ms ease;
}
.paises-lista a:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.paises-lengua { font-size: var(--step-small); color: var(--muted); white-space: nowrap; }
.paises-lista a[aria-current="true"] { background: var(--surface); font-weight: 600; }
.paises-lista a[aria-current="true"] .paises-lengua { font-weight: 400; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .paises-lista a:hover { background: var(--surface); } }
.menu-lista a[aria-current="true"] { background: var(--surface); font-weight: 600; }
.menu-lista a[aria-current="true"] .ico { color: var(--ink); }
.pie-cols > .pie-fuente { grid-column: 1 / -1; }
.pie-lengua { opacity: 0.72; }
@media (max-width: 899.98px) { .marca-grupo { gap: 8px; } }
.paises-corto { display: none; }
@media (max-width: 420px) { .paises-largo { display: none; } .paises-corto { display: inline; } }
@media (max-width: 599.98px) {
  .paises-pop { left: 12px; right: 12px; width: auto; max-width: none; max-height: calc(100dvh - var(--barra-h) - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  .paises-pop, .paises-pop:popover-open { transform: none; }
  .paises-flecha { transition: none; }
}

/* Tarjeta al tocar un negocio en el mapa: nombre, dirección y el paso a su ficha */
.pop .leaflet-popup-content-wrapper { background: var(--papel); color: var(--ink); border-radius: 22px; box-shadow: var(--sombra); padding: 0; }
.pop .leaflet-popup-content { margin: 14px 16px 16px; font: inherit; line-height: 1.35; }
.pop .leaflet-popup-tip { background: var(--papel); box-shadow: none; }
.pop-tienda { display: grid; gap: 4px; justify-items: start; }
.pop a.pop-nombre { font-size: var(--step-body); font-weight: 500; color: var(--ink); text-decoration: none; }
.pop a.pop-nombre:hover { text-decoration: underline; text-underline-offset: 3px; }
.pop-dir { font-size: var(--step-small); color: var(--muted); }
.pop a.pop-boton { margin-top: 8px; color: var(--accent-ink); }
.pop a.pop-boton:hover { background: var(--accent-hover); }
.pop a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 999px; }
@media (prefers-reduced-motion: no-preference) {
  .leaflet-fade-anim .pop.leaflet-popup { transition: opacity 160ms var(--ease-out); }
}
