/* =============================================================
   1. Tokens (custom properties) — identidad "terminal pro"
   Oscuro por defecto (como cualquier terminal de trading real);
   variante clara disponible por prefers-color-scheme o [data-theme].
   ============================================================= */
:root {
  --bg: #06070a;
  --bg-elevated: #101319;
  --bg-sunken: #0a0c11;
  --text: #f3f1ea;
  --text-muted: #8b8f9b;
  --border: #212632;
  --accent: #f5a623;
  --accent-ink: #16110a;
  --accent-soft: #2a2013;
  --long: #17d97e;
  --long-soft: #0b2a1d;
  --short: #ff4d5e;
  --short-soft: #301118;
  --warn: #ff8f3d;
  --warn-soft: #331e0e;
  --info: #38bdf8;
  --info-soft: #102431;
  --cream: #0f1218;

  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Manrope", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f5ef;
    --bg-elevated: #ffffff;
    --bg-sunken: #efebe0;
    --text: #16110a;
    --text-muted: #6b6b63;
    --border: #e2ddd0;
    --accent: #b8720a;
    --accent-ink: #ffffff;
    --accent-soft: #fbe8c9;
    --long: #0a9d5c;
    --long-soft: #e0f5ea;
    --short: #d63447;
    --short-soft: #fbe3e5;
    --warn: #b8720a;
    --warn-soft: #fbe8c9;
    --info: #0e7a91;
    --info-soft: #dff0f4;
    --cream: #fffdf8;
  }
}
:root[data-theme="light"] {
  --bg: #f7f5ef;
  --bg-elevated: #ffffff;
  --bg-sunken: #efebe0;
  --text: #16110a;
  --text-muted: #6b6b63;
  --border: #e2ddd0;
  --accent: #b8720a;
  --accent-ink: #ffffff;
  --accent-soft: #fbe8c9;
  --long: #0a9d5c;
  --long-soft: #e0f5ea;
  --short: #d63447;
  --short-soft: #fbe3e5;
  --warn: #b8720a;
  --warn-soft: #fbe8c9;
  --info: #0e7a91;
  --info-soft: #dff0f4;
  --cream: #fffdf8;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
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; }
a.text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.12; font-family: var(--display); }
ul, ol { padding-left: 1.2em; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--text); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* =============================================================
   4. Typography
   ============================================================= */
.h1 {
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.subtitle {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  margin-top: .5rem;
  max-width: 50ch;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.trust-row li {
  font-size: .74rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .35rem .75rem;
}
.section-title {
  font-size: clamp(1.25rem, 3.2vw, 1.6rem);
  font-weight: 800;
  margin-bottom: .9rem;
}

/* =============================================================
   5. Components
   ============================================================= */

/* --- Header --- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .9rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: .85rem;
}
.header-note {
  font-size: .78rem;
  color: var(--text-muted);
}

/* --- Aviso legal (siempre visible, hardcodeado, arriba de todo) --- */
.aviso-banner {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  background: var(--info-soft);
  border: 1px solid color-mix(in srgb, var(--info) 35%, transparent);
  border-radius: var(--radius-md);
  padding: .85rem 1rem;
  margin-top: 1rem;
  font-size: .86rem;
  line-height: 1.5;
}
.aviso-banner svg { flex: none; width: 18px; height: 18px; margin-top: .1rem; color: var(--info); }
.aviso-banner strong { font-weight: 700; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  transition: transform .15s var(--ease-out), background .15s var(--ease-out), box-shadow .15s var(--ease-out), border-color .15s var(--ease-out);
}
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 55%, transparent); }
.btn--ghost { background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--warn { background: var(--warn); color: #23180a; }
.btn--warn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.btn--icon svg { width: 16px; height: 16px; }
.btn--sm { padding: .4rem .8rem; font-size: .78rem; }
.btn--block { width: 100%; }

/* --- Inputs row (equity / riesgo) --- */
.inputs-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 3vw, 1.4rem);
  margin-top: 1rem;
}
.inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
}
.field label {
  display: block;
  font-size: .76rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: .3rem;
}
.field .field-hint { font-size: .7rem; color: var(--text-muted); margin-top: .25rem; }
.field input, .field select {
  width: 100%;
  padding: .65rem .75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-variant-numeric: tabular-nums;
}
.field input:focus, .field select:focus { border-color: var(--accent); }
.advanced-toggle {
  margin-top: .7rem;
  font-size: .78rem;
  color: var(--accent);
  font-weight: 600;
}
.advanced-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
  margin-top: .7rem;
  padding-top: .7rem;
  border-top: 1px dashed var(--border);
}
.advanced-fields[hidden] { display: none; }
.inputs-actions { margin-top: .9rem; display: flex; gap: .6rem; flex-wrap: wrap; }

