/* Rediseño 2026-11-18 (dificultad.html): cabecera con el «termostato» de Bitcoin
   (tramo de 2.016 bloques que se llena, ritmo frente a 10 min, ajuste ×4/÷4 y objetivo)
   y secciones con profundidad, en la línea de utxo.html y direcciones.html. */

html body .page-hero.dh-hero { max-width:1200px; margin:0 auto; min-height:0; display:grid; grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr); gap:52px; align-items:center; text-align:left; padding:132px 24px 84px; isolation:isolate; }
html body .page-hero.dh-hero::after { display:none; }
html body .page-hero.dh-hero::before { content:''; position:absolute; z-index:-1; right:-4%; top:4%; width:62%; height:92%; background:radial-gradient(closest-side,rgba(247,147,26,.15),transparent 72%); pointer-events:none; }
html body .page-hero.dh-hero h1 { max-width:none; margin:14px 0 22px; font-size:clamp(2.2rem,4vw,3.6rem); background:linear-gradient(180deg,#fff 40%,#F7931A 150%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
html body .page-hero.dh-hero h1 span { -webkit-text-fill-color:#F7931A; }
html body .page-hero.dh-hero > .dh-text > p { margin:0; max-width:34em; font-size:clamp(1.02rem,1.3vw,1.15rem); }

.dh-chips { display:flex; flex-wrap:wrap; gap:10px; margin:28px 0 0; list-style:none; padding:0; }
.dh-chips li { display:inline-flex; align-items:center; gap:9px; padding:8px 15px; border-radius:999px; border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.05); font-size:.86rem; color:#D0D0D3; }
.dh-chips svg { width:16px; height:16px; flex:none; stroke:#F7931A; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.dh-chips li.lnk { padding:0; border-color:rgba(247,147,26,.45); background:rgba(247,147,26,.08); }
.dh-chips li.lnk a { display:inline-flex; align-items:center; gap:9px; padding:8px 15px; border-radius:999px; color:#F7931A; font-weight:700; text-decoration:none; transition:background .3s; }
.dh-chips li.lnk a:hover { background:rgba(247,147,26,.14); }
.dh-chips li.lnk a:focus-visible { outline:2px solid #F7931A; outline-offset:2px; }
.dh-dot { width:8px; height:8px; border-radius:50%; background:#3fd37a; box-shadow:0 0 8px #3fd37a; animation:dhPulse 2s ease-in-out infinite; }

/* Ilustración */
.dh-art { margin:0; border-radius:26px; border:1px solid rgba(255,255,255,.1); background:linear-gradient(160deg,rgba(255,255,255,.065),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; }
.dh-top { display:flex; align-items:center; gap:10px; padding:13px 18px; border-bottom:1px solid rgba(255,255,255,.08); font:500 .74rem/1 'JetBrains Mono',monospace; color:#A1A1A6; }
.dh-live { width:8px; height:8px; border-radius:50%; background:#3fd37a; box-shadow:0 0 8px #3fd37a; animation:dhPulse 2s ease-in-out infinite; flex:none; }
.dh-std { margin-left:auto; color:#F7931A; white-space:nowrap; }
.dh-sr { position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

.dh-scn { display:flex; flex-wrap:wrap; gap:8px; padding:16px 18px 0; }
.dh-scn button { display:inline-flex; align-items:center; gap:6px; padding:7px 13px; border-radius:999px; border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.03); color:#B9B9BE; font:600 .78rem/1.1 'Archivo',sans-serif; cursor:pointer; transition:border-color .3s,background .3s,color .3s,box-shadow .3s; }
.dh-scn button .up { color:#3fd37a; font-size:.62rem; } .dh-scn button .dn { color:#ff6b6b; font-size:.62rem; }
.dh-scn button:hover { color:#F5F5F5; border-color:rgba(247,147,26,.45); }
.dh-scn button[aria-pressed="true"] { color:#F5F5F5; border-color:#F7931A; background:rgba(247,147,26,.12); box-shadow:0 0 18px -6px rgba(247,147,26,.6); }
.dh-scn button:focus-visible { outline:2px solid #F7931A; outline-offset:2px; }

.dh-stage { padding:26px 18px 4px; display:grid; gap:24px; }
.dh-frame { position:relative; border-radius:18px; padding:26px 14px 14px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.025); min-width:0; }
.dh-epoch { border:1.5px dashed rgba(247,147,26,.5); background:rgba(247,147,26,.03); }
.dh-lbl { position:absolute; top:-11px; left:14px; display:inline-flex; align-items:center; padding:4px 11px; border-radius:999px; background:#0b0b0b; font-size:.72rem; font-weight:700; line-height:1.1; color:#D0D0D3; border:1px solid rgba(255,255,255,.18); white-space:nowrap; }
.dh-epoch > .dh-lbl { color:#F7931A; border-color:rgba(247,147,26,.45); }
.dh-cnt { position:absolute; top:-11px; right:14px; padding:4px 11px; border-radius:999px; background:#0b0b0b; border:1px solid rgba(255,255,255,.16); font:600 .7rem/1.1 'JetBrains Mono',monospace; color:#A1A1A6; white-space:nowrap; }
.dh-cnt b { color:#F5F5F5; font-weight:600; }

/* 48 casillas = 2.016 bloques (42 por casilla) */
.dh-strip { display:grid; grid-template-columns:repeat(24,minmax(0,1fr)); gap:3px; }
.dh-strip i { display:block; height:15px; border-radius:3px; background:rgba(255,255,255,.07); transition:background .25s,box-shadow .25s; }
.dh-strip i.on { background:#F7931A; box-shadow:0 0 6px rgba(247,147,26,.45); }
.dh-art:not(.js) .dh-strip i { background:#F7931A; }

.dh-pace { margin-top:16px; display:grid; gap:6px; }
.dh-pl { font-size:.7rem; letter-spacing:.07em; text-transform:uppercase; color:#A1A1A6; }
.dh-ptrack { position:relative; height:8px; border-radius:99px; background:linear-gradient(90deg,rgba(63,211,122,.35),rgba(255,255,255,.08) 66.67%,rgba(255,107,107,.35)); margin-top:20px; }
.dh-goal { position:absolute; left:66.67%; top:-6px; bottom:-6px; width:2px; margin-left:-1px; background:#F7931A; box-shadow:0 0 8px #F7931A; }
.dh-goal em { position:absolute; bottom:calc(100% + 3px); left:50%; transform:translateX(-50%); font:600 .64rem/1 'JetBrains Mono',monospace; font-style:normal; color:#F7931A; white-space:nowrap; }
.dh-pdot { position:absolute; top:50%; left:calc(var(--x) * 100%); width:16px; height:16px; margin:-8px 0 0 -8px; border-radius:50%; background:#F5F5F5; border:3px solid #050505; box-shadow:0 0 0 2px #F5F5F5,0 0 14px rgba(255,255,255,.5); transition:left .9s cubic-bezier(.2,.8,.2,1); }
.dh-pscale { position:relative; height:.7rem; font:500 .6rem/1 'JetBrains Mono',monospace; color:#8a8a90; }
.dh-pscale span { position:absolute; top:0; transform:translateX(-50%); white-space:nowrap; }
.dh-pscale span:nth-child(1) { left:0; transform:none; } .dh-pscale span:nth-child(2) { left:33.33%; } .dh-pscale span:nth-child(3) { left:66.67%; } .dh-pscale span:nth-child(4) { right:0; transform:none; }
.dh-pv { font-size:.8rem; color:#B9B9BE; }
.dh-pv b { font:600 .95rem/1 'JetBrains Mono',monospace; color:#F5F5F5; }
.dh-verdict { color:#3fd37a; font-weight:700; }
.dh-art.sB .dh-verdict { color:#ff8a8a; }

.dh-duo { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:14px; }
.dh-dialw { display:flex; flex-direction:column; align-items:center; padding-bottom:12px; }
.dh-dial { width:100%; max-width:230px; height:auto; display:block; overflow:visible; }
.dh-arc { fill:none; stroke:url(#dhArc); stroke-width:10; stroke-linecap:round; opacity:.8; }
.dh-cap { fill:none; stroke:#F7931A; stroke-width:12; stroke-linecap:round; opacity:.35; transition:opacity .4s; }
.dh-art.sC.adj .dh-cap { opacity:1; filter:drop-shadow(0 0 6px #F7931A); }
.dh-ticks path { stroke:rgba(255,255,255,.4); stroke-width:2; stroke-linecap:round; }
.dh-dial text { font:600 12px 'JetBrains Mono',monospace; fill:#A1A1A6; }
.dh-needle { transform-box:view-box; transform-origin:120px 124px; transform:rotate(var(--a)); transition:transform 1.1s cubic-bezier(.3,1.5,.4,1); }
.dh-needle path { fill:#F5F5F5; } .dh-needle circle { fill:#F7931A; stroke:#050505; stroke-width:3; }
.dh-read { display:flex; flex-direction:column; align-items:center; gap:3px; margin-top:4px; text-align:center; }
.dh-read b { font:600 1.35rem/1 'JetBrains Mono',monospace; color:#F5F5F5; transition:color .4s; }
.dh-read span { font-size:.72rem; color:#A1A1A6; }
.dh-art.adj.sA .dh-read b, .dh-art.adj.sC .dh-read b { color:#3fd37a; }
.dh-art.adj.sB .dh-read b { color:#ff8a8a; }
.dh-capb { margin-top:8px; padding:3px 9px; border-radius:999px; border:1px dashed rgba(247,147,26,.6); color:#F7931A; font:600 .64rem/1.2 'JetBrains Mono',monospace; text-align:center; opacity:0; transform:translateY(4px); transition:opacity .4s,transform .4s; }
.dh-art.sC.adj .dh-capb { opacity:1; transform:none; }

.dh-tgt { display:flex; flex-direction:column; gap:10px; justify-content:center; }
.dh-hex { font:600 .74rem/1.4 'JetBrains Mono',monospace; color:#8a8a90; word-break:break-all; padding:10px; border-radius:10px; background:#000; border:1px solid rgba(255,255,255,.1); }
.dh-hex .z2 { color:#8a8a90; transition:color .4s; }
.dh-art.sC.adj .dh-hex .z2 { color:#F7931A; }
.dh-hex .v { color:#F5F5F5; }
.dh-zone { height:12px; border-radius:6px; background:repeating-linear-gradient(90deg,rgba(255,255,255,.06) 0 6px,rgba(255,255,255,.02) 6px 12px); overflow:hidden; }
.dh-zone span { display:block; height:100%; width:calc(var(--z) * 100%); border-radius:6px; background:linear-gradient(90deg,#3fd37a,#2fae63); transition:width 1s cubic-bezier(.2,.8,.2,1); }
.dh-zl { font-size:.66rem; color:#A1A1A6; line-height:1.35; }
.dh-tv { font-size:.74rem; font-weight:700; line-height:1.35; color:#D0D0D3; }
.dh-art.adj.sA .dh-tv, .dh-art.adj.sC .dh-tv { color:#F7931A; }

.dh-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:18px 0 0; border-top:1px solid rgba(255,255,255,.08); }
.dh-stats div { padding:14px 16px; }
.dh-stats div + div { border-left:1px solid rgba(255,255,255,.08); }
.dh-stats dt { font-size:.68rem; letter-spacing:.07em; text-transform:uppercase; color:#A1A1A6; margin-bottom:6px; }
.dh-stats dd { margin:0; white-space:nowrap; font:600 clamp(.82rem,1.1vw,.98rem)/1.15 'JetBrains Mono',monospace; color:#F5F5F5; transition:opacity .4s; }
.dh-stats dd.up { color:#3fd37a; } .dh-stats dd.dn { color:#ff8a8a; }
.dh-art:not(.adj) .dh-stats dd#dhAdj, .dh-art:not(.adj) .dh-read, .dh-art:not(.adj) .dh-tv { opacity:.35; }
.dh-read, .dh-tv { transition:opacity .4s; }
.dh-art figcaption { padding:0 18px 16px; font-size:.8rem; color:#A1A1A6; line-height:1.5; }

@keyframes dhPulse { 50% { transform:scale(1.45); opacity:.55; } }

/* Secciones: tarjetas con profundidad, numeración de fondo y acento naranja */
html body .hal.dh-main { max-width:860px; }
html body .dh-main .hal-block { position:relative; overflow:hidden; padding:34px 34px 30px; margin-bottom:18px; border-radius:22px; 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); transition:border-color .35s,box-shadow .35s; }
html body .dh-main .hal-block::after { content:''; position:absolute; left:34px; top:0; width:56px; height:3px; border-radius:0 0 3px 3px; background:#F7931A; box-shadow:0 0 14px rgba(247,147,26,.7); }
html body .dh-main .hal-block[data-n]::before { content:attr(data-n); position:absolute; right:22px; top:10px; font-family:'Archivo',sans-serif; font-weight:900; font-stretch:115%; font-size:5.4rem; line-height:1; color:transparent; -webkit-text-stroke:1px rgba(247,147,26,.28); pointer-events:none; }
html body .dh-main .hal-block > * { position:relative; z-index:1; }
html body .dh-main .hal-block[data-n] > h2 { padding-right:96px; }
html body .dh-main .hal-block h2 { font-size:clamp(1.35rem,2.2vw,1.65rem); letter-spacing:-.01em; }
html body .dh-main .hal-block p, html body .dh-main .dsx-obs { color:#B9B9BE; }
@media (hover:hover) { html body .dh-main .hal-block:hover { border-color:rgba(247,147,26,.3); box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 22px 44px -16px rgba(0,0,0,.95),0 0 32px -10px rgba(247,147,26,.25); } }
html body .dh-main .hal-block.dif-t30 { border-color:rgba(247,147,26,.4); background-image:radial-gradient(120% 140% at 0% 0%,rgba(247,147,26,.15),rgba(247,147,26,0) 55%); }
html body .dh-main .hal-block.dif-t30 p { color:#D2D2D6; }
html body .dh-main .hal-block.dif-live-box { border-color:rgba(63,211,122,.35); background-image:radial-gradient(120% 140% at 100% 0%,rgba(63,211,122,.1),rgba(63,211,122,0) 55%),linear-gradient(160deg,rgba(255,255,255,.045),rgba(255,255,255,.008) 55%); }
html body .dh-main .hal-block.dif-live-box::after { background:#3fd37a; box-shadow:0 0 14px rgba(63,211,122,.7); }
html body .dh-main .hal-block.dif-live-box[data-n]::before { -webkit-text-stroke-color:rgba(63,211,122,.32); }
html body .dh-main .hal-block.dsx { border-color:rgba(247,147,26,.4); background-image:radial-gradient(130% 120% at 100% 0%,rgba(247,147,26,.12),rgba(247,147,26,0) 50%),linear-gradient(160deg,rgba(255,255,255,.045),rgba(255,255,255,.008) 55%); box-shadow:0 0 0 1px rgba(247,147,26,.1),0 30px 60px -30px rgba(247,147,26,.45); }
html body .dh-main .dif-stat { border-radius:14px; border-color:rgba(255,255,255,.08); background:linear-gradient(160deg,rgba(255,255,255,.04),rgba(255,255,255,0) 60%),#070707; box-shadow:inset 0 1px 0 rgba(255,255,255,.05); }
html body .dh-main .dif-bar { height:10px; background:#161616; box-shadow:inset 0 1px 2px rgba(0,0,0,.6); }
html body .dh-main .dif-bar span { background:linear-gradient(90deg,#c46f0c,#F7931A); box-shadow:0 0 12px rgba(247,147,26,.6); }
html body .dh-main .dif-formula { border-radius:14px; border-color:rgba(247,147,26,.3); background:linear-gradient(90deg,rgba(247,147,26,.07),rgba(247,147,26,0) 70%),#070707; box-shadow:inset 3px 0 0 #F7931A; }
html body .dh-main .sat-wrap { border-radius:14px; border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.02); }
html body .dh-main .sat-tab tbody tr { transition:background .25s; }
html body .dh-main .sat-tab tbody tr:hover { background:rgba(247,147,26,.05); }
html body .dh-main .sat-tab tr:last-child td { border-bottom:0; }
html body .dh-main code { font-family:'JetBrains Mono',monospace; font-size:.86em; padding:1px 6px; border-radius:6px; background:rgba(247,147,26,.1); color:#F5C58A; }
html body .dh-main .dsx-svg { border-radius:16px; }
/* FAQ y enlaces */
html body .dh-main .faq-item { border:1px solid rgba(255,255,255,.08); border-radius:14px; padding:0 18px; margin-bottom:10px; background:rgba(255,255,255,.025); transition:border-color .3s,background .3s; }
html body .dh-main .faq-item[open] { border-color:rgba(247,147,26,.35); background:rgba(247,147,26,.05); }
html body .dh-main .faq-item summary { list-style:none; padding:16px 34px 16px 0; position:relative; cursor:pointer; }
html body .dh-main .faq-item summary::-webkit-details-marker { display:none; }
html body .dh-main .faq-item summary::after { content:'+'; position:absolute; right:0; top:50%; transform:translateY(-50%); font:600 1.3rem/1 'JetBrains Mono',monospace; color:#F7931A; transition:transform .3s; }
html body .dh-main .faq-item[open] summary::after { transform:translateY(-50%) rotate(45deg); }
html body .dh-main .faq-item p { margin:0; padding-bottom:16px; }
html body .dh-main .hal-links { grid-template-columns:repeat(2,minmax(0,1fr)); }
html body .dh-main .hal-links li { margin:0; }
html body .dh-main .hal-links a { display:flex; align-items:center; justify-content:space-between; gap:10px; height:100%; padding:14px 16px; border-radius:14px; border:1px solid rgba(255,255,255,.09); background:rgba(255,255,255,.03); color:#F5F5F5; font-size:.92rem; transition:border-color .3s,background .3s,transform .3s; }
html body .dh-main .hal-links a::after { content:'→'; color:#F7931A; transition:transform .3s; }
html body .dh-main .hal-links a:hover { border-color:rgba(247,147,26,.45); background:rgba(247,147,26,.07); transform:translateY(-2px); }
html body .dh-main .hal-links a:hover::after { transform:translateX(3px); }

@media (max-width:900px) {
  html body .page-hero.dh-hero { grid-template-columns:minmax(0,1fr); gap:34px; padding:108px 20px 56px; }
  html body .page-hero.dh-hero::before { width:100%; right:0; top:34%; height:66%; }
}
@media (max-width:600px) {
  html body .dh-main .hal-block { padding:26px 20px 22px; }
  html body .dh-main .hal-block::after { left:20px; }
  html body .dh-main .hal-block[data-n]::before { font-size:3.6rem; right:14px; top:12px; }
  html body .dh-main .hal-block[data-n] > h2 { padding-right:62px; }
  html body .dh-main .hal-links { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:520px) {
  .dh-top .dh-std { display:none; }
  .dh-scn { padding:14px 12px 0; gap:6px; }
  .dh-scn button { padding:7px 10px; font-size:.72rem; }
  .dh-stage { padding:24px 12px 4px; gap:22px; }
  .dh-frame { padding:24px 10px 12px; }
  .dh-lbl, .dh-cnt { font-size:.62rem; padding:4px 8px; }
  .dh-lbl { left:10px; } .dh-cnt { right:10px; }
  .dh-strip { gap:2px; } .dh-strip i { height:12px; border-radius:2px; }
  .dh-duo { gap:10px; }
  .dh-read b { font-size:1.1rem; }
  .dh-dial text { font-size:16px; }
  .dh-read span, .dh-tv { font-size:.66rem; }
  .dh-hex { font-size:.64rem; padding:8px; }
  .dh-zl { font-size:.6rem; }
  .dh-capb { font-size:.58rem; padding:3px 6px; }
  .dh-stats div { padding:12px 10px; }
  .dh-stats dt { font-size:.6rem; letter-spacing:.03em; }
  .dh-stats dd { font-size:.82rem; }
}
@media (prefers-reduced-motion:reduce) {
  .dh-live, .dh-dot { animation:none; }
  .dh-strip i, .dh-pdot, .dh-needle, .dh-zone span, .dh-cap, .dh-capb, .dh-read, .dh-read b, .dh-tv, .dh-stats dd, .dh-hex .z2,
  html body .dh-main .hal-block, html body .dh-main .hal-links a, html body .dh-main .hal-links a::after, html body .dh-main .faq-item, html body .dh-main .faq-item summary::after { transition:none!important; }
  html body .dh-main .hal-links a:hover { transform:none; }
}
