/* Rediseño 2026-11-29 (mineria.html): cabecera «la carrera del nonce». Cada gota es un intento
   real de SHA-256 doble; cae tanto más hondo cuantos más bits a cero tiene su hash. Casi todas se
   quedan arriba; la primera que cruza el objetivo sella el bloque candidato (3,125 BTC + comisiones).
   Secciones con profundidad en la línea de energia.html y ataque-51.html. */

/* ── Cabecera ── */
html body .mh { position:relative; z-index:1; max-width:1220px; margin:0 auto; padding:128px 24px 80px; display:grid; grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr); gap:56px; align-items:center; text-align:left; isolation:isolate; }
html body .mh::before { content:''; position:absolute; z-index:-1; inset:40px 0 0; pointer-events:none; background:radial-gradient(46% 60% at 74% 52%,rgba(247,147,26,.16),transparent 72%), linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px) 0 0/56px 56px, linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px) 0 0/56px 56px; -webkit-mask-image:radial-gradient(80% 85% at 60% 50%,#000 30%,transparent 80%); mask-image:radial-gradient(80% 85% at 60% 50%,#000 30%,transparent 80%); }
.mh-kicker { display:inline-flex; align-items:center; gap:10px; padding:7px 16px; border:1px solid rgba(255,255,255,.16); border-radius:999px; background:rgba(255,255,255,.03); font-size:.85rem; color:#c9c9ce; }
.mh-dot { width:8px; height:8px; border-radius:50%; background:#F7931A; animation:mhPing 2s infinite; }
@keyframes mhPing { 0% { box-shadow:0 0 0 0 rgba(247,147,26,.6); } 70%,100% { box-shadow:0 0 0 9px rgba(247,147,26,0); } }
html body .mh h1 { font-size:clamp(2.3rem,4vw,3.5rem); line-height:1.04; font-weight:900; letter-spacing:-.03em; font-stretch:110%; max-width:none; margin:18px 0 22px; background:linear-gradient(180deg,#fff 40%,#F7931A 160%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
html body .mh h1 span { -webkit-text-fill-color:#F7931A; }
html body .mh .mh-copy > p { font-size:clamp(1.02rem,1.3vw,1.15rem); line-height:1.65; color:#a1a1a6; max-width:34em; margin:0; }
.mh-sr { position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

.mh-keys { list-style:none; margin:30px 0 0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.mh-keys li { padding:14px 14px 13px; border-radius:14px; border:1px solid rgba(255,255,255,.1); background:linear-gradient(160deg,rgba(255,255,255,.06),rgba(255,255,255,.01) 60%),#070707; box-shadow:inset 0 1px 0 rgba(255,255,255,.06); }
.mh-keys b { display:block; font:600 1.18rem/1.15 'JetBrains Mono',monospace; color:#F7931A; margin-bottom:6px; white-space:nowrap; }
.mh-keys span { display:block; font-size:.8rem; line-height:1.4; color:#B4B4B9; }

/* Escenario */
.mh-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; transition:border-color .5s,box-shadow .5s; }
.mh-rig.sealed { border-color:rgba(247,147,26,.6); box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 34px 70px -26px rgba(0,0,0,.95),0 0 90px -14px rgba(247,147,26,.6); }
.mh-bar { 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; }
.mh-led { width:8px; height:8px; border-radius:50%; background:#F7931A; box-shadow:0 0 8px #F7931A; flex:none; animation:mhBlink 1.1s steps(2,jump-none) infinite; }
.mh-rig.sealed .mh-led { animation:none; }
.mh-rig.paused .mh-led { animation:none; opacity:.5; }
@keyframes mhBlink { 50% { opacity:.25; } }
.mh-bar-t { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; letter-spacing:.03em; }
.mh-state { margin-left:auto; padding:5px 10px; border-radius:999px; border:1px solid rgba(247,147,26,.4); color:#F7931A; font-size:.68rem; letter-spacing:.08em; text-transform:uppercase; white-space:nowrap; transition:background .4s,color .4s; }
.mh-rig.sealed .mh-state { background:#F7931A; color:#000; font-weight:600; }

.mh-stage { padding:10px 12px 0; }
.mh-svg { display:block; width:100%; height:auto; overflow:visible; }
.mh-svg text { font-family:'JetBrains Mono',monospace; }
.mh-svg .grid line { stroke:rgba(255,255,255,.06); stroke-width:1; }
.mh-svg .tick { fill:#8E8E94; font-size:13px; text-anchor:end; }
.mh-svg .ax-t { fill:#A1A1A6; font-size:13px; font-family:'Archivo',sans-serif; paint-order:stroke; stroke:#070707; stroke-width:5px; stroke-linejoin:round; }
.mh-svg .zone { fill:url(#mhZone); }
.mh-svg .tgt { stroke:#F7931A; stroke-width:1.6; stroke-dasharray:7 5; }
.mh-svg .tgt-t { fill:#F7931A; font-size:13px; font-weight:600; text-anchor:end; }
.mh-svg .zone-t { fill:#E8B271; font-size:12px; font-family:'Archivo',sans-serif; text-anchor:end; }
.mh-svg .best line { stroke:#F5F5F7; stroke-width:1; stroke-dasharray:2 4; opacity:.55; }
.mh-svg .best text { fill:#D6D6DA; font-size:12px; }
.mh-svg .best { transition:transform .25s ease-out,opacity .3s; }
.mh-rig.sealed .mh-svg .best { opacity:0; }

/* Gotas (intentos) */
.mh-svg .dp line { stroke-width:1.6; stroke-linecap:round; }
.mh-svg .dp.l0 circle { fill:#5C5C63; } .mh-svg .dp.l0 line { stroke:url(#mhTr0); }
.mh-svg .dp.l1 circle { fill:#A4A4AA; } .mh-svg .dp.l1 line { stroke:url(#mhTr1); }
.mh-svg .dp.l2 circle { fill:#F7931A; } .mh-svg .dp.l2 line { stroke:url(#mhTr2); }
.mh-svg .dp.win circle { fill:#FFB347; filter:url(#mhGlow); }
.mh-svg .dp.win line { stroke:url(#mhTr2); stroke-width:2.6; }

/* Cadena y bloque candidato */
.mh-svg .chain rect.old { fill:#121214; stroke:rgba(255,255,255,.22); stroke-width:1.2; }
.mh-svg .chain .old-cap { fill:#F7931A; opacity:.75; }
.mh-svg .chain .lnk { stroke:rgba(255,255,255,.28); stroke-width:1.5; }
.mh-svg .chain .old-t { fill:#8E8E94; font-size:11px; text-anchor:middle; }
.mh-svg .cand rect.box { fill:rgba(247,147,26,.06); stroke:#F7931A; stroke-width:1.5; stroke-dasharray:6 4; transition:fill .5s; }
.mh-svg .cand .seal { fill:url(#mhSeal); opacity:0; transition:opacity .5s; }
.mh-svg .cand .c-t { fill:#F5F5F7; font-size:13px; font-family:'Archivo',sans-serif; font-weight:700; text-anchor:middle; }
.mh-svg .cand .c-n { fill:#F7931A; font-size:12.5px; text-anchor:middle; }
.mh-rig.sealed .mh-svg .cand rect.box { stroke-dasharray:none; }
.mh-rig.sealed .mh-svg .cand .seal { opacity:1; }
.mh-rig.sealed .mh-svg .cand .c-t, .mh-rig.sealed .mh-svg .cand .c-n { fill:#000; }
.mh-svg .fut rect { fill:none; stroke:rgba(255,255,255,.16); stroke-dasharray:3 4; }
.mh-svg .fut text { fill:#6E6E75; font-size:16px; text-anchor:middle; }
.mh-svg .rwd { opacity:0; transform:translateY(10px); transition:opacity .45s .25s,transform .6s .25s cubic-bezier(.2,1.4,.4,1); transform-box:fill-box; }
.mh-svg .rwd rect { fill:#F7931A; }
.mh-svg .rwd text { fill:#000; font-size:13px; font-weight:600; text-anchor:middle; }
.mh-rig.sealed .mh-svg .rwd { opacity:1; transform:none; }

/* Lecturas */
.mh-read { margin:0; display:grid; grid-template-columns:auto auto minmax(0,1fr); border-top:1px solid rgba(255,255,255,.08); }
.mh-read > div { padding:12px 16px; min-width:0; border-right:1px solid rgba(255,255,255,.07); }
.mh-read > div:last-child { border-right:0; }
.mh-read dt { font-size:.7rem; letter-spacing:.06em; text-transform:uppercase; color:#A1A1A6; margin-bottom:4px; white-space:nowrap; }
.mh-read dd { margin:0; font:600 1rem/1.3 'JetBrains Mono',monospace; color:#F5F5F7; font-variant-numeric:tabular-nums; white-space:nowrap; }
.mh-read .mh-nonce { color:#F7931A; min-width:7ch; }
.mh-read .mh-hash { font-weight:400; font-size:.82rem; overflow:hidden; text-overflow:ellipsis; color:#8E8E94; padding-top:2px; }
.mh-read .mh-hash b { color:#F7931A; font-weight:600; }
.mh-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 con profundidad ── */
html body .hal.mn-main { max-width:860px; }
html body .mn-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 .mn-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 .mn-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 .mn-main .hal-block > * { position:relative; z-index:1; }
html body .mn-main .hal-block[data-n] > h2 { padding-right:96px; }
html body .mn-main .hal-block h2 { font-size:clamp(1.35rem,2.2vw,1.65rem); letter-spacing:-.01em; }
html body .mn-main .hal-block p { color:#B9B9BE; }
@media (hover:hover) { html body .mn-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 .mn-main .hal-block.cl-sum { border-left:1px solid rgba(247,147,26,.4); 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 .mn-main .hal-block.cl-sum p { color:#D2D2D6; }
/* Bloque que solo lleva el título de los pasos: lo une visualmente a la línea de pasos */
html body .mn-main .hal-block.mn-how { margin-bottom:0; border-radius:22px 22px 0 0; border-bottom:0; padding-bottom:14px; background:#0a0a0a; box-shadow:inset 0 1px 0 rgba(255,255,255,.07); }
html body .mn-main .hal-block.mn-how h2 { margin-bottom:0; }

/* Pasos como línea de tiempo */
html body .mn-main .steps { padding:18px 0 22px; margin:0 0 18px; border:1px solid rgba(255,255,255,.08); border-top:0; border-radius:0 0 22px 22px; background:#0a0a0a; box-shadow:0 22px 44px -26px rgba(0,0,0,.95); }
html body .mn-main .step { position:relative; margin:0 22px 14px; border-radius:16px; border:1px solid rgba(255,255,255,.08); background:linear-gradient(160deg,rgba(255,255,255,.04),rgba(255,255,255,0) 60%),#070707; transition:border-color .3s,transform .3s; }
html body .mn-main .step:last-child { margin-bottom:0; }
html body .mn-main .step:not(:last-child)::after { content:''; position:absolute; left:45px; top:70px; bottom:-15px; width:2px; background:linear-gradient(#F7931A,rgba(247,147,26,.1)); }
html body .mn-main .step-n { position:relative; z-index:1; background:radial-gradient(circle at 35% 30%,#FFB347,#F7931A 55%,#B86400); color:#000; font-weight:600; box-shadow:0 0 0 4px rgba(247,147,26,.12),0 0 22px -4px rgba(247,147,26,.8); }
html body .mn-main .step h3 { font-size:1.15rem; }
html body .mn-main .step p { color:#B9B9BE; margin-bottom:0; }
html body .mn-main .step a { color:#F7931A; }
@media (hover:hover) { html body .mn-main .step:hover { border-color:rgba(247,147,26,.35); transform:translateX(3px); } }

/* Simulador */
html body .mn-main .dsim { border-radius:18px; border-color:rgba(255,255,255,.09); background:linear-gradient(160deg,rgba(255,255,255,.04),rgba(255,255,255,0) 60%),#060606; box-shadow:inset 0 1px 0 rgba(255,255,255,.06); }

/* FAQ y enlaces */
html body .mn-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 .mn-main .faq-item[open] { border-color:rgba(247,147,26,.35); background:rgba(247,147,26,.05); }
html body .mn-main .faq-item summary { list-style:none; padding:16px 34px 16px 0; position:relative; cursor:pointer; font-weight:600; }
html body .mn-main .faq-item summary::-webkit-details-marker { display:none; }
html body .mn-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 .mn-main .faq-item[open] summary::after { transform:translateY(-50%) rotate(45deg); }
html body .mn-main .faq-item p { margin:0; padding-bottom:16px; }
html body .mn-main .hal-links { grid-template-columns:repeat(2,minmax(0,1fr)); padding:0; margin:0; }
html body .mn-main .hal-links li { margin:0; }
html body .mn-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 .mn-main .hal-links a::after { content:'→'; color:#F7931A; transition:transform .3s; }
html body .mn-main .hal-links a:hover { border-color:rgba(247,147,26,.45); background:rgba(247,147,26,.07); transform:translateY(-2px); }
html body .mn-main .hal-links a:hover::after { transform:translateX(3px); }

@media (max-width:980px) {
  html body .mh { grid-template-columns:minmax(0,1fr); gap:36px; padding:108px 20px 56px; }
  html body .mh::before { -webkit-mask-image:radial-gradient(90% 70% at 50% 65%,#000 30%,transparent 80%); mask-image:radial-gradient(90% 70% at 50% 65%,#000 30%,transparent 80%); }
}
@media (max-width:600px) {
  html body .mh { padding:100px 16px 44px; }
  .mh-keys { grid-template-columns:minmax(0,1fr); gap:8px; }
  .mh-keys li { display:flex; align-items:baseline; gap:12px; padding:11px 14px; }
  .mh-keys b { margin:0; min-width:6.4em; font-size:1.02rem; }
  .mh-bar { padding:11px 14px; }
  .mh-bar-t { display:none; }
  .mh-state { margin-left:auto; }
  .mh-stage { padding:6px 4px 0; }
  .mh-svg .tick, .mh-svg .tgt-t { font-size:17px; }
  .mh-svg .ax-t, .mh-svg .cand .c-t, .mh-svg .best text { font-size:16px; }
  .mh-svg .zone-t, .mh-svg .cand .c-n, .mh-svg .rwd text { font-size:15px; }
  .mh-svg .chain .old-t { font-size:13px; }
  .mh-read { grid-template-columns:1fr 1fr; }
  .mh-read > div { padding:10px 14px; }
  .mh-read > div:nth-child(2) { border-right:0; }
  .mh-read > div:last-child { grid-column:1/-1; border-top:1px solid rgba(255,255,255,.07); }
  .mh-note { padding:11px 14px 14px; }
  html body .mn-main .hal-block { padding:26px 20px 22px; }
  html body .mn-main .hal-block::after { left:20px; }
  html body .mn-main .hal-block[data-n]::before { font-size:3.6rem; right:14px; top:12px; }
  html body .mn-main .hal-block[data-n] > h2 { padding-right:62px; }
  html body .mn-main .hal-block.mn-how { padding-bottom:10px; }
  html body .mn-main .steps { padding:14px 0 16px; }
  html body .mn-main .step { margin:0 12px 12px; flex-direction:row; gap:14px; padding:18px 16px; }
  html body .mn-main .step-n { flex:0 0 36px; width:36px; height:36px; font-size:.9rem; }
  html body .mn-main .step:not(:last-child)::after { left:33px; top:60px; bottom:-13px; }
  html body .mn-main .hal-links { grid-template-columns:minmax(0,1fr); }
}
@media (prefers-reduced-motion:reduce) {
  .mh-dot, .mh-led { animation:none; }
  .mh-rig, .mh-state, .mh-svg .best, .mh-svg .cand rect.box, .mh-svg .cand .seal, .mh-svg .rwd,
  html body .mn-main .hal-block, html body .mn-main .step, html body .mn-main .hal-links a, html body .mn-main .hal-links a::after, html body .mn-main .faq-item, html body .mn-main .faq-item summary::after { transition:none!important; }
  html body .mn-main .hal-links a:hover, html body .mn-main .step:hover { transform:none; }
}
