/* Comparador de escasez «stock-to-flow» bitcoin vs oro (reserva-de-valor.html) */
.s2f-warn { display: flex; gap: 12px; align-items: flex-start; border: 1px solid rgba(247,147,26,.35); background: rgba(247,147,26,.06); border-radius: 12px; padding: 14px 16px; margin: 4px 0 18px; }
.s2f-warn b.ic { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--btc-orange); color: #000; display: grid; place-items: center; font: 800 .9rem var(--font); }
.s2f-warn p { margin: 0 !important; font-size: .92rem; color: var(--text-primary) !important; font-weight: 400 !important; }
.s2f-formula { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: 0 0 18px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #000; font-family: var(--mono); font-size: .9rem; color: var(--text-primary); text-align: center; }
.s2f-formula .fr { display: inline-flex; flex-direction: column; align-items: center; }
.s2f-formula .fr span:first-child { border-bottom: 1px solid var(--btc-orange); padding: 0 6px 3px; }
.s2f-formula .fr span:last-child { padding: 3px 6px 0; }
.s2f-formula em { font-style: normal; color: var(--btc-orange); font-weight: 600; }
.s2f-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 14px; }
.s2f-stat { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: #000; min-width: 0; }
.s2f-stat span { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 6px; }
.s2f-stat b { display: block; font-family: var(--mono); font-weight: 600; font-size: 1.12rem; color: var(--text-primary); overflow-wrap: anywhere; }
.s2f-stat b.hot { color: var(--btc-orange); }
.s2f-stat b.au { color: #e6c35c; }
.s2f-stat small { display: block; font-size: .72rem; color: var(--text-secondary); margin-top: 4px; font-weight: 300; line-height: 1.4; }
.s2f-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.s2f-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.s2f-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; }
.s2f-chip:hover { color: var(--text-primary); border-color: var(--btc-orange); }
.s2f-chip.on, .s2f-btn[aria-pressed=true] { background: var(--btc-orange); color: #000; border-color: var(--btc-orange); }
.s2f-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; }
.s2f-btn:hover { border-color: var(--btc-orange); }
.s2f-chip:focus-visible, .s2f-btn:focus-visible, .s2f-ctrl input:focus-visible { outline: none; box-shadow: var(--focus-ring, 0 0 0 2px #F7931A); }
.s2f-zoom { display: flex; gap: 8px; margin-left: auto; }
.s2f-chart { position: relative; border: 1px solid var(--border); border-radius: 14px; background: #000; padding: 6px; touch-action: pan-y; }
.s2f-chart svg { display: block; width: 100%; height: auto; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.s2f-chart text { font-family: var(--mono); fill: #8e8e93; font-size: 10.5px; }
.s2f-chart .s2f-ax { text-anchor: middle; }
.s2f-chart .s2f-grid { stroke: rgba(255,255,255,.09); stroke-width: 1; }
.s2f-chart .s2f-tick { stroke: rgba(255,255,255,.05); stroke-width: 1; }
.s2f-chart .s2f-btc { fill: none; stroke: #F7931A; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.s2f-chart .s2f-btc.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.8s cubic-bezier(.2,.7,.2,1); }
.s2f-chart .s2f-btc.draw.go { stroke-dashoffset: 0; }
.s2f-chart .s2f-gold { stroke: #e6c35c; stroke-width: 2; stroke-dasharray: 6 4; }
.s2f-chart .s2f-goldband { fill: rgba(230,195,92,.16); }
.s2f-chart .s2f-goldt { fill: #e6c35c; font-weight: 600; }
.s2f-chart .s2f-cross { fill: #000; stroke: #fff; stroke-width: 2; }
.s2f-chart .s2f-crosst { fill: #f5f5f7; }
.s2f-chart .s2f-cursor line { stroke: #fff; stroke-width: 1.4; }
.s2f-chart .s2f-cursor circle { fill: #F7931A; stroke: #fff; stroke-width: 2; }
.s2f-ctrl { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; }
.s2f-ctrl input[type=range] { flex: 1; min-width: 0; accent-color: #F7931A; height: 32px; cursor: pointer; }
.s2f-sent { color: var(--text-primary) !important; font-weight: 400 !important; line-height: 1.6; margin: 10px 0 6px; min-height: 3.2em; }
.s2f-sent b { color: var(--btc-orange); font-weight: 700; }
.s2f-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .78rem; color: var(--text-secondary); margin: 6px 0 12px; }
.s2f-legend i { display: inline-block; width: 18px; height: 3px; background: #F7931A; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.s2f-legend i.au { background: none; border-top: 2px dashed #e6c35c; height: 0; }
.s2f-legend i.band { height: 10px; background: rgba(230,195,92,.3); }
.s2f-src { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 12px; font-size: .82rem; color: var(--text-secondary); }
@media (max-width: 640px) {
  .s2f-stats { grid-template-columns: repeat(2, 1fr); }
  .s2f-zoom { margin-left: 0; width: 100%; }
  .s2f-stat b { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .s2f-chart .s2f-btc.draw { stroke-dasharray: none; stroke-dashoffset: 0; transition: none; }
}
