/* ============================================================
   ChapaTuPromo V2 — sistema de diseño completo, un solo CSS.
   Mobile-first · tokens light/dark · sin dependencias.
   ============================================================ */

/* ---------- Tipografía autohospedada (variable, 1 archivo) ---------- */
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-var.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Superficies */
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f0f1f7;
  --text: #10121a;
  --muted: #5d6473;
  --line: #e6e8f0;
  --head-bg: rgba(255, 255, 255, .78);

  /* Marca */
  --brand: #ff3a21;
  --brand-2: #ff7a00;
  --grad: linear-gradient(120deg, #ff2e3f 0%, #ff7a00 100%);
  --accent: #ffb800;
  --ok: #00b878;

  /* Redes / tiendas */
  --wa: #25d366;
  --tg: #2aabee;
  --fb: #1877f2;
  --amz: #ff9900;
  --ali: #e62e04;

  /* Forma y elevación */
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 1px 2px rgba(16, 18, 26, .05), 0 12px 32px -16px rgba(16, 18, 26, .18);
  --shadow-lift: 0 2px 6px rgba(16, 18, 26, .06), 0 22px 44px -16px rgba(255, 58, 33, .25);
  --ring: 0 0 0 3px rgba(255, 58, 33, .18);

  color-scheme: light;
}
[data-theme=dark] {
  --bg: #0a0b10;
  --surface: #12141d;
  --surface-2: #1a1d2a;
  --text: #f2f3f8;
  --muted: #9aa1b4;
  --line: #232738;
  --head-bg: rgba(14, 16, 24, .8);
  --shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 12px 32px -16px rgba(0, 0, 0, .65);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, .5), 0 22px 44px -14px rgba(255, 58, 33, .32);
  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.wrap { max-width: 1220px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 760px) { .wrap { padding-inline: 24px; } }

::selection { background: rgba(255, 58, 33, .22); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* Scrollbar fino y discreto */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* Transición nativa entre páginas (progresiva, solo navegadores que la soportan) */
@view-transition { navigation: auto; }

.skiplink {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--text); color: var(--surface); padding: 10px 18px; border-radius: 0 0 12px 0;
  font-weight: 700; text-decoration: none;
}
.skiplink:focus { left: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 10px 18px;
  font-weight: 700; font-size: 15px; text-decoration: none; color: #fff;
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--cta {
  position: relative; overflow: hidden;
  background: var(--grad); font-size: 17px; padding: 15px 26px; width: 100%;
  box-shadow: 0 10px 26px -10px rgba(255, 58, 33, .6);
  letter-spacing: .1px;
}
.btn--cta::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .38) 50%, transparent 75%);
  transform: translateX(-130%);
  animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine {
  0% { transform: translateX(-130%); }
  18% { transform: translateX(130%); }
  100% { transform: translateX(130%); }
}
.btn--go { background: var(--grad); padding: 10px 14px; font-size: 14px; width: 100%; box-shadow: 0 6px 16px -8px rgba(255, 58, 33, .5); }
.btn--wa { background: var(--wa); }
.btn--tg { background: var(--tg); }
.btn--fb { background: var(--fb); }
.btn--copy { background: var(--text); color: var(--surface); padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 13px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 18px; text-decoration: none;
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}
.iconbtn:hover { transform: translateY(-1px); border-color: var(--brand); }

/* ---------- Header de cristal ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--head-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-head::before { content: ""; display: block; height: 3px; background: var(--grad); }
.site-head.is-scrolled { box-shadow: 0 10px 30px -18px rgba(16, 18, 26, .35); }
.site-head__row { display: flex; align-items: center; gap: 12px; padding-block: 10px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -.4px; white-space: nowrap; }
.brand em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__logo {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none;
  background: var(--grad); color: #fff; font-size: 20px; border-radius: 11px;
  box-shadow: 0 6px 16px -6px rgba(255, 58, 33, .55);
}
.brand__name { line-height: 1; }

.site-head__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn--wa__txt { display: none; }
@media (min-width: 760px) { .btn--wa__txt { display: inline; } }

/* Botón "Únete" partido: acción directa a WhatsApp + menú con Telegram/Facebook */
.joinmenu { position: relative; display: inline-flex; }
.joinmenu__main { border-radius: 999px 0 0 999px; padding-right: 14px; }
.joinmenu__toggle {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  background: var(--wa); color: #fff; border: 0; border-left: 1px solid rgba(255, 255, 255, .32);
  border-radius: 0 999px 999px 0; padding: 0 11px; font-size: 13px;
  transition: filter .12s ease;
}
.joinmenu__toggle:hover { filter: brightness(1.05); }
.joinmenu__toggle svg { transition: transform .18s ease; }
.joinmenu[data-open] .joinmenu__toggle svg { transform: rotate(180deg); }
.joinmenu__dot {
  position: absolute; top: 1px; right: 3px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2px var(--surface); animation: joinpulse 2s ease-in-out infinite;
}
.joinmenu.is-seen .joinmenu__dot { display: none; }
@keyframes joinpulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: .5; } }
.joinmenu__panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; min-width: 176px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s);
  box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; gap: 2px;
}
.joinmenu__panel[hidden] { display: none; }
.joinmenu__item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px;
  text-decoration: none; font-size: 14px; font-weight: 700; color: var(--text);
  transition: background .12s ease;
}
.joinmenu__item svg { flex: none; font-size: 17px; }
.joinmenu__item:hover { background: var(--surface-2); }
.joinmenu__item--tg svg { color: var(--tg); }
.joinmenu__item--fb svg { color: var(--fb); }

