/* Hallmark · shape: Catalogue · genre: playful · theme: Squeeze (deal 3/3, seed directorio-local-negocios-oficios-7aff·c334a4f2·2026-11-20·r0) · redesign: full
 * hero: Stage · nav: edge-aligned, the wordmark, one owner action and the search card · footer: plain notes on the deeper green · imagery: photographs (real Xochimilco, Wikimedia Commons, credited) · signature: the real count of businesses set huge, asking the owner «¿Y el tuyo?»
 * axes: mid/geometric-sans/warm · posture: drenched · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: S, a directory hero could be any city's; led with the trajineras photo and the real count of Xochimilco's businesses instead of a generic search banner */
@import url("./tokens.css?v=cielo1");
@import url("./base.css?v=cielo1");

/* Portada de Todo en Xochimilco, estilo Squeeze: el verde es toda la página, el durazno solo en botones,
   la única tarjeta clara es el buscador. Los demás estilos (ficha, alta) siguen en estilos.css. */
:root {
  --color-paper-hover: #C4DCE5;
  --color-card-muted: #4E767C;
  --color-card-rule: #D3E3E9;
  --color-card-well: #EEF5F8;
  --color-scrim: rgb(29 92 99 / 0.6);
  --color-scrim-0: rgb(227 239 244 / 0);
  --color-backdrop: rgb(14 46 50 / 0.6);
  --page: 1280px;
  --page-gutter: 40px;
}
@media (max-width: 60rem) { :root { --page-gutter: 24px; } }
@media (max-width: 40rem) { :root { --page-gutter: 16px; } }

.ancho { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: max(var(--page-gutter), env(safe-area-inset-left, 0px)); }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.con-ico { display: inline-flex; align-items: center; gap: var(--space-xs); }

/* --- Encabezado */
header { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-bar) solid var(--color-rule); }
.barra { display: flex; align-items: center; gap: var(--space-md); padding-block: var(--space-sm); }
.logo { display: flex; align-items: center; gap: var(--space-xs); text-decoration: none; flex: none; color: var(--color-ink); }
.logo img.logo-marca { height: 72px; width: auto; border-radius: 0; display: block; }
.logo b { font: var(--display-weight) var(--text-lg)/1 var(--font-display); letter-spacing: var(--tracking-display); }
.cuantos { font-size: var(--text-sm); font-weight: 700; color: var(--color-muted); }
.derecha { margin-left: auto; display: flex; align-items: center; gap: var(--space-xs); flex: none; }
.derecha a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-control);
  font-weight: 700; font-size: var(--text-sm); text-decoration: none; color: var(--color-ink); background: var(--color-paper-2);
  transition: background-color var(--dur-micro) var(--ease-out), translate var(--dur-micro) var(--ease-out); }
.derecha a:hover { background: var(--color-paper-hover); }
.derecha a.sube { background: var(--color-accent); color: var(--color-accent-ink); }
.derecha a.sube:hover { background: var(--color-accent-2); }
.derecha a:active { translate: 0 1px; }

/* Buscador: la única tarjeta clara de la página */
.capsula { display: flex; align-items: center; max-width: 920px; margin: 0 auto var(--space-sm); background: var(--color-card); color: var(--color-card-ink);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.capsula :focus-visible { outline-color: var(--color-card-ink); }
.seg { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: var(--space-sm) var(--space-lg); border: 0; background: none;
  border-radius: var(--radius-card); cursor: pointer; text-align: left; color: inherit; transition: background-color var(--dur-micro) var(--ease-out); }
.seg:hover { background: var(--color-card-well); }
.seg small { font-size: var(--text-xs); font-weight: 700; color: var(--color-card-muted); }
.seg.que { flex: 1.4; }
.seg.que input { border: 0; outline: 0; background: none; font-size: var(--text-md); font-weight: 500; padding: var(--space-3xs) 0 0; color: var(--color-card-ink); min-width: 0; width: 100%; }
.seg.que input::placeholder { color: var(--color-card-muted); }
.seg.que input::-webkit-search-cancel-button { display: none; }
.seg.donde { flex: 1; }
.seg.donde span { font-size: var(--text-md); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sep { width: var(--rule-bar); height: 32px; background: var(--color-card-rule); flex: none; }
.borrar { display: grid; place-items: center; border: 0; background: var(--color-card-well); color: var(--color-card-ink); border-radius: var(--radius-pill);
  width: 32px; height: 32px; cursor: pointer; flex: none; margin-right: var(--space-2xs); }
.borrar .ico { width: 16px; height: 16px; }
.cerca { display: inline-flex; align-items: center; gap: var(--space-xs); flex: none; border: 0; background: none; color: var(--color-card-ink);
  font-weight: 700; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-control); cursor: pointer; white-space: nowrap; min-height: 44px;
  transition: background-color var(--dur-micro) var(--ease-out); }
.cerca:hover { background: var(--color-card-well); }
.cerca[aria-pressed="true"] { background: var(--color-card-well); box-shadow: inset 0 0 0 3px var(--color-accent); }
.lupa { display: grid; place-items: center; flex: none; width: 48px; height: 48px; margin: var(--space-xs); border: 0; border-radius: var(--radius-control);
  background: var(--color-accent); color: var(--color-accent-ink); cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), translate var(--dur-micro) var(--ease-out); }
