/* JoqueOferta v2 · diseño en DISENO-WEB.md. Fuentes: Bricolage Grotesque e Inter (OFL), alojadas aquí. */
@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/bricolage-grotesque-latin-wght.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --font-display: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --accent: #e11d48;
  --accent-hi: #ff3a63;
  --accent-ink: #ffffff;
  --heat: #ff7a1a;
  --tg: #2aabee;
  --r-sm: 10px; --r: 16px; --r-lg: 22px; --r-pill: 999px;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
/* Tema: el del sistema del visitante (claro si no tiene preferencia); el botón lo fija con data-theme */
:root, [data-theme="light"] {
  color-scheme: light;
  --bg: #f6f6f8;
  --bg-soft: #efeff3;
  --surface: #ffffff;
  --surface-2: #f3f3f6;
  --surface-3: #e9e9ef;
  --line: rgba(15, 15, 25, .08);
  --line-2: rgba(15, 15, 25, .14);
  --text: #101017;
  --muted: #5b5b6a;
  --faint: #8a8a98;
  --save: #0f8a5f;
  --save-bg: #dcfce7;
  --glow: rgba(225, 29, 72, .18);
  --shadow: 0 1px 2px rgba(16, 16, 23, .06), 0 8px 24px rgba(16, 16, 23, .06);
  --hdr: rgba(246, 246, 248, .82);
  --accent-text: #e11d48;
  --hero-glow: .55;
  --media-filter: saturate(.9) brightness(1.08);
  --show-sun: none;
  --show-moon: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0b0f;
    --bg-soft: #101016;
    --surface: #15151b;
    --surface-2: #1c1c24;
    --surface-3: #24242e;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);
    --text: #ececf1;
    --muted: #a1a1ae;
    --faint: #6f6f7d;
    --save: #34d399;
    --save-bg: rgba(52, 211, 153, .12);
    --glow: rgba(225, 29, 72, .35);
    --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px rgba(0, 0, 0, .35);
    --hdr: rgba(11, 11, 15, .78);
    --accent-text: #ff3a63;
    --hero-glow: 1;
    --media-filter: none;
    --show-sun: block;
    --show-moon: none;
  }
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0b0f;
  --bg-soft: #101016;
  --surface: #15151b;
  --surface-2: #1c1c24;
  --surface-3: #24242e;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #ececf1;
  --muted: #a1a1ae;
  --faint: #6f6f7d;
  --save: #34d399;
  --save-bg: rgba(52, 211, 153, .12);
  --glow: rgba(225, 29, 72, .35);
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px rgba(0, 0, 0, .35);
  --hdr: rgba(11, 11, 15, .78);
  --accent-text: #ff3a63;
  --hero-glow: 1;
  --media-filter: none;
  --show-sun: block;
  --show-moon: none;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font-body); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.025em; line-height: 1.08; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.i { width: 1.1em; height: 1.1em; flex: none; }
.i-xs { width: .85em; height: .85em; }
.i-xl { width: 40px; height: 40px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-weight: 650; font-size: .95rem; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .15s var(--ease), background .2s, box-shadow .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 36px; padding: 0 14px; font-size: .88rem; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 20px var(--glow); }
.btn-accent:hover { background: var(--accent-hi); }
.btn-tg { background: var(--tg); color: #fff; }
.btn-tg:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line-2); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.btn-ghost:hover { border-color: var(--muted); }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: transparent; cursor: pointer;
}
.icon-btn:hover { border-color: var(--line-2); }
.i-sun { display: var(--show-sun); }
.i-moon { display: var(--show-moon); }

/* ---------- Cabecera ---------- */
.hdr {
  position: sticky; top: 0; z-index: 30; background: var(--hdr);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr-row { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; letter-spacing: -.03em; }
.brand-word b { color: var(--accent-text); font-weight: 800; }
.nav { display: none; gap: 2px; margin-left: 12px; }
.nav a {
  padding: 8px 12px; border-radius: var(--r-pill); color: var(--muted); text-decoration: none;
  font-weight: 550; font-size: .93rem; transition: color .15s, background .15s;
}
.nav a:hover, .nav a[aria-current] { color: var(--text); background: var(--surface-2); }
.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hdr-actions .btn-tg span { display: none; }

/* ---------- Comunes ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--heat);
}
.kicker-red { color: var(--accent-text); }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.lead strong { color: var(--text); }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); display: inline-block; }
.sec { padding: 56px 0 8px; }
.sec-tight { padding-top: 28px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.more:hover { color: var(--text); }

/* ---------- Portada ---------- */
.hero { position: relative; overflow: hidden; padding: 44px 0 36px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 120%; pointer-events: none;
  background:
    radial-gradient(40% 50% at 78% 30%, rgba(225, 29, 72, .22), transparent 70%),
    radial-gradient(30% 40% at 20% 10%, rgba(255, 122, 26, .10), transparent 70%);
}
.hero::before { opacity: var(--hero-glow); }
.hero-in { position: relative; display: grid; gap: 40px; align-items: center; }
.live {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; margin-bottom: 22px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface);
  font-size: .82rem; color: var(--muted);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.6rem); font-weight: 750; letter-spacing: -.04em; margin-bottom: 18px; }
