/* ============================================================
   EL FISURA™ — hoja principal v2 "megacorp"
   Todo valor de diseño sale de tokens.css. Mobile-first.
   El ticker es una isla oscura intocable (tokens --ticker-*).
   ============================================================ */

/* ---------- fuentes (autohosteadas) ---------- */
@font-face {
  font-family: 'Archivo';
  src: url('fonts/Archivo-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/IBMPlexMono-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/IBMPlexMono-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
}
::selection { background: var(--azul); color: #fff; }
a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--r-sm); }
img { max-width: 100%; display: block; }

/* la voz mono queda solo para datos de mercado */
.mono, .stat small, #q-desc, #ck-area, #ticker, .zona-precio {
  font-family: var(--font-mono);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}
.money { font-variant-numeric: tabular-nums; }

/* ---------- topbar ---------- */
#topbar {
  position: sticky; top: 0; z-index: var(--z-topbar);
  display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between;
  background: color-mix(in srgb, var(--bg-0) 78%, transparent);
  backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid var(--line-1);
  padding: 0 var(--sp-4);
}
.logo {
  font-weight: var(--fw-semibold); letter-spacing: var(--ls-display);
  font-size: 1.15rem; color: var(--text-1);
  align-self: center; white-space: nowrap; padding: var(--sp-3) 0;
}
.logo span { color: var(--text-3); font-size: .68em; vertical-align: super; font-weight: var(--fw-medium); }
/* mobile: los 4 números en fila propia, todos a la vista */
.stats {
  display: flex; flex-basis: 100%;
  border-top: 1px solid var(--line-1);
}
.stat {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: var(--sp-1) var(--sp-2);
  border-left: 1px solid var(--line-1);
  text-align: right; min-width: 0;
}
.stat:first-child { border-left: 0; }
.stat b {
  font-weight: var(--fw-semibold); font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.2;
  color: var(--text-1);
}
.stat small { font-size: .5rem; color: var(--text-3); margin-top: 1px; }
.stat .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--rojo); margin-right: 5px; vertical-align: 1px;
  animation: pulso 1.6s infinite;
}
@keyframes pulso { 50% { opacity: .25; } }
.stat b.bump { animation: bump var(--t-normal) var(--ease-stamp); }
@keyframes bump { 40% { transform: scale(1.12); } }

/* ---------- stage ---------- */
#stage { position: relative; height: 68dvh; min-height: 420px; overflow: hidden; }
#c {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  background:
    radial-gradient(ellipse 100% 68% at 50% 40%, #ffffff 0%, var(--bg-0) 55%, var(--bg-3) 100%);
  touch-action: none;
  cursor: grab;
}
#c:active { cursor: grabbing; }
/* modo edición: que se note, sobrio */
body.editing #c { cursor: crosshair; }
body.editing #stage::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  border: 2px solid color-mix(in srgb, var(--azul) 55%, transparent);
}

/* velo de carga */
#veil {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-4); background: var(--bg-0);
  transition: opacity var(--t-slow) var(--ease), visibility var(--t-slow);
}
#veil.off { opacity: 0; visibility: hidden; }
.veil-word {
  font-weight: var(--fw-bold); letter-spacing: var(--ls-display);
  font-size: var(--fs-2xl); color: var(--line-1);
  animation: respira 1.6s ease-in-out infinite alternate;
}
@keyframes respira { to { color: var(--text-3); } }
.veil-bar { width: min(220px, 60%); height: 3px; background: var(--bg-3); border-radius: var(--r-full); overflow: hidden; }
#veil-fill { display: block; height: 100%; width: 0; background: var(--azul); transition: width var(--t-normal) var(--ease); }
.veil-sub { font-size: var(--fs-xs); color: var(--text-3); }
#veil.error .veil-word { color: var(--rojo); animation: none; }
#veil button {
  border: 1px solid var(--line-1); border-radius: var(--r-pill);
  padding: var(--sp-2) var(--sp-5); font-size: var(--fs-sm); color: var(--text-1);
}
#veil button:hover { border-color: var(--azul); color: var(--azul); }

