/* DescuentosBancos — hoja de estilos.
   Tono de cartel de oferta: gris neutro, tinta negra y amarillo "oferta"
   para lo seleccionado; Bricolage Grotesque condensada en titulares y
   cifras. El color de cada banco se usa como ACENTO (punto, %, borde) y no
   como bloque: así la marca se lee sin que la página parezca un semáforo. */

:root {
  --bg: #f1f2ee;
  --surface: #ffffff;
  --surface-2: #e6e8e3;
  --text: #121412;
  --text-2: #3c413c;
  --muted: #666c66;
  --border: #dcdfd8;
  --border-fuerte: #c3c8c0;

  --oferta: #ffd60a;          /* amarillo de cartel: selección y realce */
  --en-oferta: #121412;       /* texto sobre el amarillo (siempre oscuro) */
  --acento: #121412;          /* foco e interacción: tinta */
  --acento-suave: rgba(18, 20, 18, .13);
  --verde: #157f3c;           /* CTA de suscripción (igual que el correo) */
  --amber-bg: #fdf0d2;
  --amber-tx: #8a5300;

  --sombra-1: 0 1px 2px rgba(15, 20, 15, .05), 0 1px 3px rgba(15, 20, 15, .04);
  --sombra-2: 0 6px 16px rgba(15, 20, 15, .08), 0 2px 4px rgba(15, 20, 15, .04);
  --sombra-3: 0 16px 40px rgba(15, 20, 15, .15);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;

  --body: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, Helvetica, Arial, sans-serif;
  --display: var(--body);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f0e;
    --surface: #181a18;
    --surface-2: #232623;
    --text: #f0f2ee;
    --text-2: #c9cdc7;
    --muted: #949a93;
    --border: #2b2f2b;
    --border-fuerte: #3d423d;

    --acento: #ffd60a;
    --acento-suave: rgba(255, 214, 10, .2);
    --verde: #2fbf66;
    --amber-bg: #3b2a0c;
    --amber-tx: #ffd08a;

    --sombra-1: 0 1px 2px rgba(0, 0, 0, .4);
    --sombra-2: 0 6px 16px rgba(0, 0, 0, .5);
    --sombra-3: 0 16px 40px rgba(0, 0, 0, .6);
  }
}

/* --tinta = color del banco usable como TEXTO, legible en ambos temas.
   Usar el color de marca crudo falla por los dos lados: sobre fondo claro el
   verde de Falabella daba 2.6:1 y el naranjo de Itaú 3.1:1; sobre fondo oscuro
   los azules marinos (Banco de Chile #003087, BCI, BICE) caían a 1.5-2.0:1,
   prácticamente invisibles.
   Mezclarlo con el color de TEXTO de la página resuelve ambos casos con una
   sola fórmula: en tema claro oscurece, en tema oscuro aclara, y siempre se
   aleja del fondo. */
.cardo, .banco-sec, .dest, .barra { --tinta: color-mix(in srgb, var(--bcolor) 55%, var(--text)); }
.chip { --tinta: color-mix(in srgb, var(--chipcolor) 46%, var(--text)); }  /* texto 13px: necesita más contraste que el 26px del % */

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-optical-sizing: auto;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

:focus-visible {
  outline: 2.5px solid var(--acento);
  outline-offset: 2px;
  border-radius: 6px;
}

.ico {
  width: 16px; height: 16px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Barra superior ---------- */
.top { border-bottom: 1px solid var(--border); }
.top-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 60px;
}
.marca {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-size: 21px; font-weight: 500; font-stretch: 85%;
  letter-spacing: -.02em;
}
.marca b { font-weight: 800; }
/* Etiqueta de precio: amarilla, con el agujero del cordel. */
.marca-logo {
  position: relative;
  width: 34px; height: 34px; border-radius: 9px 9px 9px 16px;
  display: grid; place-items: center;
  background: var(--oferta); color: var(--en-oferta);
  font-weight: 800; font-size: 19px; font-stretch: 80%;
  transform: rotate(-8deg);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .12);
}
.marca-logo::after {
  content: ""; position: absolute; top: 4px; right: 4px;
  width: 5px; height: 5px; border-radius: 999px; background: var(--bg);
}
.top-link {
  font-size: 13.5px; font-weight: 700; color: var(--text);
  text-decoration: none; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border-fuerte);
  transition: background .15s ease, border-color .15s ease;
}
.top-link:hover { background: var(--surface); border-color: var(--text); }
.top-acciones { display: flex; align-items: center; gap: 8px; }
.top-ig {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 700; color: var(--text); text-decoration: none;
  padding: 8px 12px; border-radius: 999px;
  transition: background .15s ease;
}
.top-ig .ico { width: 18px; height: 18px; }
.top-ig:hover { background: var(--surface); }
.pie a { color: var(--text-2); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 16px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-2);
}
.hero-kicker::before {
  content: ""; width: 10px; height: 10px; border-radius: 3px;
  background: var(--oferta); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  font-stretch: 78%;
  line-height: .94;
  letter-spacing: -.025em;
  font-weight: 800;
  margin: 0 0 20px;
  text-wrap: balance;
}
/* "hoy" marcado con plumón amarillo, torcido como a mano. */
.hero h1 mark {
  color: var(--en-oferta);
  background: var(--oferta);
  padding: 0 .12em;
  margin: 0 -.04em;
  border-radius: .12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  display: inline-block;
  transform: rotate(-2deg);
}
.hero-sub {
  font-size: clamp(15.5px, 2vw, 18px);
  color: var(--text-2);
  margin: 0 0 26px;
  max-width: 36em;
  text-wrap: pretty;
}
.hero-sub b { color: var(--text); font-weight: 700; }
.hero-acciones { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; }
.hero-nota { font-size: 12.5px; color: var(--muted); }

