/* ============ LIQMAP ============ */
:root {
  --bg: #04060c;
  --panel: rgba(148, 178, 255, 0.035);
  --panel-solid: #0a0e18;
  --line: rgba(148, 178, 255, 0.09);
  --line-soft: rgba(148, 178, 255, 0.05);
  --text: #e8edf6;
  --muted: #8a96ab;
  --dim: #5a6478;
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --green: #34d399;
  --red: #fb7185;
  --amber: #fbbf24;
  --glow-cyan: rgba(34, 211, 238, 0.35);
  --r: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 14px;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.mono { font-family: "JetBrains Mono", monospace; }

/* ---- fondo aurora ---- */
.aurora {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(167, 139, 250, 0.10), transparent 60%),
    radial-gradient(800px 480px at 85% -5%, rgba(34, 211, 238, 0.08), transparent 60%),
    radial-gradient(1000px 700px at 50% 110%, rgba(251, 113, 133, 0.05), transparent 60%);
}
.aurora::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(232, 237, 246, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 40%);
}

/* ---- topbar ---- */
.topbar {
  display: flex; align-items: center; gap: 20px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 6, 12, 0.75);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: flex; align-items: flex-end; gap: 2.5px; height: 20px; padding-bottom: 1px;
}
.brand-mark span {
  width: 4.5px; border-radius: 2px;
  background: linear-gradient(to top, var(--cyan), var(--violet));
  animation: barPulse 2.4s ease-in-out infinite;
}
.brand-mark span:nth-child(1) { height: 55%; animation-delay: 0s; }
.brand-mark span:nth-child(2) { height: 100%; animation-delay: .3s; }
.brand-mark span:nth-child(3) { height: 75%; animation-delay: .6s; }
@keyframes barPulse { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(0.55); } }

.brand-text { font-size: 19px; font-weight: 700; letter-spacing: 0.04em; }
.brand-text em { font-style: normal; background: linear-gradient(90deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-tag {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px;
}

/* pares */
.pairs { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.pairs::-webkit-scrollbar { display: none; }
.pairs button {
  appearance: none; border: 1px solid transparent; background: transparent;
  color: var(--muted); font: 600 12.5px "JetBrains Mono", monospace;
  padding: 6px 12px; border-radius: 9px; cursor: pointer; white-space: nowrap;
  transition: all .18s ease;
}
.pairs button:hover { color: var(--text); background: var(--panel); }
.pairs button.on {
  color: var(--cyan); border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.12), inset 0 0 12px rgba(34, 211, 238, 0.05);
}

.top-right { display: flex; align-items: center; gap: 12px; }
.live-dot { display: flex; align-items: center; gap: 7px; font-size: 10.5px; letter-spacing: .14em; color: var(--green); }
.live-dot i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 10px var(--green); animation: blink 1.6s ease-in-out infinite;
}
.live-dot.off { color: var(--red); }
.live-dot.off i { background: var(--red); box-shadow: 0 0 10px var(--red); animation: none; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---- stats ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) minmax(260px, 1.6fr);
  gap: 10px; padding: 14px 22px 4px;
}
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 16px; position: relative; overflow: hidden;
}
.stat::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .35), transparent);
  opacity: 0; transition: opacity .3s;
}
.stat:hover::before { opacity: 1; }
.stat label { font-size: 9.5px; letter-spacing: .16em; color: var(--dim); display: block; margin-bottom: 6px; }
.stat .v { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.stat .v.reading { font-size: 13.5px; font-weight: 500; line-height: 1.45; color: #c6d2e4; font-family: "Space Grotesk", sans-serif; }
.stat .v.reading b { color: var(--cyan); font-weight: 600; }
.stat .v.reading .rb { color: var(--red); font-weight: 600; }
.stat .v.reading .gb { color: var(--green); font-weight: 600; }
.stat .sub { font-size: 11px; color: var(--dim); margin-top: 4px; }
.stat .sub.up { color: var(--green); }
.stat .sub.down { color: var(--red); }
.stat .sub .lg { color: var(--green); }
.stat .sub .sh { color: var(--red); }

/* ---- layout ---- */
.layout {
  flex: 1; display: grid; grid-template-columns: 1fr 300px;
  gap: 10px; padding: 10px 22px 8px; min-height: 0;
}

.chart-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  display: flex; flex-direction: column; overflow: hidden; min-width: 0;
}

.chart-toolbar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 10px 14px; border-bottom: 1px solid var(--line-soft);
}
.tf-group, .lev-group, .mode-group { display: flex; align-items: center; gap: 3px; }
.mode-group { padding-right: 12px; border-right: 1px solid var(--line-soft); }
.mode-group button {
  appearance: none; background: transparent; border: 1px solid transparent;
  color: var(--muted); font: 700 10.5px "JetBrains Mono", monospace; letter-spacing: .06em;
  padding: 6px 11px; border-radius: 8px; cursor: pointer; transition: all .15s;
}
.mode-group button:hover { color: var(--text); }
.mode-group button.on {
  color: var(--violet); background: rgba(167, 139, 250, 0.08);
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.12);
}
.tf-group button, .lev-group button, .feed-scale button {
  appearance: none; background: transparent; border: 1px solid transparent;
  color: var(--muted); font: 600 11.5px "JetBrains Mono", monospace;
  padding: 5px 10px; border-radius: 8px; cursor: pointer; transition: all .15s;
}
.tf-group button:hover, .lev-group button:hover, .feed-scale button:hover { color: var(--text); }
.tf-group button.on { color: var(--text); background: rgba(148, 178, 255, 0.09); border-color: var(--line); }
.lev-group button.on { color: var(--amber); background: rgba(251, 191, 36, 0.07); border-color: rgba(251, 191, 36, 0.25); }
.lev-label { font-size: 9px; letter-spacing: .14em; color: var(--dim); margin-right: 4px; }

