/* Rediseño 2026-11-20 (multifirma.html): cabecera «2 de 3» (tres llaves, dos firman
   y la caja fuerte se abre) y secciones con profundidad, en la línea de dificultad.html,
   utxo.html y direcciones.html. */

html body .page-hero.mh-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.mh-hero::after { display:none; }
html body .page-hero.mh-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.mh-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.mh-hero h1 span { -webkit-text-fill-color:#F7931A; }
html body .page-hero.mh-hero > .mh-text > p { margin:0; max-width:34em; font-size:clamp(1.02rem,1.3vw,1.15rem); }

.mh-chips { display:flex; flex-wrap:wrap; gap:10px; margin:28px 0 0; list-style:none; padding:0; }
.mh-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; }
.mh-chips svg { width:16px; height:16px; flex:none; stroke:#F7931A; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.mh-chips li.lnk { padding:0; border-color:rgba(247,147,26,.45); background:rgba(247,147,26,.08); }
.mh-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; }
.mh-chips li.lnk a:hover { background:rgba(247,147,26,.14); }
.mh-chips li.lnk a:focus-visible { outline:2px solid #F7931A; outline-offset:2px; }

/* Ilustración */
.mh-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; }
.mh-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; }
.mh-live { width:8px; height:8px; border-radius:50%; background:#F7931A; box-shadow:0 0 8px #F7931A; animation:mhPulse 2s ease-in-out infinite; flex:none; }
.mh-art.paused .mh-live { animation:none; opacity:.5; }
.mh-mn { margin-left:auto; color:#F7931A; white-space:nowrap; }
.mh-sr { position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

.mh-stage { padding:18px 18px 0; }
.mh-svg { width:100%; height:auto; display:block; overflow:visible; }
.mh-svg text { font-family:'JetBrains Mono',monospace; }

/* Llaves */
.mh-k .card { fill:#0b0b0b; stroke:rgba(255,255,255,.14); stroke-width:1.5; transition:fill .45s,stroke .45s; }
.mh-k .bdg { fill:rgba(255,255,255,.06); stroke:rgba(255,255,255,.18); stroke-width:1.5; transition:fill .45s,stroke .45s; }
.mh-k .let { font-size:17px; font-weight:700; fill:#A1A1A6; text-anchor:middle; dominant-baseline:central; transition:fill .45s; }
.mh-k .ico { fill:none; stroke:#5a5a60; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; transition:stroke .45s; }
.mh-k .sig { font-size:14px; font-weight:600; fill:#F7931A; opacity:0; transition:opacity .45s; }
.mh-k.on .card { fill:rgba(247,147,26,.1); stroke:#F7931A; }
.mh-k.on .bdg { fill:#F7931A; stroke:#F7931A; }
.mh-k.on .let { fill:#000; }
.mh-k.on .ico { stroke:#F7931A; }
.mh-k.on .sig { opacity:1; }
.mh-k.on { filter:drop-shadow(0 0 10px rgba(247,147,26,.45)); }

/* Cables */
.mh-w .base { fill:none; stroke:rgba(255,255,255,.12); stroke-width:2.5; }
.mh-w .flow { fill:none; stroke:#F7931A; stroke-width:3; stroke-linecap:round; stroke-dasharray:6 10; opacity:0; transition:opacity .45s; }
.mh-w.on .flow { opacity:1; animation:mhFlow 1s linear infinite; }
.mh-art.paused .mh-w.on .flow { animation-play-state:paused; }

/* Caja fuerte */
.mh-body { fill:#0d0d0d; stroke:rgba(255,255,255,.2); stroke-width:2; }
.mh-in { fill:#030303; stroke:rgba(255,255,255,.08); stroke-width:1; }
.mh-glow { opacity:0; transition:opacity .8s; }
.mh-coin { opacity:.25; transform-box:fill-box; transform-origin:center; transform:scale(.82); transition:opacity .8s,transform .8s cubic-bezier(.3,1.5,.4,1); }
.mh-coin text { font-family:'Archivo',sans-serif; font-weight:900; font-size:40px; fill:#000; text-anchor:middle; dominant-baseline:central; }
.mh-door { transform-box:view-box; transform-origin:446px 150px; transition:transform .9s cubic-bezier(.6,0,.2,1); }
.mh-door .leaf { fill:url(#mhDoor); stroke:rgba(255,255,255,.22); stroke-width:1.5; }
.mh-door .ring { fill:none; stroke:rgba(255,255,255,.25); stroke-width:3; }
.mh-dial { transform-box:view-box; transform-origin:380px 150px; transition:transform .9s cubic-bezier(.6,0,.2,1); }
.mh-dial circle { fill:#141414; stroke:#5a5a60; stroke-width:2.5; transition:stroke .45s; }
.mh-dial path { stroke:#5a5a60; stroke-width:3; stroke-linecap:round; transition:stroke .45s; }
.mh-led { fill:#1d1d1d; stroke:rgba(255,255,255,.25); stroke-width:1.5; transition:fill .45s,stroke .45s; }
.mh-art.s1 .mh-led.l1, .mh-art.s2 .mh-led.l2 { fill:#F7931A; stroke:#F7931A; filter:drop-shadow(0 0 5px #F7931A); }
.mh-art.s2 .mh-dial { transform:rotate(120deg); }
.mh-art.s2 .mh-dial circle, .mh-art.s2 .mh-dial path { stroke:#F7931A; }
.mh-lock { fill:#0d0d0d; stroke:rgba(255,255,255,.3); stroke-width:2; transition:fill .45s,stroke .45s; }
.mh-art.s2 .mh-lock { fill:#F7931A; stroke:#F7931A; }
.mh-art.open .mh-door { transform:scaleX(.12) skewY(10deg); }
.mh-art.open .mh-glow { opacity:1; }
.mh-art.open .mh-coin { opacity:1; transform:scale(1); }
.mh-art.open .mh-body { stroke:rgba(247,147,26,.6); }
.mh-body { transition:stroke .6s; }

/* Contador de firmas y leyenda */
.mh-meter { display:flex; align-items:center; flex-wrap:wrap; gap:10px 14px; margin:14px 0 0; padding:12px 14px; border-radius:14px; border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.025); }
.mh-ml { font-size:.7rem; letter-spacing:.07em; text-transform:uppercase; color:#A1A1A6; }
.mh-slots { display:flex; gap:6px; }
.mh-slots i { width:34px; height:8px; border-radius:99px; background:rgba(255,255,255,.1); transition:background .45s,box-shadow .45s; }
.mh-art.s1 .mh-slots i:nth-child(1), .mh-art.s2 .mh-slots i:nth-child(2) { background:#F7931A; box-shadow:0 0 10px rgba(247,147,26,.6); }
.mh-num { font:600 .95rem/1 'JetBrains Mono',monospace; color:#F5F5F5; }
.mh-num small { color:#8a8a90; font-size:.8rem; }
.mh-combo { font:600 .8rem/1 'JetBrains Mono',monospace; color:#F7931A; min-width:3.6em; }
.mh-state { margin-left:auto; display:inline-flex; align-items:center; gap:7px; padding:5px 11px; border-radius:999px; border:1px solid rgba(255,255,255,.16); font-size:.74rem; font-weight:700; color:#B9B9BE; transition:border-color .45s,color .45s,background .45s; }
.mh-state .o, .mh-art.open .mh-state .c { display:none; }
.mh-art.open .mh-state .o { display:inline; }
.mh-art.open .mh-state { color:#F7931A; border-color:rgba(247,147,26,.55); background:rgba(247,147,26,.1); }

.mh-legend { list-style:none; margin:12px 0 0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.mh-legend li { display:flex; align-items:flex-start; gap:8px; padding:10px; border-radius:12px; border:1px solid rgba(255,255,255,.08); background:#0a0a0a; font-size:.76rem; line-height:1.35; color:#B9B9BE; transition:border-color .45s,background .45s,color .45s; }
.mh-legend b { flex:none; width:22px; height:22px; border-radius:50%; display:grid; place-items:center; font:700 .72rem/1 'JetBrains Mono',monospace; background:rgba(247,147,26,.15); color:#F7931A; transition:background .45s,color .45s; }
.mh-legend li.on { border-color:rgba(247,147,26,.5); background:rgba(247,147,26,.07); color:#F5F5F5; }
.mh-legend li.on b { background:#F7931A; color:#000; }

.mh-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:16px 0 0; border-top:1px solid rgba(255,255,255,.08); }
.mh-stats div { padding:14px 16px; }
.mh-stats div + div { border-left:1px solid rgba(255,255,255,.08); }
.mh-stats dt { font-size:.68rem; letter-spacing:.07em; text-transform:uppercase; color:#A1A1A6; margin-bottom:6px; }
.mh-stats dd { margin:0; font:600 1.1rem/1.15 'JetBrains Mono',monospace; color:#F5F5F5; }
.mh-stats dd.or { color:#F7931A; }
.mh-foot { display:flex; align-items:flex-start; gap:14px; padding:0 18px 16px; }
.mh-foot figcaption { flex:1; font-size:.8rem; color:#A1A1A6; line-height:1.5; }
.mh-play { flex:none; display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:999px; border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.03); color:#D0D0D3; font:600 .74rem/1.1 'Archivo',sans-serif; cursor:pointer; transition:border-color .3s,color .3s; }
.mh-play:hover { border-color:rgba(247,147,26,.5); color:#F5F5F5; }
.mh-play:focus-visible { outline:2px solid #F7931A; outline-offset:2px; }
.mh-play .r, .mh-art.paused .mh-play .p { display:none; }
.mh-art.paused .mh-play .r { display:inline; }
.mh-art:not(.js) .mh-play, .mh-art.still .mh-play { display:none; }

@keyframes mhPulse { 50% { transform:scale(1.45); opacity:.55; } }
@keyframes mhFlow { to { stroke-dashoffset:-32; } }

/* Secciones: tarjetas con profundidad, numeración de fondo y acento naranja */
html body .hal.mh-main { max-width:860px; }
html body .mh-main .hal-block, html body .mh-main .ms-sim { 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 .mh-main .hal-block::after, html body .mh-main .ms-sim::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 .mh-main .hal-block[data-n]::before, html body .mh-main .ms-sim[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 .mh-main .hal-block > *, html body .mh-main .ms-sim > * { position:relative; z-index:1; }
html body .mh-main .hal-block[data-n] > h2, html body .mh-main .ms-sim[data-n] > h2 { padding-right:96px; }
html body .mh-main .hal-block h2, html body .mh-main .ms-sim h2 { font-size:clamp(1.35rem,2.2vw,1.65rem); letter-spacing:-.01em; }
html body .mh-main .hal-block p, html body .mh-main .ms-sim > p { color:#B9B9BE; }
@media (hover:hover) { html body .mh-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); } }
/* Resumen en 30 segundos destacado */
html body .mh-main .hal-block.mh-lead { 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 .mh-main .hal-block.mh-lead p:first-of-type { color:#D2D2D6; }
/* Simulador: la pieza estrella, con halo naranja */
html body .mh-main .ms-sim { 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 .mh-main .ms-key, html body .mh-main .ms-card { border-radius:14px; border-color:rgba(255,255,255,.09); 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 .mh-main .ms-card.ok { border-color:rgba(34,197,94,.4); } html body .mh-main .ms-card.bad { border-color:rgba(239,68,68,.4); }
html body .mh-main .ms-msg { border-radius:0 12px 12px 0; }
html body .mh-main code { font-family:'JetBrains Mono',monospace; font-size:.86em; padding:1px 6px; border-radius:6px; background:rgba(247,147,26,.1); color:#F5C58A; }
/* FAQ y enlaces */
html body .mh-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 .mh-main .faq-item[open] { border-color:rgba(247,147,26,.35); background:rgba(247,147,26,.05); }
html body .mh-main .faq-item summary { list-style:none; padding:16px 34px 16px 0; position:relative; cursor:pointer; }
html body .mh-main .faq-item summary::-webkit-details-marker { display:none; }
html body .mh-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 .mh-main .faq-item[open] summary::after { transform:translateY(-50%) rotate(45deg); }
html body .mh-main .faq-item p { margin:0; padding-bottom:16px; }
html body .mh-main .hal-links { grid-template-columns:repeat(2,minmax(0,1fr)); }
html body .mh-main .hal-links li { margin:0; }
html body .mh-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 .mh-main .hal-links a::after { content:'→'; color:#F7931A; transition:transform .3s; }
html body .mh-main .hal-links a:hover { border-color:rgba(247,147,26,.45); background:rgba(247,147,26,.07); transform:translateY(-2px); }
html body .mh-main .hal-links a:hover::after { transform:translateX(3px); }

@media (max-width:900px) {
  html body .page-hero.mh-hero { grid-template-columns:minmax(0,1fr); gap:34px; padding:108px 20px 56px; }
  html body .page-hero.mh-hero::before { width:100%; right:0; top:34%; height:66%; }
}
@media (max-width:600px) {
  html body .mh-main .hal-block, html body .mh-main .ms-sim { padding:26px 20px 22px; }
  html body .mh-main .hal-block::after, html body .mh-main .ms-sim::after { left:20px; }
  html body .mh-main .hal-block[data-n]::before, html body .mh-main .ms-sim[data-n]::before { font-size:3.6rem; right:14px; top:12px; }
  html body .mh-main .hal-block[data-n] > h2, html body .mh-main .ms-sim[data-n] > h2 { padding-right:62px; }
  html body .mh-main .hal-links { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:520px) {
  .mh-top .mh-mn { display:none; }
  .mh-stage { padding:14px 12px 0; }
  .mh-meter { gap:8px 10px; padding:10px 12px; }
  .mh-slots i { width:24px; }
  .mh-legend { grid-template-columns:minmax(0,1fr); gap:6px; }
  .mh-legend li { padding:8px 10px; align-items:center; }
  .mh-stats div { padding:12px 10px; }
  .mh-stats dt { font-size:.6rem; letter-spacing:.03em; }
  .mh-stats dd { font-size:.95rem; }
  .mh-foot { padding:0 12px 14px; flex-direction:column; gap:10px; }
}
@media (prefers-reduced-motion:reduce) {
  .mh-live { animation:none; }
  .mh-w.on .flow { animation:none; stroke-dasharray:none; }
  .mh-k, .mh-k *, .mh-w .flow, .mh-door, .mh-dial, .mh-dial *, .mh-led, .mh-lock, .mh-glow, .mh-coin, .mh-body, .mh-slots i, .mh-state, .mh-legend li, .mh-legend b,
  html body .mh-main .hal-block, html body .mh-main .hal-links a, html body .mh-main .hal-links a::after, html body .mh-main .faq-item, html body .mh-main .faq-item summary::after { transition:none!important; }
  html body .mh-main .hal-links a:hover { transform:none; }
}
