/* Calculadora «¿Cuánto tardan X confirmaciones?» (enviar-recibir.html) */
.cf-tool { border: 1px solid var(--border); border-radius: 14px; background: #000; padding: 18px; margin: 6px 0 22px; }
.cf-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.cf-pick-l { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); margin-right: 4px; }
.cf-chip { font: 600 .95rem var(--mono); color: var(--text-primary); background: #000; border: 1px solid #333; border-radius: 999px; min-width: 48px; min-height: 40px; padding: 6px 14px; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.cf-chip:hover { border-color: var(--btc-orange); }
.cf-chip[aria-pressed=true] { background: var(--btc-orange); border-color: var(--btc-orange); color: #000; }
.cf-chip:focus-visible, .cf-custom input:focus-visible, .cf-run:focus-visible { outline: 2px solid var(--btc-orange); outline-offset: 2px; }
.cf-custom { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; min-width: 0; font-size: .82rem; color: var(--text-secondary); }
.cf-custom input[type=number] { width: 70px; font: 600 .95rem var(--mono); color: var(--text-primary); background: #000; border: 1px solid #333; border-radius: 10px; padding: 8px 8px; min-height: 40px; }
.cf-custom input[type=range] { flex: 1; min-width: 0; accent-color: #F7931A; height: 32px; cursor: pointer; }

.cf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.cf-stat { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--bg-card); min-width: 0; }
.cf-stat span { display: block; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 6px; }
.cf-stat b { display: block; font-family: var(--mono); font-weight: 600; font-size: 1.25rem; color: var(--text-primary); }
.cf-stat b.hot { color: var(--btc-orange); }
.cf-stat small { display: block; font-size: .74rem; color: var(--text-secondary); margin-top: 4px; font-weight: 300; }

.cf-probs { display: grid; gap: 8px; margin-bottom: 14px; }
.cf-probs-t { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.cf-bar { display: grid; grid-template-columns: 56px 1fr 78px; align-items: center; gap: 10px; }
.cf-bar > span:first-child { font-family: var(--mono); font-size: .85rem; color: var(--text-primary); white-space: nowrap; }
.cf-track { height: 12px; border-radius: 999px; background: #1a1a1a; overflow: hidden; }
.cf-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #b8650a, #F7931A); transition: width .7s cubic-bezier(.2,.7,.2,1); }
.cf-pct { font-family: var(--mono); font-weight: 600; font-size: .9rem; color: var(--btc-orange); text-align: right; }

.cf-chart { border: 1px solid var(--border); border-radius: 12px; padding: 6px; margin-bottom: 6px; }
.cf-chart svg { display: block; width: 100%; height: auto; }
.cf-chart text { font-family: var(--mono); fill: #8e8e93; font-size: 11px; }
.cf-chart .cf-ax { font-family: var(--font); font-size: 10.5px; }
.cf-chart .cf-grid { stroke: rgba(255,255,255,.09); stroke-width: 1; }
.cf-chart .cf-guide { stroke: rgba(247,147,26,.28); stroke-width: 1; stroke-dasharray: 2 4; }
.cf-chart .cf-area { fill: url(#cfGrad); }
.cf-chart .cf-curve { fill: none; stroke: #F7931A; stroke-width: 2.8; stroke-linejoin: round; stroke-linecap: round; }
.cf-chart .cf-drop { stroke: rgba(255,255,255,.35); stroke-width: 1; stroke-dasharray: 3 3; }
.cf-chart .cf-dot { fill: #F7931A; stroke: #fff; stroke-width: 2; }
.cf-chart .cf-lab { fill: #f5f5f7; font-weight: 600; }
.cf-chart .cf-this { stroke: #fff; stroke-width: 1.5; }
.cf-chart .cf-this-t { fill: #fff; font-family: var(--font); font-weight: 600; }
.cf-cap { font-size: .78rem; color: var(--text-secondary); margin: 0 0 16px; font-weight: 300; }

.cf-sim { border-top: 1px solid var(--border); padding-top: 14px; }
.cf-sim-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cf-sim-h h3 { font-size: 1rem; font-weight: 800; }
.cf-clock { font-family: var(--mono); font-weight: 600; font-size: 1.1rem; color: var(--btc-orange); }
.cf-run { font: 600 .85rem var(--font); color: #000; background: var(--btc-orange); border: 0; border-radius: 999px; padding: 9px 16px; min-height: 40px; cursor: pointer; }
.cf-run:disabled { opacity: .45; cursor: default; }
.cf-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.cf-cell { position: relative; width: 52px; height: 52px; border-radius: 8px; border: 1px dashed #3a3a3a; background: #0d0d0d; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cf-cell b { position: relative; font-family: var(--mono); font-size: .74rem; font-weight: 600; color: #000; }
.cf-cell::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #F7931A, #c46f0c); transform: scale(0); border-radius: inherit; transition: transform .35s cubic-bezier(.3,1.4,.5,1); }
.cf-cell.on { border-style: solid; border-color: #F7931A; }
.cf-cell.on::before { transform: scale(1); }
.cf-cell.mining:not(.on) { border-color: rgba(247,147,26,.7); animation: cfPulse 1s ease-in-out infinite; }
@keyframes cfPulse { 50% { box-shadow: 0 0 0 4px rgba(247,147,26,.18); } }
.cf-strip-s { gap: 4px; }
.cf-strip-s .cf-cell { width: 14px; height: 14px; border-radius: 3px; }
.cf-out { min-height: 3.2em; font-size: .92rem; }

.cf-tab td:first-child { font-family: var(--mono); color: var(--btc-orange); font-weight: 600; white-space: nowrap; }
.cf-tab td:last-child { font-family: var(--mono); color: var(--text-primary); white-space: nowrap; }
.cf h3.cf-h { font-size: 1.15rem; font-weight: 800; margin: 22px 0 8px; }

@media (max-width: 600px) {
  .cf-tool { padding: 12px; }
  .cf-stats { grid-template-columns: 1fr 1fr; }
  .cf-stats .cf-stat:first-child { grid-column: 1 / -1; }
  .cf-stat b { font-size: 1.05rem; }
  .cf-pick-l { flex-basis: 100%; }
  .cf-bar { grid-template-columns: 54px 1fr 64px; gap: 8px; }
  .cf-bar > span:first-child, .cf-pct { font-size: .8rem; }
  .cf-chart { padding: 2px; }
  .cf-cell { width: 44px; height: 44px; }
  .cf-cell b { font-size: .66rem; }
  .cf-tab td:last-child { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-fill, .cf-cell::before, .cf-chip { transition: none; }
  .cf-cell.mining:not(.on) { animation: none; }
}