.legend { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 10px; color: var(--dim); letter-spacing: .08em; }
.legend-bar {
  width: 110px; height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, #0b1030, #12327a, #0e7490, #10b981, #eab308, #f97316, #fff7ed);
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.25);
}

.chart-wrap { position: relative; flex: 1; min-height: 420px; }
#chart { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }

.chart-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px;
  align-items: center; justify-content: center; color: var(--muted); font-size: 12.5px;
  letter-spacing: .1em; background: rgba(4, 6, 12, 0.6); backdrop-filter: blur(4px);
  z-index: 5; transition: opacity .4s;
}
.chart-loading.hide { opacity: 0; pointer-events: none; }
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--cyan);
  animation: spin 0.9s linear infinite;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.15);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- feed ---- */
.feed-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  display: flex; flex-direction: column; overflow: hidden;
}
.feed-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 13px 15px 9px;
}
.feed-head h3 { font-size: 13.5px; font-weight: 600; letter-spacing: .01em; }
.feed-src { font-size: 9.5px; color: var(--dim); letter-spacing: .1em; }

.feed-scale { display: flex; gap: 3px; padding: 0 12px 9px; border-bottom: 1px solid var(--line-soft); }
.feed-scale button.on { color: var(--cyan); background: rgba(34, 211, 238, 0.07); border-color: rgba(34, 211, 238, 0.25); }

