/* Curva de emisión interactiva (halving.html) */
.hv { --hv-line: rgba(255,255,255,.09); }
.hv-lead { color: var(--text-secondary); line-height: 1.7; font-weight: 300; margin-bottom: 18px; }
.hv-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 16px; }
.hv-stat { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: #000; min-width: 0; }
.hv-stat span { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 6px; }
.hv-stat b { display: block; font-family: var(--mono); font-weight: 600; font-size: 1.02rem; color: var(--text-primary); overflow-wrap: anywhere; }
.hv-stat b.hot { color: var(--btc-orange); }
.hv-stat small { display: block; font-size: .72rem; color: var(--text-secondary); margin-top: 4px; font-weight: 300; }
.hv-chart { position: relative; border: 1px solid var(--border); border-radius: 14px; background: #000; padding: 6px; touch-action: pan-y; }
.hv-chart svg { display: block; width: 100%; height: auto; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.hv-chart text { font-family: var(--mono); fill: #8e8e93; font-size: 10.5px; }
.hv-chart .hv-grid { stroke: var(--hv-line); stroke-width: 1; }
.hv-chart .hv-tick { stroke: rgba(247,147,26,.28); stroke-width: 1; stroke-dasharray: 2 4; }
.hv-chart .hv-area { fill: url(#hvGrad); }
.hv-chart .hv-curve { fill: none; stroke: #F7931A; stroke-width: 2.6; stroke-linejoin: round; }
.hv-chart .hv-mined { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linejoin: round; }
.hv-chart .hv-cursor line { stroke: #fff; stroke-width: 1.4; }
.hv-chart .hv-cursor circle { fill: #F7931A; stroke: #fff; stroke-width: 2; }
.hv-chart .hv-today line { stroke: #8e8e93; stroke-width: 1; stroke-dasharray: 3 3; }
.hv-chart .hv-today text { fill: #f5f5f7; }
.hv-chart .hv-lab-o { fill: #F7931A; }
.hv-axis-t { text-anchor: middle; }
.hv-ctrl { display: flex; align-items: center; gap: 12px; margin: 14px 0 10px; }
.hv-ctrl input[type=range] { flex: 1; min-width: 0; accent-color: #F7931A; height: 32px; cursor: pointer; }
.hv-btn { font: 600 .82rem var(--font); color: var(--text-primary); background: #000; border: 1px solid var(--line-strong, #333); border-radius: 999px; padding: 8px 14px; cursor: pointer; white-space: nowrap; min-height: 36px; }
.hv-btn:hover { border-color: var(--btc-orange); }
.hv-btn[aria-pressed=true], .hv-chip.on { background: var(--btc-orange); color: #000; border-color: var(--btc-orange); }
.hv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.hv-chip { font: 600 .8rem var(--mono); color: var(--text-secondary); background: #000; border: 1px solid var(--border); border-radius: 999px; padding: 7px 12px; cursor: pointer; min-height: 34px; }
.hv-chip:hover { color: var(--text-primary); border-color: var(--btc-orange); }
.hv-sentence { color: var(--text-primary); font-weight: 400; line-height: 1.6; margin: 12px 0 4px; min-height: 3.2em; }
.hv-sentence b { color: var(--btc-orange); font-weight: 700; }
.hv-zoom { display: flex; gap: 8px; margin-left: auto; }
.hv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.hv-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: .78rem; color: var(--text-secondary); margin-top: 10px; }
.hv-legend i { display: inline-block; width: 18px; height: 3px; background: #F7931A; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.hv-legend i.w { background: #fff; }
.hv-legend i.d { background: none; border-top: 2px dashed #8e8e93; height: 0; }
.hv-legend i.l { background: none; border-top: 2px dashed #FFC266; height: 0; }
.hv-legend i.p { width: 10px; height: 10px; border-radius: 50%; background: #F7931A; border: 2px solid #000; box-shadow: 0 0 0 1px #F7931A; }
.hv-legend i.p.o { background: #000; }
.hv-chart .hv-limit { stroke: #FFC266; stroke-width: 1.2; stroke-dasharray: 6 5; }
.hv-chart .hv-limit-t { fill: #FFC266; font-weight: 600; }
.hv-chart .hv-rw { fill: #f5f5f7; text-anchor: middle; font-weight: 600; }
.hv-chart .hv-rw-cap { fill: #8e8e93; font-family: var(--font); font-size: 10px; letter-spacing: .04em; }
.hv-chart .hv-marks circle { fill: #F7931A; stroke: #000; stroke-width: 2; pointer-events: none; }
.hv-chart .hv-marks circle.est { fill: #000; stroke: #F7931A; stroke-dasharray: 2 2; }
.hv-chart .hv-hover line { stroke: rgba(255,255,255,.35); stroke-width: 1; stroke-dasharray: 2 3; }
.hv-chart .hv-hover circle { fill: #000; stroke: #F7931A; stroke-width: 2; }
.hv-chart .hv-hover, .hv-chart .hv-cursor, .hv-chart .hv-today { pointer-events: none; }
.hv-tip { position: absolute; z-index: 2; pointer-events: none; display: grid; grid-template-columns: auto auto; gap: 3px 12px; align-items: baseline; min-width: 188px; max-width: calc(100% - 8px); padding: 10px 12px; background: rgba(0,0,0,.92); border: 1px solid var(--btc-orange); border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.6); font-size: .74rem; }
.hv-tip[hidden] { display: none; }
.hv-tip .hv-tip-h { grid-column: 1 / -1; color: var(--btc-orange); font: 700 .8rem var(--font); margin-bottom: 3px; }
.hv-tip span { color: var(--text-secondary); }
.hv-tip em { font-style: normal; font-family: var(--mono); font-weight: 600; color: var(--text-primary); text-align: right; white-space: nowrap; }
.hv-curve.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.6s cubic-bezier(.2,.7,.2,1); }
.hv-curve.draw.go { stroke-dashoffset: 0; }
@media (max-width: 640px) {
  .hv-stats { grid-template-columns: repeat(2, 1fr); }
  .hv-zoom { margin-left: 0; width: 100%; }
  .hv-chart text { font-size: 9.5px; }
  .hv-tip { min-width: 168px; font-size: .7rem; padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-curve.draw { stroke-dasharray: none; stroke-dashoffset: 0; transition: none; }
}