/* Buscador */
.searchbar { position: relative; flex: 1; max-width: 560px; margin-left: auto; }
.searchbar input {
  width: 100%; padding: 11px 14px 11px 42px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--surface-2); color: var(--text); font-size: 15px; outline: none;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.searchbar input:focus { border-color: var(--brand); background: var(--surface); box-shadow: var(--ring); }
.searchbar__icon { position: absolute; left: 15px; top: 50%; translate: 0 -50%; color: var(--muted); display: inline-flex; }
.searchbar__suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s);
  box-shadow: var(--shadow); overflow: hidden;
}
.searchbar__suggest a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; text-decoration: none;
  border-bottom: 1px solid var(--line); font-size: 14px;
}
.searchbar__suggest a:last-child { border-bottom: 0; }
.searchbar__suggest a:hover,
.searchbar__suggest a.is-cur { background: var(--surface-2); }
.searchbar__suggest img,
.searchbar__suggest .s-img--none { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: #fff; flex: none; }
.searchbar__suggest .s-img--none { background: var(--surface-2); }
.searchbar__suggest .s-t { flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.searchbar__suggest .s-p { font-weight: 800; color: var(--brand); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* --- Estado "estoy pensando" del autocompletado ---
 * El desplegable se abre en el mismo frame que la pulsación: spinner con el
 * total del catálogo (presume de inventario mientras espera) + skeleton.
 */
.searchbar__icon { transition: color .15s ease; }
.searchbar.is-thinking .searchbar__icon { color: var(--brand); }
.searchbar.is-thinking input { border-color: var(--brand); }

.s-status {
  display: flex; align-items: center; gap: 8px; margin: 0;
  padding: 8px 12px; font-size: 12.5px; font-weight: 700; color: var(--muted);
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.s-spin {
  width: 13px; height: 13px; flex: none; border-radius: 50%;
  border: 2px solid var(--line);
  border: 2px solid color-mix(in srgb, var(--brand) 28%, transparent);
  border-top-color: var(--brand); animation: ctpspin .6s linear infinite;
}
@keyframes ctpspin { to { transform: rotate(360deg); } }

.s-sk { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.s-sk:last-child { border-bottom: 0; }
.s-sk__img, .s-sk__txt {
  border-radius: 8px;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 37%, var(--surface-2) 63%);
  background-size: 320px 100%; animation: ctpshine 1.1s linear infinite;
}
.s-sk__img { width: 40px; height: 40px; flex: none; }
.s-sk__txt { height: 12px; flex: 1; }
.s-sk:nth-child(3) .s-sk__txt { max-width: 72%; }
.s-sk:nth-child(4) .s-sk__txt { max-width: 54%; }
@keyframes ctpshine { to { background-position: 320px 0; } }

/* Resultados previos atenuados mientras llega la tanda nueva. */
.searchbar__suggest.is-stale .s-row { opacity: .45; transition: opacity .15s ease; }

/* Cabeceras, chips de búsquedas reales y salidas del estado vacío. */
.searchbar__suggest .s-head {
  margin: 0; padding: 8px 12px 6px; font-size: 11px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.s-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; }
.searchbar__suggest .s-chip {
  padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--text); background: var(--surface-2);
}
.searchbar__suggest .s-chip:hover, .searchbar__suggest .s-chip.is-cur {
  border-color: var(--brand); color: var(--brand);
}
.s-none { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 12px; font-size: 13.5px; }
.s-none b { font-size: 14.5px; }
.s-none span { color: var(--muted); }
.searchbar__suggest .s-cta {
  justify-content: center; margin: 0 12px 10px; padding: 10px; border-radius: 10px;
  background: var(--wa); color: #fff; font-weight: 800; border-bottom: 0;
}
.searchbar__suggest .s-cta:hover { filter: brightness(.94); background: var(--wa); }
.s-all {
  display: block; width: 100%; padding: 10px; border: 0; border-top: 1px solid var(--line);
  background: var(--surface-2); color: var(--brand); font: inherit; font-size: 13px;
  font-weight: 800; text-align: center; cursor: pointer;
}
.s-all:hover { background: var(--line); }

@media (prefers-reduced-motion: reduce) {
  .s-spin { animation-duration: 1.4s; }
  .s-sk__img, .s-sk__txt { animation: none; }
}

/* Nav de categorías */
.catnav { border-bottom: 1px solid var(--line); }
.catnav__scroll {
  display: flex; gap: 8px; overflow-x: auto; padding-block: 9px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 26px), transparent 100%);
}
.catnav__scroll::-webkit-scrollbar { display: none; }
.catnav__chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 13.5px; font-weight: 600; text-decoration: none;
  transition: background .12s ease, color .12s ease, border-color .12s ease, transform .12s ease;
}
.catnav__chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.catnav__chip.is-active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 14px -6px rgba(255, 58, 33, .5); }