.feed { list-style: none; overflow-y: auto; flex: 1; padding: 6px 8px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.feed-empty { color: var(--dim); font-size: 12px; text-align: center; padding: 34px 18px; line-height: 1.6; }
.feed-empty span { font-size: 11px; opacity: .7; }

.feed li.ev {
  display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center;
  padding: 8px 10px; border-radius: 10px; margin-bottom: 4px;
  border: 1px solid transparent;
  animation: slideIn .35s cubic-bezier(.2, .9, .3, 1.2);
  font-family: "JetBrains Mono", monospace;
}
@keyframes slideIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.feed li.ev.long { background: rgba(251, 113, 133, 0.055); border-color: rgba(251, 113, 133, 0.12); }
.feed li.ev.short { background: rgba(52, 211, 153, 0.05); border-color: rgba(52, 211, 153, 0.12); }
.feed li.ev.big { box-shadow: 0 0 22px rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.35); }
.feed .side { font-size: 9px; font-weight: 700; letter-spacing: .1em; padding: 2.5px 7px; border-radius: 6px; }
.feed .long .side { color: var(--red); background: rgba(251, 113, 133, 0.12); }
.feed .short .side { color: var(--green); background: rgba(52, 211, 153, 0.12); }
.feed .sym { font-size: 11.5px; font-weight: 600; color: var(--text); }
.feed .usd { font-size: 12.5px; font-weight: 700; text-align: right; }
.feed .long .usd { color: var(--red); }
.feed .short .usd { color: var(--green); }
.feed .meta { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 10px; color: var(--dim); }

/* ---- footer ---- */
.foot {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 10px 22px 14px; font-size: 10.5px; color: var(--dim);
}
.foot .mono { font-size: 9.5px; letter-spacing: .04em; }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat.wide { grid-column: 1 / -1; }
  .layout { grid-template-columns: 1fr; }
  .feed-panel { max-height: 320px; }
}
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; }
  .brand-tag { display: none; }
  .stats, .layout, .foot { padding-left: 12px; padding-right: 12px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .chart-wrap { min-height: 340px; }
}

/* ============ LANDING ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13.5px "Space Grotesk", sans-serif;
  padding: 10px 18px; border-radius: 11px; cursor: pointer;
  text-decoration: none; border: 1px solid transparent; transition: all .18s;
}
.btn-primary {
  color: #04121a; background: linear-gradient(135deg, #22d3ee, #67e8f9);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 34px rgba(34, 211, 238, 0.4); }
.btn-ghost { color: var(--text); border-color: var(--line); background: var(--panel); }
.btn-ghost:hover { border-color: rgba(148,178,255,0.25); }
.btn.big { padding: 13px 24px; font-size: 15px; border-radius: 13px; }

.l-wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.grad { background: linear-gradient(90deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.l-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 72px 0 56px; }
.l-kicker { font: 600 11px "JetBrains Mono", monospace; letter-spacing: .18em; color: var(--cyan); margin-bottom: 16px; }
.l-hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 18px; }
.l-sub { font-size: 16.5px; line-height: 1.6; color: var(--muted); max-width: 46ch; margin-bottom: 26px; }
.l-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.l-note { font-size: 12.5px; color: var(--dim); }

/* mock del mapa */
.l-mock {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: #070a12; box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 60px rgba(34,211,238,.06);
}
.l-mock-head { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.l-mock-head .dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.r { background: #fb7185; } .dot.y { background: #fbbf24; } .dot.g { background: #34d399; }
.l-mock-title { font-size: 10px; color: var(--dim); margin-left: 8px; letter-spacing: .08em; }
.l-mock-body { position: relative; height: 320px; overflow: hidden; }
.l-band {
  position: absolute; left: 0; right: 0; top: var(--y); height: var(--h);
  background: linear-gradient(90deg, transparent, var(--c), var(--c), transparent);
  filter: blur(6px); animation: bandPulse 3.6s ease-in-out infinite;
}
@keyframes bandPulse { 0%,100% { opacity: .75; } 50% { opacity: 1; } }
.l-price {
  position: absolute; left: 0; right: 0; top: 48%; height: 0;
  border-top: 1.5px dashed rgba(34,211,238,.8);
  animation: priceDrift 7s ease-in-out infinite;
}
@keyframes priceDrift { 0%,100% { top: 48%; } 30% { top: 42%; } 60% { top: 55%; } }
.l-tag {
  position: absolute; right: 12px; top: var(--y);
  font-size: 10px; color: var(--green); padding: 3px 9px; border-radius: 7px;
  background: rgba(6,9,18,0.85); border: 1px solid rgba(52,211,153,0.4);
}
.l-tag.red { color: var(--red); border-color: rgba(251,113,133,0.4); }

.l-band-stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
  padding: 18px 0 8px; border-top: 1px solid var(--line-soft);
}
.l-band-stats > div { text-align: center; padding: 14px 8px; }
.l-band-stats b { display: block; font-size: 19px; letter-spacing: -0.01em; }
.l-band-stats span { font-size: 11.5px; color: var(--dim); }

.l-steps { padding: 64px 0 30px; }
.l-steps h2, .l-faq h2, .l-final h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.02em; margin-bottom: 28px; }
.l-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.l-step {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 20px;
}
.l-step.hl { border-color: rgba(34,211,238,0.3); box-shadow: 0 0 30px rgba(34,211,238,0.07); }
.l-step-n { font-size: 11px; color: var(--cyan); letter-spacing: .18em; margin-bottom: 12px; }
.l-step h3 { font-size: 16.5px; margin-bottom: 8px; }
.l-step p { font-size: 13.5px; line-height: 1.55; color: var(--muted); }