.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--verde);
  color: #fff;
  text-decoration: none;
  font-weight: 750;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 999px;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--verde) 30%, transparent);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-cta::after { content: "→"; transition: transform .15s ease; }
.btn-cta:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-cta:hover::after { transform: translateX(3px); }
.btn-cta:active { transform: translateY(0); }
.btn-sec {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 15px; font-weight: 750; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-fuerte);
  padding: 13px 20px; border-radius: 999px; cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.btn-sec:hover { border-color: var(--text); transform: translateY(-2px); }
.btn-sec .ico { width: 17px; height: 17px; }
.hero-nota { flex-basis: 100%; }
@media (prefers-color-scheme: dark) { .btn-cta { color: #06200f; } }

/* Tarjeta de cifras del hero: el número del día + reparto por banco. */
/* Siempre oscura (una etiqueta de precio negra). Redefine los tokens de
   texto localmente: así --tinta, que mezcla el color del banco con --text,
   sale CLARA acá dentro y las barras se leen sobre el negro. */
.hero-stat {
  --text: #f0f2ee; --text-2: #c9cdc7; --muted: #8f958e;
  --surface-2: #2a2e2a; --border-fuerte: #3f443f;
  position: relative;
  background: #151715;
  color: var(--text);
  border: 1px solid #2b2f2b;
  border-radius: var(--r-xl);
  padding: 26px 26px 20px;
  box-shadow: var(--sombra-3);
}
.stat-num {
  font-size: 92px; font-weight: 800; line-height: .82; font-stretch: 75%;
  letter-spacing: -.03em;
  color: var(--oferta);
  font-variant-numeric: lining-nums tabular-nums;
}
.stat-lbl { font-size: 15px; color: var(--text-2); margin-top: 10px; font-weight: 500; }
.stat-fecha { margin-top: 14px; font-size: 11.5px; color: var(--muted); }
.stat-fecha:empty { display: none; }
.stat-barras {
  position: relative;
  margin-top: 22px; padding-top: 18px;
  border-top: 1.5px dashed var(--border-fuerte);
  display: grid; gap: 7px;
}
/* Ticket de descuento: una muesca a cada lado, justo en la línea punteada
   (27px = padding + borde de la tarjeta). */
.stat-barras::before {
  content: "";
  position: absolute; left: -37px; right: -37px; top: -10px;
  height: 20px;
  background:
    radial-gradient(circle, var(--bg) 9.5px, transparent 10px) left / 20px 20px no-repeat,
    radial-gradient(circle, var(--bg) 9.5px, transparent 10px) right / 20px 20px no-repeat;
  pointer-events: none;
}
.barra {
  display: grid;
  grid-template-columns: 112px 1fr 26px;
  align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 650; color: var(--text-2);
  background: none; border: 0; padding: 2px 0; margin: 0;
  font-family: inherit; text-align: left; cursor: pointer;
  border-radius: 6px;
}
.barra .pista { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.barra .pista i {
  display: block; height: 100%; border-radius: inherit;
  background: var(--tinta);
  transition: width .4s cubic-bezier(.2, .7, .2, 1);
}
.barra .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.barra:hover { color: var(--tinta); }
.barra:hover .n { color: var(--tinta); }

/* ---------- Barra de controles (pegajosa) ---------- */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
/* Un solo contenedor que envuelve; el orden cambia según el ancho.
   Escritorio: días · buscador · vista  /  bancos · comuna. */
.toolbar-inner {
  padding: 12px 24px;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 12px;
}
.toolbar-inner .aviso { flex-basis: 100%; order: 9; }
.aviso-info { color: var(--text-2); background: var(--surface-2); }
.aviso-info button { font: inherit; font-weight: 750; color: var(--text); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* Tabs de día: control segmentado. */
.tabs {
  display: flex;
  gap: 2px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  max-width: 100%;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--text-2);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 650;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.tab:hover { color: var(--text); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.tab.activo {
  background: var(--oferta);
  color: var(--en-oferta);
  font-weight: 750;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .12);
}
.tab .n {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tab.activo .n { color: var(--en-oferta); opacity: .6; }
.tab .hoy-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--acento); display: inline-block;
}
.tab.activo .hoy-dot { background: var(--en-oferta); }

.vista-toggle {
  display: flex;
  flex-shrink: 0;
  padding: 4px;
  gap: 2px;
  background: var(--surface-2);
  border-radius: 999px;
}
.vt {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.vt .ico { width: 15px; height: 15px; }
.vt:hover { color: var(--text); }
.vt.activo { background: var(--oferta); color: var(--en-oferta); }

.buscador { position: relative; flex: 1 1 220px; min-width: 0; }
.buscador .ico {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}
#buscar {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 38px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
#buscar::placeholder { color: var(--muted); }
#buscar::-webkit-search-cancel-button { cursor: pointer; }
.atajo {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font: 600 11px/1 var(--body);
  color: var(--muted);
  border: 1px solid var(--border-fuerte); border-radius: 5px;
  padding: 3px 6px 4px;
  pointer-events: none;
}
#buscar:focus + .atajo, #buscar:not(:placeholder-shown) + .atajo { display: none; }
@media (hover: none) { .atajo { display: none; } }
#buscar:focus {
  outline: none;
  border-color: var(--acento);
  box-shadow: 0 0 0 3.5px var(--acento-suave);
}

/* Selector de comuna */
.selector {
  flex-shrink: 0; max-width: 240px; margin-left: auto; height: 40px;
  padding: 0 34px 0 36px; font-size: 13.5px; font-family: inherit; font-weight: 650;
  border: 1px solid var(--border); border-radius: 999px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d756a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px,
    var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d756a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") no-repeat left 13px center / 16px;
  color: var(--text); cursor: pointer;
  appearance: none; -webkit-appearance: none;
  text-overflow: ellipsis;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.selector:hover { border-color: var(--border-fuerte); }
.selector:focus {
  outline: none; border-color: var(--acento);
  box-shadow: 0 0 0 3.5px var(--acento-suave);
}
/* Comunas: desplegable con casillas (varias a la vez). El <details> hace de
   píldora con la misma pinta del selector; la lista flota debajo. */
.comunas-dd { position: relative; display: flex; align-items: center; padding: 0; }
.comunas-dd > summary {
  list-style: none; cursor: pointer; height: 100%; width: 100%;
  display: flex; align-items: center; padding: 0 34px 0 36px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 999px;
}
.comunas-dd > summary::-webkit-details-marker { display: none; }
.comunas-dd > summary span { overflow: hidden; text-overflow: ellipsis; }
.comunas-dd > summary:focus-visible { outline: none; box-shadow: 0 0 0 3.5px var(--acento-suave); }
.comunas-dd.activo { border-color: var(--text); background-color: color-mix(in srgb, var(--oferta) 30%, var(--surface)); }
.dd-panel {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 600;
  width: 270px; max-height: min(360px, 60vh); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border-fuerte); border-radius: var(--r-sm, 12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18); padding: 6px;
}
.dd-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 8px 8px;
}
.dd-limpiar { font: inherit; font-weight: 750; color: var(--text); background: none; border: 0; cursor: pointer; text-decoration: underline; padding: 0; }
.dd-op {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.dd-op:hover { background: var(--surface-2); }
.dd-op input { width: 17px; height: 17px; accent-color: var(--text); margin: 0; flex-shrink: 0; }
.dd-op span:first-of-type { flex: 1; }
.dd-op .n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Filtros rápidos: % mínimo y modalidad. */
.rapidos { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.rapido {
  font: inherit; font-size: 13px; font-weight: 700; height: 32px; padding: 0 12px;
  border-radius: 999px; border: 1px dashed var(--border-fuerte); background: var(--surface);
  color: var(--text-2); cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.rapido:hover { border-color: var(--text); color: var(--text); }
.rapido.activo { background: var(--oferta); color: var(--en-oferta); border: 1px solid transparent; }

/* Lo que el filtro deja fuera se dice, no se esconde. */
.aviso {
  margin: 0; font-size: 12px; color: var(--amber-tx);
  background: var(--amber-bg); border-radius: var(--r-sm);
  padding: 6px 11px; align-self: flex-start;
}

/* Chips de banco */
.chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  border: 1px solid var(--border);
  color: var(--text-2);
  background: var(--surface);
  padding: 0 12px 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .16s ease, background .16s ease, opacity .16s ease, color .16s ease;
}
.chip::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 999px;
  background: var(--tinta);
  flex-shrink: 0;
  transition: box-shadow .16s ease;
}
.chip .n { font-size: 11px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--tinta); }
.chip.activo {
  border-color: color-mix(in srgb, var(--tinta) 55%, var(--border));
  color: var(--tinta);
  background: color-mix(in srgb, var(--tinta) 8%, var(--surface));
}
.chip.activo .n { color: inherit; opacity: .7; }
.chip.activo::before { box-shadow: 0 0 0 3px color-mix(in srgb, var(--tinta) 22%, transparent); }
.chip.apagado, .chip.cero { opacity: .5; }
.chip.apagado::before { background: var(--muted); }

/* ---------- Encabezados de sección ---------- */
.sec-tit {
  font-size: 30px;
  font-weight: 800;
  font-stretch: 80%;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 36px 0 16px;
  color: var(--text);
}

/* ---------- Destacados ---------- */
.destacados {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.dest {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 20px;
  border-radius: var(--r-lg);
  color: var(--text);
  text-decoration: none;
  background: color-mix(in srgb, var(--bcolor) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--bcolor) 22%, var(--border));
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dest:hover { transform: translateY(-3px); box-shadow: var(--sombra-2); border-color: var(--tinta); }
.dest-pct {
  flex-shrink: 0;
  font-stretch: 75%;
  color: var(--tinta);
  line-height: .85;
  text-align: center;
}
.dest-pct small {
  display: block;
  font-family: var(--body);
  font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.dest-pct b { font-size: 54px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: lining-nums; }
.dest-pct span { font-size: 26px; font-weight: 700; }
.dest-txt { min-width: 0; }
.dest .nom {
  font-size: 17px;
  font-weight: 750;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.dest .bco {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 750;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--tinta);
  margin-top: 6px;
}
.dest .bco::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--tinta); }
.dest .rank {
  position: absolute; top: 12px; right: 12px;
  min-width: 22px; height: 22px; padding: 0 6px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
  color: var(--en-oferta); background: var(--oferta);
  border-radius: 6px;
}

/* ---------- Secciones por banco ---------- */
.banco-sec { margin-top: 40px; scroll-margin-top: 150px; }
.banco-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid color-mix(in srgb, var(--tinta) 30%, var(--border));
}
.banco-head .nom {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  font-stretch: 80%;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.banco-head .nom::before {
  content: "";
  width: 12px; height: 12px;
  border-radius: 999px;
  background: var(--tinta);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tinta) 18%, transparent);
}
.banco-head .cnt {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.banco-head .ver-mas {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--tinta);
  text-decoration: none;
  white-space: nowrap;
}
.banco-head .ver-mas:hover { text-decoration: underline; text-underline-offset: 3px; }