/* mercado en vivo (chip + panel) */
#feed-wrap { position: absolute; top: var(--sp-3); left: var(--sp-3); z-index: var(--z-stage-ui); max-width: min(330px, calc(100% - 24px)); }
.feed-title {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-1);
  background: color-mix(in srgb, var(--bg-1) 85%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-1); border-radius: var(--r-pill);
  padding: 7px 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t-fast) var(--ease);
}
.feed-title:hover, .feed-title[aria-expanded="true"] { border-color: var(--rojo); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rojo); animation: pulso 1.6s infinite; }
#feed {
  margin-top: var(--sp-2);
  background: color-mix(in srgb, var(--bg-1) 96%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-1); border-radius: var(--r-md);
  max-height: 38dvh; overflow-y: auto; overscroll-behavior: contain;
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-md);
}
#feed > div { padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--bg-3); }
#feed > div:last-child { border-bottom: 0; }
#feed .f-aplastado { border-left: 3px solid var(--rojo); background: var(--rojo-dim); }
#feed .f-aplastado b { color: var(--rojo); }
#feed .f-compra b { color: var(--text-1); }
#feed .f-monto { font-family: var(--font-mono); font-weight: 600; color: var(--verde-plata); white-space: nowrap; }
#feed time { color: var(--text-3); font-size: var(--fs-2xs); font-family: var(--font-mono); display: block; margin-top: 2px; }
#feed .feed-empty { color: var(--text-2); padding: var(--sp-4); line-height: 1.6; border: 0; }
#feed .feed-empty .money { color: var(--verde-plata); font-weight: 600; }
#feed > div.nueva { animation: entra var(--t-normal) var(--ease-out); }
@keyframes entra { from { transform: translateY(-6px); opacity: 0; } }

/* vistas rápidas */
#views {
  position: absolute; right: var(--sp-3); top: 50%; transform: translateY(-50%);
  z-index: var(--z-stage-ui);
  display: flex; flex-direction: column; gap: var(--sp-1);
}
#views button {
  font-size: var(--fs-2xs); font-weight: var(--fw-medium); color: var(--text-2);
  background: color-mix(in srgb, var(--bg-1) 85%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-1); border-radius: var(--r-pill);
  padding: 7px 12px; min-height: 32px; text-align: right;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
#views button:hover { color: var(--azul); border-color: var(--azul); }

/* estado vacío */
#virgin {
  position: absolute; top: var(--sp-3); left: 50%; transform: translateX(-50%);
  z-index: var(--z-stage-ui);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  color: var(--azul); background: var(--azul-dim);
  border: 1px solid color-mix(in srgb, var(--azul) 30%, transparent);
  border-radius: var(--r-pill); padding: 6px 14px; white-space: nowrap;
}

/* CTA flotante */
#cta-wrap {
  position: absolute; left: 0; right: 0; bottom: 46px; padding: 0 var(--sp-4);
  z-index: var(--z-stage-ui); text-align: center;
}
#btn-place {
  font-size: var(--fs-md); font-weight: var(--fw-medium); letter-spacing: -0.01em;
  background: var(--azul); color: #fff;
  border-radius: var(--r-pill); padding: var(--sp-3) var(--sp-6); min-height: 50px;
  box-shadow: var(--shadow-md);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
#btn-place:hover { background: var(--azul-hover); transform: translateY(-1px); }
#btn-place:active { transform: translateY(1px); }
.cta-sub {
  margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--text-2);
  text-shadow: 0 1px 6px var(--bg-0);
}
.cta-sub .money { color: var(--text-1); font-weight: var(--fw-semibold); }

