/* Rediseño 2026-11-25: cabecera «la trituradora de SHA-256» (un texto entra, sale una huella de 64 hex y, al cambiar
   una letra, cambia casi entera: efecto avalancha) y secciones con profundidad, en la línea de psbt.html y mica.html. */
html body .page-hero.hh-hero { max-width:1200px; margin:0 auto; min-height:0; display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:52px; align-items:center; text-align:left; padding:132px 24px 84px; isolation:isolate; }
html body .page-hero.hh-hero::after { display:none; }
html body .page-hero.hh-hero::before { content:''; position:absolute; z-index:-1; right:-4%; top:6%; width:62%; height:90%; background:radial-gradient(closest-side,rgba(247,147,26,.15),transparent 72%); pointer-events:none; }
html body .page-hero.hh-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.hh-hero h1 span { -webkit-text-fill-color:#F7931A; }
html body .page-hero.hh-hero > .hh-text > p { margin:0; max-width:34em; font-size:clamp(1.02rem,1.3vw,1.15rem); }
.hh-chips { display:flex; flex-wrap:wrap; gap:10px; margin:28px 0 0; list-style:none; padding:0; }
.hh-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; }
.hh-chips svg { width:16px; height:16px; flex:none; stroke:#F7931A; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.hh-chips li.lnk { padding:0; border-color:rgba(247,147,26,.45); background:rgba(247,147,26,.08); }
.hh-chips li.lnk a { display:inline-flex; align-items:center; padding:8px 15px; border-radius:999px; color:#F7931A; font-weight:700; text-decoration:none; transition:background .3s; }
.hh-chips li.lnk a:hover { background:rgba(247,147,26,.14); }
.hh-chips li.lnk a:focus-visible, .hh-btn:focus-visible { outline:2px solid #F7931A; outline-offset:2px; }

/* Tarjeta animada */
.hh-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; position:relative; }
.hh-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; }
.hh-top .hh-std { margin-left:auto; padding:4px 9px; border-radius:999px; border:1px solid rgba(255,255,255,.14); }
.hh-live { width:8px; height:8px; border-radius:50%; background:#F7931A; box-shadow:0 0 8px #F7931A; animation:hhPulse 2s ease-in-out infinite; flex:none; }
.hh-art.paused .hh-live, .hh-art.still .hh-live { animation:none; opacity:.5; }
@keyframes hhPulse { 50% { opacity:.35; } }
.hh-sr { position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.hh-k { font:600 .66rem/1 'JetBrains Mono',monospace; letter-spacing:.14em; text-transform:uppercase; color:#A1A1A6; }

/* Entrada */
.hh-in { display:flex; align-items:center; gap:14px; margin:18px 18px 0; padding:14px 16px; border-radius:14px; border:1px solid rgba(255,255,255,.12); background:linear-gradient(160deg,rgba(255,255,255,.05),rgba(255,255,255,0) 60%),#0a0a0a; box-shadow:inset 0 1px 0 rgba(255,255,255,.06); }
.hh-word { flex:1; min-width:0; display:flex; align-items:center; font:600 clamp(1.3rem,2.3vw,1.7rem)/1.1 'JetBrains Mono',monospace; color:#F5F5F5; white-space:pre; overflow:hidden; }
.hh-word i { font-style:normal; }
.hh-word i.new { color:#F7931A; }
.hh-caret { width:2px; height:1.1em; margin-left:2px; background:#F7931A; animation:hhBlink 1s steps(1) infinite; }
.hh-art.paused .hh-caret, .hh-art.still .hh-caret { animation:none; }
@keyframes hhBlink { 50% { opacity:0; } }
.hh-bytes { font:500 .74rem/1 'JetBrains Mono',monospace; color:#A1A1A6; white-space:nowrap; }

/* La trituradora */
.hh-mill { position:relative; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:14px; margin:0 18px; padding:16px 6px; }
.hh-mill::before { content:''; position:absolute; left:50%; top:0; bottom:0; width:2px; transform:translateX(-50%); background:linear-gradient(180deg,rgba(247,147,26,.0),rgba(247,147,26,.55) 30%,rgba(247,147,26,.55) 70%,rgba(247,147,26,0)); }
.hh-gear { position:relative; width:58px; height:58px; color:#F7931A; filter:drop-shadow(0 0 10px rgba(247,147,26,.35)); }
.hh-gear.b { color:#C9C9CE; filter:none; }
.hh-gear svg { width:100%; height:100%; display:block; }
.hh-art.grind .hh-gear.a svg { animation:hhSpin .9s linear infinite; }
.hh-art.grind .hh-gear.b svg { animation:hhSpin .9s linear infinite reverse; }
@keyframes hhSpin { to { transform:rotate(360deg); } }
.hh-core { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:8px; padding:12px 12px 10px; border-radius:14px; border:1px solid rgba(247,147,26,.35); background:radial-gradient(120% 140% at 50% 0%,rgba(247,147,26,.16),rgba(247,147,26,0) 60%),#0b0906; box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 14px 30px -16px rgba(0,0,0,.95); transition:box-shadow .4s,border-color .4s; }
.hh-art.grind .hh-core { border-color:rgba(247,147,26,.8); box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 0 34px -6px rgba(247,147,26,.55); }
.hh-core-t { font:800 .8rem/1 'Archivo',sans-serif; letter-spacing:.04em; color:#F5F5F5; }
.hh-core-t b { font-family:'JetBrains Mono',monospace; color:#F7931A; }
.hh-regs { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:4px; width:100%; max-width:300px; }
.hh-regs span { display:flex; flex-direction:column; align-items:center; gap:3px; padding:4px 0 5px; border-radius:6px; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.07); font:600 .7rem/1 'JetBrains Mono',monospace; color:#D0D0D3; }
.hh-regs span em { font-style:normal; font-size:.58rem; color:#8E8E93; }
.hh-art.grind .hh-regs span { border-color:rgba(247,147,26,.3); color:#F5C58A; }

/* Salida */
.hh-out { margin:0 18px; padding:14px 14px 12px; border-radius:14px; border:1px solid rgba(255,255,255,.12); background:linear-gradient(160deg,rgba(255,255,255,.045),rgba(255,255,255,0) 60%),#070707; box-shadow:inset 0 1px 0 rgba(255,255,255,.06); }
.hh-oh { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:10px; }
.hh-oh .hh-len { font:500 .7rem/1 'JetBrains Mono',monospace; color:#A1A1A6; }
.hh-hex { display:grid; grid-template-columns:repeat(16,minmax(0,1fr)); gap:4px; }
.hh-hex span { display:flex; align-items:center; justify-content:center; aspect-ratio:4/5; border-radius:6px; background:linear-gradient(180deg,#151515 50%,#101010 50%); border:1px solid rgba(255,255,255,.07); font:600 clamp(.78rem,1.25vw,1.02rem)/1 'JetBrains Mono',monospace; color:#D8D8DC; text-transform:lowercase; transition:color .3s,border-color .3s,background .3s; }
.hh-hex span.chg { color:#F7931A; border-color:rgba(247,147,26,.45); background:linear-gradient(180deg,rgba(247,147,26,.16) 50%,rgba(247,147,26,.1) 50%); }
.hh-hex span.flip { animation:hhFlip .42s ease-out both; }
.hh-hex span.scr { color:#6E6E73; border-color:rgba(255,255,255,.05); }
@keyframes hhFlip { 0% { transform:rotateX(90deg); opacity:.3; } 100% { transform:none; opacity:1; } }
.hh-stats { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 20px; margin:12px 18px 0; font-size:.84rem; color:#B9B9BE; }
.hh-stats b { font:600 1.08rem/1 'JetBrains Mono',monospace; color:#F7931A; }
.hh-stats .hh-vs { margin-left:auto; font:500 .76rem/1.3 'JetBrains Mono',monospace; color:#A1A1A6; }
.hh-stats .hh-vs i { font-style:normal; color:#F5F5F5; }
.hh-foot { display:flex; align-items:flex-start; gap:14px; padding:14px 18px 16px; }
.hh-foot figcaption { flex:1; font-size:.8rem; color:#A1A1A6; line-height:1.5; }
.hh-foot figcaption code { font-family:'JetBrains Mono',monospace; font-size:.76rem; color:#F5C58A; }
.hh-btns { flex:none; display:flex; gap:8px; }
.hh-btn { display:inline-flex; align-items:center; gap:6px; min-height:32px; 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; }
.hh-btn:hover { border-color:rgba(247,147,26,.5); color:#F5F5F5; }
.hh-play .r, .hh-art.paused .hh-play .p { display:none; }
.hh-art.paused .hh-play .r { display:inline; }
.hh-art:not(.js) .hh-btns, .hh-art.still .hh-play { display:none; }

/* Secciones con profundidad */
html body .hal.hh-main .hal-block { position:relative; overflow:hidden; padding:34px 34px 30px; 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 .hal.hh-main .hal-block::after { content:''; position:absolute; left:34px; top:0; width:56px; height:3px; border-radius:0 0 3px 3px; background:linear-gradient(90deg,#F7931A,#FFD08A); box-shadow:0 0 14px rgba(247,147,26,.6); }
html body .hal.hh-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,.26); pointer-events:none; }
html body .hal.hh-main .hal-block > * { position:relative; z-index:1; }
html body .hal.hh-main .hal-block[data-n] > h2 { padding-right:96px; }
html body .hal.hh-main .hal-block h2 { font-size:clamp(1.35rem,2.2vw,1.65rem); letter-spacing:-.01em; }
html body .hal.hh-main .hal-block > p { color:#B9B9BE; }
@media (hover:hover) { html body .hal.hh-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 .hal.hh-main .hal-block.hs-sum { border-left-width:1px; 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 .hal.hh-main .hal-block.hs-sum p { color:#D2D2D6; }
html body .hal.hh-main .hs-hex, html body .hal.hh-main .hs-bits, html body .hal.hh-main .hs-hash { border-radius:14px; border-color:rgba(255,255,255,.1); 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,.06); }
html body .hal.hh-main .hs-hash { border-radius:10px; }
html body .hal.hh-main .hs-prop, html body .hal.hh-main .hs-use, html body .hal.hh-main .pf-step { border-radius:16px; border-color:rgba(255,255,255,.1); background:linear-gradient(160deg,rgba(255,255,255,.055),rgba(255,255,255,0) 60%),#090909; box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 16px 30px -18px rgba(0,0,0,.9); transition:border-color .3s,transform .3s; }
html body .hal.hh-main .hs-prop:nth-child(3), html body .hal.hh-main .hs-flow .pf-step:nth-child(5) { border-color:rgba(247,147,26,.55); background:linear-gradient(160deg,rgba(247,147,26,.14),rgba(247,147,26,.02) 60%),#0b0906; }
@media (hover:hover) { html body .hal.hh-main .hs-prop:hover, html body .hal.hh-main .hs-use:hover, html body .hal.hh-main .pf-step:hover { border-color:rgba(247,147,26,.45); transform:translateY(-2px); } }
html body .hal.hh-main .hs-box { border-radius:18px; border-color:rgba(247,147,26,.3); background:radial-gradient(120% 120% at 0% 0%,rgba(247,147,26,.1),rgba(247,147,26,0) 55%),#090909; box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 22px 44px -24px rgba(0,0,0,.95); }
html body .hal.hh-main .hs-box textarea { border-radius:10px; background:#050505; }
html body .hal.hh-main .hs-try button { border-radius:999px; padding:5px 12px; }
html body .hal.hh-main .pf-note { border-radius:14px; background:linear-gradient(160deg,rgba(247,147,26,.1),rgba(247,147,26,.03) 60%); }
html body .hal.hh-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 .hal.hh-main .faq-item[open] { border-color:rgba(247,147,26,.35); background:rgba(247,147,26,.05); }
html body .hal.hh-main .faq-item summary { list-style:none; padding:16px 34px 16px 0; position:relative; }
html body .hal.hh-main .faq-item summary::-webkit-details-marker { display:none; }
html body .hal.hh-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 .hal.hh-main .faq-item[open] summary::after { transform:translateY(-50%) rotate(45deg); }
html body .hal.hh-main .faq-item p { margin:0; padding-bottom:16px; }
html body .hal.hh-main .hal-links { grid-template-columns:repeat(2,minmax(0,1fr)); padding:0; }
html body .hal.hh-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 .hal.hh-main .hal-links a::after { content:'→'; color:#F7931A; transition:transform .3s; }
html body .hal.hh-main .hal-links a:hover { border-color:rgba(247,147,26,.45); background:rgba(247,147,26,.07); transform:translateY(-2px); }
html body .hal.hh-main .hal-links a:hover::after { transform:translateX(3px); }

@media (max-width:900px) {
    html body .page-hero.hh-hero { grid-template-columns:minmax(0,1fr); gap:34px; padding:108px 20px 56px; }
    html body .page-hero.hh-hero::before { width:100%; right:0; top:34%; height:66%; }
}
@media (max-width:600px) {
    html body .hal.hh-main .hal-block { padding:26px 20px 22px; }
    html body .hal.hh-main .hal-block::after { left:20px; }
    html body .hal.hh-main .hal-block[data-n]::before { font-size:3.6rem; right:14px; top:12px; }
    html body .hal.hh-main .hal-block[data-n] > h2 { padding-right:62px; }
    html body .hal.hh-main .hal-links { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:560px) {
    .hh-top { padding:12px 14px; }
    .hh-in { margin:14px 12px 0; padding:12px; gap:10px; }
    .hh-mill { margin:0 12px; gap:8px; padding:12px 0; }
    .hh-gear { width:40px; height:40px; }
    .hh-core { padding:10px 8px 8px; }
    .hh-regs { gap:3px; }
    .hh-regs span { font-size:.6rem; }
    .hh-out { margin:0 12px; padding:12px 10px 10px; }
    .hh-hex { gap:3px; }
    .hh-hex span { border-radius:4px; font-size:.76rem; }
    .hh-stats { margin:12px 12px 0; gap:6px 14px; }
    .hh-stats .hh-vs { margin-left:0; }
    .hh-foot { padding:12px 12px 14px; flex-direction:column; gap:10px; }
}
@media (prefers-reduced-motion:reduce) {
    .hh-live, .hh-caret, .hh-hex span.flip, .hh-art.grind .hh-gear svg { animation:none!important; }
    .hh-hex span, .hh-core,
    html body .hal.hh-main .hal-block, html body .hal.hh-main .hs-prop, html body .hal.hh-main .hs-use, html body .hal.hh-main .pf-step, html body .hal.hh-main .hal-links a, html body .hal.hh-main .hal-links a::after, html body .hal.hh-main .faq-item, html body .hal.hh-main .faq-item summary::after { transition:none!important; }
    html body .hal.hh-main .hal-links a:hover, html body .hal.hh-main .pf-step:hover, html body .hal.hh-main .hs-prop:hover, html body .hal.hh-main .hs-use:hover { transform:none; }
}