.lupa:hover { background: var(--color-accent-2); }
.lupa:active, .cerca:active, .borrar:active { translate: 0 1px; }

/* Temas */
.cats-caja { position: relative; }
.cats { display: flex; gap: var(--space-xs); overflow-x: auto; scrollbar-width: none; padding: var(--space-2xs) var(--space-3xs) var(--space-sm); }
.cats::-webkit-scrollbar { display: none; }
.cats-caja::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 72px; pointer-events: none;
  background: linear-gradient(90deg, var(--color-scrim-0), var(--color-paper) 70%); }
.cats-mas { position: absolute; right: 0; top: var(--space-2xs); z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-pill);
  border: 0; background: var(--color-paper-2); color: var(--color-ink); cursor: pointer; }
.cats-mas:hover { background: var(--color-paper-hover); }
.cat { flex: none; display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md); border: 0;
  border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); font-size: var(--text-sm); font-weight: 700; cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.cat:hover { background: var(--color-paper-hover); }
.cat[aria-pressed="true"] { background: var(--color-paper-3); box-shadow: inset 0 0 0 3px var(--color-accent); }
.cat:active, .cats-mas:active { translate: 0 1px; }

/* --- Contenido */
main { padding-block: var(--space-lg) var(--space-3xl); }
.titulo { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-sm); margin: var(--space-xl) 0 var(--space-md); }
.titulo h2 { font-size: var(--text-2xl); max-width: none; }
.titulo button { border: 0; background: none; padding: var(--space-xs) 0; color: var(--color-ink); font-weight: 700; text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 0.2em; cursor: pointer; white-space: nowrap; transition: text-decoration-color var(--dur-micro) var(--ease-out); }
.titulo button:hover { text-decoration-color: var(--color-accent); }
.resumen { color: var(--color-muted); margin: 0 0 var(--space-lg); max-width: 60ch; }
.resumen b { display: block; margin-bottom: var(--space-2xs); color: var(--color-ink); font: var(--display-weight) var(--text-2xl)/1.1 var(--font-display); letter-spacing: var(--tracking-display); }
.aviso { background: var(--color-paper-3); border-radius: var(--radius-control); padding: var(--space-sm) var(--space-md); margin: 0 0 var(--space-md); max-width: 70ch; }
.aviso a, .vacio a { font-weight: 700; }

.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: var(--space-md); }
.fila { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(232px, 1fr); gap: var(--space-md); overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: var(--space-2xs); }
.fila::-webkit-scrollbar { display: none; }
.fila > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .fila { grid-auto-columns: calc((100% - 4 * var(--space-md)) / 5); } }

/* Tarjeta de negocio: un mosaico un verde más claro */
.tj { position: relative; min-width: 0; display: grid; align-content: start; gap: var(--space-sm); padding: var(--space-xs) var(--space-xs) var(--space-md);
  background: var(--color-paper-2); border-radius: var(--radius-card); transition: background-color var(--dur-micro) var(--ease-out); }