/* ---------- ticker: LA BARRA — no se toca ---------- */
#ticker {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: var(--z-stage-ui);
  border-top: 1px solid var(--ticker-line);
  background: var(--ticker-bg);
  backdrop-filter: blur(8px);
  overflow: hidden; height: 30px; display: flex; align-items: center;
  font-size: var(--fs-2xs); letter-spacing: .08em; white-space: nowrap;
  color: var(--ticker-text);
}
#ticker-track { display: inline-block; padding-left: 100%; animation: ticker 36s linear infinite; }
#ticker:hover #ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }
#ticker .t-sep { color: var(--ticker-sep); margin: 0 var(--sp-4); }
#ticker .t-money { color: var(--ticker-verde); font-weight: 600; }
#ticker .t-rojo { color: var(--ticker-rojo); font-weight: 600; }

/* ---------- gizmo ---------- */
#gizmo { position: absolute; z-index: var(--z-stage-ui); pointer-events: none; }
#gz-ring {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  border: 1.5px dashed color-mix(in srgb, var(--azul) 80%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5);
}
#gizmo.drag #gz-ring { border-style: solid; }
#gizmo.crush #gz-ring { border-color: var(--rojo); }
#gz-rot, #gz-scale {
  position: absolute; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-1); border: 1.5px solid var(--azul); color: var(--azul);
  pointer-events: auto; touch-action: none;
  box-shadow: var(--shadow-md);
}
#gz-rot { cursor: grab; }
#gz-scale { cursor: nwse-resize; }
#gz-rot:active, #gz-scale:active { background: var(--azul); color: #fff; cursor: grabbing; }

/* ---------- toast ---------- */
#toast {
  position: absolute; left: 50%; top: var(--sp-4); transform: translateX(-50%);
  z-index: var(--z-toast);
  width: max-content; max-width: calc(100% - 32px);
  background: var(--bg-1); color: var(--text-1);
  border: 1px solid var(--line-1); border-left: 3px solid var(--verde-plata);
  border-radius: var(--r-md);
  font-weight: var(--fw-medium); font-size: var(--fs-sm);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--shadow-lg);
  animation: entra var(--t-normal) var(--ease-out);
}
#toast.err { border-left-color: var(--rojo); }

/* ---------- editbar ---------- */
#editbar {
  position: fixed; left: var(--sp-2); right: var(--sp-2);
  bottom: calc(var(--sp-2) + env(safe-area-inset-bottom));
  z-index: var(--z-sheet);
  background: color-mix(in srgb, var(--bg-1) 92%, transparent);
  backdrop-filter: saturate(1.8) blur(16px);
  border: 1px solid var(--line-1); border-radius: var(--r-lg);
  padding: var(--sp-3);
  box-shadow: var(--shadow-lg);
}
/* el área de la cotización deja pasar el dedo al canvas (arrastrar a las piernas) */
#editbar #quote { pointer-events: none; }
#edit-hint {
  font-size: var(--fs-md); font-weight: var(--fw-medium); letter-spacing: -0.01em;
  color: var(--azul); text-align: center; padding: var(--sp-2) 0;
  animation: respira-hint 1.8s ease-in-out infinite alternate;
}
@keyframes respira-hint { to { opacity: .5; } }

#quote { margin-bottom: var(--sp-2); }
#q-total {
  font-weight: var(--fw-bold); font-size: var(--fs-num); line-height: var(--lh-display);
  letter-spacing: var(--ls-display); color: var(--text-1);
}
#q-total.crush { color: var(--rojo); }
#q-desc { font-size: var(--fs-2xs); color: var(--text-2); margin-top: 3px; }
#q-desc .crush { color: var(--rojo); font-weight: 600; }
#q-warn {
  margin-top: var(--sp-2);
  font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ambar); background: var(--ambar-dim);
  border-radius: var(--r-sm); padding: 5px 10px; width: max-content; max-width: 100%;
}