/* --- Tool card shell / status --- */
.tool-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 3vw, 1.6rem);
  margin-top: 1rem;
  box-shadow: 0 1px 2px rgb(16 24 38 / 4%), 0 12px 32px -18px rgb(16 24 38 / 18%);
}
.tool-noscript {
  background: var(--warn-soft);
  border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent);
  border-radius: var(--radius-md);
  padding: .9rem 1.1rem;
  margin-bottom: 1rem;
  font-size: .9rem;
}
.tool-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.tool-status {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--text-muted);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); flex: none; }
.auto-refresh-hint { font-size: .72rem; color: var(--text-muted); }
[data-tool-card][data-state="loading"] .status-dot { background: var(--warn); animation: pulse 1.1s ease-in-out infinite; }
[data-tool-card][data-state="done"] .status-dot,
[data-tool-card][data-state="sin-operar"] .status-dot { background: var(--long); }
[data-tool-card][data-state="error"] .status-dot { background: var(--short); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.progress-bar { height: 4px; border-radius: 999px; background: var(--bg-sunken); overflow: hidden; margin-bottom: 1rem; }
.progress-bar__fill { height: 100%; background: var(--accent); width: 4%; transition: width .3s var(--ease-out); }

.tool-error {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: var(--short-soft); border: 1px solid color-mix(in srgb, var(--short) 30%, transparent);
  color: var(--text); border-radius: var(--radius-md); padding: .9rem 1.1rem; margin-bottom: 1rem; font-size: .9rem;
}
.tool-error[hidden] { display: none; }

/* --- Régimen badge --- */
.regimen-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; font-size: .8rem; color: var(--text-muted); }
.regimen-badge {
  font-weight: 700; font-size: .74rem; letter-spacing: .01em;
  padding: .3rem .65rem; border-radius: 999px;
  background: var(--bg-sunken); border: 1px solid var(--border); color: var(--text);
}

/* --- SIN_OPERAR (neutral, no es un error) --- */
.sin-operar {
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  display: flex;
  gap: .8rem;
  align-items: flex-start;
}
.sin-operar[hidden] { display: none; }
.sin-operar svg { flex: none; width: 22px; height: 22px; color: var(--text-muted); margin-top: .1rem; }
.sin-operar__title { font-weight: 800; font-size: 1rem; margin-bottom: .25rem; }
.sin-operar__motivo { font-size: .88rem; color: var(--text-muted); }

/* --- Ticket header --- */
.ticket-block[hidden] { display: none; }
.ticket-header {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem;
  margin-bottom: .3rem;
}
.symbol-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--display); font-weight: 800; font-size: 1.25rem;
}
.dir-pill {
  font-size: .72rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
  padding: .22rem .55rem; border-radius: 999px;
}
.dir-pill--long { background: var(--long-soft); color: var(--long); }
.dir-pill--short { background: var(--short-soft); color: var(--short); }
.letra-pill {
  font-weight: 800; font-size: .78rem; padding: .22rem .55rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}
.riesgo-pill {
  font-size: .74rem; font-weight: 700; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 999px; padding: .2rem .55rem;
}
.ticket-meta { font-size: .78rem; color: var(--text-muted); margin-bottom: .9rem; }
.ticket-meta strong { color: var(--text); }
.vigencia-note { font-size: .78rem; color: var(--text-muted); margin-top: .15rem; }
.vigencia-note.is-vencido { color: var(--short); font-weight: 700; }

/* --- Tabs (scalp / corto / medio) --- */
.plan-tabs { display: flex; gap: .4rem; margin-bottom: .9rem; flex-wrap: wrap; }
.plan-tab {
  padding: .5rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 700;
  border: 1px solid var(--border); background: var(--bg-sunken); color: var(--text-muted);
  transition: background .15s var(--ease-out), color .15s var(--ease-out), border-color .15s var(--ease-out);
}
.plan-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.plan-tab:hover:not([aria-selected="true"]) { border-color: var(--accent); color: var(--accent); }