.grad { background: linear-gradient(92deg, var(--accent-hi), var(--heat)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-bottom: 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .88rem; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust .i { color: #22c55e; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 30px 0 0; max-width: 520px; }
.stats div { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.stats dt { font-size: .76rem; color: var(--muted); }
.stats dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 750; font-size: 1.7rem; letter-spacing: -.03em; }

/* Abanico de chollos */
.fan { position: relative; height: 470px; display: none; }
.mini {
  position: absolute; width: 270px; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
  transition: transform .5s var(--ease);
}
.mini-body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.mini-title { font-weight: 650; font-size: .95rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini .btn { margin-top: 6px; }
.fan-1 { left: 50%; top: 10px; transform: translateX(-50%); z-index: 3; }
.fan-2 { left: 4%; top: 60px; transform: rotate(-8deg); z-index: 2; }
.fan-3 { right: 4%; top: 60px; transform: rotate(8deg); z-index: 1; }
.fan-2, .fan-3 { filter: brightness(.55) saturate(.8); transition: transform .5s var(--ease), filter .5s; }
.fan:hover .fan-2, .fan:hover .fan-3 { filter: none; }
.fan:hover .fan-2 { transform: rotate(-11deg) translateX(-14px); }
.fan:hover .fan-3 { transform: rotate(11deg) translateX(14px); }

/* ---------- Mosaico (cuando no hay foto) ---------- */
.media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  display: grid; place-items: center; isolation: isolate;
  --t1: #2a1220; --t2: #4b1630;
  background:
    radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--t2) 80%, white 6%), transparent 60%),
    linear-gradient(140deg, var(--t1), var(--t2));
}
.media::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 14px 14px;
}
.media-big { aspect-ratio: 16 / 10; }
/* Foto de la tienda encima del mosaico; si no carga, se quita y queda el mosaico */
.media-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; background: #fff; }
.has-photo .media-icon { visibility: hidden; }
.has-photo .media-cat { z-index: 1; padding: 2px 8px; border-radius: var(--r-pill); background: rgba(0, 0, 0, .55); color: #fff; }
.pill-off, .media-tags { z-index: 1; }
.has-photo { filter: none; }
.tone-0 { --t1: #2a1220; --t2: #5a1736; }
.tone-1 { --t1: #1d1a2e; --t2: #3a2a5c; }
.tone-2 { --t1: #10233a; --t2: #16467a; }
.tone-3 { --t1: #142a1d; --t2: #1f5a35; }
.tone-4 { --t1: #2a1d0f; --t2: #7a4312; }
.tone-5 { --t1: #0f2229; --t2: #136072; }
.tone-6 { --t1: #2a1029; --t2: #6a1f63; }
.tone-7 { --t1: #1a1530; --t2: #3b2fa0; }
.media { filter: var(--media-filter); }
/* Sin foto: el icono de la categoría en una "app" de cristal, con un halo detrás; tiene que parecer intencionado */
.media::before {
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--t2) 60%, white 25%) 0%, transparent 65%); opacity: .55;
}
.media-icon {
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 26px; color: #fff;
  background: linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06));
  border: 1px solid rgba(255, 255, 255, .28); box-shadow: 0 12px 30px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .4s var(--ease);
}
.media-icon .i { width: 40px; height: 40px; stroke-width: 1.6; }
.deal:hover .media-icon { transform: translateY(-3px) rotate(-4deg); }
.media-big .media-icon { width: 104px; height: 104px; border-radius: 32px; }
.media-big .media-icon .i { width: 50px; height: 50px; }
.media-cat {
  position: absolute; left: 12px; bottom: 10px; font-size: .72rem; font-weight: 600;
  color: rgba(255, 255, 255, .75); letter-spacing: .02em;
}
.pill-off {
  position: absolute; top: 12px; right: 12px; padding: 5px 10px; border-radius: var(--r-pill);
  background: #16a34a; color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .01em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.pill-off.is-error { background: var(--accent); }
.pill-inline { position: static; display: inline-block; padding: 2px 8px; font-size: .72rem; box-shadow: none; vertical-align: 2px; }
.media-tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: var(--r-pill);
  background: rgba(0, 0, 0, .45); color: #fff; font-size: .72rem; font-weight: 650; backdrop-filter: blur(6px);
}
.tag .i { width: 13px; height: 13px; }

/* ---------- Tarjeta ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.deal {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.deal:hover { transform: translateY(-3px); border-color: var(--line-2); }
.deal-error { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), 0 14px 40px var(--glow); }
.deal-media { display: block; text-decoration: none; }
.share {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  display: none; place-items: center; border: 0; cursor: pointer; background: rgba(0, 0, 0, .5); color: #fff; backdrop-filter: blur(6px);
}
.share .i { width: 16px; height: 16px; }
.has-js .share { display: grid; }
.has-js .deal .pill-off { right: 54px; }
.deal-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.deal-meta { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); min-width: 0; }
.store { font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.store:hover { color: var(--accent-text); }
.deal-title { font-family: var(--font-body); font-size: 1rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.35; }
.deal-title a { text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.deal-title a:hover { color: var(--accent-text); }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 4px; flex-wrap: wrap; }
.price { font-family: var(--font-display); font-size: 1.75rem; font-weight: 750; letter-spacing: -.035em; line-height: 1; }
.price-amz { font-family: var(--font-body); font-size: 1.02rem; font-weight: 650; letter-spacing: 0; color: var(--muted); }
.price-old { color: var(--faint); font-size: .95rem; }
.save { display: inline-flex; align-self: flex-start; padding: 3px 9px; border-radius: var(--r-pill); background: var(--save-bg); color: var(--save); font-size: .8rem; font-weight: 650; }
.save-muted { background: var(--surface-2); color: var(--muted); }
.price-time { display: flex; align-items: center; gap: 5px; color: var(--faint); font-size: .74rem; }
.price-time .i { width: 12px; height: 12px; }
.why { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .82rem; }
.why .i { color: var(--heat); }
.deal-cta { margin-top: 6px; }
.deal-cta b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .03em; }
.deal-cta.is-copied { background: #16a34a; box-shadow: none; }
.risk { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--accent-text); }
.risk .i { width: 14px; height: 14px; }
.is-hidden { display: none !important; }

/* Carril de errores */
.sec-errors { position: relative; }
.sec-errors::before { content: ""; position: absolute; inset: 20% 0 auto; height: 60%; background: radial-gradient(50% 60% at 50% 50%, rgba(225, 29, 72, .12), transparent 70%); pointer-events: none; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 300px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)) 18px;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

/* Filtros */
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -4px -20px 18px; padding: 4px 20px; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: var(--r-pill); cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-weight: 600; font-size: .88rem;
}
.chip:hover { color: var(--text); }
.chip.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.empty { color: var(--muted); padding: 24px 0; }

/* Ranking */
.rank { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.rank li {
  display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
}
.rank-n { font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--line-2); }
.rank li:nth-child(-n+3) .rank-n { -webkit-text-stroke: 0; color: var(--heat); }
.rank-body { min-width: 0; display: grid; gap: 4px; }
.rank-title { font-weight: 650; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.rank-title:hover { color: var(--accent-text); }
.rank-price { color: var(--muted); font-size: .9rem; }
.rank-price b { color: var(--text); font-family: var(--font-display); font-size: 1.15rem; }
.rank-price s { color: var(--faint); }
.heat { display: inline-flex; align-items: center; gap: 4px; color: var(--heat); font-weight: 700; }
.heat .i { width: 14px; height: 14px; }

/* Pasos y tiendas */
.steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.step-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-hi); }
.steps h3 { font-size: 1.2rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .95rem; }
.stores { margin-top: 30px; text-align: center; }
.stores > p { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.stores ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.stores li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); font-size: .88rem; font-weight: 600; }
.store-av { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); font-size: .72rem; font-weight: 800; }

