:root {
  --bg: #07090d;
  --bg-elev: #0f131b;
  --bg-elev-2: #161c27;
  --border: #1f2735;
  --text: #e7ecf3;
  --muted: #8a93a6;
  --green: #00d68f;
  --green-soft: rgba(0, 214, 143, 0.12);
  --red: #ff5577;
  --accent: #f5c518;
  --accent-2: #ff9c2a;
  --gradient: linear-gradient(135deg, #f5c518, #ff9c2a 50%, #ff5577);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(245, 197, 24, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(0, 214, 143, 0.08), transparent 60%),
    var(--bg);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 700; }
p  { margin: 0 0 1em; color: #c8cedb; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

.up { color: var(--green); }
.down { color: var(--red); }

.gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Ticker bar */
.ticker-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, #050608, #0a0d13);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 3rem;
  padding: 0.55rem 0;
  animation: ticker 45s linear infinite;
  font-size: 0.9rem;
  color: #cfd6e4;
}
.ticker-track span { display: inline-flex; gap: 0.4rem; align-items: center; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  max-width: 1240px;
  margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.25rem; }
.brand-logo { font-size: 1.6rem; filter: drop-shadow(0 0 16px rgba(245, 197, 24, 0.45)); }
.brand-accent { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.navbar nav { display: flex; gap: 1.4rem; }
.navbar nav a { color: #c8cedb; font-weight: 500; }
.navbar nav a:hover { color: white; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: 12px;
  padding: 0.7rem 1.1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-size: 1rem;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.9rem; }
.btn-xl { padding: 0.95rem 1.4rem; font-size: 1.05rem; }
.btn-primary {
  background: var(--gradient);
  color: #1a1200;
  box-shadow: 0 10px 30px rgba(245, 197, 24, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.btn-primary:hover { box-shadow: 0 14px 40px rgba(245, 197, 24, 0.4); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-elev); }

/* Hero */
main { max-width: 1240px; margin: 0 auto; padding: 0 2rem 4rem; }
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0 4rem;
}
.hero-sub { font-size: 1.1rem; max-width: 56ch; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(0, 214, 143, 0.3);
}

.price-card {
  margin-top: 1.8rem;
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-elev-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.price-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.price-big {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.price-change { font-weight: 600; }
.sparkline { width: 180px; max-width: 40%; }
.cta-row { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.hint { color: var(--muted); font-size: 0.85rem; margin-top: 0.8rem; }

/* Hero right (orb) */
.hero-right { display: flex; justify-content: center; }
.goat-orb {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orb-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.45), transparent 60%);
  filter: blur(20px);
  animation: pulse 4s ease-in-out infinite;
}
.orb-emoji {
  font-size: 11rem;
  position: relative;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.5));
  animation: float 6s ease-in-out infinite;
}
.orb-rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(245, 197, 24, 0.25);
  animation: ring 6s linear infinite;
}
.orb-rings span:nth-child(2) { animation-delay: -2s; transform: scale(0.8); }
.orb-rings span:nth-child(3) { animation-delay: -4s; transform: scale(0.6); }
@keyframes pulse { 50% { opacity: 0.6; transform: scale(1.05); } }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes ring {
  from { transform: scale(0.5); opacity: 0; }
  20%  { opacity: 1; }
  to   { transform: scale(1.3); opacity: 0; }
}

/* Chart section */
.chart-section {
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-elev-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.range-tabs {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
}
.range-tabs button {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 0.45rem 0.85rem;
  border-radius: 9px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}
.range-tabs button.active {
  background: var(--bg-elev-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}
.range-tabs button:hover:not(.active) { color: var(--text); }
.chart-wrap {
  position: relative;
  height: 380px;
  width: 100%;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.stat-label { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.4rem; }
.stat-value { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 0.85rem; margin-top: 0.3rem; }

/* Expertos */
.expertos-section { padding: 3rem 0 1rem; }

.expertos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.experto-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.experto-card:hover {
  border-color: rgba(245,197,24,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.experto-card.featured {
  border-color: rgba(245,197,24,0.25);
  background: linear-gradient(145deg, var(--bg-elev), rgba(245,197,24,0.04));
}

.experto-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.experto-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e2a3a, #2a3a50);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.experto-avatar.oc {
  background: linear-gradient(135deg, #1a1a2e, #e91e63);
  color: #fff;
  border-color: rgba(233,30,99,0.4);
}

.experto-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.experto-title {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.experto-stars {
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.experto-quote {
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #b0b8cc;
  font-style: italic;
  border-left: 3px solid rgba(245,197,24,0.3);
  padding-left: 0.9rem;
}
.experto-quote[dir="rtl"] {
  border-left: none;
  border-right: 3px solid rgba(245,197,24,0.3);
  padding-left: 0;
  padding-right: 0.9rem;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.8;
}

/* CabritaMarket */
.narrativas-section { padding: 3rem 0 1rem; }

.market-volume-pill {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
  align-self: center;
}
.market-volume-pill strong { color: var(--text); }

.narrativas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.narrativa-card {
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-elev-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.narrativa-card:hover {
  border-color: rgba(245, 197, 24, 0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.narrativa-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.6rem; }
.narrativa-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.tag-abierta { background: rgba(0,214,143,0.15); color: var(--green); border: 1px solid rgba(0,214,143,0.3); }
.tag-caliente { background: rgba(255,85,119,0.15); color: var(--red); border: 1px solid rgba(255,85,119,0.3); }
.tag-epica { background: rgba(245,197,24,0.15); color: var(--accent); border: 1px solid rgba(245,197,24,0.3); }

.narrativa-question {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin: 0;
}

/* Probability bar */
.prob-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.prob-si { color: var(--green); }
.prob-no { color: var(--red); }

.prob-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,85,119,0.3);
  overflow: hidden;
}
.prob-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--green);
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}

/* Meta row */
.narrativa-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.meta-item { font-size: 0.8rem; color: var(--muted); }
.meta-item strong { color: #c8cedb; }

/* Bet buttons */
.bet-row { display: flex; gap: 0.5rem; margin-top: auto; }
.btn-si {
  flex: 1;
  background: rgba(0,214,143,0.12);
  color: var(--green);
  border: 1px solid rgba(0,214,143,0.35);
  border-radius: 10px;
  padding: 0.6rem 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.12s;
}
.btn-si:hover { background: rgba(0,214,143,0.22); transform: translateY(-1px); }
.btn-si:active { transform: scale(0.97); }

.btn-no {
  flex: 1;
  background: rgba(255,85,119,0.1);
  color: var(--red);
  border: 1px solid rgba(255,85,119,0.3);
  border-radius: 10px;
  padding: 0.6rem 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.12s;
}
.btn-no:hover { background: rgba(255,85,119,0.2); transform: translateY(-1px); }
.btn-no:active { transform: scale(0.97); }

.position-badge {
  display: none;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  margin-top: -0.3rem;
}
.position-badge.visible { display: block; }
.position-si { background: rgba(0,214,143,0.12); color: var(--green); }
.position-no { background: rgba(255,85,119,0.1); color: var(--red); }

/* ── Sección Narrativas info ─────────────────────────────── */
.narrativas-info-section {
  padding: 4rem 0 3rem;
  border-top: 1px solid var(--border);
}

.narr-mecánicas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.narr-step {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.narr-step:hover {
  border-color: rgba(245,197,24,0.3);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.narr-step-icon {
  font-size: 2rem;
  line-height: 1;
}
.narr-step h3 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}
.narr-step p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}
.narr-step p strong { color: var(--accent); }

/* Whitepaper */
.whitepaper { padding: 4rem 0 2rem; }
.papers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.paper {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
}
.paper::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(245, 197, 24, 0.3), transparent);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.paper:hover::before { opacity: 1; }
.paper-num {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* FAQ */
.faq { padding: 3rem 0; }
.faq details {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  margin-bottom: 0.6rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--muted);
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0.6rem 0 0; color: #c8cedb; }

/* Final CTA */
.cta-final {
  text-align: center;
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.15), rgba(255, 85, 119, 0.10));
  border: 1px solid rgba(245, 197, 24, 0.35);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  margin: 3rem 0;
}
.cta-final h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.cta-final p { max-width: 60ch; margin: 0 auto 1.5rem; color: #cfd6e4; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  background: #05070a;
  margin-top: 3rem;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem 2rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #3d4558;
}
.footer-bottom a {
  color: #3d4558;
  text-decoration: underline;
}
.footer-bottom a:hover { color: var(--muted); }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 100;
  font-weight: 500;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding: 2rem 0; }
  .hero-right { order: -1; }
  .goat-orb { width: 220px; height: 220px; }
  .orb-emoji { font-size: 7rem; }
  .navbar nav { display: none; }
  .navbar { padding: 1rem; }
  main { padding: 0 1rem 3rem; }
  .price-card-row { flex-direction: column; align-items: flex-start; }
  .sparkline { width: 100%; max-width: none; }
  .footer-inner { flex-direction: column; }
  .footer-links { align-items: flex-start; }
}