.edit-tools { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-2); }
@media (max-width: 480px) {
  #btn-cam span { display: none; }
}
.edit-tools button {
  min-width: 44px; min-height: 38px; border-radius: var(--r-pill);
  border: 1px solid var(--line-1); color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: var(--fs-2xs); font-weight: var(--fw-medium);
  padding: 0 var(--sp-3);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.edit-tools button:hover:not(:disabled) { color: var(--text-1); border-color: var(--line-2); }
.edit-tools button:disabled { opacity: .35; cursor: not-allowed; }
#btn-cam[aria-pressed="true"] { color: var(--ambar); border-color: var(--ambar); }
#btn-fine { margin-left: auto; }
#btn-fine[aria-expanded="true"] { color: var(--azul); border-color: var(--azul); }

#fine { margin-bottom: var(--sp-2); }
.ctl {
  display: grid; grid-template-columns: 72px 1fr 56px; align-items: center; gap: var(--sp-3);
  font-size: var(--fs-2xs); color: var(--text-3);
  padding: var(--sp-1) 0;
}
.ctl b { color: var(--text-1); text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.ctl input[type=range] { width: 100%; accent-color: var(--azul); height: 28px; }

.edit-actions { display: flex; gap: var(--sp-2); }
#btn-cancel {
  flex: 0 0 50px; min-height: 50px; border-radius: var(--r-pill);
  border: 1px solid var(--line-1); color: var(--text-2); font-size: var(--fs-lg);
}
#btn-cancel:hover { color: var(--rojo); border-color: var(--rojo); }
#btn-next {
  flex: 1; min-height: 50px; border-radius: var(--r-pill);
  font-size: var(--fs-md); font-weight: var(--fw-medium);
  background: var(--azul); color: #fff;
  transition: background var(--t-fast) var(--ease);
}
#btn-next:hover:not(:disabled) { background: var(--azul-hover); }
#btn-next:disabled { background: var(--bg-3); color: var(--text-3); cursor: not-allowed; }

/* ---------- checkout ---------- */
#checkout {
  position: fixed; inset: 0; z-index: var(--z-sheet);
  background: var(--overlay);
  display: flex; align-items: flex-end; justify-content: center;
}
#ck-card {
  width: 100%; max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-1);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: var(--sp-4) var(--sp-4) calc(var(--sp-5) + env(safe-area-inset-bottom));
  animation: sube var(--t-normal) var(--ease-out);
}
@keyframes sube { from { transform: translateY(24px); opacity: 0; } }
.ck-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); }
.ck-head b { font-size: var(--fs-lg); font-weight: var(--fw-semibold); letter-spacing: var(--ls-display); }
#ck-back { min-width: 38px; min-height: 38px; border: 1px solid var(--line-1); border-radius: 50%; color: var(--text-2); }
#ck-back:hover { color: var(--rojo); border-color: var(--rojo); }