.tj:hover { background: var(--color-paper-hover); }
.tj .img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-control); overflow: hidden; display: grid; place-items: center; background: var(--color-paper-3); }
.tj .img img.foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tj .img .giro { display: grid; justify-items: center; gap: var(--space-xs); text-align: center; padding: 0 var(--space-md); color: var(--color-ink-2); }
.tj .img .giro .ico { width: 52px; height: 52px; stroke-width: 1.75; }
.tj .img .giro span { font: var(--display-weight) var(--text-md)/1.15 var(--font-display); color: var(--color-ink); }
.tj .sello, .tj .dist { position: absolute; top: var(--space-xs); left: var(--space-xs); background: var(--color-ink); color: var(--color-card-ink);
  border-radius: var(--radius-pill); padding: var(--space-2xs) var(--space-sm); font-size: var(--text-xs); font-weight: 700; }
.tj .dist { top: auto; bottom: var(--space-xs); }
.tj .sello.pago { background: var(--color-card); }
.tj .txt { display: grid; gap: var(--space-3xs); padding: 0 var(--space-xs); min-width: 0; }
.tj .nom { font-weight: 700; font-size: var(--text-md); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tj .sub { color: var(--color-muted); font-size: var(--text-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tj .oferta { font-size: var(--text-sm); font-weight: 700; margin-top: var(--space-3xs); }
.tj a.cubre { position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-card); }
.tj a.cubre:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.tj .tel { position: relative; z-index: 2; justify-self: start; display: inline-flex; align-items: center; gap: var(--space-xs); margin-top: var(--space-xs);
  min-height: 44px; padding: 0 var(--space-md); border: var(--rule-bar) solid var(--color-ink); border-radius: var(--radius-control);
  color: var(--color-ink); font-weight: 700; font-size: var(--text-sm); text-decoration: none; transition: background-color var(--dur-micro) var(--ease-out), translate var(--dur-micro) var(--ease-out); }
.tj .tel:hover { background: var(--color-paper-3); }
.tj .tel:active { translate: 0 1px; }
.tj .tel .ico { width: 18px; height: 18px; }

/* --- Portada: texto y acción a la izquierda, foto real a la derecha */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-xl); align-items: center; padding-block: var(--space-md) var(--space-lg); }
.hero.sin-foto { grid-template-columns: minmax(0, 1fr); }
.hero-txt { display: grid; gap: var(--space-md); align-content: center; min-width: 0; }
.hero h1 { font-size: var(--text-display-s); line-height: 1; max-width: 14ch; }
.hero .lead { color: var(--color-muted); font-weight: 500; }
.acciones { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xs); }
.hero-foto { margin: 0; display: grid; gap: var(--space-xs); min-width: 0; }
.hero-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-card); filter: saturate(1.06) contrast(1.04); }
.hero-foto figcaption { font-size: var(--text-xs); font-weight: 700; color: var(--color-muted); }
.credito { color: inherit; text-decoration: none; }
.credito:hover { text-decoration: underline; }

/* La cifra: cuántos negocios ya están, y el camino para el dueño */
.cifra { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: var(--space-xl); align-items: center; margin-top: var(--space-xl);
  padding: var(--space-xl); background: var(--color-paper-3); border-radius: var(--radius-card); }
.figura { font: var(--display-weight) clamp(4.5rem, 11vw, 10rem)/0.85 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: lining-nums tabular-nums; }
.cifra-txt { display: grid; gap: var(--space-sm); min-width: 0; }
.cifra-txt h2 { font-size: var(--text-2xl); }
.cifra-txt p { color: var(--color-muted); max-width: 52ch; }

/* Fichas de pueblo */
.pb { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-card); overflow: hidden; border: 0; padding: 0; cursor: pointer; text-align: left;
  color: var(--color-ink); background: var(--color-paper-3); transition: box-shadow var(--dur-short) var(--ease-out); }
.pb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.06) contrast(1.04); }
.pb > .ico { position: absolute; top: var(--space-md); left: var(--space-md); width: 32px; height: 32px; color: var(--color-ink-2); }
.pb:hover { box-shadow: inset 0 0 0 3px var(--color-accent); }
.pb .capa { position: absolute; inset: 0; background: linear-gradient(180deg, var(--color-scrim-0) 40%, var(--color-scrim)); }
.pb b { position: absolute; left: var(--space-md); bottom: var(--space-xl); right: var(--space-md); font: var(--display-weight) var(--text-lg)/1.1 var(--font-display); letter-spacing: var(--tracking-display); }
.pb small { position: absolute; left: var(--space-md); bottom: var(--space-md); font-size: var(--text-sm); font-weight: 700; color: var(--color-ink-2); }