/* ---------- Dock flotante inferior (móvil) ---------- */
@media (max-width: 759px) {
  body { padding-bottom: 128px; }

  /* El backdrop-filter crea un containing block que "atraparía" al dock
     fijo (buscador + chips, hijos del header). En móvil: header sólido. */
  .site-head { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); }

  .searchbar {
    position: fixed; z-index: 70;
    left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    max-width: none; margin: 0;
  }
  .searchbar input {
    background: var(--surface);
    padding-block: 13px;
    border-color: transparent;
    box-shadow: 0 8px 30px -6px rgba(10, 12, 20, .45);
  }
  .searchbar__suggest {
    top: auto; bottom: calc(100% + 58px);
    max-height: 48vh; overflow-y: auto;
  }

  .catnav {
    position: fixed; z-index: 70; left: 0; right: 0;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    background: transparent; border: 0;
  }
  .catnav__scroll { padding-block: 6px; }
  .catnav__chip {
    background: var(--surface);
    box-shadow: 0 5px 16px -5px rgba(10, 12, 20, .4);
  }
  .catnav__chip.is-active { box-shadow: 0 5px 16px -5px rgba(255, 58, 33, .55); }

  .ctp-toast { bottom: calc(136px + env(safe-area-inset-bottom, 0px)); }
}

/* CTA inteligente en publicaciones (móvil): sustituye a los chips al scrollear */
.dockcta {
  display: none;
  position: fixed; z-index: 71; left: 10px; right: 10px;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  align-items: center; gap: 10px;
  background: var(--grad); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 15.5px;
  padding: 13px 18px; border-radius: 999px;
  box-shadow: 0 10px 28px -8px rgba(255, 58, 33, .65);
  animation: dockcta-in .3s ease;
}
@keyframes dockcta-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
.dockcta__txt { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dockcta__price { font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, .2); padding: 3px 11px; border-radius: 999px; font-size: 14.5px; }
@media (max-width: 759px) {
  body.has-dockcta .dockcta:not([hidden]) { display: flex; }
  body.has-dockcta .catnav { opacity: 0; pointer-events: none; transition: opacity .2s ease; }
}

/* ---------- Hero con aurora ---------- */
.hero { position: relative; overflow: hidden; }
.hero__aurora { position: absolute; inset: 0; pointer-events: none; }
.hero__aurora i { position: absolute; border-radius: 50%; filter: blur(72px); opacity: .2; }
[data-theme=dark] .hero__aurora i { opacity: .26; }
.hero__aurora i:nth-child(1) { width: 460px; height: 460px; left: -140px; top: -180px; background: var(--brand-2); animation: drift1 16s ease-in-out infinite alternate; }
.hero__aurora i:nth-child(2) { width: 420px; height: 420px; right: -120px; top: -120px; background: #ff2e3f; animation: drift2 19s ease-in-out infinite alternate; }
.hero__aurora i:nth-child(3) { width: 360px; height: 360px; left: 50%; bottom: -240px; background: var(--accent); animation: drift3 17s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(70px, 40px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-60px, 50px) scale(1.08); } }
@keyframes drift3 { to { transform: translate(-90px, -30px) scale(1.15); } }

/* Grid del hero: una columna (centrado) o split con la oferta bomba */
.hero__grid { position: relative; padding-block: 44px 34px; }
@media (min-width: 760px) { .hero__grid { padding-block: 58px 46px; } }
.hero__lead { text-align: center; }
@media (min-width: 940px) {
  .hero--split .hero__grid {
    display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center;
  }
  .hero--split .hero__lead { text-align: left; }
  .hero--split .hero__sub { margin-inline: 0; }
  .hero--split .hero__stats { justify-content: flex-start; }
  .hero--split .hero__cta { justify-content: flex-start; }
  .hero--split .stat { align-items: flex-start; }
}

