/* =============================================================
   Picks al Cierre — hoja de estilos única
   1 Tokens · 2 Reset · 3 Utilidades · 4 Tipografía · 5 Componentes
   6 Secciones · 7 Anuncios · 8 Responsive · 9 Reduced motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f5f7fb;
  --bg-alt:    #eef1f8;
  --surface:   #ffffff;
  --surface-2: #f8fafc;
  --ink:       #0b1020;
  --ink-soft:  #38415c;
  --muted:     #6b7490;
  --line:      #e2e7f1;
  --line-soft: #eef1f7;

  --accent:    #5b52e8;
  --accent-2:  #8b84ff;
  --accent-ink:#ffffff;
  --accent-bg: #eeecff;

  --pos:       #059669;
  --pos-bg:    #e7f6f0;
  --neg:       #dc2626;
  --neg-bg:    #fdeaea;
  --pend:      #b45309;
  --pend-bg:   #fdf2e2;
  --void:      #64748b;
  --void-bg:   #eef1f6;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --disp: "Archivo", var(--sans);
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

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

  --shadow-sm: 0 1px 2px rgba(11, 16, 32, .05);
  --shadow-md: 0 4px 16px rgba(11, 16, 32, .07);
  --shadow-lg: 0 18px 48px rgba(11, 16, 32, .12);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(1rem, 4vw, 2rem);
  --maxw: 1180px;
}

/* Tema oscuro. Tres estados: sin marcar (decide el sistema), forzado claro
   y forzado oscuro. Los colores viven siempre en tokens, nunca dentro de
   un solo bloque de tema. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #080c18;
    --bg-alt:    #0d1425;
    --surface:   #111a2e;
    --surface-2: #16203a;
    --ink:       #eaeefa;
    --ink-soft:  #c2cade;
    --muted:     #8e99b6;
    --line:      #223054;
    --line-soft: #1a2440;

    --accent:    #8b84ff;
    --accent-2:  #a9a4ff;
    --accent-ink:#0b1020;
    --accent-bg: #1c1f43;

    --pos:       #34d399;
    --pos-bg:    #0d2b23;
    --neg:       #f87171;
    --neg-bg:    #2e1518;
    --pend:      #fbbf24;
    --pend-bg:   #2c2210;
    --void:      #94a3b8;
    --void-bg:   #1a2338;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .45);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, .6);
  }
}

:root[data-theme="dark"] {
  --bg:        #080c18;
  --bg-alt:    #0d1425;
  --surface:   #111a2e;
  --surface-2: #16203a;
  --ink:       #eaeefa;
  --ink-soft:  #c2cade;
  --muted:     #8e99b6;
  --line:      #223054;
  --line-soft: #1a2440;

  --accent:    #8b84ff;
  --accent-2:  #a9a4ff;
  --accent-ink:#0b1020;
  --accent-bg: #1c1f43;

  --pos:       #34d399;
  --pos-bg:    #0d2b23;
  --neg:       #f87171;
  --neg-bg:    #2e1518;
  --pend:      #fbbf24;
  --pend-bg:   #2c2210;
  --void:      #94a3b8;
  --void-bg:   #1a2338;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .45);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, .6);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.12; letter-spacing: -.02em; font-family: var(--disp); }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilidades
   ============================================================= */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  padding: .6rem 1rem; background: var(--accent); color: var(--accent-ink);
  border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   4. Tipografía de sección
   ============================================================= */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.5rem, 3.6vw, 2.1rem); margin-bottom: .75rem; }
.section-lead { color: var(--muted); max-width: 62ch; margin-bottom: 2rem; }