.ck-field { display: block; margin-bottom: var(--sp-4); }
.ck-label { display: block; font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--text-2); margin-bottom: var(--sp-2); }
.ck-label i { color: var(--text-3); font-style: normal; }
.ck-field input[type=text], .ck-field input[type=url] {
  width: 100%; padding: 13px 14px; font-size: 16px;
  background: var(--bg-2); color: var(--text-1);
  border: 1px solid transparent; border-radius: var(--r-md);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.ck-field input:focus { outline: none; background: var(--bg-1); border-color: var(--azul); box-shadow: var(--shadow-focus); }
.ck-field input::placeholder { color: var(--text-3); }

#ck-drop {
  border: 1.5px dashed var(--line-1); border-radius: var(--r-md);
  padding: var(--sp-5); text-align: center; cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
#ck-drop:hover, #ck-drop.hover { border-color: var(--azul); background: var(--azul-dim); }
#ck-drop b { font-weight: var(--fw-semibold); font-size: var(--fs-base); display: block; }
#ck-drop small { font-size: var(--fs-2xs); color: var(--text-3); display: block; margin-top: var(--sp-1); }
#ck-drop.has b { color: var(--azul); }

#ck-thumbs { margin-bottom: var(--sp-4); }
.thumbs { display: flex; gap: var(--sp-3); }
.thumb {
  flex: 1; max-width: 150px; border: 1.5px solid var(--line-1); border-radius: var(--r-md);
  padding: var(--sp-2); display: flex; flex-direction: column; gap: var(--sp-2); align-items: center;
  transition: border-color var(--t-fast);
}
.thumb img {
  width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: var(--r-sm);
  background: repeating-conic-gradient(#d9d9de 0% 25%, #f0f0f3 0% 50%) 0 0 / 14px 14px;
}
.thumb span { font-size: var(--fs-2xs); font-weight: var(--fw-medium); color: var(--text-3); }
.thumb[aria-pressed="true"] { border-color: var(--azul); }
.thumb[aria-pressed="true"] span { color: var(--azul); }
#th-note { display: block; margin-top: var(--sp-2); font-size: var(--fs-2xs); color: var(--text-3); }

#ck-summary {
  border-top: 1px solid var(--bg-3); border-bottom: 1px solid var(--bg-3);
  padding: var(--sp-3) 0; margin-bottom: var(--sp-4);
}
#ck-summary .row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); }
#ck-area { font-size: var(--fs-2xs); color: var(--text-2); }
#ck-price { font-weight: var(--fw-bold); font-size: var(--fs-xl); letter-spacing: var(--ls-display); color: var(--text-1); }
#ck-summary .crush { margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--rojo); font-weight: 600; }

#btn-pay {
  width: 100%; min-height: 54px; border-radius: var(--r-pill);
  font-size: var(--fs-md); font-weight: var(--fw-medium);
  background: var(--azul); color: #fff;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
#btn-pay:hover:not(:disabled) { background: var(--azul-hover); }
#btn-pay:active:not(:disabled) { transform: translateY(1px); }
#btn-pay:disabled { background: var(--bg-3); color: var(--text-3); cursor: not-allowed; }
#btn-pay.crush { background: var(--rojo); }
#btn-pay.crush:hover:not(:disabled) { background: var(--rojo-hover); }

.fineprint { font-size: var(--fs-2xs); color: var(--text-3); margin-top: var(--sp-3); line-height: 1.7; }

/* ---------- secciones ---------- */
section { padding: var(--sp-8) var(--sp-4); max-width: var(--w-wide); margin: 0 auto; scroll-margin-top: 100px; }
#intro { padding-bottom: var(--sp-5); text-align: center; }
#intro h1 {
  font-weight: var(--fw-bold); font-size: var(--fs-3xl);
  line-height: var(--lh-display); letter-spacing: var(--ls-display);
  text-wrap: balance;
}
#intro h1 em {
  font-style: normal;
  background: linear-gradient(92deg, var(--azul), #7d3cff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pitch { color: var(--text-2); max-width: 54ch; margin: var(--sp-4) auto 0; font-size: var(--fs-md); text-wrap: pretty; }
.pitch b { color: var(--text-1); }

section h2 {
  font-weight: var(--fw-bold); font-size: var(--fs-2xl);
  line-height: var(--lh-display); letter-spacing: var(--ls-display);
  margin-bottom: var(--sp-6); text-wrap: balance; text-align: center;
}

.cards { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
.card { background: var(--bg-2); border-radius: var(--r-lg); padding: var(--sp-6) var(--sp-5); }
.card i {
  font-style: normal; font-family: var(--font-mono); font-size: var(--fs-2xs);
  letter-spacing: var(--ls-label); color: var(--text-3);
  display: block; margin-bottom: var(--sp-3);
}
.card b { font-weight: var(--fw-semibold); font-size: var(--fs-lg); letter-spacing: -0.01em; display: block; }
.card p { color: var(--text-2); margin-top: var(--sp-2); font-size: var(--fs-sm); }
.card.roja b { color: var(--rojo); }
.card.roja i { color: var(--rojo); }

/* precios por zona (tabla specs) */
#zonas .tabla { max-width: var(--w-content); margin: 0 auto; }
.zona-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-2);
  border-bottom: 1px solid var(--bg-3);
}
.zona-row:first-child { border-top: 1px solid var(--bg-3); }
.zona-nombre { font-weight: var(--fw-semibold); font-size: var(--fs-base); }
.zona-nombre small { display: block; font-weight: var(--fw-regular); font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; }
.zona-precio { font-size: var(--fs-xs); color: var(--text-1); font-weight: 600; white-space: nowrap; }
.zona-row.no .zona-precio { color: var(--rojo); }
.zona-row.no .zona-nombre { color: var(--text-2); }
#zonas .nota { text-align: center; color: var(--text-3); font-size: var(--fs-xs); margin-top: var(--sp-4); }