/* --- Order table (campos exactos del formulario de Binance) --- */
.plan-panel[hidden] { display: none; }
.order-table { font-size: .92rem; margin-bottom: .8rem; }
.order-table tr { border-bottom: 1px solid var(--border); }
.order-table tr:last-child { border-bottom: 0; }
.order-table th, .order-table td { text-align: left; padding: .55rem .1rem; vertical-align: top; }
.order-table th { font-weight: 600; color: var(--text-muted); width: 46%; font-size: .84rem; }
.order-table td { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; }
.order-table td .unit { font-family: var(--sans); font-weight: 500; color: var(--text-muted); font-size: .82rem; margin-left: .25rem; }
.cell-with-copy { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.copy-btn {
  font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .01em;
  padding: .18rem .5rem; border-radius: 999px; border: 1px solid var(--border); background: var(--bg);
  color: var(--text-muted);
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.tp-sub-row td, .tp-sub-row th { padding-top: .15rem; padding-bottom: .15rem; color: var(--text-muted); font-size: .84rem; }

.plan-note {
  font-size: .8rem; color: var(--text-muted); background: var(--bg-sunken);
  border-radius: var(--radius-sm); padding: .6rem .75rem; margin-top: .5rem;
}
.plan-note strong { color: var(--text); }
.plan-note--warn { background: var(--warn-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.plan-note--info { background: var(--info-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--info) 30%, transparent); }
.plan-note + .plan-note { margin-top: .4rem; }

.estado-breakout { font-size: .82rem; color: var(--text-muted); margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--border); }
.empate-note { font-size: .76rem; color: var(--text-muted); margin-top: .5rem; font-style: italic; }

.liquidez-line { font-size: .8rem; color: var(--text-muted); margin-top: .7rem; display: flex; gap: .4rem; align-items: flex-start; }
.liquidez-line svg { flex: none; width: 15px; height: 15px; margin-top: .15rem; color: var(--long); }
.liquidez-line.is-alerta svg { color: var(--warn); }
.liquidez-line.is-alerta { color: var(--text); }

/* --- Apalancamiento avanzado --- */
.lev-toggle { font-size: .76rem; color: var(--accent); font-weight: 600; margin-top: .6rem; }
.lev-table { font-size: .8rem; margin-top: .5rem; }
.lev-table[hidden] { display: none; }
.lev-table th, .lev-table td { padding: .35rem .4rem; border-bottom: 1px solid var(--border); }
.lev-table td.no-alcanza { color: var(--short); }

/* --- Alto riesgo --- */
.alto-riesgo-shell { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px dashed var(--border); }
.alto-riesgo-intro { font-size: .84rem; color: var(--text-muted); margin-bottom: .7rem; }
.alto-riesgo-warn {
  display: flex; gap: .6rem; align-items: flex-start; background: var(--warn-soft);
  border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); border-radius: var(--radius-md);
  padding: .85rem 1rem; margin-bottom: .9rem; font-size: .85rem;
}
.alto-riesgo-warn svg { flex: none; width: 18px; height: 18px; margin-top: .1rem; color: var(--warn); }
.alto-riesgo-panel[hidden] { display: none; }
.alto-riesgo-equity-row { display: flex; gap: .6rem; align-items: end; flex-wrap: wrap; margin-bottom: .8rem; }
.alto-riesgo-equity-row .field { max-width: 180px; }

/* --- Ad slots --- */
.ad-slot {
  min-height: 90px; border: 1px dashed var(--border); border-radius: var(--radius-md);
  display: grid; place-items: center; color: var(--text-muted); font-size: .78rem;
  letter-spacing: .04em; text-transform: uppercase; margin-block: 1.6rem;
}

/* --- Comunidad (contador acumulado real, vía backend) --- */
.comunidad-banner {
  margin-top: 1rem;
  padding: .7rem 1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--text);
  font-size: .84rem;
  text-align: center;
}
.comunidad-banner[hidden] { display: none; }
.comunidad-banner strong { color: var(--accent); font-family: var(--mono); }