/* Subtemas y colonias */
.pills { display: flex; gap: var(--space-xs); overflow-x: auto; scrollbar-width: none; margin: 0 0 var(--space-lg); padding: var(--space-3xs); }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; border: 0; background: var(--color-paper-2); color: var(--color-ink);
  border-radius: var(--radius-pill); padding: 0 var(--space-md); font-size: var(--text-sm); font-weight: 700; cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.pill:hover { background: var(--color-paper-hover); }
.pill[aria-pressed="true"] { background: var(--color-paper-3); box-shadow: inset 0 0 0 3px var(--color-accent); }
.pill small { font-weight: 500; color: var(--color-muted); }
.pill:active { translate: 0 1px; }

/* Aviso de oficios sin local */
.oficio { background: var(--color-paper-2); border-radius: var(--radius-card); padding: var(--space-lg); margin: var(--space-xs) 0 var(--space-lg); display: grid; gap: var(--space-sm); }
.oficio b { font: var(--display-weight) var(--text-xl)/1.1 var(--font-display); letter-spacing: var(--tracking-display); }
.oficio p { color: var(--color-muted); max-width: 52ch; }
.oficio-btns { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

/* Botones: durazno el principal, contorno el segundo */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg);
  border: var(--rule-bar) solid var(--color-ink); border-radius: var(--radius-control); background: none; color: var(--color-ink); font-weight: 700;
  text-decoration: none; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), translate var(--dur-micro) var(--ease-out); }
.boton:hover { background: var(--color-paper-3); }
.boton.prim { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.boton.prim:hover { background: var(--color-accent-2); border-color: var(--color-accent-2); }
.boton:active, .mas:active { translate: 0 1px; }
.boton:disabled, .mas:disabled { opacity: 0.5; cursor: not-allowed; }
.mas { display: flex; margin: var(--space-xl) auto 0; min-height: 48px; align-items: center; padding: 0 var(--space-lg); border: var(--rule-bar) solid var(--color-ink);
  border-radius: var(--radius-control); background: none; color: var(--color-ink); font-weight: 700; cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), translate var(--dur-micro) var(--ease-out); }
.mas:hover { background: var(--color-paper-3); }
.vacio { text-align: center; padding: var(--space-2xl) var(--space-lg); display: grid; justify-items: center; gap: var(--space-sm); }
.vacio b { font: var(--display-weight) var(--text-2xl)/1.1 var(--font-display); letter-spacing: var(--tracking-display); }
.vacio p { color: var(--color-muted); max-width: 36em; }

/* Carga: la forma de lo que viene */
.esqueleto { background: var(--color-paper-2); border-radius: var(--radius-card); }

/* Botón flotante y mapa */
.flotante { position: fixed; left: 50%; translate: -50% 0; bottom: calc(var(--space-lg) + env(safe-area-inset-bottom, 0px)); z-index: var(--z-sticky);
  display: flex; align-items: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-control);
  background: var(--color-card); color: var(--color-card-ink); font-weight: 700; cursor: pointer; box-shadow: var(--shadow-card);
  transition: background-color var(--dur-micro) var(--ease-out), translate var(--dur-micro) var(--ease-out); }
.flotante:hover { background: var(--color-card-well); }
.flotante:active { translate: -50% 1px; }
.flotante:focus-visible { outline-color: var(--color-card-ink); }
#mapa { height: calc(100vh - 230px); min-height: 420px; border-radius: var(--radius-card); overflow: hidden; }
.maplibregl-popup-content { font: 500 var(--text-sm)/1.4 var(--font-body); color: var(--color-card-ink); margin: var(--space-sm) var(--space-md); }
.maplibregl-popup-content a { color: var(--color-card-ink); font-weight: 700; }
.maplibregl-popup-content small { color: var(--color-card-muted); display: block; }