/* Banda de Telegram */
.tg-band { margin-top: 64px; padding: 56px 0; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--tg) 10%, transparent)); border-top: 1px solid var(--line); }
.tg-band-in { display: grid; gap: 36px; align-items: center; }
.tg-copy .kicker { color: var(--tg); }
.tg-copy h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 14px; }
.tg-copy p:not(.kicker) { color: var(--muted); max-width: 52ch; margin-bottom: 22px; }
.phone { width: 300px; max-width: 100%; margin: 0 auto; border-radius: 36px; padding: 14px; background: #0e1621; border: 8px solid #1d1d24; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); color: #e9eef3; }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 6px 6px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
.phone-top small { display: block; color: #8b9bab; font-size: .72rem; }
.phone-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); font-weight: 800; color: #fff; }
.phone-feed { display: grid; gap: 10px; padding-top: 12px; }
.bubble { position: relative; display: grid; gap: 3px; padding: 10px 12px 18px; border-radius: 14px 14px 14px 4px; background: #182533; font-size: .8rem; line-height: 1.35; }
.bubble s { color: #8b9bab; }
.bubble-link { color: #6ab3f3; }
.bubble small { position: absolute; right: 10px; bottom: 5px; color: #8b9bab; font-size: .66rem; }

/* Páginas interiores */
.page-hero { position: relative; overflow: hidden; padding: 36px 0 8px; }
.page-hero::before { content: ""; position: absolute; inset: -60% -10% auto; height: 140%; background: radial-gradient(40% 50% at 80% 20%, rgba(225, 29, 72, .14), transparent 70%); pointer-events: none; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); font-weight: 750; letter-spacing: -.04em; margin-bottom: 14px; }
.page-404 { padding: 80px 0; }
.page-404 .hero-ctas { margin-top: 24px; }
.crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: .84rem; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent-text); }
.prose ul { padding-left: 20px; }
.countdown { display: flex; gap: 10px; margin-top: 22px; }
.countdown div { min-width: 86px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); text-align: center; }
.countdown b { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 750; letter-spacing: -.03em; line-height: 1; }
.countdown span { font-size: .75rem; color: var(--muted); }
.empty-state { display: grid; justify-items: center; gap: 14px; padding: 48px 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); }
.empty-state p { max-width: 46ch; }

