/* calculadora.html (2026-12-01): cabecera animada «50 € al mes» y secciones como tarjetas numeradas.
   Cabecera: a la izquierda el título y el índice de las seis herramientas; a la derecha un panel que
   dibuja, mes a mes, el precio de BTC/EUR (escala logarítmica) y una barra por cada compra de 50 €
   (alto = sats comprados). Debajo, invertido, sats acumulados y su valor al precio de hoy. */

/* ── Cabecera ── */
html body .page-hero.cl-hero { max-width:1240px; margin:0 auto; display:grid; grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr); gap:56px; align-items:center; text-align:left; padding:132px 24px 84px; isolation:isolate; }
html body .page-hero.cl-hero::before { content:''; position:absolute; z-index:-1; right:-2%; top:4%; width:64%; height:94%; pointer-events:none; background:radial-gradient(closest-side,rgba(247,147,26,.17),transparent 72%), linear-gradient(rgba(255,255,255,.028) 1px,transparent 1px) 0 0/48px 48px, linear-gradient(90deg,rgba(255,255,255,.028) 1px,transparent 1px) 0 0/48px 48px; -webkit-mask-image:radial-gradient(closest-side,#000 40%,transparent); mask-image:radial-gradient(closest-side,#000 40%,transparent); }
html body .page-hero.cl-hero::after { display:none; }
html body .page-hero.cl-hero h1 { margin:14px 0 22px; max-width:none; font-size:clamp(2.3rem,4.3vw,3.9rem); background:linear-gradient(180deg,#fff 40%,#F7931A 170%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
html body .page-hero.cl-hero h1 span { -webkit-text-fill-color:#F7931A; }
html body .page-hero.cl-hero .cl-text > p { margin:0; max-width:34em; font-size:clamp(1.02rem,1.3vw,1.15rem); }
.cl-sr { position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* Índice de herramientas */
.cl-tools { list-style:none; margin:30px 0 0; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; max-width:520px; counter-reset:none; }
.cl-tools a { display:flex; align-items:center; gap:12px; height:100%; padding:11px 14px; border-radius:12px; border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.035); color:#E6E6E9; font-size:.92rem; font-weight:600; text-decoration:none; transition:border-color .3s,background .3s,transform .3s; }
.cl-tools a b { font:600 .72rem/1 'JetBrains Mono',monospace; color:#F7931A; flex:none; }
.cl-tools a::after { content:'↓'; margin-left:auto; color:#F7931A; opacity:.55; transition:opacity .3s,transform .3s; }
.cl-tools a:hover { border-color:rgba(247,147,26,.45); background:rgba(247,147,26,.08); }
.cl-tools a:hover::after { opacity:1; transform:translateY(2px); }
.cl-tools a:focus-visible { outline:2px solid #F7931A; outline-offset:2px; }

/* Panel animado */
.cl-rig { margin:0; border-radius:24px; border:1px solid rgba(255,255,255,.1); background:linear-gradient(160deg,rgba(255,255,255,.06),rgba(255,255,255,.01) 55%),#050505; box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 34px 70px -26px rgba(0,0,0,.95),0 0 70px -22px rgba(247,147,26,.4); overflow:hidden; text-align:left; transition:border-color .5s,box-shadow .5s; }
.cl-rig.done { border-color:rgba(247,147,26,.45); box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 34px 70px -26px rgba(0,0,0,.95),0 0 80px -14px rgba(247,147,26,.5); }
.cl-bar { display:flex; align-items:center; gap:10px; padding:11px 14px 11px 18px; border-bottom:1px solid rgba(255,255,255,.08); font:500 .74rem/1 'JetBrains Mono',monospace; color:#A1A1A6; }
.cl-led { width:8px; height:8px; border-radius:50%; background:#F7931A; box-shadow:0 0 8px #F7931A; flex:none; animation:clBlink 1.1s steps(2,jump-none) infinite; }
.cl-rig.paused .cl-led, .cl-rig.done .cl-led { animation:none; }
.cl-rig.paused .cl-led { opacity:.5; }
@keyframes clBlink { 50% { opacity:.25; } }
.cl-bar-t { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; letter-spacing:.03em; min-width:0; }
.cl-tabs { margin-left:auto; display:inline-flex; padding:3px; border-radius:999px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.03); flex:none; }
.cl-tab { appearance:none; border:0; background:transparent; color:#C9C9CE; font:600 .74rem/1 'JetBrains Mono',monospace; letter-spacing:.04em; padding:8px 12px; min-height:30px; border-radius:999px; cursor:pointer; transition:background .3s,color .3s; }
.cl-tab:hover { color:#fff; }
.cl-tab[aria-pressed="true"] { background:#F7931A; color:#000; }
.cl-play { appearance:none; flex:none; width:32px; height:32px; display:grid; place-items:center; border-radius:50%; border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.03); color:#D0D0D3; cursor:pointer; transition:border-color .3s; }
.cl-play:hover { border-color:#F7931A; }
.cl-play svg path { fill:currentColor; }
.cl-play .i-pl, .cl-rig.paused .cl-play .i-pa { display:none; }
.cl-rig.paused .cl-play .i-pl { display:inline; }
.cl-rig.cl-still .cl-play { display:none; }
.cl-tab:focus-visible, .cl-play:focus-visible { outline:2px solid #F7931A; outline-offset:2px; }

.cl-stage { padding:8px 10px 0; }
.cl-svg { display:block; width:100%; height:auto; overflow:visible; }
.cl-svg text { font-family:'JetBrains Mono',monospace; font-size:11px; fill:#8E8E94; }
.cl-svg .grid { stroke:rgba(255,255,255,.06); stroke-width:1; }
.cl-svg .sep { stroke:rgba(255,255,255,.12); stroke-width:1; stroke-dasharray:3 4; }
.cl-svg .ax-r { text-anchor:end; }
.cl-svg .lbl { font-family:'Archivo',sans-serif; font-size:12px; font-weight:700; fill:#C9C9CE; }
.cl-svg .lbl.o { fill:#F5C58A; }
.cl-svg .area { fill:url(#clFill); }
.cl-svg .line { fill:none; stroke:#F7931A; stroke-width:2.2; stroke-linejoin:round; stroke-linecap:round; filter:url(#clGlow); }
.cl-svg .ghost { fill:none; stroke:rgba(255,255,255,.12); stroke-width:1.2; stroke-dasharray:2 4; }
.cl-svg .bars rect { fill:rgba(247,147,26,.32); }
.cl-svg .bars rect.hot { fill:#F7931A; }
.cl-svg .cur { stroke:rgba(247,147,26,.55); stroke-width:1; stroke-dasharray:3 3; }
.cl-svg .dot-h { fill:rgba(247,147,26,.25); animation:clPulse 1.4s ease-in-out infinite; transform-box:fill-box; transform-origin:center; }
.cl-svg .dot { fill:#FFD08A; }
@keyframes clPulse { 50% { transform:scale(1.7); opacity:.4; } }
.cl-svg .tip rect { fill:#111; stroke:rgba(247,147,26,.55); stroke-width:1; }
.cl-svg .tip text { fill:#F5F5F7; font-size:11.5px; font-weight:600; }
.cl-svg .tip .tip-d { fill:#A1A1A6; font-weight:400; }
.cl-svg .max { fill:#F7931A; font-weight:600; }

.cl-read { margin:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid rgba(255,255,255,.08); }
.cl-read > div { padding:12px 16px; min-width:0; border-right:1px solid rgba(255,255,255,.07); }
.cl-read > div:last-child { border-right:0; }
.cl-read dt { font-size:.7rem; letter-spacing:.06em; text-transform:uppercase; color:#A1A1A6; margin-bottom:5px; white-space:nowrap; }
.cl-read dd { margin:0; font:600 .95rem/1.3 'JetBrains Mono',monospace; color:#F5F5F7; font-variant-numeric:tabular-nums; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cl-read dd#clSats { color:#F7931A; }
.cl-rig.done .cl-read dd#clVal { color:#4ADE80; }
.cl-note { margin:0; padding:12px 18px 15px; border-top:1px solid rgba(255,255,255,.08); font-size:.8rem; line-height:1.55; color:#A1A1A6; }

/* ── Secciones como tarjetas numeradas ── */
html body .section.cl-card { width:min(1100px,calc(100% - 48px)); max-width:none; margin:0 auto 22px; padding:44px 44px 40px; border-radius:24px; border:1px solid rgba(255,255,255,.08); background:linear-gradient(160deg,rgba(255,255,255,.045),rgba(255,255,255,.008) 55%),#0a0a0a; box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 22px 44px -26px rgba(0,0,0,.95); scroll-margin-top:96px; }
html body .section.cl-card::after { content:''; position:absolute; left:44px; top:0; width:56px; height:3px; border-radius:0 0 3px 3px; background:linear-gradient(90deg,#F7931A,#FFC46B); box-shadow:0 0 14px rgba(247,147,26,.6); }
html body .section.cl-card[data-n]::before { content:attr(data-n); position:absolute; right:26px; top:14px; font-family:'Archivo',sans-serif; font-weight:900; font-stretch:115%; font-size:5.6rem; line-height:1; color:transparent; -webkit-text-stroke:1px rgba(247,147,26,.28); pointer-events:none; }
html body .section.cl-card h2 { font-size:clamp(1.7rem,3vw,2.5rem); margin-bottom:18px; padding-right:110px; }
html body .section.cl-card .section-label { margin-bottom:10px; }
html body .section.cl-card p.desc { color:#B9B9BE; max-width:46em; }
@media (hover:hover) { html body .section.cl-card { transition:border-color .35s,box-shadow .35s; } html body .section.cl-card:hover { border-color:rgba(247,147,26,.25); box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 22px 44px -16px rgba(0,0,0,.95),0 0 32px -12px rgba(247,147,26,.2); } }
html body .price-banner { width:min(1100px,calc(100% - 48px)); }

@media (max-width:900px) {
  html body .page-hero.cl-hero { grid-template-columns:minmax(0,1fr); gap:34px; padding:108px 20px 56px; min-height:0; }
}
@media (max-width:600px) {
  .cl-tools { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:6px; }
  .cl-tools a { padding:10px 11px; gap:8px; font-size:.84rem; }
  .cl-tools a::after { display:none; }
  .cl-bar { padding:9px 10px 9px 14px; gap:8px; }
  .cl-bar-t { display:none; }
  .cl-tabs { margin-left:0; }
  .cl-play { margin-left:auto; }
  .cl-stage { padding:6px 4px 0; }
  .cl-svg text { font-size:12.5px; }
  .cl-svg .lbl { font-size:13px; }
  .cl-read > div { padding:10px 10px; }
  .cl-read dt { font-size:.64rem; }
  .cl-read dd { font-size:.82rem; }
  .cl-note { padding:11px 14px 14px; }
  html body .section.cl-card, html body .price-banner { width:calc(100% - 24px); }
  html body .section.cl-card { padding:30px 18px 26px; border-radius:20px; }
  html body .section.cl-card::after { left:18px; }
  html body .section.cl-card[data-n]::before { font-size:3.6rem; right:12px; top:12px; }
  html body .section.cl-card h2 { padding-right:58px; }
}
@media (prefers-reduced-motion:reduce) {
  .cl-led, .cl-svg .dot-h { animation:none!important; }
  .cl-rig, .cl-tools a, .cl-tools a::after, html body .section.cl-card { transition:none!important; }
}
