:root {
  --bg: #0a0b0e;
  --bg-grad: radial-gradient(1200px 600px at 80% -10%, rgba(247,147,26,.10), transparent 60%),
             radial-gradient(900px 500px at 0% 0%, rgba(46,204,113,.05), transparent 55%);
  --surface: #14161b;
  --surface-2: #1a1d24;
  --border: #262a33;
  --border-soft: #1f232b;
  --text: #ecebe6;
  --muted: #8b909c;
  --btc: #f7931a;
  --btc-soft: #ffb455;
  --green: #34d27b;
  --red: #ff5d5d;
  --amber: #ffbf47;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --disp: 'Space Grotesk', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--disp);
  background: var(--bg); background-image: var(--bg-grad); background-attachment: fixed;
  color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
header.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,11,14,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.02em; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--btc), #c76a00);
  display: grid; place-items: center; color: #0a0b0e; font-weight: 800; font-size: 19px;
  box-shadow: 0 4px 18px rgba(247,147,26,.35);
}
.brand small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.ticker {
  display: flex; align-items: center; gap: 9px; font-family: var(--mono);
  background: var(--surface); border: 1px solid var(--border); padding: 7px 13px; border-radius: 999px;
  font-size: 14px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52,210,123,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,210,123,.55);} 70%{box-shadow:0 0 0 7px rgba(52,210,123,0);}100%{box-shadow:0 0 0 0 rgba(52,210,123,0);} }
.chg.up { color: var(--green); } .chg.down { color: var(--red); }

/* ---------- Sections ---------- */
section { padding: 46px 0; border-bottom: 1px solid var(--border-soft); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--btc); margin-bottom: 8px; }
h2.title { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.03em; margin-bottom: 6px; }
.lead { color: var(--muted); max-width: 640px; margin-bottom: 26px; }