.prose { max-width: 74ch; }
.prose h3 { font-size: clamp(1.12rem, 2.4vw, 1.35rem); margin-top: 2rem; margin-bottom: .5rem; }
.prose p { margin-bottom: 1rem; color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================
   5. Componentes
   ============================================================= */

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 1rem; min-height: 60px; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--accent); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-text { font-family: var(--disp); font-weight: 700; font-size: 1.05rem; color: var(--ink); letter-spacing: -.02em; }
.brand-text span { color: var(--accent); }
.header-nav { display: none; margin-left: auto; gap: 1.4rem; font-size: .92rem; font-weight: 500; color: var(--muted); }
.header-nav a:hover { color: var(--ink); }
.badge-18 {
  margin-left: auto; flex: none;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: .22rem .5rem; border-radius: 999px;
  color: var(--neg); background: var(--neg-bg); border: 1px solid color-mix(in srgb, var(--neg) 25%, transparent);
}
.header-nav ~ .badge-18 { margin-left: 1.2rem; }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.15rem; border-radius: var(--r-md);
  font-weight: 600; font-size: .95rem; line-height: 1;
  transition: background .2s var(--ease-out), transform .15s var(--ease-out), border-color .2s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-2); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: var(--surface); color: var(--ink-soft); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---- Chips de estado ---- */
.chip {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .01em;
  padding: .22rem .55rem; border-radius: 999px; white-space: nowrap;
}
.chip.is-win  { color: var(--pos);  background: var(--pos-bg); }
.chip.is-loss { color: var(--neg);  background: var(--neg-bg); }
.chip.is-pend { color: var(--pend); background: var(--pend-bg); }
.chip.is-void { color: var(--void); background: var(--void-bg); }
.chip-demo { color: var(--pend); background: var(--pend-bg); border: 1px dashed color-mix(in srgb, var(--pend) 45%, transparent); }

/* =============================================================
   6. Secciones
   ============================================================= */

/* ---- Hero ---- */
.hero { padding-top: clamp(1.75rem, 5vw, 3rem); padding-bottom: 1.5rem; }
.hero h1 { font-size: clamp(1.85rem, 6vw, 3rem); margin-bottom: .6rem; }
.hero-sub { color: var(--muted); max-width: 66ch; margin-bottom: 1.5rem; font-size: clamp(.98rem, 2vw, 1.06rem); }
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-legal { margin-top: 1rem; font-size: .8rem; color: var(--muted); max-width: 76ch; }
.hero-legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---- Tool card ---- */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1rem, 3vw, 1.6rem);
}
.tool-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.tool-title { font-size: 1.15rem; }
.tool-meta { font-size: .85rem; color: var(--muted); margin-top: .15rem; }