.l-faq { padding: 40px 0; max-width: 720px; }
.l-faq details {
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px;
  background: var(--panel); overflow: hidden;
}
.l-faq summary {
  padding: 15px 18px; cursor: pointer; font-weight: 600; font-size: 14.5px;
  list-style: none; position: relative;
}
.l-faq summary::after { content: "+"; position: absolute; right: 18px; color: var(--cyan); }
.l-faq details[open] summary::after { content: "–"; }
.l-faq details p { padding: 0 18px 16px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }

.l-final { text-align: center; padding: 40px 0 70px; }
.l-final h2 { margin-bottom: 22px; }

@media (max-width: 900px) {
  .l-hero { grid-template-columns: 1fr; padding: 44px 0 30px; }
  .l-band-stats { grid-template-columns: repeat(2, 1fr); }
  .l-steps-grid { grid-template-columns: 1fr; }
}

/* ============ GATE (registro) ============ */
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4, 6, 12, 0.55); backdrop-filter: blur(14px);
}
.gate.hide { display: none; }
.gate-card {
  width: min(430px, calc(100vw - 32px));
  background: #0a0e18; border: 1px solid rgba(148,178,255,0.16);
  border-radius: 18px; padding: 30px 28px;
  box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 60px rgba(34,211,238,.08);
}
.gate-card h2 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; }
.gate-card .g-sub { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 20px; }
.gate-card label { display: block; font: 600 10.5px "JetBrains Mono", monospace; letter-spacing: .12em; color: var(--dim); margin: 14px 0 6px; }
.gate-card input[type="email"], .gate-card input[type="tel"] {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: rgba(148,178,255,0.05); border: 1px solid var(--line);
  color: var(--text); font: 500 14px "Space Grotesk", sans-serif;
  outline: none; transition: border-color .15s;
}
.gate-card input:focus { border-color: rgba(34,211,238,0.5); }
.g-consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 18px; }
.g-consent input { margin-top: 3px; accent-color: var(--cyan); }
.g-consent span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.g-consent a { color: var(--cyan); }
.gate-card .btn { width: 100%; justify-content: center; }
.g-err { color: var(--red); font-size: 12.5px; margin-top: 10px; display: none; }
.g-step2 { display: none; }
.g-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 10.5px "JetBrains Mono", monospace; letter-spacing: .1em;
  color: var(--green); background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.3); border-radius: 999px;
  padding: 5px 12px; margin-bottom: 14px;
}
.g-skip { display: block; text-align: center; margin-top: 12px; font-size: 12.5px; color: var(--dim); cursor: pointer; text-decoration: underline; background: none; border: none; width: 100%; }
.g-skip:hover { color: var(--muted); }
