/* Better Offer — styles.css
 *
 * Mundo: la convención de la categoría (Google Maps / Yelp como vara de acabado),
 * elegida a propósito por el usuario sobre direcciones con carácter propio.
 * Se ejecuta en serio: nadie tiene que aprender nada, y la personalidad vive en
 * la precisión —densidad, estados, tiempos— no en el estilo.
 *
 * Oscuro por defecto porque el uso es de noche en la calle; claro cuando el
 * sistema lo pide, porque estas apps siguen al sistema y planear se hace de día.
 */

:root {
  color-scheme: dark light;

  --bg:        #101114;
  --surface:   #191b1f;
  --raised:    #212429;
  --line:      #2c3036;
  --line-soft: #23262b;
  --txt:       #f2f3f5;
  --txt-2:     #a0a5ad;
  /* Medido: #7b818a como placeholder sobre --raised daba 3.4:1. El piso para
   * texto de cuerpo y placeholder es 4.5:1, así que sube. */
  --txt-3:     #979da6;

  /* Medido: #ff5a4d sobre el fondo oscuro daba 3.91:1, y la etiqueta de pestaña
   * activa es de 14.5 px — texto normal, no grande. Aclarado hasta pasar 4.5:1. */
  --brand:     #ff8175;
  --brand-ink: #2a0906;
  --open:      #34c77b;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);

  --shadow-sheet: 0 -8px 34px rgba(0, 0, 0, .5);
  --shadow-fab:   0 6px 18px rgba(0, 0, 0, .34);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:        #ffffff;
    --surface:   #ffffff;
    --raised:    #f4f6f8;
    --line:      #e2e5ea;
    --line-soft: #edeff3;
    --txt:       #16181c;
    --txt-2:     #5c626c;
    --txt-3:     #767d88;

    --brand:     #d92d1f;
    --brand-ink: #ffffff;
    --open:      #12813f;

    --shadow-sheet: 0 -8px 34px rgba(16, 20, 28, .18);
    --shadow-fab:   0 6px 18px rgba(16, 20, 28, .22);
  }
}

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

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.015em; }

.ic { width: 22px; height: 22px; flex: none; }
.ic-sm { width: 18px; height: 18px; }
.ic-xs { width: 15px; height: 15px; }

/* Todo lo tocable responde al toque; la red tarda segundos y el acuse tiene que
 * ser inmediato. */