/* Pie: el verde más hondo */
footer { background: var(--color-paper-3); padding-block: var(--space-xl) var(--space-2xl); color: var(--color-muted); font-size: var(--text-sm); }
footer .ancho { display: grid; gap: var(--space-xs); }
footer a { color: var(--color-ink); font-weight: 700; }

/* Avisos y selector de zona: tarjetas claras sobre el verde */
dialog.ubi, dialog#hoja { border: 0; background: var(--color-card); color: var(--color-card-ink); }
dialog.ubi { border-radius: var(--radius-card); padding: var(--space-lg); max-width: 440px; width: calc(100% - 32px); }
dialog.ubi::backdrop, dialog#hoja::backdrop { background: var(--color-backdrop); }
dialog.ubi b { display: block; font: var(--display-weight) var(--text-xl)/1.1 var(--font-display); letter-spacing: var(--tracking-display); margin-bottom: var(--space-xs); }
dialog.ubi p { margin: 0 0 var(--space-md); color: var(--color-card-muted); }
dialog :focus-visible { outline-color: var(--color-card-ink); }
dialog .boton:not(.prim) { border-color: var(--color-card-ink); color: var(--color-card-ink); }
dialog .boton:not(.prim):hover { background: var(--color-card-well); }
dialog#hoja { padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 86vh; border-radius: var(--radius-card) var(--radius-card) 0 0; display: none; flex-direction: column; }
dialog#hoja[open] { display: flex; }
@media (min-width: 600px) { dialog#hoja { margin: auto; border-radius: var(--radius-card); } }
.hoja-cabeza { padding: var(--space-md) var(--space-md) var(--space-sm); border-bottom: var(--rule-bar) solid var(--color-card-rule); }
.hoja-cabeza .fila2 { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); margin-bottom: var(--space-xs); }
.hoja-cabeza b { font: var(--display-weight) var(--text-xl)/1.1 var(--font-display); letter-spacing: var(--tracking-display); }
.hoja-cabeza button { border: 0; background: none; color: var(--color-card-ink); font-weight: 700; text-decoration: underline; cursor: pointer; min-height: 44px; }
.hoja-cabeza input { width: 100%; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-control); border: var(--rule-bar) solid var(--color-card-rule);
  background: var(--color-card); color: var(--color-card-ink); }
.hoja-cabeza input:focus-visible { outline: 2px solid var(--color-card-ink); outline-offset: 2px; }
.hoja-lista { overflow-y: auto; padding: var(--space-xs) var(--space-xs) var(--space-md); }
.opc { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); width: 100%; min-height: 48px; text-align: left; border: 0; background: none;
  color: inherit; padding: var(--space-sm); border-radius: var(--radius-control); cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out); }
.opc:hover, .opc:focus-visible { background: var(--color-card-well); }
.opc small { color: var(--color-card-muted); font-size: var(--text-sm); white-space: nowrap; }
.opc.pueblo { font-weight: 700; margin-top: var(--space-2xs); }
.opc.colonia { padding-left: var(--space-lg); }
.opc[aria-current="true"] { background: var(--color-card-well); box-shadow: inset 0 0 0 3px var(--color-accent); }

/* Celular: buscador en dos renglones */
@media (max-width: 760px) {
  .cuantos, .derecha .anuncia { display: none; }
  .barra { padding-block: var(--space-xs); }
  .logo b { font-size: var(--text-md); }
  .logo img.logo-marca { height: 58px; width: auto; }
  .derecha a { padding: 0 var(--space-sm); }
  .capsula { flex-wrap: wrap; }
  .seg.que { flex: 1 1 calc(100% - 110px); order: 1; padding: var(--space-sm) var(--space-xs) var(--space-sm) var(--space-md); } /* «¿Qué buscas?» a todo lo ancho; Dónde y Cerca de mí abajo */
  .lupa { order: 2; width: 44px; height: 44px; }
  .borrar { order: 1; }
  .sep { display: none; }
  .seg.donde { order: 3; flex: 1 1 50%; border-top: var(--rule-bar) solid var(--color-card-rule); border-radius: 0 0 0 var(--radius-card); padding: var(--space-xs) var(--space-md); }
  .cerca { order: 4; border-top: var(--rule-bar) solid var(--color-card-rule); border-radius: 0 0 var(--radius-card) 0; }
  .titulo h2 { font-size: var(--text-xl); }
  .seg.donde, .cerca { align-self: stretch; }
  .rejilla .tj .tel { justify-self: stretch; justify-content: center; gap: var(--space-2xs); padding: 0 var(--space-xs); white-space: nowrap; font-size: var(--text-xs); }
  .rejilla .tj .tel .ico { width: 14px; height: 14px; }
  .rejilla { grid-template-columns: repeat(auto-fill, minmax(min(156px, 100%), 1fr)); gap: var(--space-sm); }
  .fila { grid-auto-columns: 72%; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); padding-top: var(--space-xs); }
  .cifra { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); padding: var(--space-lg); }
}
.derecha a.sube .corto { display: none; }
@media (max-width: 560px) { .derecha a.sube .largo { display: none; } .derecha a.sube .corto { display: inline; } }
@media (max-width: 380px) {
  .logo b { font-size: var(--text-sm); }
  .derecha a.sube { font-size: var(--text-xs); padding: 0 var(--space-xs); }
}