/* ---- KPIs ---- */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-bottom: 1.1rem; }
.kpi {
  background: var(--surface-2); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); padding: .75rem .85rem;
  display: flex; flex-direction: column; gap: .15rem; min-width: 0;
}
.kpi-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.kpi-value { font-family: var(--mono); font-size: clamp(1.15rem, 4.5vw, 1.6rem); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-value.is-pos { color: var(--pos); }
.kpi-value.is-neg { color: var(--neg); }
.kpi-foot { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Filtros ---- */
.filters-box { margin-bottom: 1rem; }
.filters-sum { display: none; }   /* el plegable solo existe en pantallas pequeñas */
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; align-items: end; }

/* Excepción deliberada a la regla mobile-first: en pantallas pequeñas los
   filtros se pliegan tras un botón para que las tablas de picks queden lo más
   arriba posible. La visibilidad la decide el CSS, no el JS. */
@media (max-width: 719px) {
  .filters-sum {
    display: flex; align-items: center; gap: .45rem; width: 100%;
    padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--r-sm);
    background: var(--surface-2); color: var(--ink-soft);
    font-size: .88rem; font-weight: 600; text-align: left;
  }
  .filters-sum svg { width: 17px; height: 17px; color: var(--accent); }
  .filters-sum::after {
    content: ""; margin-left: auto;
    width: 8px; height: 8px;
    border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
    transform: translateY(-2px) rotate(45deg); transition: transform .22s var(--ease-out);
  }
  .filters-box:not(.is-open) .filters { display: none; }
  .filters-box.is-open .filters-sum { margin-bottom: .7rem; }
  .filters-box.is-open .filters-sum::after { transform: translateY(2px) rotate(-135deg); }
}
.field { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.field-search { grid-column: 1 / -1; }
.field-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .92rem; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: .55rem .7rem; width: 100%;
  transition: border-color .2s var(--ease-out);
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.filters .btn-ghost { padding-block: .58rem; }

/* ---- Pestañas ---- */
.tabs { display: flex; gap: .35rem; border-bottom: 1px solid var(--line); margin-bottom: .9rem; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; white-space: nowrap;
  padding: .55rem .7rem; font-size: .9rem; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-n {
  display: inline-block; margin-left: .35rem; padding: .05rem .38rem;
  font-family: var(--mono); font-size: .72rem; font-weight: 700;
  background: var(--accent-bg); color: var(--accent); border-radius: 999px;
}

.pane[hidden] { display: none; }

/* Barra de opciones dentro de una pestaña (p. ej. agrupar por) */
.pane-tools { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .8rem; }
.field-inline { flex-direction: row; align-items: center; gap: .5rem; }
.field-inline .field-label { white-space: nowrap; margin: 0; }
.field-inline select { width: auto; min-width: 11rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---- Tablas ---- */
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 620px; }
.tbl th, .tbl td { padding: .6rem .55rem; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl thead th {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 700; white-space: nowrap;
  position: sticky; top: 0; background: var(--surface); z-index: 1;
  border-bottom: 1px solid var(--line);
}
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .num { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.tbl .is-pos { color: var(--pos); font-weight: 600; }
.tbl .is-neg { color: var(--neg); font-weight: 600; }
.t-date { font-family: var(--mono); font-size: .8rem; color: var(--muted); white-space: nowrap; }
.t-event { font-weight: 600; color: var(--ink); }
.t-market { font-size: .8rem; color: var(--muted); display: block; margin-top: .1rem; }
.t-league { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.t-score { font-family: var(--mono); font-weight: 700; white-space: nowrap; }

.tbl-empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); font-size: .92rem; }
.tbl-skeleton { padding: 2.5rem 1rem; text-align: center; color: var(--muted); font-size: .92rem; }

/* Barra de rendimiento en la tabla por liga */
.bar { display: block; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; min-width: 70px; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--pos); }
.bar.is-neg > i { background: var(--neg); }

/* ---- Acciones de la herramienta ---- */
.tool-actions { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line-soft); }
.tool-note { font-size: .82rem; color: var(--muted); }
.tool-error {
  display: block; margin-top: .9rem; padding: .7rem .85rem;
  background: var(--neg-bg); color: var(--neg); border-radius: var(--r-sm);
  font-size: .87rem; font-weight: 500;
}
.tool-error[hidden] { display: none; }
.tool-error.is-info { background: var(--accent-bg); color: var(--accent); }
[data-noscript] { display: block; }

/* ---- Cómo funciona ---- */
.steps { list-style: none; display: grid; gap: 1rem; padding: 0; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.4rem 1.25rem 1.25rem;
}
.step-n {
  position: absolute; top: -14px; left: 1.25rem;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--mono); font-weight: 700; font-size: .9rem;
}
.step-ico { width: 26px; height: 26px; color: var(--accent); margin-bottom: .6rem; }
.step h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.step p { font-size: .92rem; color: var(--muted); }

/* ---- Me gusta ---- */
.like-section { padding-block: clamp(2rem, 5vw, 3rem); background: var(--bg-alt); }
.like-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .8rem; }
.like-q { font-family: var(--disp); font-size: clamp(1.1rem, 3vw, 1.35rem); font-weight: 600; }
.like-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1.3rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  font-weight: 600; box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease-out), border-color .2s var(--ease-out), color .2s var(--ease-out), background .2s var(--ease-out);
}
.like-btn svg { width: 20px; height: 20px; transition: transform .25s var(--ease-out); }
.like-btn:hover { border-color: var(--accent); color: var(--accent); }
.like-btn[aria-pressed="true"] { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); }
.like-btn[aria-pressed="true"] svg { fill: currentColor; }
.like-btn.is-pop { transform: scale(1.06); }
.like-count { font-family: var(--mono); font-weight: 700; font-size: .9rem; padding-left: .55rem; border-left: 1px solid var(--line); }
.like-note { font-size: .82rem; color: var(--muted); }

/* ---- FAQ ---- */
.faq-wrap { max-width: 78ch; }
.faq { display: grid; gap: .5rem; margin-bottom: 2.5rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: .1rem .95rem; transition: border-color .2s var(--ease-out);
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  cursor: pointer; list-style: none; padding: .85rem 1.6rem .85rem 0;
  font-weight: 600; font-size: .96rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .2rem; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .22s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding-bottom: .95rem; font-size: .92rem; color: var(--muted); }