/* ---------- Categorías ---------- */
.cat-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 14px; padding: 2px 20px; }
.cat-chips::-webkit-scrollbar { display: none; }
.chip-link { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; line-height: 34px; }
.chip-link .i { width: 16px; height: 16px; }
.cat-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cat-tile {
  position: relative; display: grid; gap: 2px; padding: 18px; min-height: 120px; align-content: end;
  border-radius: var(--r-lg); text-decoration: none; color: #fff; overflow: hidden; isolation: isolate;
  background: linear-gradient(140deg, var(--t1), var(--t2)); filter: var(--media-filter);
  transition: transform .25s var(--ease);
}
.cat-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 14px 14px; }
.cat-tile:hover { transform: translateY(-3px); }
.cat-ic { position: absolute; top: 14px; right: 14px; opacity: .9; }
.cat-ic .i { width: 34px; height: 34px; stroke-width: 1.6; }
.cat-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.cat-count { font-size: .8rem; opacity: .8; }
.cat-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.cat-head h1 { margin-bottom: 0; }
.cat-head .kicker { margin-bottom: 6px; }
.cat-badge { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; color: #fff; background: linear-gradient(140deg, var(--t1), var(--t2)); }
.cat-badge .i { width: 32px; height: 32px; }
.stats-inline { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; }
.stats-wide { grid-column: 1 / -1; }
.dd-text { font-family: var(--font-body) !important; font-size: 1rem !important; font-weight: 600 !important; letter-spacing: 0 !important; }
.faq-title { margin-top: 0 !important; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 650; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; }

/* ---------- Ficha de chollo ---------- */
.ficha { display: grid; gap: 22px; align-items: start; }
.ficha-media { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.ficha-media .media { aspect-ratio: 4 / 3; }
.ficha-media .media-icon { width: 150px; height: 150px; border-radius: 44px; }
.ficha-media .media-icon .i { width: 72px; height: 72px; }
.ficha-body { display: grid; gap: 12px; }
.page-hero .ficha-title { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-bottom: 0; font-weight: 750; letter-spacing: -.03em; line-height: 1.12; }
.ficha .price { font-size: 2.4rem; }
.ficha .price-amz { font-size: 1.15rem; }
.ficha-body .save { justify-self: start; }
.facts { display: grid; gap: 10px; margin: 6px 0 4px; padding: 16px 18px; list-style: none; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.facts li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--muted); font-size: .94rem; }
.facts .i { margin-top: 3px; color: var(--heat); }
.facts b { color: var(--text); }
.facts code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); color: var(--text); font-weight: 700; }
.fact-risk .i, .fact-risk b { color: var(--accent-text); }
.ended { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r); background: var(--surface-2); color: var(--muted); font-size: .9rem; }