#faq details { border-top: 1px solid var(--bg-3); max-width: var(--w-content); margin: 0 auto; }
#faq details:last-of-type { border-bottom: 1px solid var(--bg-3); }
#faq summary {
  cursor: pointer; font-weight: var(--fw-semibold); font-size: var(--fs-base);
  padding: var(--sp-4) 0; list-style: none; display: flex; justify-content: space-between; gap: var(--sp-3);
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after { content: '+'; font-family: var(--font-mono); color: var(--azul); font-weight: 600; }
#faq details[open] summary::after { content: '–'; color: var(--text-3); }
#faq p { color: var(--text-2); padding: 0 0 var(--sp-4); max-width: 62ch; }

#terminos ol { padding-left: var(--sp-5); color: var(--text-2); max-width: var(--w-content); margin: 0 auto; }
#terminos li { margin-bottom: var(--sp-3); padding-left: var(--sp-2); }
#terminos li::marker { font-family: var(--font-mono); color: var(--text-3); font-size: var(--fs-sm); }

footer { text-align: center; padding: var(--sp-6) var(--sp-4) var(--sp-8); color: var(--text-3); font-size: var(--fs-xs); }
footer a { color: var(--text-2); }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  #topbar { padding: 0 var(--sp-5); min-height: 52px; flex-wrap: nowrap; }
  .logo { font-size: 1.25rem; padding: 0; }
  .stats { flex-basis: auto; border-top: 0; }
  .stat { flex: none; min-width: 96px; padding: var(--sp-2) var(--sp-4); }
  .stat:first-child { border-left: 1px solid var(--line-1); }
  .stat b { font-size: var(--fs-base); }
  .stat small { font-size: .55rem; }

  #stage { height: calc(100dvh - 52px); min-height: 560px; }
  #feed-wrap { top: var(--sp-4); left: var(--sp-4); }
  #feed { max-height: 52dvh; }
  #views { right: var(--sp-4); }
  #cta-wrap { bottom: 54px; }
  #btn-place { font-size: var(--fs-lg); padding: var(--sp-3) var(--sp-7); }

  #editbar {
    left: 50%; right: auto; transform: translateX(-50%);
    width: 560px; bottom: var(--sp-4); padding: var(--sp-4);
  }

  #checkout { align-items: center; }
  #ck-card {
    width: 460px; max-height: calc(100dvh - 80px);
    border-radius: var(--r-lg);
    padding: var(--sp-5);
    box-shadow: var(--shadow-lg);
  }

  section { padding: var(--sp-9) var(--sp-5); }
  .cards { grid-template-columns: repeat(6, 1fr); }
  .card { grid-column: span 2; }
  .card:nth-child(4) { grid-column: span 3; }
  .card:nth-child(5) { grid-column: span 3; }
}

/* ---------- movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  #ticker-track { animation: none; padding-left: 0; }
  html { scroll-behavior: auto; }
}