/* ---- Solicitudes ---- */
.request-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.1rem, 3vw, 1.6rem); }
.request-box h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.request-lead { font-size: .92rem; color: var(--muted); margin-bottom: 1rem; }
.request-form { display: grid; gap: .8rem; }
.request-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.request-msg { font-size: .87rem; font-weight: 600; color: var(--pos); }
.request-msg.is-err { color: var(--neg); }
.request-note { font-size: .78rem; color: var(--muted); }

/* ---- Footer ---- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 2.2rem; }
.footer-in { display: grid; gap: 1.2rem; }
.footer-brand p { font-size: .87rem; color: var(--muted); margin-top: .3rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: .88rem; color: var(--muted); font-weight: 500; }
.footer-links a:hover { color: var(--accent); }
.footer-legal { font-size: .78rem; color: var(--muted); line-height: 1.65; border-top: 1px solid var(--line-soft); padding-top: 1.1rem; }
.footer-legal strong { color: var(--ink-soft); }

/* =============================================================
   7. Huecos de anuncio (solo placeholders — sin código real)
   ============================================================= */
.ad-slot {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
  border: 2px dashed color-mix(in srgb, var(--muted) 40%, transparent);
  border-radius: var(--r-md);
  background: repeating-linear-gradient(45deg,
    transparent, transparent 10px,
    color-mix(in srgb, var(--muted) 6%, transparent) 10px,
    color-mix(in srgb, var(--muted) 6%, transparent) 20px);
  color: var(--muted);
  overflow: hidden;
}
.ad-tag { font-family: var(--mono); font-size: .78rem; font-weight: 700; letter-spacing: .18em; }
.ad-size { font-size: .68rem; opacity: .7; letter-spacing: .04em; }

.ad-leaderboard { min-height: 100px; margin-block: 1.5rem; }
.ad-incontent { min-height: 260px; margin-block: 2rem; }

/* Pop-up al descargar */
.ad-modal {
  border: 0; padding: 0; background: transparent;
  max-width: min(92vw, 380px); width: 100%;
  color: var(--ink);
}
.ad-modal::backdrop { background: rgba(6, 10, 22, .62); backdrop-filter: blur(3px); }
.ad-modal-in {
  position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 1.5rem 1.15rem 1.15rem;
  display: grid; gap: .9rem; justify-items: center;
}
.ad-modal-title { font-family: var(--disp); font-weight: 600; font-size: 1rem; text-align: center; color: var(--pos); }
.ad-modal-slot { width: 100%; min-height: 250px; }
.ad-modal-close {
  position: absolute; top: .5rem; right: .5rem;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line);
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.ad-modal-close svg { width: 17px; height: 17px; }
.ad-modal-close:hover { color: var(--neg); border-color: var(--neg); }
.ad-modal-continue { width: 100%; }

/* Notificación en la esquina */
.ad-toast {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  width: min(88vw, 320px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: .55rem;
  animation: toast-in .45s var(--ease-out) both;
}
.ad-toast[hidden] { display: none; }
.ad-toast-slot { min-height: 100px; border-width: 1px; }
.ad-toast-close {
  position: absolute; top: -10px; right: -10px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.ad-toast-close svg { width: 15px; height: 15px; }
.ad-toast-close:hover { color: var(--neg); border-color: var(--neg); }

@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .filters { grid-template-columns: repeat(3, 1fr); }
  .field-search { grid-column: 1 / -1; }
  .tool-actions { flex-direction: row; align-items: center; justify-content: space-between; }
  .tool-note { max-width: 46ch; }
}

@media (min-width: 720px) {
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .filters { grid-template-columns: 2fr 1fr 1fr 1fr auto; }
  .field-search { grid-column: auto; }
  .footer-in { grid-template-columns: 1fr auto; align-items: start; }
  .footer-legal { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .header-nav { display: flex; }
  .badge-18 { margin-left: 1.4rem; }
  .ad-leaderboard { min-height: 120px; }
}

/* =============================================================
   9. Reduced motion — solo efectos intrusivos
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ad-toast { animation: none; }
  .like-btn.is-pop { transform: none; }
}