.hero__kicker {
  margin: 0 0 16px; display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px; font-size: 13px; font-weight: 600; color: var(--muted);
  box-shadow: var(--shadow);
}
.hero__kicker strong { color: var(--text); font-weight: 800; }
.hero__live { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(255, 58, 33, .5); animation: livedot 1.6s ease-out infinite; }

.hero__title { margin: 0; font-size: clamp(31px, 5.6vw, 56px); font-weight: 800; letter-spacing: -1.8px; line-height: 1.06; }
.hero__grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__flame { display: inline-block; animation: flame 1.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flame { 0%, 100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.12) rotate(3deg); } }
.hero__sub { margin: 14px auto 20px; max-width: 540px; color: var(--muted); font-size: clamp(15px, 2.4vw, 17.5px); font-weight: 400; }

.hero__stats { display: flex; align-items: center; justify-content: center; gap: 12px 30px; flex-wrap: wrap; margin-top: 4px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 0; }
.stat__n { font-size: clamp(24px, 3.4vw, 30px); font-weight: 800; letter-spacing: -.8px; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat__l { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: .2px; }
@keyframes livedot { 0% { box-shadow: 0 0 0 0 rgba(0, 184, 120, .5); } 70% { box-shadow: 0 0 0 9px rgba(0, 184, 120, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 184, 120, 0); } }

.hero__cta { display: flex; align-items: center; justify-content: center; gap: 14px 16px; flex-wrap: wrap; margin-top: 24px; }
.hero__cta .btn--wa { padding: 13px 22px; font-size: 15.5px; box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .6); }
.hero__proof { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.hero__proof strong { color: var(--text); font-weight: 800; }
.hero__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(0, 184, 120, .5); animation: livedot 1.8s ease-out infinite; }