/* ---------- Página del canal de Telegram ---------- */
.tg-hero-in { display: grid; gap: 32px; align-items: center; }
.kicker-tg { color: var(--tg); }
.qr-card { justify-self: center; display: none; max-width: 300px; padding: 22px; text-align: center; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.qr { padding: 10px; border-radius: 16px; background: #fff; margin-bottom: 14px; }
.qr svg { width: 100%; height: auto; }
.qr-card p { color: var(--muted); font-size: .92rem; }
.qr-card b { color: var(--text); }
.steps .step-ic { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.more-tg { display: inline-flex; margin-left: 14px; }

/* ---------- Pie ---------- */
.ftr { margin-top: 0; padding: 48px 0 110px; border-top: 1px solid var(--line); background: var(--bg-soft); font-size: .92rem; }
.ftr-grid { display: grid; gap: 28px; }
.ftr-about p { color: var(--muted); margin: 12px 0 16px; max-width: 36ch; }
.ftr nav { display: grid; gap: 8px; align-content: start; }
.ftr h4 { font-family: var(--font-body); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.ftr nav a { color: var(--muted); text-decoration: none; }
.ftr nav a:hover { color: var(--text); }
.ftr-legal { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: .84rem; max-width: 90ch; }
.ftr-copy { margin-top: 10px; color: var(--faint); font-size: .82rem; }

/* Barra de Telegram (móvil) y aviso de novedades */
.tg-dock {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r);
  background: var(--tg); color: #fff; text-decoration: none; font-size: .92rem; box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}
.tg-dock span { flex: 1; }
.toast {
  position: fixed; left: 50%; top: 76px; z-index: 50; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, .4); font-weight: 600; font-size: .92rem;
}
.toast .i { color: var(--heat); }
.toast[hidden] { display: none; }

/* ---------- Móvil: tarjetas en horizontal, para ver más chollos por pantalla ---------- */
@media (max-width: 639px) {
  .grid { gap: 12px; }
  .grid .deal { display: grid; grid-template-columns: 108px minmax(0, 1fr); }
  .grid .deal-media, .grid .media { height: 100%; }
  .grid .media { aspect-ratio: auto; min-height: 150px; }
  .grid .media-cat, .grid .media-tags, .grid .share { display: none !important; }
  .grid .media-icon { width: 58px; height: 58px; border-radius: 18px; }
  .grid .media-icon .i { width: 28px; height: 28px; }
  .grid .pill-off, .has-js .grid .deal .pill-off { top: 8px; left: 8px; right: auto; padding: 3px 7px; font-size: .68rem; }
  .grid .deal-body { padding: 12px 14px 14px; gap: 5px; }
  .grid .deal-title { font-size: .93rem; }
  .grid .deal-title a { min-height: 0; }
  .grid .price { font-size: 1.35rem; }
  .grid .price-amz { font-size: 1rem; }
  .grid .save { font-size: .74rem; }
  .grid .why { font-size: .76rem; }
  .grid .deal-cta { height: 38px; font-size: .86rem; }
}

/* ---------- Pantallas grandes ---------- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rank { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hdr-actions .btn-tg span { display: inline; }
  .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats-inline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats-wide { grid-column: auto; }
}
@media (min-width: 960px) {
  .nav { display: flex; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { padding: 72px 0 56px; }
  .hero-in { grid-template-columns: 1.1fr .9fr; }
  .fan { display: block; }
  .tg-band-in { grid-template-columns: 1.2fr .8fr; }
  .rank { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tg-dock { display: none; }
  .ftr-grid { grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); }
  .cat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ficha { grid-template-columns: .9fr 1.1fr; gap: 40px; }
  .tg-hero-in { grid-template-columns: 1.4fr .6fr; }
  .qr-card { display: block; }
  .ftr { padding-bottom: 48px; }
}
@media (min-width: 1200px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