.grid {
  display: grid;
  /* 5 columnas en el ancho máximo del sitio (1180px). */
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 12px;
}

.mas {
  display: block;
  margin: 14px auto 0;
  font: inherit; font-size: 13.5px; font-weight: 700;
  color: var(--tinta);
  background: var(--surface);
  border: 1px solid var(--border-fuerte);
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.mas:hover { border-color: var(--tinta); background: color-mix(in srgb, var(--tinta) 6%, var(--surface)); }

/* ---------- Tarjeta de oferta ---------- */
.cardo {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 15px 16px 14px;
  box-shadow: var(--sombra-1);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.cardo:hover {
  transform: translateY(-2px);
  box-shadow: var(--sombra-2);
  border-color: color-mix(in srgb, var(--tinta) 45%, var(--border));
}

/* Foto del local (la publica el banco): ocupa el ancho de la tarjeta, con
   el % como etiqueta de oferta amarilla encima. Sin foto o si no carga, la
   tarjeta es la de siempre y el % vuelve a la fila. */
.cardo .foto {
  position: relative;
  margin: -15px -16px 2px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-md) var(--r-md) 0 0;
  background: color-mix(in srgb, var(--bcolor) 14%, var(--surface));
}
.cardo .foto img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.cardo:hover .foto img { transform: scale(1.04); }
.cardo .foto.logo { background: #fff; }
.cardo .foto.logo img { padding: 14px 40px; object-fit: contain; }
.cardo:hover .foto.logo img { transform: none; }
.cardo .foto .etq {
  position: absolute; right: 10px; bottom: -1px;
  display: inline-flex; align-items: baseline; gap: 3px;
  background: var(--oferta, #ffd60a); color: #121412;
  font-weight: 800; font-size: 26px; line-height: 1; font-stretch: 75%;
  letter-spacing: -.02em;
  padding: 6px 10px 5px; border-radius: 10px 10px 0 0;
}
.cardo .foto .etq i { font-style: normal; font-size: 16px; }
.cardo .foto .etq .hasta { font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
                          text-transform: uppercase; font-stretch: 100%; }
.cardo.con-foto .fila .pct { display: none; }

.cardo .fila {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.cardo .nom {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  line-height: 1.25;
  letter-spacing: -.005em;
  overflow-wrap: anywhere;
  padding-top: 2px;
}
.cardo .nom .sub { margin-right: 4px; }
/* El nombre cubre toda la tarjeta: se puede tocar en cualquier parte. */
.cardo .nom::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.cardo:hover .nom { color: var(--tinta); }

.cardo .pct {
  flex-shrink: 0;
  text-align: right;
  color: var(--tinta);
  white-space: nowrap;
  line-height: .9;
  font-stretch: 75%;
}
.cardo .pct .hasta {
  display: block;
  font-family: var(--body);
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 750;
  margin-bottom: 3px;
}
.cardo .pct .num {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.035em;
  font-variant-numeric: lining-nums tabular-nums;
}
.cardo .pct .num i { font-style: normal; font-size: 17px; font-weight: 700; margin-left: 1px; }

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 12px;
  font-size: 12.5px;
  color: var(--text-2);
}
.dato { display: inline-flex; align-items: center; gap: 5px; }
.dato .ico { width: 13px; height: 13px; color: var(--muted); }
.dato.ultimo {
  background: var(--amber-bg);
  color: var(--amber-tx);
  font-weight: 750;
  padding: 2px 9px 2px 7px;
  border-radius: 999px;
}
.dato.ultimo .ico { color: inherit; }
.cond {
  font-size: 12px;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 5px;
}
.cond .ico { width: 13px; height: 13px; }
/* Compartir la oferta: ícono en la esquina inferior, encima del link que
   cubre la tarjeta (.nom::after). La última fila deja espacio para él. */
.enviar {
  position: absolute; z-index: 1; right: 9px; bottom: 9px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}
.enviar .ico { width: 15px; height: 15px; }
.enviar:hover { color: var(--tinta); border-color: var(--tinta); }
.cardo > :nth-last-child(2):not(.fila) { margin-right: 34px; }

/* Desglose por local dentro de la tarjeta */
.locales {
  padding: 8px 10px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.45;
}
.locales b { color: var(--tinta); font-weight: 750; }
.loc-comuna { color: var(--muted); font-weight: 600; }

/* ---------- Mapa ---------- */
.mapa-barra {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  flex-wrap: wrap;
}
.btn-ubic {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0;
  color: #fff;
  background: var(--acento);
  padding: 10px 17px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
@media (prefers-color-scheme: dark) { .btn-ubic { color: var(--en-oferta); } }
.btn-ubic:hover { filter: brightness(1.07); transform: translateY(-1px); }
.mapa-info { font-size: 13px; color: var(--muted); }
.mapa-info b { color: var(--text); }

#mapa {
  height: 72vh;
  min-height: 430px;
  width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  z-index: 0;
  box-shadow: var(--sombra-2);
}
/* Pines. El anillo blanco los despega del fondo tanto en tema claro como
   oscuro; el % en blanco se lee porque `pin` ya viene oscurecido desde app.js. */
.pin-num {
  background: var(--pincolor, #333);
  color: #fff;
  border: 2.5px solid #fff;
  border-radius: 999px;
  width: 34px; height: 34px;
  display: flex; align-items: baseline; justify-content: center;
  gap: .5px;
  padding-top: 9px;
  font-weight: 800; font-size: 13px;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .34);
  transition: transform .12s ease;
}
.pin-num i { font-style: normal; font-size: 8px; font-weight: 700; opacity: .85; }
.leaflet-marker-icon:hover .pin-num { transform: scale(1.12); }

/* Grupo de pines: número de locales + el mejor % que esconde. */
.cluster-pin {
  width: 42px; height: 42px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  border: 2.5px solid #fff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .38);
  font-variant-numeric: tabular-nums;
}
.cluster-pin b { font-size: 14px; font-weight: 850; }
.cluster-pin span { font-size: 8.5px; font-weight: 700; opacity: .7; margin-top: 2px; }

/* Controles y créditos, para que no desentonen con el resto. */
.leaflet-control-zoom { border: 0 !important; box-shadow: var(--sombra-2) !important; }
.leaflet-control-zoom a {
  background: var(--surface) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
  width: 34px !important; height: 34px !important; line-height: 32px !important;
}
.leaflet-control-zoom a:hover { background: var(--surface-2) !important; }
.leaflet-control-zoom a:first-child { border-radius: 10px 10px 0 0 !important; }
.leaflet-control-zoom a:last-child { border-radius: 0 0 10px 10px !important; }
.leaflet-control-attribution {
  background: color-mix(in srgb, var(--surface) 85%, transparent) !important;
  color: var(--muted) !important;
  font-size: 10px !important;
  border-radius: var(--r-sm) 0 0 0;
}
.leaflet-control-attribution a { color: var(--muted) !important; }

/* Popup: mismo lenguaje que las tarjetas. */
.leaflet-popup-content-wrapper {
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--sombra-3);
  padding: 0;
}
.leaflet-popup-content { margin: 0; font-size: 13px; line-height: 1.45; width: auto !important; }
.leaflet-popup-tip { background: var(--surface); }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.leaflet-container { font-family: inherit; }
.pop { padding: 14px 15px 13px; }
.pop-top { display: flex; align-items: center; gap: 12px; padding-right: 12px; }
.pop-pct {
  font-stretch: 75%;
  font-size: 30px; font-weight: 800; line-height: 1;
  letter-spacing: -.035em; font-variant-numeric: lining-nums tabular-nums; flex-shrink: 0;
}
.pop-pct i { font-style: normal; font-size: 16px; }
.pop-nom { font-weight: 750; font-size: 14.5px; color: var(--text); line-height: 1.25; }
.pop-bco {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: .08em; font-weight: 750; margin-top: 3px;
}
.pop-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.pop-badges .pb {
  background: var(--surface-2); color: var(--text-2);
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 650; white-space: nowrap;
}
.pop-locales {
  margin-top: 9px; padding: 7px 9px;
  background: var(--surface-2); border-radius: var(--r-sm);
  font-size: 11.5px; color: var(--text-2); line-height: 1.4;
}
.pop-locales b { font-weight: 750; }
.pop-links { display: flex; gap: 7px; margin-top: 12px; align-items: center; }
/* nowrap en AMBOS: sin esto el botón principal se partía en tres líneas y
   quedaba como una pelota, porque el de ruta se llevaba todo el ancho. */
.pop-links a {
  text-decoration: none; font-weight: 700; font-size: 12px;
  white-space: nowrap; text-align: center;
}
.leaflet-container .pop-links .pl-primario { color: #fff; padding: 8px 14px; border-radius: 999px; }
.leaflet-container .pop-links .pl-ruta {
  color: var(--text-2); padding: 8px 12px;
  border: 1px solid var(--border-fuerte); border-radius: 999px;
}
.pop-links .pl-ruta:hover { background: var(--surface-2); }

/* ---------- Estado vacío ---------- */
.vacio {
  text-align: center;
  color: var(--text-2);
  padding: 56px 24px;
  font-size: 15px;
  background: var(--surface);
  border: 1.5px dashed var(--border-fuerte);
  border-radius: var(--r-lg);
  margin-top: 28px;
}
.vacio-tit {
  font-size: 26px; font-weight: 800; font-stretch: 80%;
  color: var(--text); margin: 0 0 6px;
}
.vacio p { margin: 0 auto; max-width: 30em; }
.vacio b { color: var(--text); }
.vacio .mas { margin-top: 18px; color: var(--acento); }

/* ---------- Cómo funciona ---------- */
.como { margin-top: 64px; }
.como-lista {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  counter-reset: paso;
}
.como-lista li {
  counter-increment: paso;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 18px 18px;
  font-size: 14px; color: var(--text-2); line-height: 1.55;
}
.como-lista li::before {
  content: counter(paso, decimal-leading-zero);
  display: inline-block;
  font-size: 15px; font-weight: 800;
  color: var(--en-oferta); background: var(--oferta);
  padding: 4px 7px; border-radius: 6px;
  margin-bottom: 12px; line-height: 1;
}
.como-lista li > b:first-child { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }

.suscribir {
  margin-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px 32px; flex-wrap: wrap;
  padding: 30px 34px;
  border-radius: var(--r-xl);
  background: var(--oferta);
  color: var(--en-oferta);
}
.suscribir h2 {
  font-size: 32px; font-weight: 800; font-stretch: 78%;
  letter-spacing: -.02em; line-height: 1.05; margin: 0 0 6px;
}
.suscribir p { margin: 0; font-size: 15.5px; }
/* Sobre el amarillo, el botón va en tinta (el verde no contrasta ahí). */
.suscribir .btn-cta {
  background: var(--en-oferta); color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

/* ---------- Volver arriba ---------- */
.arriba {
  position: fixed; right: 18px; bottom: 18px; z-index: 600;
  width: 46px; height: 46px; border-radius: 999px;
  display: grid; place-items: center;
  border: 0; cursor: pointer;
  background: var(--oferta); color: var(--en-oferta);
  box-shadow: var(--sombra-3);
  transition: transform .15s ease;
}
.arriba .ico { width: 20px; height: 20px; stroke-width: 2.5; }
.arriba:hover { transform: translateY(-2px); }

/* ---------- Footer ---------- */
.pie {
  margin-top: 56px;
  padding: 24px 0 84px;  /* espacio para el botón de volver arriba */
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border);
  line-height: 1.7;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .como-lista { grid-template-columns: repeat(2, 1fr); }
  /* días · vista  /  buscador · comuna  /  bancos */
  .tab { padding: 7px 11px; }
  .vista-toggle { order: 2; margin-left: auto; }
  .buscador { order: 3; }
  .selector { order: 4; margin-left: 0; }
  .chips { order: 5; flex-basis: 100%; }
  .rapidos { order: 6; }
}

@media (max-width: 800px) {
  .hero { padding: 32px 0 30px; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .destacados { grid-template-columns: 1fr; gap: 10px; }
  .dest { padding: 14px 16px; }
  .dest-pct b { font-size: 42px; }
  .dest-pct span { font-size: 21px; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .toolbar-inner { padding: 8px 16px 9px; gap: 8px; }
  .top-inner { height: 54px; }
  .marca { font-size: 19px; }
  .marca-logo { width: 30px; height: 30px; font-size: 17px; }
  .top-link { display: none; }  /* el CTA del hero está justo debajo */
  .top-ig span { display: none; }  /* en el teléfono, solo el ícono */

  .hero { padding: 24px 0 22px; }
  .hero-kicker { font-size: 11px; margin-bottom: 10px; }
  .hero h1 { margin-bottom: 12px; }
  .hero-sub { margin-bottom: 18px; }
  .btn-cta { font-size: 14.5px; padding: 13px 20px; }
  .hero-nota { font-size: 12px; }

  /* En móvil la cifra va en una sola línea y sin el reparto por banco:
     los chips de la barra ya muestran ese conteo. */
  .hero-stat { display: flex; align-items: baseline; gap: 12px; padding: 16px 18px; border-radius: var(--r-lg); }
  .stat-num { font-size: 58px; }
  .stat-fecha { display: none; }
  .stat-lbl { margin: 0; font-size: 14px; }
  .stat-barras { display: none; }

  /* La barra pegajosa no puede comerse la pantalla: los chips pasan a una
     sola fila con scroll horizontal en vez de envolver en dos o tres. */
  /* días  /  buscador · vista  /  comuna · bancos (con scroll) */
  .tabs { flex-basis: 100%; }
  .buscador { order: 2; }
  .vista-toggle { order: 3; margin-left: 0; }
  .selector { order: 4; }
  .tab { padding: 6px 11px; font-size: 13px; gap: 5px; }
  .vt { padding: 7px 10px; }
  .vt span { display: none; }
  .toolbar-inner { gap: 8px; }
  .buscador { flex: 1 1 60%; }  /* base ancha: deja la comuna en la fila de abajo */
  #buscar, .selector { height: 38px; }
  .selector { max-width: 136px; padding-left: 31px; padding-right: 26px; background-position: right 8px center, left 10px center; }
  .chips {
    order: 5;
    flex: 1 1 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-right: -16px;
    padding: 0 16px 1px 0;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; height: 32px; }
  /* Filtros rápidos: una fila deslizable, como los bancos. */
  .rapidos {
    order: 6; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto;
    scrollbar-width: none; margin-right: -16px; padding-right: 16px;
  }
  .rapidos::-webkit-scrollbar { display: none; }
  .rapido { height: 30px; font-size: 12.5px; }
  .dd-panel { right: auto; left: 0; width: min(270px, calc(100vw - 32px)); }
  /* El <details> hereda el padding del selector angosto: el texto lo lleva el summary. */
  .comunas-dd.selector { padding: 0; }
  .comunas-dd > summary { padding: 0 24px 0 31px; }

  .sec-tit { font-size: 26px; margin-top: 28px; }
  .banco-sec { margin-top: 32px; }
  .banco-head .nom { font-size: 24px; }
  /* Sin espacio, el enlace del banco aplastaba el nombre a dos líneas.
     Cada tarjeta ya enlaza al banco, así que acá sobra. */
  .banco-head .ver-mas { display: none; }
  .banco-head .nom, .banco-head .cnt { white-space: nowrap; }
  .grid { grid-template-columns: 1fr; gap: 10px; }

  .como { margin-top: 48px; }
  .como-lista { grid-template-columns: 1fr; gap: 10px; }
  .suscribir { padding: 24px 20px; border-radius: var(--r-lg); }
  .suscribir h2 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Letra chica a la vista: tope, tarjeta exclusiva y canal (app/online). */
.letra { display: flex; flex-wrap: wrap; gap: 5px; }
.lc {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 700; line-height: 1; padding: 5px 8px; border-radius: 6px;
  background: var(--surface-2); color: var(--text-2);
}
.lc .ico { width: 12px; height: 12px; }
.lc-tarjeta { background: var(--amber-bg); color: var(--amber-tx); }
/* El horario cambia si el descuento sirve o no: el más visible. */
.lc-hora { background: var(--text); color: var(--bg); }
.lc-canal { background: color-mix(in srgb, var(--tinta) 12%, var(--surface)); color: var(--tinta); }

/* El mismo local con otros bancos ese día. */
.compara {
  padding-top: 8px; border-top: 1px dashed var(--border);
  font-size: 12.5px; color: var(--text-2);
}
.compara b { color: var(--text); }

/* Suscripción integrada (sin salir a Google Forms). */
.sub-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1 1 100%; max-width: 620px; }
.sub-form input {
  font: inherit; font-size: 15px; height: 48px; padding: 0 18px; min-width: 0;
  border-radius: 999px; border: 1px solid var(--border-fuerte); background: var(--surface); color: var(--text);
}
.sub-form input[name=correo] { flex: 1 1 200px; }
.sub-form input[name=nombre] { flex: 0 1 170px; }
.sub-form input:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 3.5px var(--acento-suave); }
.sub-form .btn-cta { border: 0; cursor: pointer; font-family: inherit; height: 48px; padding: 0 22px; }
.sub-form .btn-cta:disabled { opacity: .6; cursor: default; transform: none; }
.sub-form.listo input, .sub-form.listo .btn-cta { display: none; }
.sub-msg { flex-basis: 100%; margin: 2px 4px 0; font-size: 14px; line-height: 1.4; color: var(--text-2); }
.sub-msg.error { color: #b3261e; }
.sub-msg a { color: inherit; font-weight: 750; }
/* En el bloque amarillo los campos van con borde de tinta. */
.suscribir .sub-form { flex: 1 1 380px; }
.suscribir .sub-form input { border-color: rgba(0, 0, 0, .25); background: #fff; color: #121412; }
.suscribir .sub-msg { color: var(--en-oferta); }
@media (prefers-color-scheme: dark) { .sub-msg.error { color: #ff8a80; } }
@media (max-width: 600px) {
  .sub-form input[name=correo], .sub-form input[name=nombre] { flex: 1 1 100%; }
  .sub-form .btn-cta { flex: 1 1 100%; justify-content: center; }
}

/* Enlaces a las páginas por comuna y banco (los escribe paginas_web.py). */
.seo-enlaces { margin: 40px 0 8px; }
.seo-enlaces ul { display: flex; flex-wrap: wrap; gap: 8px 14px; list-style: none; padding: 0; margin: 10px 0 22px; }
.seo-enlaces a { color: var(--text-2); font-weight: 600; font-size: 14.5px; }

/* Foto del local en el popup del mapa (misma que la tarjeta). */
.pop-foto { display: block; width: calc(100% + 30px); min-width: 230px; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
            margin: -14px -15px 10px; border-radius: var(--r-md) var(--r-md) 0 0; background: var(--border); }

/* ---------- Foto genérica, logo, favoritos (oct-2026) ---------- */
/* Sin foto del banco: una de su tipo de comida, y se dice que es referencial. */
.cardo .foto.generica::after {
  content: "Foto referencial";
  position: absolute; left: 10px; bottom: 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
  color: #fff; background: rgba(0, 0, 0, .55);
  padding: 2px 7px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
/* El logo (BICE solo publica eso) en una placa blanca sobre la foto. */
.cardo .foto .logo-local {
  position: absolute; left: 10px; top: 10px;
  width: 52px; height: 52px; border-radius: 12px;
  background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  display: grid; place-items: center; overflow: hidden;
}
.cardo .foto .logo-local img { width: 100%; height: 100%; object-fit: contain; transform: none !important; }
.cardo:hover .foto .logo-local img { transform: none; }
/* Corazón: arriba a la derecha, encima del link que cubre la tarjeta. */
.fav {
  position: absolute; z-index: 1; right: 10px; top: 10px;
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; border-radius: 999px; cursor: pointer;
  color: #121412; background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .2);
  transition: transform .15s ease, color .15s ease;
}
.fav .ico { width: 17px; height: 17px; stroke-width: 2.2; }
.fav:hover { transform: scale(1.08); }
.fav.on { color: #e0245e; }
.fav.on .ico { fill: currentColor; }
.cardo:not(.con-foto) .fav { position: static; justify-self: end; margin: -4px -4px 0 auto; order: -1; background: var(--surface-2); }
.dato.ultimo.semana { background: var(--surface-2); color: var(--text); }

/* ---------- Fila de tipos de comida ---------- */
.cats {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 22px 0 4px; padding: 2px 0 4px;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  height: 38px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--text);
  font: inherit; font-size: 13.5px; font-weight: 650; white-space: nowrap; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.cat .n { font-size: 11px; font-weight: 700; color: var(--muted); }
.cat:hover { border-color: var(--text); }
.cat.activo { background: var(--oferta); color: var(--en-oferta); border-color: transparent; }
.cat.activo .n { color: inherit; opacity: .7; }
.cat-fav .ico { width: 15px; height: 15px; color: #e0245e; fill: #e0245e; }

/* ---------- Entrada al mapa desde la lista ---------- */
.mapa-preview {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 14px;
  width: 100%; height: 118px; margin-top: 26px;
  border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; cursor: pointer;
  background: url("mapa-preview.webp") center / cover, var(--surface-2);
  font: inherit; color: var(--text);
  box-shadow: var(--sombra-1);
}
.mapa-preview::before { content: ""; position: absolute; inset: 0;
  background: color-mix(in srgb, var(--bg) 35%, transparent); transition: background .2s ease; }
.mapa-preview:hover::before { background: transparent; }
.mapa-preview > * { position: relative; }
.mp-pin { width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center;
  background: var(--oferta); color: #121412; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.mp-pin .ico { width: 24px; height: 24px; }
.mp-txt { display: flex; flex-direction: column; text-align: left; padding: 8px 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(6px); }
.mp-txt b { font-size: 16px; }
.mp-txt span { font-size: 12.5px; color: var(--muted); }
.mapa-preview::after { content: "© OpenStreetMap"; position: absolute; right: 8px; bottom: 5px;
  font-size: 10px; color: var(--muted); }