/* --- Paleta Soft Sky · Pine Teal · Sunflower (22 nov)
   El texto largo va en Pine Teal (el amarillo sobre cielo no se lee); el amarillo marca lo que se toca:
   botones, temas elegidos, sellos y detalles. El pie va en Pine Teal con ligas en amarillo. */
::selection { background: var(--color-accent); color: var(--color-accent-ink); }
footer { background: var(--color-ink); color: var(--color-paper); }
footer a { color: var(--color-accent); }
footer :focus-visible { outline-color: var(--color-accent); }
.cat[aria-pressed="true"], .pill[aria-pressed="true"] { background: var(--color-accent); color: var(--color-accent-ink); box-shadow: none; }
.cat[aria-pressed="true"] small, .pill[aria-pressed="true"] small { color: var(--color-accent-ink); }
.cat .ico, .pill .ico { color: var(--color-ink); }
.derecha a.anuncia { background: none; box-shadow: inset 0 0 0 2px var(--color-ink); }
.derecha a.anuncia:hover { background: var(--color-paper-2); }
.tj .sello, .tj .dist { background: var(--color-ink); color: var(--color-paper); }
.tj .sello.pago { background: var(--color-accent); color: var(--color-accent-ink); }
.tj .tel:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.mas:hover, .boton:not(.prim):hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.titulo button { text-decoration-color: var(--color-accent); text-decoration-thickness: 3px; }
.pb:hover { box-shadow: inset 0 0 0 4px var(--color-accent); }
.flotante { background: var(--color-ink); color: var(--color-paper); }
.flotante:hover { background: var(--color-ink-2); }
.resumen b, .hero h1 { color: var(--color-ink); }