/* ---------- Oferta bomba del hero ---------- */
.herodeal {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow-lift); overflow: hidden;
  max-width: 420px; margin-inline: auto; width: 100%;
}
.herodeal__flag {
  display: flex; align-items: center; gap: 7px; justify-content: center;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .3px;
  padding: 9px 14px;
}
.herodeal__media { position: relative; display: block; aspect-ratio: 16 / 11; background: #fff; overflow: hidden; }
.herodeal__media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .3s ease; }
.herodeal:hover .herodeal__media img { transform: scale(1.04); }
.herodeal__off {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--grad); color: #fff; font-weight: 900; font-size: 17px;
  padding: 6px 12px; border-radius: 10px; box-shadow: 0 6px 16px -4px rgba(255, 58, 33, .6);
}
.herodeal__store { position: absolute; top: 12px; right: 12px; z-index: 2; }
.herodeal__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.herodeal__title { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 700; }
.herodeal__title a { text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.herodeal__prices { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.herodeal__prices .price { font-size: clamp(26px, 4vw, 32px); letter-spacing: -1px; }
.herodeal__timer {
  margin: 0; display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  color: var(--muted); font-size: 13.5px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px;
}
.herodeal__timer strong { color: var(--brand); font-variant-numeric: tabular-nums; font-size: 14.5px; }

/* ---------- Secciones ---------- */
.sec { padding-block: 30px; }
.sec__head { position: relative; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sec__title { margin: 0; font-size: clamp(20px, 3vw, 26px); font-weight: 800; letter-spacing: -.6px; display: inline-flex; align-items: center; gap: 10px; }
.sec__ico {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  background: var(--grad); color: #fff; border-radius: 10px; font-size: 17px;
  box-shadow: 0 6px 14px -6px rgba(255, 58, 33, .5);
}
.sec__ico--gold { background: linear-gradient(120deg, #ffb800, #ff8a00); box-shadow: 0 6px 14px -6px rgba(255, 184, 0, .55); }
.sec__sub { margin: 0; color: var(--muted); font-size: 14px; }
.sec--trend { background: var(--surface); border-block: 1px solid var(--line); padding-block: 30px 26px; }
[data-theme=dark] .sec--trend { background: var(--surface); }

/* Flechas del carrusel (solo escritorio) */
.railnav { display: none; margin-left: auto; gap: 6px; }
@media (min-width: 760px) { .railnav { display: flex; } }
.railnav__btn {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text);
  transition: border-color .12s ease, transform .12s ease;
}
.railnav__btn:hover { border-color: var(--brand); transform: translateY(-1px); }
.railnav__btn:first-child svg { transform: rotate(90deg); }
.railnav__btn:last-child svg { transform: rotate(-90deg); }

/* Carrusel horizontal */
.railwrap { padding-inline: 0 16px; }
.rail { display: flex; gap: 12px; overflow-x: auto; padding: 6px 16px 16px; scroll-snap-type: x mandatory; scroll-behavior: smooth; }
.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; border: 0; }

/* ---------- Grid + Tarjetas ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
.card--mini { flex: 0 0 172px; }
@media (min-width: 700px) { .card--mini { flex-basis: 205px; } }

.card__media { position: relative; display: block; aspect-ratio: 1; background: #fff; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .3s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__noimg { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 46px; color: var(--line); }

.card__rank {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  display: grid; place-items: center; min-width: 30px; height: 30px; padding-inline: 6px;
  border-radius: 10px; font-weight: 900; font-size: 13px; color: #fff;
  background: #10121a; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .5);
}
.card__rank--1 { background: linear-gradient(135deg, #ffb800, #ff8a00); color: #241a00; }
.card__rank--2 { background: linear-gradient(135deg, #cfd6e4, #9aa6bc); color: #1a2030; }
.card__rank--3 { background: linear-gradient(135deg, #e8a06b, #c77b42); color: #2b1a0c; }
.card__rank + .card__off { top: 44px; }

.card__off {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: var(--grad); color: #fff; font-weight: 900; font-size: 13px;
  padding: 4px 9px; border-radius: 9px; box-shadow: 0 4px 12px -4px rgba(255, 58, 33, .6);
}
.card__cpn {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--accent); color: #201800; font-weight: 800; font-size: 11px;
  padding: 4px 8px; border-radius: 9px; box-shadow: 0 4px 12px -4px rgba(255, 184, 0, .55);
}

.card__body { display: flex; flex-direction: column; gap: 6px; padding: 11px 13px 13px; flex: 1; }
.card__toprow { margin: 0; display: flex; align-items: center; gap: 8px; min-height: 20px; }
.card__new { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; color: var(--ok); letter-spacing: .6px; }
.card__newdot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: livedot 1.8s ease-out infinite; }
.card__title { margin: 0; font-size: 14px; line-height: 1.35; font-weight: 600; }
.card__title a { text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card__prices { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 800; font-size: 19.5px; color: var(--brand); letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.price--big { font-size: clamp(30px, 5vw, 40px); letter-spacing: -1.4px; }
.price--old { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.card__meta { margin: 0; margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.card__meta svg { vertical-align: -2px; }
.card__hot { color: var(--brand); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.card__ok { color: var(--ok); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.card__ago { display: inline-flex; align-items: center; gap: 4px; }
.card__go { margin-top: 0; }
.card--mini .card__go, .card--mini .card__actions, .card--mini .card__meta { display: none; }

/* Fila de acciones: ver oferta + compartir al alcance del pulgar */
.card__actions { display: flex; align-items: stretch; gap: 7px; margin-top: 5px; }
.card__actions .card__go { flex: 1; min-width: 0; }
.card__share {
  flex: none; display: grid; place-items: center; width: 38px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--wa);
  font-size: 17px; text-decoration: none;
  transition: background .12s ease, border-color .12s ease, transform .12s ease, color .12s ease;
}
.card__share:hover { background: var(--wa); border-color: transparent; color: #fff; transform: translateY(-1px); }

/* ---------- Bloque de compartir (oferta) ---------- */
.sharebox {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 13px 15px;
}
.sharebox__lead { margin: 0; display: flex; flex-direction: column; gap: 1px; }
.sharebox__lead strong { font-size: 15.5px; letter-spacing: -.2px; }
.sharebox__lead span { font-size: 13px; color: var(--muted); }
.sharebox__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sharebox__main { flex: 1; min-width: 190px; box-shadow: 0 8px 20px -10px rgba(37, 211, 102, .6); }
.sharebox .iconbtn { background: var(--surface); }

/* ---------- Estados de rescate (404 / búsqueda sin resultados) ---------- */
.rescue { text-align: center; padding-block: 34px 8px; max-width: 620px; margin-inline: auto; }
.rescue__code { font-size: 54px; font-weight: 900; margin: 0 0 4px; letter-spacing: -2px; line-height: 1; }
.rescue__title { margin: 0 0 8px; font-size: clamp(22px, 3.6vw, 30px); font-weight: 800; letter-spacing: -.8px; }
.rescue__sub { margin: 0 auto 20px; color: var(--muted); font-size: 15.5px; max-width: 480px; }
.rescue__cta { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.rescue__cta .btn { padding: 13px 22px; font-size: 15.5px; }
.rescue__cta .btn--wa { box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .6); }
.rescue__proof { margin: 16px 0 0; display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.rescue__proof strong { color: var(--text); font-weight: 800; }
.rescue__alt { margin: 18px 0 0; display: flex; align-items: center; justify-content: center; gap: 8px 20px; flex-wrap: wrap; }
.rescue__alt a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.rescue__alt a:hover { color: var(--brand); }
.rescue--search .rescue__code { font-size: 40px; }

/* Chips de tienda */
.store {
  display: inline-flex; align-items: center; align-self: flex-start;
  padding: 3.5px 10px; border-radius: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .3px; color: #fff;
}
.store--amz { background: var(--amz); color: #1b1300; }
.store--ali { background: var(--ali); }
.store--other { background: var(--muted); }

/* ---------- Cabecera de archivo/búsqueda ---------- */
.archhero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface); }
.archhero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(420px 200px at 8% -60px, rgba(255, 122, 0, .16), transparent 70%),
    radial-gradient(420px 200px at 92% -60px, rgba(255, 46, 63, .13), transparent 70%);
}
.archhero .wrap { position: relative; padding-block: 30px 26px; }
.archhero__kicker { margin: 0 0 6px; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: .4px; text-transform: uppercase; }
.archhero__title { margin: 0; font-size: clamp(24px, 4vw, 38px); font-weight: 800; letter-spacing: -1px; }
.archhero__sub { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.sec--archive { padding-top: 22px; }

/* ---------- Single (deal) ---------- */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); padding-block: 16px 4px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }

.deal__layout { display: grid; gap: 20px; padding-block: 12px 8px; }
@media (min-width: 860px) { .deal__layout { grid-template-columns: minmax(300px, 460px) 1fr; gap: 40px; align-items: start; } }

.deal__media {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: var(--shadow);
}
.deal__media::after {
  content: ""; position: absolute; inset: auto -40px -70px -40px; height: 130px; pointer-events: none;
  background: radial-gradient(50% 100% at 50% 100%, rgba(255, 58, 33, .12), transparent 75%);
}
.deal__media img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.deal__off { font-size: 16px; padding: 6px 12px; }

.deal__panel { display: flex; flex-direction: column; gap: 13px; }
.deal__toprow { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.deal__verified { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-weight: 700; font-size: 13.5px; }
.deal__verified--ago { color: var(--muted); }
.deal__title { margin: 0; font-size: clamp(21px, 3.6vw, 30px); line-height: 1.22; letter-spacing: -.7px; font-weight: 800; }
.deal__prices { margin: 0; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.deal__save { background: rgba(0, 184, 120, .13); color: var(--ok); font-weight: 800; font-size: 13.5px; padding: 5px 11px; border-radius: 9px; }

/* Cupón estilo ticket: zona de código + perforación vertical + zona de acción.
   NOTA: clase con prefijo ctp- a propósito. El nombre genérico ".coupon" choca
   con CSS residual del tema viejo (badge rojo flotante inyectado por el plugin
   "Simple Custom CSS and JS"); el prefijo lo vuelve inmune a esa y otras colisiones. */
.ctp-coupon {
  position: relative;
  display: flex; align-items: stretch;
  border: 2px dashed var(--accent); background: rgba(255, 184, 0, .09);
  border-radius: 14px; overflow: hidden;
}
.ctp-coupon__info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px; justify-content: center;
  padding: 11px 18px;
}
.ctp-coupon__label { font-size: 10.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.ctp-coupon__code {
  font-size: clamp(19px, 4.4vw, 24px); font-weight: 900; letter-spacing: 2px; line-height: 1.1;
  color: var(--text);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  overflow: hidden; text-overflow: ellipsis;
}
/* Zona de acción, separada por perforación vertical */
.ctp-coupon .btn--copy {
  position: relative; flex: none; margin: 0; border-radius: 0;
  padding-inline: 20px;
  border-left: 2px dashed var(--accent);
  background: transparent; color: var(--brand);
  font-weight: 800;
}
.ctp-coupon .btn--copy:hover { background: rgba(255, 184, 0, .16); transform: none; filter: none; }
.ctp-coupon .btn--copy svg { color: var(--brand); }
/* Muescas semicirculares sobre la perforación (arriba y abajo del borde del botón) */
.ctp-coupon .btn--copy::before, .ctp-coupon .btn--copy::after {
  content: ""; position: absolute; left: 0; z-index: 2;
  width: 14px; height: 14px; border-radius: 50%; background: var(--bg);
}
.ctp-coupon .btn--copy::before { top: 0; translate: -50% -50%; }
.ctp-coupon .btn--copy::after { bottom: 0; translate: -50% 50%; }
.ctp-coupon.is-copied { border-color: var(--ok); background: rgba(0, 184, 120, .08); }
.ctp-coupon.is-copied .btn--copy { border-left-color: var(--ok); color: var(--ok); }
.ctp-coupon.is-copied .btn--copy svg { color: var(--ok); }

.deal__timer {
  margin: 0; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  color: var(--muted); font-size: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px;
}
.deal__timer strong { color: var(--brand); font-variant-numeric: tabular-nums; font-size: 15px; }
.deal__proof { margin: 0; display: inline-flex; align-items: center; gap: 7px; color: var(--brand); font-weight: 700; font-size: 14px; }

.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.share__label { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.share--wa:hover { background: var(--wa); color: #fff; border-color: transparent; }
.share--tg:hover { background: var(--tg); color: #fff; border-color: transparent; }
.share--x:hover { background: #000; color: #fff; border-color: transparent; }
.share--fb:hover { background: var(--fb); color: #fff; border-color: transparent; }

.deal__content { padding-block: 22px 6px; max-width: 760px; }
.deal__disclosure { color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding-top: 14px; max-width: 760px; }

/* El bloque .container-post del bot dentro del contenido se oculta:
   el panel del tema ya muestra precio/cupón/CTA con mejor diseño. */
.deal__content .container-post { display: none; }

.prose h2 { font-size: 21px; margin: 26px 0 8px; letter-spacing: -.4px; font-weight: 800; }
.prose p, .prose li { color: var(--text); font-size: 16px; }
.prose ul { padding-left: 20px; }
.prose img { border-radius: var(--radius); }
.prose a { color: var(--brand); font-weight: 600; }

/* ---------- Banda de comunidad ---------- */
.joinband { padding-block: 10px 34px; }
.joinband__card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--grad); color: #fff;
  border-radius: 24px; padding: 26px 28px;
  box-shadow: 0 18px 40px -18px rgba(255, 58, 33, .55);
}
.joinband__glow {
  position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255, 255, 255, .22); filter: blur(60px); pointer-events: none;
}
.joinband__txt { display: flex; flex-direction: column; gap: 3px; position: relative; }
.joinband__txt strong { font-size: clamp(18px, 2.6vw, 22px); letter-spacing: -.4px; }
.joinband__txt span { opacity: .93; font-size: 14.5px; }
.joinband__actions { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; position: relative; }
.joinband .btn--wa { background: #fff; color: #128c4b; }
.joinband .btn--tg { background: #fff; color: #1c8ac7; }
.joinband .btn--fb { background: #fff; color: var(--fb); }

/* ---------- Footer (siempre oscuro, acabado premium) ---------- */
.site-foot { background: #0d0f16; color: #e7e9f2; }
.site-foot__grid { display: grid; gap: 26px; padding-block: 36px 10px; }
@media (min-width: 760px) { .site-foot__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 30px; } }
.brand--foot { margin: 0 0 8px; font-size: 20px; color: #fff; }
.site-foot__about { margin: 0 0 14px; color: #9aa1b4; font-size: 14px; max-width: 340px; }
.site-foot__title { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #6d7488; }
.site-foot__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.site-foot__menu a { color: #b6bccb; text-decoration: none; font-size: 14px; transition: color .12s ease; }
.site-foot__menu a:hover { color: #fff; }
.site-foot__social { display: flex; gap: 8px; align-items: flex-start; }
.site-foot .iconbtn { background: #171a24; border-color: #262b3a; color: #dfe3ee; }
.site-foot .iconbtn:hover { border-color: var(--brand); color: #fff; }
.site-foot__joinsub { margin: 0 0 12px; color: #9aa1b4; font-size: 14px; }
.site-foot__form { margin-bottom: 12px; }
.site-foot__form input[type=email], .site-foot__form input[type=text] {
  width: 100%; padding: 11px 14px; border-radius: 11px; border: 1px solid #262b3a;
  background: #12141d; color: #fff; font-family: inherit; font-size: 14px; margin-bottom: 8px;
}
.site-foot__form input[type=submit], .site-foot__form button {
  background: var(--grad); color: #fff; border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 700; font-family: inherit;
}
.site-foot__legal { padding-block: 16px 24px; color: #6d7488; font-size: 12.5px; border-top: 1px solid #1b1f2c; margin-top: 20px; }
.site-foot__legal p { margin: 4px 0; }

/* ---------- Página de Cupones ---------- */
.sec--cupones { padding-top: 22px; }
.cpns { display: grid; gap: 16px; }
@media (min-width: 800px) { .cpns { grid-template-columns: repeat(2, 1fr); gap: 18px; } }

.cpn {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.cpn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: transparent; }
.cpn--up { opacity: .92; }

.cpn__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cpn__state { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; letter-spacing: .3px; }
.cpn__state--live { color: var(--ok); }
.cpn__state--up { color: var(--muted); }
.cpn__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(0, 184, 120, .5); animation: livedot 1.8s ease-out infinite; }
.cpn__timer {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px;
}
.cpn__timer strong { color: var(--brand); font-variant-numeric: tabular-nums; }

.cpn__banner { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.35; letter-spacing: -.2px; }

.cpn__tiers { display: flex; flex-direction: column; gap: 8px; }
.cpn__tier {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px;
}
.cpn__deal { display: flex; align-items: baseline; gap: 8px; flex: 1; min-width: 140px; flex-wrap: wrap; }
.cpn__spend { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.cpn__save { display: inline-flex; align-items: baseline; gap: 4px; font-size: 14px; color: var(--text); }
.cpn__save svg { color: var(--ok); align-self: center; }
.cpn__save strong { font-size: 17px; font-weight: 900; color: var(--ok); letter-spacing: -.3px; }
.cpn__codewrap { display: inline-flex; align-items: stretch; border: 1.5px dashed var(--accent); border-radius: 10px; overflow: hidden; background: rgba(255, 184, 0, .08); }
.cpn__code {
  display: inline-flex; align-items: center; padding: 0 12px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 900;
  font-size: 15px; letter-spacing: 1.5px; color: var(--text);
}
.cpn__copy { border-radius: 0; border: 0; border-left: 1.5px dashed var(--accent); background: transparent; color: var(--brand); font-weight: 800; padding-inline: 12px; }
.cpn__copy:hover { background: rgba(255, 184, 0, .16); transform: none; filter: none; }
.cpn__copy svg { color: var(--brand); }

.cpn__alts {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; text-decoration: none; color: #128c4b;
  background: rgba(37, 211, 102, .1); border: 1px solid rgba(37, 211, 102, .28);
  border-radius: 10px; padding: 9px 12px; line-height: 1.3;
}
[data-theme=dark] .cpn__alts { color: #5ff0a0; }
.cpn__alts svg { flex: none; color: var(--wa); font-size: 17px; }
.cpn__alts:hover { background: rgba(37, 211, 102, .18); }

.cpn__actions { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.cpn__go { flex: 1; }
.cpn__share { flex: none; }
.cpn__share:hover { background: var(--wa); color: #fff; border-color: transparent; }

.cpn__fine { margin: 0; font-size: 11.5px; color: var(--muted); }

.cpn__join {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 22px; padding: 20px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.cpn__join-txt { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 220px; }
.cpn__join-txt strong { font-size: 17px; letter-spacing: -.3px; }
.cpn__join-txt span { color: var(--muted); font-size: 14px; }
.cpn__join-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cpn__join-btns .btn--go { width: auto; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.cpn__join-btns .btn--go:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Paginación / vacíos ---------- */
.pagination { margin-top: 24px; }
.pagination .nav-links { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding-inline: 10px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  text-decoration: none; font-weight: 700; font-size: 14px;
  transition: border-color .12s ease, transform .12s ease;
}
.pagination .page-numbers.current { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 14px -6px rgba(255, 58, 33, .5); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.empty { text-align: center; padding-block: 44px; color: var(--muted); }
.empty--404 h1 { font-size: 26px; margin: 6px 0; color: var(--text); }
.empty__code { font-size: 64px; font-weight: 900; margin: 0; letter-spacing: -2px; }
.empty .btn--cta { width: auto; margin-top: 14px; }

/* ---------- Toast ---------- */
.ctp-toast {
  position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 100;
  background: rgba(13, 15, 22, .92); color: #fff; font-weight: 700; font-size: 14px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 11px 20px; border-radius: 999px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
  border: 1px solid rgba(255, 255, 255, .12);
  opacity: 0; transition: opacity .2s ease, translate .2s ease; pointer-events: none;
}
.ctp-toast.is-on { opacity: 1; translate: -50% -6px; }

/* ---------- Confeti (al copiar cupón) ---------- */
.cfx {
  position: fixed; z-index: 120; pointer-events: none;
  width: 7px; height: 12px; border-radius: 2px;
  animation: cfall var(--dur, .9s) cubic-bezier(.2, .6, .4, 1) forwards;
}
@keyframes cfall {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--tx, 0), var(--ty, 90px)) rotate(var(--rot, 200deg)); opacity: 0; }
}

/* ---------- Revelado al hacer scroll ----------
   El JS marca .rv-off SOLO en elementos bajo el fold: sin parpadeo
   inicial y, si el JS no carga, todo queda visible. */
.rv-off { opacity: 0; translate: 0 14px; }
.rv-off.rv-in {
  opacity: 1; translate: 0 0;
  transition: opacity .55s ease, translate .55s ease;
  transition-delay: var(--rvd, 0ms);
}

/* ---------- Accesibilidad: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .rv-off { opacity: 1; translate: 0 0; }
}