/* ---------- Hero ---------- */
.hero { padding-top: 54px; }
.price-xl { font-family: var(--mono); font-size: clamp(46px, 9vw, 86px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.price-xl .cur { color: var(--btc); }
.hero-sub { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 16px; color: var(--muted); font-family: var(--mono); font-size: 14px; }
.hero-sub b { color: var(--text); font-weight: 600; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 14px; margin-top: 30px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.stat .k { font-size: 12px; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }
.stat .v { font-family: var(--mono); font-size: 23px; margin-top: 6px; letter-spacing: -.02em; }

/* ---------- Halving ---------- */
.halving-card {
  background: linear-gradient(160deg, #1a1308, var(--surface) 60%);
  border: 1px solid #3a2c12; border-radius: 22px; padding: 34px; position: relative; overflow: hidden;
}
.halving-card::after { content:''; position:absolute; right:-60px; top:-60px; width:240px; height:240px;
  background: radial-gradient(circle, rgba(247,147,26,.22), transparent 70%); }
.cd { display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0; position: relative; z-index: 1; }
.cd .unit { background: #0e0f13; border: 1px solid var(--border); border-radius: 14px; padding: 16px 10px; min-width: 92px; text-align: center; flex: 1; }
.cd .num { font-family: var(--mono); font-size: clamp(30px,5vw,44px); font-weight: 600; color: var(--btc-soft); letter-spacing: -.03em; }
.cd .lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }
.bar { height: 9px; background: #0e0f13; border-radius: 999px; overflow: hidden; border: 1px solid var(--border); position: relative; z-index:1; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--btc), var(--btc-soft)); border-radius: 999px; transition: width 1s; }
.halving-meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 16px; font-family: var(--mono); font-size: 13.5px; color: var(--muted); position: relative; z-index: 1; }
.halving-meta b { color: var(--text); }
.reward-flow { display: inline-flex; align-items: center; gap: 8px; }
.reward-flow .to { color: var(--btc); }

/* ---------- Veredicto del mes (grande) ---------- */
#veredicto { padding-top: 30px; }
.verdict-hero {
  border-radius: 24px; padding: 34px; position: relative; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  transition: border-color .4s, background .4s;
}
.verdict-hero.buy  { border-color: rgba(52,210,123,.45); background: linear-gradient(160deg, rgba(52,210,123,.10), var(--surface) 55%); }
.verdict-hero.sell { border-color: rgba(255,191,71,.45); background: linear-gradient(160deg, rgba(255,191,71,.10), var(--surface) 55%); }
.verdict-hero.hold { border-color: var(--border); background: linear-gradient(160deg, rgba(139,144,156,.08), var(--surface) 55%); }
.vh-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.vh-pick { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); }
.vh-select {
  font-family: var(--disp); font-size: 15px; font-weight: 600; color: var(--text);
  background: #0e0f13; border: 1px solid var(--border); border-radius: 10px; padding: 9px 13px; cursor: pointer;
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b909c'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px;
}
.vh-select:focus { outline: none; border-color: var(--btc); }
.vh-stats { font-size: 14px; color: var(--muted); }
.vh-stats b { color: var(--text); }
.vh-emoji { font-size: 40px; line-height: 1; }
.vh-action { font-size: clamp(34px, 7vw, 62px); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; margin: 6px 0 4px; }
.verdict-hero.buy  .vh-action { color: var(--green); }
.verdict-hero.sell .vh-action { color: var(--amber); }
.verdict-hero.hold .vh-action { color: var(--text); }
.vh-month { font-family: var(--mono); font-size: 16px; color: var(--btc); letter-spacing: -.01em; }
.vh-note { color: var(--muted); font-size: 15px; max-width: 680px; margin-top: 12px; line-height: 1.55; }

/* ---------- Seasonality ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.swatch { width: 13px; height: 13px; border-radius: 4px; }
.months { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 12px; }
.month { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 15px; position: relative; transition: transform .15s, border-color .15s; }
.month:hover { transform: translateY(-3px); }
.month.acumular { border-color: rgba(52,210,123,.4); box-shadow: inset 0 0 0 1px rgba(52,210,123,.08); }
.month.alcista { border-color: rgba(255,191,71,.4); }
.month.now { outline: 2px solid var(--btc); outline-offset: 1px; }
.month .mname { font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.month .tag { font-size: 10px; font-family: var(--mono); padding: 3px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.tag.acumular { background: rgba(52,210,123,.14); color: var(--green); }
.tag.alcista { background: rgba(255,191,71,.14); color: var(--amber); }
.tag.neutral { background: rgba(139,144,156,.14); color: var(--muted); }
.month .nums { font-family: var(--mono); font-size: 13px; margin: 9px 0; display: flex; gap: 14px; }
.month .ret.pos { color: var(--green); } .month .ret.neg { color: var(--red); }
.month .nt { font-size: 12px; color: var(--muted); line-height: 1.45; }
.verdict { background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--btc); border-radius: 12px; padding: 18px 20px; margin-top: 20px; color: var(--muted); font-size: 14.5px; }
.verdict b { color: var(--text); }

/* ---------- Cycle + gauge ---------- */
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.gauge-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gauge { position: relative; width: 200px; height: 110px; }
.gauge .val { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 38px; font-weight: 600; }
.gauge .lab { text-align: center; font-size: 14px; margin-top: 2px; }
.cycle-list { list-style: none; font-family: var(--mono); font-size: 13.5px; }
.cycle-list li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border-soft); }
.cycle-list li:last-child { border: 0; }
.cycle-list .g { color: var(--green); }

/* ---------- Chart + timeline ---------- */
.chart-box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.chart-controls { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.chip { font-family: var(--mono); font-size: 12.5px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; transition: .15s; }
.chip.on, .chip:hover { background: var(--btc); color: #0a0b0e; border-color: var(--btc); }
canvas { max-width: 100%; }
.timeline { margin-top: 26px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 12px; }
.tl { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; border-top: 3px solid var(--border); }
.tl.halving { border-top-color: var(--btc); }
.tl.ath { border-top-color: var(--green); }
.tl.ahora { border-top-color: #5b8def; }
.tl.futuro { border-top-color: var(--amber); border-style: dashed; }
.tl .yr { font-family: var(--mono); color: var(--btc); font-size: 13px; }
.tl .tt { font-weight: 600; margin: 3px 0; }
.tl .pp { font-family: var(--mono); font-size: 13px; color: var(--green); }
.tl .dd { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.45; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px,1fr)); gap: 14px; }
.news { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; transition: border-color .15s, transform .15s; display: flex; flex-direction: column; }
.news:hover { border-color: var(--btc); transform: translateY(-2px); }
.news .src { font-family: var(--mono); font-size: 11px; color: var(--btc); text-transform: uppercase; letter-spacing: .06em; display: flex; justify-content: space-between; }
.news h3 { font-size: 16px; margin: 9px 0; line-height: 1.32; letter-spacing: -.01em; }
.news p { font-size: 13.5px; color: var(--muted); line-height: 1.5; flex: 1; }
.news .more { margin-top: 11px; font-family: var(--mono); font-size: 12px; color: var(--btc); }
.news-empty { color: var(--muted); font-family: var(--mono); font-size: 14px; }

/* ---------- Footer ---------- */
footer { padding: 40px 0 60px; color: var(--muted); font-size: 13px; }
.disc { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 20px; line-height: 1.55; }
.disc b { color: var(--btc); }
.src-list { font-family: var(--mono); font-size: 11.5px; line-height: 1.9; }

.skeleton { color: var(--muted); opacity: .5; }
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
  .top-in { height: 58px; }
  .ticker { font-size: 12.5px; padding: 6px 10px; }
}