/* --- Arreglos de la primera visita (23 nov, investigacion/primera-vez-100.md) */
.sugiere { display: grid; gap: var(--space-xs); justify-items: center; }
.sugiere p { margin: 0; font-weight: 700; }
.sugiere .pills { justify-content: center; flex-wrap: wrap; overflow: visible; }
.flotante { white-space: nowrap; }
@media (max-width: 760px) {
  /* Al bajar, el encabezado se achica (se esconden los temas y la fila «Dónde»); al subir, vuelve. */
  header { position: fixed; top: 0; left: 0; right: 0; } /* fijo: su espacio lo guarda app.js (padding del body) */
  header.compacto .cats-caja, header.compacto .seg.donde, header.compacto .cerca { display: none; }
  header.compacto .logo img.logo-marca { height: 40px; }
  header.compacto .barra { padding-block: 4px; }
  /* Resultados en una sola columna: ícono chico a la izquierda, nombre y calle completos. */
  .rejilla { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .rejilla .tj { grid-template-columns: 72px minmax(0, 1fr); align-items: start; gap: var(--space-sm); padding: var(--space-sm); }
  .rejilla .tj .img { aspect-ratio: 1; }
  .rejilla .tj .img .giro { padding: 0; }
  .rejilla .tj .img .giro span { display: none; }
  .rejilla .tj .img .giro .ico { width: 32px; height: 32px; }
  .rejilla .tj .sello, .rejilla .tj .dist { top: auto; bottom: 3px; left: 3px; right: 3px; padding: 2px; font-size: 10px; line-height: 1.15; text-align: center; white-space: normal; }
  .rejilla .tj .txt { padding: 0; }
  .rejilla .tj .nom, .rejilla .tj .sub { white-space: normal; overflow: visible; }
  .rejilla .tj .tel { justify-self: start; font-size: var(--text-sm); gap: var(--space-xs); padding: 0 var(--space-md); }
  .rejilla .tj .tel .ico { width: 18px; height: 18px; }
  /* «Mostrar mapa» en la orilla derecha: ya no tapa los teléfonos, que van a la izquierda. */
  .flotante { left: auto; right: var(--page-gutter); translate: none; padding: 0 var(--space-md); }
  .flotante:active { translate: 0 1px; }
  main#contenido { padding-bottom: 88px; }
}
.tj .sub.supuesto { color: var(--color-ink); font-weight: 700; }

/* Horario en la tarjeta (gratis para todos: web/horarios.js) */
.tj .hora { align-self: flex-start; font-size: var(--text-sm); font-weight: 700; color: var(--color-muted); }
.tj .hora.abierta { color: var(--color-ok, #1f7a4d); }
.tj .hora::before { content: "● "; }

/* Invitación a registrarse en la portada (23 nov) */
.oficio.registra { background: var(--color-accent); color: var(--color-accent-ink); margin-top: var(--space-md); }
.oficio.registra p { color: inherit; }
.oficio.registra .boton.prim { background: var(--color-ink); color: var(--color-paper); }

/* Fichas de pueblo con foto: texto blanco sobre sombra oscura (el verde no se leía sobre la foto). 23 nov */
.pb:not(.sin-foto) .capa { background: linear-gradient(180deg, rgb(0 0 0 / 0) 35%, rgb(10 40 44 / .82)); }
.pb:not(.sin-foto) b, .pb:not(.sin-foto) small { color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / .45); }
.oficio.urgente { background: #fde2e0; border-left: 6px solid #c62828; }
.oficio.urgente .boton.prim { background: #c62828; color: #fff; }
/* Liga a teléfonos de emergencia en la portada (23 nov) */
.a-emergencias { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; margin: var(--space-md) 0 0; padding: .9rem 1.1rem;
  border-radius: var(--radius-card); background: #fde2e0; border-left: 6px solid #c62828; color: var(--color-ink); text-decoration: none; }
.a-emergencias b { color: #c62828; font-size: var(--text-lg); }
.a-emergencias:hover { background: #fbd3cf; }
/* «24 horas» a secas (pintarSoloHorario en app.js): atajos centrados, en varias líneas */
.vacio.solo-horario .pills { justify-content: center; flex-wrap: wrap; overflow: visible; margin: 0; }
.vacio.solo-horario .gratis { color: var(--color-ink); font-weight: 600; }

/* «Teléfono confirmado · nov 2026»: le llamamos y contestó. Distingue el dato vivo del dato del INEGI. */
.tj .confirmado { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-sm); font-weight: 700; color: var(--color-ok, #1f7a4d); }
.tj .confirmado .ico, .tj .confirmado svg { width: 14px; height: 14px; }

/* Celular: «Dónde» y «Cerca de mí» son dos maneras de decir dónde. Una «o» entre los dos lo aclara,
   y «Cerca de mí» se marca como botón (borde de acento) para que no parezca un dato más. */
@media (max-width: 760px) {
  .cerca { position: relative; border-left: var(--rule-bar) solid var(--color-card-rule); padding-inline: var(--space-md) var(--space-lg); color: var(--color-card-ink); }
  .cerca::before { content: "o"; position: absolute; left: -11px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; display: grid; place-items: center;
    border-radius: 50%; background: var(--color-card); border: var(--rule-bar) solid var(--color-card-rule); font-size: var(--text-xs); font-weight: 700; color: var(--color-card-muted); }
  .cerca .ico { color: var(--color-accent-ink, var(--color-card-ink)); }
}

/* Perro por categoría (sin foto del negocio): se ve completo, centrado en la cara. */
.tj .img.con-perro { background: #E9D3B4; }
.tj .img img.perro-cat { object-position: 50% 25%; }