.feed-section { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px dashed var(--border); }
.feed-section[hidden] { display: none; }
.feed-record { font-size: .82rem; color: var(--text-muted); margin-bottom: .7rem; }
.feed-record[hidden] { display: none; }
.feed-record::before { content: "🏆 "; }
.feed-list { display: flex; flex-direction: column; gap: .3rem; }
.feed-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto auto;
  align-items: center;
  gap: .6rem;
  padding: .4rem .7rem;
  border-radius: var(--radius-sm);
  background: var(--bg-sunken);
  font-size: .82rem;
}
.feed-time { font-family: var(--mono); font-size: .72rem; color: var(--text-muted); }
.feed-symbol { font-family: var(--display); font-weight: 700; }

/* --- Stats strip (números reales del último escaneo) --- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 1rem;
}
.stats-strip[hidden] { display: none; }
.stat {
  background: var(--bg-elevated);
  padding: .8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.stat__value {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: .7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* --- Ranking en vivo (datos reales del mismo escaneo, no inventados) --- */
.ranking-section { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px dashed var(--border); }
.ranking-section[hidden] { display: none; }
.ranking-header h3 { font-size: 1rem; font-weight: 800; margin-bottom: .2rem; }
.ranking-sub { font-size: .8rem; color: var(--text-muted); margin-bottom: .8rem; }
.ranking-list { display: flex; flex-direction: column; gap: .35rem; }
.ranking-row {
  display: grid;
  grid-template-columns: 1.6rem 1fr auto auto 3rem;
  align-items: center;
  gap: .6rem;
  padding: .5rem .7rem;
  border-radius: var(--radius-sm);
  background: var(--bg-sunken);
  border: 1px solid transparent;
}
.ranking-row:first-child { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); }
.ranking-pos { font-family: var(--mono); font-size: .78rem; color: var(--text-muted); font-weight: 700; }
.ranking-row:first-child .ranking-pos { color: var(--accent); }
.ranking-symbol { font-family: var(--display); font-weight: 800; font-size: .9rem; }
.ranking-score { font-family: var(--mono); font-weight: 700; font-size: .9rem; text-align: right; font-variant-numeric: tabular-nums; }

/* --- How it works --- */
.steps { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.2rem; }
.step { display: flex; gap: .9rem; align-items: flex-start; }
.step__icon {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); display: grid; place-items: center;
}
.step__icon svg { width: 20px; height: 20px; }
.step h3 { font-size: .98rem; margin-bottom: .2rem; }
.step p { font-size: .88rem; color: var(--text-muted); }

/* --- SEO text --- */
.prose { font-size: .96rem; color: var(--text-muted); }
.prose p { margin-bottom: .9rem; }
.prose strong { color: var(--text); }
.prose ul { margin: .6rem 0 .9rem; color: var(--text-muted); font-size: .93rem; }
.prose li { margin-bottom: .3rem; }

/* --- FAQ --- */
.faq-item { border-bottom: 1px solid var(--border); padding-block: .9rem; }
.faq-item summary {
  cursor: pointer; font-weight: 700; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); transition: transform .2s var(--ease-out); flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: .6rem; color: var(--text-muted); font-size: .92rem; }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--border); padding-block: 1.6rem; margin-top: 2rem; }
.footer-links { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .82rem; color: var(--text-muted); margin-bottom: .6rem; }
.footer-fine { font-size: .76rem; color: var(--text-muted); max-width: 70ch; }

/* =============================================================
   6. Sections
   ============================================================= */
.hero-section {
  padding-block: .4rem 1.4rem;
  position: relative;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: -30px -20px auto;
  height: 260px;
  background: radial-gradient(60% 100% at 25% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.content-section { padding-block: 2.2rem; }
.content-section + .content-section { border-top: 1px solid var(--border); }

/* =============================================================
   7. Effects
   ============================================================= */
.reveal-fade { animation: fadeIn .35s var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .advanced-fields { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 720px) {
  .inputs-grid { grid-template-columns: repeat(4, 1fr); }
  .order-table th { width: 40%; }
}
@media (max-width: 480px) {
  .ranking-row { grid-template-columns: 1.4rem 1fr auto 2.6rem; }
  .ranking-row .letra-pill { display: none; }
  .feed-row { grid-template-columns: 3.6rem 1fr auto; }
  .feed-row .letra-pill { display: none; }
}
@media (min-width: 960px) {
  .container { max-width: 960px; }
}
@media (min-width: 1280px) {
  .container { max-width: 1040px; }
}

/* =============================================================
   9. Reduced-motion (solo lo intrusivo)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status-dot { animation: none; }
  .reveal-fade { animation: none; }
}