button, .placebar, .chip, .tab, .row-item, .fab, .of-row {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ── Botones ────────────────────────────────────────────── */
.btn {
  appearance: none; border: 0; border-radius: var(--r-pill);
  padding: 13px 20px; font: inherit; font-size: 15px; font-weight: 600;
  letter-spacing: -.01em; cursor: pointer;
  transition: transform 140ms var(--ease), background 160ms ease, opacity 160ms ease;
}
.btn:active { transform: scale(.975); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-outline { background: none; color: var(--txt); border: 1px solid var(--line); }
.btn-outline:disabled { color: var(--txt-3); cursor: default; }
.btn-quiet { background: none; color: var(--txt-2); }
.btn-block { display: block; width: 100%; }

.icon-btn {
  appearance: none; background: none; border: 0; color: var(--txt-2);
  width: 42px; height: 42px; flex: none; border-radius: var(--r-pill);
  display: grid; place-items: center; cursor: pointer;
  transition: transform 140ms var(--ease), background 160ms ease, color 160ms ease;
}
.icon-btn:active { transform: scale(.94); }

/* ── Puerta 18+ ─────────────────────────────────────────── */
.gate {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: grid; place-items: center; padding: 28px 24px;
}
.gate-card { max-width: 380px; width: 100%; }
.gate h1 { font-size: 34px; letter-spacing: -.035em; }
.gate-lead { font-size: 17px; color: var(--txt); margin: 10px 0 0; line-height: 1.4; }
.gate-fine {
  font-size: 13px; color: var(--txt-2); line-height: 1.6;
  border-top: 1px solid var(--line); padding-top: 18px; margin: 26px 0 24px;
}
.gate .btn + .btn { margin-top: 8px; }
.bye { display: grid; place-items: center; height: 100vh; color: var(--txt-2); }

/* ── Barra superior ─────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20; background: var(--bg);
  padding: max(10px, env(safe-area-inset-top)) 12px 0;
}
.searchrow { display: flex; align-items: center; gap: 6px; }

/* El buscador es el gesto que define esta categoría. Antes no existía. */
.searchfield {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px;
  background: var(--raised); border: 1px solid transparent;
  border-radius: var(--r-pill); padding: 0 14px; height: 44px;
  transition: border-color 160ms ease, background 160ms ease;
}
.searchfield:focus-within { border-color: var(--brand); background: var(--surface); }
.searchfield .ic { color: var(--txt-3); }
.searchfield input {
  flex: 1; min-width: 0; background: none; border: 0; outline: 0;
  color: var(--txt); font: inherit; font-size: 15px; padding: 0;
}
.searchfield input::placeholder { color: var(--txt-3); }
.searchfield input::-webkit-search-cancel-button { display: none; }
.q-clear {
  background: none; border: 0; color: var(--txt-3); cursor: pointer;
  font-size: 15px; line-height: 1; padding: 6px; margin-right: -6px;
}

.placebar {
  display: flex; align-items: center; gap: 7px; width: 100%;
  background: none; border: 0; padding: 11px 4px 12px;
  color: var(--txt-2); font: inherit; font-size: 13.5px; cursor: pointer;
  transition: transform 140ms var(--ease);
}
.placebar:active { transform: scale(.985); }
.placebar .ic { color: var(--brand); }
.placebar span:not(.placebar-act) {
  color: var(--txt); font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.placebar-act { margin-left: auto; color: var(--brand); font-weight: 600; flex: none; }

/* ── Pestañas ───────────────────────────────────────────── */
.tabs {
  display: flex; gap: 4px; padding: 0 8px;
  border-bottom: 1px solid var(--line); background: var(--bg);
  position: sticky; top: 0; z-index: 19;
}
.tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  background: none; border: 0; border-bottom: 2.5px solid transparent;
  color: var(--txt-2); padding: 12px 6px 11px; margin-bottom: -1px;
  font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}
.tab.is-on { color: var(--brand); border-bottom-color: var(--brand); }

/* ── Filtros ────────────────────────────────────────────── */
.filters {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 12px 13px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line-soft);
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: flex; align-items: center; gap: 6px;
  background: var(--raised); border: 1px solid transparent; color: var(--txt);
  border-radius: var(--r-pill); padding: 8px 14px; height: 36px;
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  white-space: nowrap;
  transition: transform 140ms var(--ease), background 180ms ease, color 180ms ease;
}
.chip:active { transform: scale(.96); }
.chip-lead[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.chip-lead[aria-pressed="true"] .ic { color: var(--brand-ink); }
.chip-lead .ic { color: var(--txt-2); }

.chip-range { gap: 10px; padding-right: 14px; cursor: default; }
.chip-range label { color: var(--txt-2); font-weight: 600; }
.chip-range input { width: 92px; accent-color: var(--brand); height: 2px; }
.chip-range output { font-variant-numeric: tabular-nums; min-width: 48px; }

.subs { display: flex; gap: 8px; }
.sub {
  flex: none; background: var(--raised); border: 1px solid transparent;
  color: var(--txt-2); border-radius: var(--r-pill); padding: 8px 13px; height: 36px;
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform 140ms var(--ease), background 180ms ease, color 180ms ease;
}
.sub:active { transform: scale(.96); }
.sub.is-on { background: var(--txt); color: var(--bg); }
.sub.is-sensitive.is-on { background: var(--brand); color: var(--brand-ink); }

/* ── Ofertas ────────────────────────────────────────────────
 * Va primero porque es lo que se vino a buscar. */
.ofertas { padding: 4px 0 0; }
.of-h {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 16px 10px; font-size: 16px; font-weight: 600;
}
.of-n {
  background: var(--brand); color: var(--brand-ink);
  border-radius: var(--r-pill); padding: 2px 9px;
  font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.of-list { list-style: none; margin: 0; padding: 0 12px; display: grid; gap: 8px; }
.of-row {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 13px 14px;
  animation: rise 300ms var(--ease) both;
}
.of-row:nth-child(2) { animation-delay: 40ms; }
.of-row:nth-child(3) { animation-delay: 80ms; }
.of-row:nth-child(4) { animation-delay: 120ms; }
.of-row:nth-child(5) { animation-delay: 160ms; }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } }

.of-top { display: flex; align-items: baseline; gap: 10px; }
.of-top strong {
  font-size: 15px; font-weight: 600; flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.of-dist { font-size: 13px; color: var(--txt-2); font-variant-numeric: tabular-nums; flex: none; }
.of-txt { font-size: 14.5px; margin-top: 5px; line-height: 1.4; }
.of-txt b { color: var(--brand); font-weight: 700; }
.of-src { font-size: 12px; color: var(--txt-3); margin-top: 7px; }

.of-empty { margin: 4px 12px 0; padding: 18px 16px; background: var(--surface);
            border: 1px solid var(--line); border-radius: var(--r-md); }
.of-empty p { margin: 0; font-size: 13.5px; color: var(--txt-2); line-height: 1.6; }
.of-cta {
  margin-top: 14px; background: none; border: 1px solid var(--line);
  color: var(--txt); border-radius: var(--r-pill); padding: 9px 16px;
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: transform 140ms var(--ease), border-color 160ms ease;
}
.of-cta:active { transform: scale(.97); }

/* ── Estado ─────────────────────────────────────────────── */
.status { padding: 14px 16px 2px; font-size: 13px; color: var(--txt-3); line-height: 1.5; }
.status.is-loading::after {
  content: ''; display: inline-block; width: 11px; height: 11px; margin-left: 8px;
  border: 1.6px solid var(--line); border-top-color: var(--brand);
  border-radius: 50%; vertical-align: -1px; animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.retry {
  background: none; border: 0; color: var(--brand); padding: 0; margin-left: 8px;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline;
}

/* ── Lista de lugares ───────────────────────────────────── */
.list { list-style: none; margin: 0; padding: 8px 12px 108px; display: grid; gap: 8px; }
.card {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 13px 12px 13px 14px;
  transition: border-color 180ms ease;
}
.card.has-deal { border-color: color-mix(in srgb, var(--brand) 48%, var(--line)); }
.card-main { flex: 1; min-width: 0; }
.card-head { display: flex; align-items: baseline; gap: 10px; }
.card-head h3 {
  font-size: 15.5px; font-weight: 600; flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dist { font-size: 13.5px; font-weight: 600; color: var(--txt-2); flex: none;
        font-variant-numeric: tabular-nums; }
.card-meta {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  margin-top: 4px; font-size: 13px; color: var(--txt-2);
}
.card-meta .dot { color: var(--txt-3); }
.tag { font-weight: 600; }
.tag.open   { color: var(--open); }
.tag.closed { color: var(--txt-3); }
.tag.unk    { color: var(--txt-3); cursor: help; }
.addr { font-size: 12.5px; color: var(--txt-3); margin-top: 4px; }

/* Insignias de oferta dentro de la fila. Fondo tenue en vez de barra de color
 * al costado: una franja gruesa a la izquierda es el atajo de siempre. */
.deal, .shared, .webdeal {
  margin-top: 9px; padding: 9px 11px; border-radius: var(--r-sm);
  background: var(--raised); font-size: 13.5px; line-height: 1.45;
}
.deal { background: color-mix(in srgb, var(--brand) 13%, transparent); }
.deal strong, .shared-txt strong { color: var(--brand); font-weight: 700; }
.shared-txt { font-size: 13.5px; }
.shared-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.shared-meta { font-size: 12px; color: var(--txt-3); margin-right: auto; }
.vote {
  background: none; border: 1px solid var(--line); color: var(--txt-2);
  border-radius: var(--r-pill); padding: 5px 12px;
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: transform 140ms var(--ease), color 150ms ease, border-color 150ms ease;
}
.vote:active:not(:disabled) { transform: scale(.96); }
.vote:disabled { opacity: .45; cursor: default; }

.webdeal { display: grid; gap: 5px; }
.webdeal-kw {
  justify-self: start; font-size: 11px; font-weight: 700; color: var(--brand);
  text-transform: uppercase; letter-spacing: .05em;
}
.webdeal-txt { font-size: 13px; color: var(--txt-2); line-height: 1.5; }
.webdeal a { font-size: 12px; color: var(--txt-3); text-decoration: none; }
.webdeal.is-social { color: var(--txt-3); font-size: 12.5px; }
.ig {
  display: inline-block; margin-top: 9px; font-size: 12.5px; font-weight: 600;
  color: var(--txt-2); text-decoration: none;
}

.go {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: var(--r-pill); background: var(--raised); color: var(--brand);
  text-decoration: none; margin-top: 1px;
  transition: transform 140ms var(--ease), background 150ms ease;
}
.go:active { transform: scale(.92); }
.go .ic { width: 19px; height: 19px; }

/* ── Esqueletos ─────────────────────────────────────────── */
.skel {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 15px 14px;
  animation: breathe 1.6s ease-in-out infinite;
}
.skel-main { flex: 1; display: grid; gap: 9px; }
.skel-bar { height: 11px; border-radius: 5px; background: var(--raised); }
.skel-bar.w60 { width: 58%; }
.skel-bar.w35 { width: 32%; height: 9px; }
.skel-go { width: 44px; height: 44px; border-radius: var(--r-pill); background: var(--raised); }
.skel:nth-child(2) { animation-delay: .12s; }
.skel:nth-child(3) { animation-delay: .24s; }
.skel:nth-child(4) { animation-delay: .36s; }
.skel:nth-child(5) { animation-delay: .48s; }
.skel:nth-child(6) { animation-delay: .6s; }
@keyframes breathe { 0%, 100% { opacity: .5; } 50% { opacity: .9; } }

/* ── Ficha de ciudad ────────────────────────────────────── */
.intel { margin: 20px 12px 0; padding: 16px; background: var(--surface);
         border: 1px solid var(--line); border-radius: var(--r-md); }
.intel-h { font-size: 15px; margin-bottom: 12px; }
.intel-h .muted { color: var(--txt-2); font-weight: 400; }
.price-strip { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-num { font-size: 26px; font-weight: 700; letter-spacing: -.03em;
             font-variant-numeric: tabular-nums; }
.price-meta { font-size: 12.5px; color: var(--txt-2); }
.price-meta em { color: var(--txt-3); font-style: normal; }
.price-note { font-size: 13px; color: var(--txt-2); margin: 9px 0 14px; line-height: 1.55; }

.lchips { display: flex; flex-wrap: wrap; gap: 7px; }
.lchip {
  font-size: 12.5px; font-weight: 600; padding: 5px 11px;
  border-radius: var(--r-pill); background: var(--raised); color: var(--txt-2);
}
.lchip.warn { color: var(--txt); }
.lchip.no { background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); }

.intel-card { padding: 12px 0; border-top: 1px solid var(--line-soft); }
.intel-top { display: flex; align-items: baseline; gap: 9px; margin-bottom: 5px; flex-wrap: wrap; }
.intel-top strong { font-size: 14px; font-weight: 600; }
.badge { font-size: 11px; font-weight: 700; text-transform: uppercase;
         letter-spacing: .05em; color: var(--txt-3); }
.no .badge { color: var(--brand); }
.intel-card p { margin: 0; font-size: 13px; color: var(--txt-2); line-height: 1.6; }

.pat-h { font-size: 13px; font-weight: 600; margin: 18px 0 4px; }
.pat-h .muted { color: var(--txt-2); font-weight: 400; }
.pats { list-style: none; margin: 0; padding: 0; }
.pat { padding: 11px 0; border-top: 1px solid var(--line-soft); display: grid; gap: 3px; }
.pat strong { font-size: 13.5px; font-weight: 600; }
.pat-what { font-size: 13px; color: var(--txt-2); line-height: 1.5; }
.pat-when { font-size: 12px; color: var(--txt-3); }

.intel-more { margin-top: 12px; }
.intel-more summary {
  cursor: pointer; list-style: none; padding: 10px 0 2px;
  font-size: 13.5px; font-weight: 600; color: var(--brand);
  -webkit-tap-highlight-color: transparent;
}
.intel-more summary::-webkit-details-marker { display: none; }
.zones, .tips { margin: 12px 0 0; padding-left: 18px; font-size: 13px;
                color: var(--txt-2); line-height: 1.6; }
.zones li, .tips li { margin-bottom: 7px; }
.zones strong { color: var(--txt); font-weight: 600; }

/* ── Leer webs ──────────────────────────────────────────── */
.scanbar { padding: 18px 12px 0; }
.btn-scan { position: relative; overflow: hidden; }
.btn-scan.is-working::before {
  content: ''; position: absolute; inset: 0;
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  transform: scaleX(var(--p, 0)); transform-origin: left;
  transition: transform 400ms var(--ease);
}
.scan-note { font-size: 12.5px; color: var(--txt-3); margin: 10px 4px 0; line-height: 1.5; }

/* ── FAB ────────────────────────────────────────────────── */
.fab {
  position: fixed; right: 14px; z-index: 30;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 8px;
  height: 50px; padding: 0 20px 0 16px; border: 0; border-radius: var(--r-pill);
  background: var(--brand); color: var(--brand-ink); cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 600;
  box-shadow: var(--shadow-fab);
  transition: transform 140ms var(--ease);
}
.fab:active { transform: scale(.96); }
.fab .ic { width: 20px; height: 20px; }

/* ── Hojas ──────────────────────────────────────────────── */
.sheet {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(8, 9, 12, .55);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity 200ms var(--ease);
}
.sheet.is-open { opacity: 1; }
.sheet-card {
  width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto;
  background: var(--bg); border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 6px 18px calc(26px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-sheet);
  transform: translateY(100%);
  transition: transform 200ms var(--ease);
}
.sheet.is-open .sheet-card {
  transform: translateY(0);
  transition: transform 340ms var(--ease-sheet);
}
.sheet-card::before {
  content: ''; display: block; width: 36px; height: 4px; border-radius: var(--r-pill);
  background: var(--line); margin: 8px auto 2px;
}
.sheet-head { display: flex; align-items: center; gap: 6px; margin: 10px 0 18px; }
.sheet-head h2 { font-size: 21px; letter-spacing: -.028em; }
.sheet-note { font-size: 13.5px; color: var(--txt-2); margin: 16px 0 12px; line-height: 1.55; }
.sheet-foot { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; text-align: center; }

.field { display: block; margin-bottom: 16px; font-size: 12.5px; font-weight: 600; color: var(--txt-2); }
.field input, .field select {
  display: block; width: 100%; margin-top: 7px; height: 46px;
  background: var(--raised); border: 1px solid transparent; border-radius: var(--r-sm);
  padding: 0 13px; color: var(--txt); font: inherit; font-size: 16px; font-weight: 400;
  transition: border-color 150ms ease, background 150ms ease;
}
.field input:focus, .field select:focus {
  outline: 0; border-color: var(--brand); background: var(--surface);
}
.row { display: flex; gap: 12px; }
.row .field { flex: 1; }

.toggle {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.toggle span { display: grid; gap: 5px; flex: 1; }
.toggle strong { font-size: 15px; font-weight: 600; color: var(--txt); }
.toggle em { font-size: 12.5px; color: var(--txt-2); font-style: normal; line-height: 1.55; }
.switch {
  appearance: none; flex: none; width: 46px; height: 28px; margin: 2px 0 0;
  background: var(--line); border-radius: var(--r-pill); cursor: pointer;
  position: relative; transition: background 200ms var(--ease);
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  background: #fff; border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  transition: transform 220ms var(--ease);
}
.switch:checked { background: var(--brand); }
.switch:checked::after { transform: translateX(18px); }

.searchfield-sheet { margin-top: 16px; background: var(--raised); }

/* ── Ficha del lugar ────────────────────────────────────── */
.card { cursor: pointer; }
.v-meta { display: flex; align-items: center; gap: 8px; color: var(--txt-2); font-size: 14px; }
.v-state { margin-top: 10px; font-size: 14px; }
.v-block { margin-top: 22px; }
.v-h { font-size: 13px; font-weight: 700; text-transform: uppercase;
       letter-spacing: .06em; color: var(--txt-3); margin-bottom: 10px; }
.v-src { display: block; font-size: 11.5px; color: var(--txt-3); margin-top: 5px; }

.v-actions { display: grid; gap: 8px; margin-top: 22px; }
.v-act {
  display: block; padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--raised); color: var(--txt); text-decoration: none;
  font-size: 14.5px; font-weight: 600;
  transition: transform 140ms var(--ease), background 150ms ease;
}
.v-act:active { transform: scale(.98); }
.v-act-main { background: var(--brand); color: var(--brand-ink); }

.v-datos { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.v-datos dt { font-size: 13px; color: var(--txt-3); }
.v-datos dd { margin: 0; font-size: 13.5px; color: var(--txt); }
.v-nota { font-size: 12px; color: var(--txt-3); line-height: 1.55; margin: 22px 0 0; }

.city-list { list-style: none; margin: 0; padding: 0; }
.city-list strong { font-weight: 600; }
.city-list button {
  width: 100%; text-align: left; background: none; border: 0;
  border-bottom: 1px solid var(--line-soft); padding: 15px 0;
  color: var(--txt); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  transition: transform 140ms var(--ease), color 150ms ease;
}
.city-list button:active { transform: scale(.985); }
.city-list span { font-size: 13px; color: var(--txt-3); font-weight: 400; }

/* ── Aviso corto ────────────────────────────────────────── */
.toast {
  position: fixed; left: 12px; right: 12px; z-index: 70;
  bottom: max(78px, calc(env(safe-area-inset-bottom) + 78px));
  max-width: 440px; margin: 0 auto;
  background: var(--txt); color: var(--bg);
  border-radius: var(--r-sm); padding: 13px 16px;
  font-size: 13.5px; font-weight: 600; line-height: 1.4;
  transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none;
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}
.toast.is-on {
  transform: translateY(0); opacity: 1;
  transition: transform 380ms var(--ease-sheet), opacity 240ms var(--ease);
}
.toast.is-bad { background: var(--brand); color: var(--brand-ink); }

/* ── Puntero real ───────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { filter: brightness(1.07); }
  .btn-outline:hover:not(:disabled) { border-color: var(--txt-3); }
  .btn-quiet:hover { color: var(--txt); }
  .icon-btn:hover { background: var(--raised); color: var(--txt); }
  .tab:hover:not(.is-on) { color: var(--txt); }
  .chip:hover, .sub:hover:not(.is-on) { background: var(--line-soft); }
  .card:hover { border-color: var(--txt-3); }
  .go:hover { background: color-mix(in srgb, var(--brand) 18%, transparent); }
  .vote:hover:not(:disabled) { color: var(--txt); border-color: var(--txt-3); }
  .of-cta:hover { border-color: var(--txt-3); }
  .city-list button:hover { color: var(--brand); }
  .webdeal a:hover, .ig:hover { color: var(--brand); }
  .placebar:hover .placebar-act { text-decoration: underline; }
}

@media (min-width: 640px) {
  .list, .of-list { grid-template-columns: 1fr 1fr; }
  .of-h, .status, .intel, .scanbar, .ofertas > .of-empty { grid-column: 1 / -1; }
  .sheet { align-items: center; }
  .sheet-card {
    border-radius: var(--r-lg); transform: scale(.97); opacity: 0;
    transition: transform 180ms var(--ease), opacity 180ms var(--ease);
  }
  .sheet.is-open .sheet-card {
    transform: scale(1); opacity: 1;
    transition: transform 260ms var(--ease), opacity 260ms var(--ease);
  }
  .sheet-card::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .of-row, .skel { animation: none; }
  .skel { opacity: .6; }
  .sheet-card, .sheet.is-open .sheet-card { transform: none; transition: opacity 160ms ease; }
  .toast, .toast.is-on { transform: none; transition: opacity 180ms ease; }
  .btn:active, .chip:active, .sub:active, .fab:active, .vote:active,
  .city-list button:active, .go:active, .icon-btn:active, .placebar:active,
  .of-cta:active { transform: none; }
  .switch::after { transition: none; }
  .status.is-loading::after { animation-duration: 1.4s; }
}
