/* Rediseño 2026-12-04 (hardware-wallet.html): cabecera «la firma sale, la clave se queda»
   (PSBT → pantalla de la Trezor → confirmación → sale la firma, con la clave encerrada)
   y secciones con profundidad, en la línea de enviar-recibir.html y satoshi.html. */

html body .page-hero.hwh-hero { max-width:1200px; margin:0 auto; min-height:0; display:grid; grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr); gap:52px; align-items:center; text-align:left; padding:132px 24px 84px; isolation:isolate; }
html body .page-hero.hwh-hero::after { display:none; }
html body .page-hero.hwh-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.hwh-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.hwh-hero h1 span { -webkit-text-fill-color:#F7931A; }
html body .page-hero.hwh-hero > .hwh-text > p { margin:0; max-width:34em; font-size:clamp(1.02rem,1.3vw,1.15rem); }

.hwh-chips { display:flex; flex-wrap:wrap; gap:10px; margin:28px 0 0; list-style:none; padding:0; }
.hwh-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; }
.hwh-chips svg { width:16px; height:16px; flex:none; stroke:#F7931A; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.hwh-chips li.lnk { padding:0; border-color:rgba(247,147,26,.45); background:rgba(247,147,26,.08); }
.hwh-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; }
.hwh-chips li.lnk a:hover { background:rgba(247,147,26,.14); }
.hwh-chips li.lnk a:focus-visible { outline:2px solid #F7931A; outline-offset:2px; }
.hwh-dot, .hwh-live { width:8px; height:8px; border-radius:50%; background:#3fd37a; box-shadow:0 0 8px #3fd37a; animation:hwhPulse 2s ease-in-out infinite; flex:none; }

/* Ventana de la ilustración */
.hwh-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; }
.hwh-top { display:flex; align-items:center; gap:10px; padding:11px 12px 11px 18px; border-bottom:1px solid rgba(255,255,255,.08); font:500 .74rem/1 'JetBrains Mono',monospace; color:#A1A1A6; }
.hwh-top > span[data-i18n] { min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hwh-play { flex:none; margin-left:auto; display:none; align-items:center; gap:7px; padding:6px 11px; border-radius:999px; border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.03); color:#D0D0D3; font:600 .72rem/1 'Archivo',sans-serif; cursor:pointer; transition:border-color .3s,color .3s; }
.hwh-art.js .hwh-play { display:inline-flex; }
.hwh-play:hover { color:#F5F5F5; border-color:rgba(247,147,26,.5); }
.hwh-play:focus-visible { outline:2px solid #F7931A; outline-offset:2px; }
.hwh-pi { width:8px; height:9px; border-left:3px solid currentColor; border-right:3px solid currentColor; }
.hwh-play[aria-pressed="true"] .hwh-pi { border:0; width:0; height:0; border-left:8px solid currentColor; border-top:5px solid transparent; border-bottom:5px solid transparent; }
.hwh-sr { position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

.hwh-stage { padding:26px 18px 4px; display:grid; gap:20px; }
.hwh-row { display:grid; grid-template-columns:minmax(0,.82fr) minmax(56px,.55fr) minmax(0,1.1fr); align-items:center; }

/* Ordenador */
.hwh-pc { display:flex; flex-direction:column; align-items:center; text-align:center; gap:3px; padding:18px 10px 14px; border-radius:18px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.025); min-width:0; transition:border-color .5s,box-shadow .5s; }
.hwh-ic { width:52px; height:52px; border-radius:16px; display:grid; place-items:center; margin-bottom:7px; background:#0b0b0b; border:1px solid rgba(255,255,255,.16); }
.hwh-ic svg { width:24px; height:24px; fill:none; stroke:#D0D0D3; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.hwh-pc b { font-size:.84rem; font-weight:800; color:#F5F5F5; line-height:1.15; }
.hwh-pc small { font:500 .66rem/1.25 'JetBrains Mono',monospace; color:#8a8a90; }
.hwh-log { display:grid; gap:5px; margin-top:10px; width:100%; }
.hwh-log i { font:600 .66rem/1 'JetBrains Mono',monospace; font-style:normal; padding:6px 4px; border-radius:7px; border:1px dashed rgba(255,255,255,.16); color:#6f6f75; transition:color .5s,border-color .5s,background .5s; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hwh-art[data-ph="0"] .hwh-log .l1 { color:#F7931A; border:1px solid rgba(247,147,26,.5); background:rgba(247,147,26,.08); }
.hwh-art[data-ph="3"] .hwh-log .l2 { color:#3fd37a; border:1px solid rgba(63,211,122,.5); background:rgba(63,211,122,.08); }
.hwh-art[data-ph="0"] .hwh-pc, .hwh-art[data-ph="3"] .hwh-pc { border-color:rgba(255,255,255,.24); }

/* Cable y paquetes */
.hwh-wire { position:relative; height:120px; }
.hwh-wire::before, .hwh-wire::after { content:''; position:absolute; left:6px; right:6px; height:2px; border-radius:2px; background:repeating-linear-gradient(90deg,rgba(255,255,255,.2) 0 6px,transparent 6px 11px); }
.hwh-wire::before { top:38%; } .hwh-wire::after { top:66%; }
.hwh-pkt { position:absolute; left:50%; transform:translate(-50%,-50%); padding:4px 7px; border-radius:999px; font:700 .6rem/1 'JetBrains Mono',monospace; white-space:nowrap; opacity:0; z-index:1; }
.hwh-pkt.out { top:38%; color:#000; background:#F7931A; box-shadow:0 0 14px rgba(247,147,26,.8); }
.hwh-pkt.in { top:66%; color:#000; background:#3fd37a; box-shadow:0 0 14px rgba(63,211,122,.7); }
.hwh-art.js[data-ph="0"] .hwh-pkt.out { animation:hwhOut 2.2s cubic-bezier(.5,0,.4,1) both; }
.hwh-art.js[data-ph="3"] .hwh-pkt.in { animation:hwhIn 2.2s cubic-bezier(.5,0,.4,1) both; }
.hwh-art:not(.js) .hwh-pkt.in { opacity:1; }

/* La Trezor */
.hwh-dev { position:relative; display:grid; gap:10px; padding:30px 12px 12px; border-radius:24px; border:2px solid rgba(247,147,26,.55); background:linear-gradient(165deg,rgba(247,147,26,.14),rgba(247,147,26,.02) 60%),#0b0b0b; box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 18px 40px -18px rgba(0,0,0,.95),0 0 34px -12px rgba(247,147,26,.55); min-width:0; }
.hwh-brand { position:absolute; top:9px; left:0; right:0; text-align:center; font:800 .74rem/1 'Archivo',sans-serif; letter-spacing:.08em; color:#F5F5F5; }
.hwh-scr { display:grid; gap:5px; padding:11px 11px 10px; border-radius:12px; background:#000; border:1px solid rgba(255,255,255,.14); box-shadow:inset 0 0 18px rgba(255,255,255,.04); font-family:'JetBrains Mono',monospace; transition:border-color .5s,box-shadow .5s; }
.hwh-sl { font-size:.6rem; text-transform:uppercase; letter-spacing:.08em; color:#8a8a90; }
.hwh-amt { font-size:1rem; font-weight:600; color:#F5F5F5; }
.hwh-to { font-size:.72rem; color:#8a8a90; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hwh-to em { font-style:normal; color:#F5F5F5; border-radius:3px; transition:background .5s,color .5s; }
.hwh-ok { position:relative; justify-self:stretch; text-align:center; margin-top:4px; padding:6px 8px; border-radius:8px; font:700 .7rem/1 'Archivo',sans-serif; color:#3fd37a; border:1px solid rgba(63,211,122,.4); background:rgba(63,211,122,.06); transition:background .4s,color .4s; }
.hwh-tap { position:absolute; left:50%; top:50%; width:18px; height:18px; margin:-9px 0 0 -9px; border-radius:50%; border:2px solid #3fd37a; opacity:0; pointer-events:none; }
.hwh-art[data-ph="1"] .hwh-scr { border-color:rgba(247,147,26,.7); box-shadow:0 0 0 3px rgba(247,147,26,.12),0 0 22px -4px rgba(247,147,26,.6); }
.hwh-art[data-ph="1"] .hwh-to em { background:#F7931A; color:#000; }
.hwh-art[data-ph="2"] .hwh-ok { background:#3fd37a; color:#000; }
.hwh-art.js[data-ph="2"] .hwh-tap { animation:hwhTap 1.1s ease-out .2s 2; }

.hwh-vault { display:flex; align-items:center; gap:9px; padding:9px 10px; border-radius:12px; border:1px dashed rgba(255,255,255,.22); background:rgba(0,0,0,.4); transition:border-color .5s,box-shadow .5s; }
.hwh-vault svg { width:22px; height:22px; flex:none; fill:none; stroke:#F7931A; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.hwh-vault span { display:grid; gap:2px; min-width:0; }
.hwh-vault b { font:600 .7rem/1.1 'JetBrains Mono',monospace; color:#F7931A; }
.hwh-vault small { font-size:.66rem; color:#A1A1A6; line-height:1.2; }
.hwh-art[data-ph="2"] .hwh-vault, .hwh-art[data-ph="3"] .hwh-vault { border-style:solid; border-color:rgba(247,147,26,.6); box-shadow:0 0 20px -6px rgba(247,147,26,.6); }
.hwh-art.js[data-ph="3"] .hwh-vault svg { animation:hwhShake .5s ease-in-out .3s; }

/* Pasos y estado */
.hwh-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; list-style:none; margin:0; padding:0; }
.hwh-steps li { display:flex; align-items:center; gap:7px; padding:8px 9px; border-radius:12px; border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.02); font-size:.74rem; font-weight:700; color:#8a8a90; min-width:0; transition:border-color .45s,background .45s,color .45s; }
.hwh-steps li span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hwh-steps i { flex:none; display:grid; place-items:center; width:20px; height:20px; border-radius:50%; font:600 .64rem/1 'JetBrains Mono',monospace; font-style:normal; background:rgba(255,255,255,.08); color:#A1A1A6; transition:background .45s,color .45s; }
.hwh-steps li.on { color:#D0D0D3; }
.hwh-steps li.on i { background:rgba(247,147,26,.2); color:#F7931A; }
.hwh-steps li.cur { color:#F5F5F5; border-color:rgba(247,147,26,.55); background:rgba(247,147,26,.08); }
.hwh-steps li.cur i { background:#F7931A; color:#000; }
html body .page-hero.hwh-hero .hwh-status { max-width:none; margin:0; letter-spacing:0; font-weight:500; font-size:.86rem; line-height:1.45; color:#D0D0D3; min-height:2.9em; }

.hwh-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:18px 0 0; border-top:1px solid rgba(255,255,255,.08); }
.hwh-stats div { padding:14px 16px; min-width:0; }
.hwh-stats div + div { border-left:1px solid rgba(255,255,255,.08); }
.hwh-stats dt { font-size:.66rem; letter-spacing:.07em; text-transform:uppercase; color:#A1A1A6; }
.hwh-stats dd { margin:6px 0 0; font:600 .95rem/1.2 'JetBrains Mono',monospace; color:#F5F5F5; }
.hwh-stats dd.hot { color:#F7931A; }
.hwh-art figcaption { padding:0 18px 16px; font-size:.8rem; color:#A1A1A6; line-height:1.5; }

@keyframes hwhPulse { 50% { transform:scale(1.45); opacity:.55; } }
@keyframes hwhOut { 0% { left:0; opacity:0; } 12% { opacity:1; } 80% { opacity:1; } 100% { left:100%; opacity:0; } }
@keyframes hwhIn { 0% { left:100%; opacity:0; } 12% { opacity:1; } 80% { opacity:1; } 100% { left:0; opacity:0; } }
@keyframes hwhTap { 0% { transform:scale(.4); opacity:.9; } 100% { transform:scale(3.2); opacity:0; } }
@keyframes hwhShake { 25% { transform:rotate(-12deg); } 75% { transform:rotate(12deg); } }

/* Secciones: tarjetas con profundidad, numeración de fondo y acento naranja */
html body .hal.hw-main { max-width:860px; }
html body .hw-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 .hw-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 .hw-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 .hw-main .hal-block > * { position:relative; z-index:1; }
html body .hw-main .hal-block[data-n] > h2 { padding-right:96px; }
html body .hw-main .hal-block h2 { font-size:clamp(1.35rem,2.2vw,1.65rem); letter-spacing:-.01em; }
html body .hw-main .hal-block p { color:#B9B9BE; }
html body .hw-main .hw-fig { background:#050505; border-color:rgba(255,255,255,.1); box-shadow:inset 0 1px 0 rgba(255,255,255,.06); }
@media (hover:hover) { html body .hw-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); } }
/* Bloques destacados: qué protege (verde), riesgos (rojo) y checklist (naranja) */
html body .hw-main .hal-block#protege { border-color:rgba(63,211,122,.28); background-image:radial-gradient(120% 140% at 0% 0%,rgba(63,211,122,.09),rgba(63,211,122,0) 50%),linear-gradient(160deg,rgba(255,255,255,.045),rgba(255,255,255,.008) 55%); }
html body .hw-main .hal-block#protege::after { background:#3fd37a; box-shadow:0 0 14px rgba(63,211,122,.7); }
html body .hw-main .hal-block#protege[data-n]::before { -webkit-text-stroke-color:rgba(63,211,122,.32); }
html body .hw-main .hal-block#riesgos { border-color:rgba(239,68,68,.28); background-image:radial-gradient(120% 140% at 0% 0%,rgba(239,68,68,.08),rgba(239,68,68,0) 50%),linear-gradient(160deg,rgba(255,255,255,.045),rgba(255,255,255,.008) 55%); }
html body .hw-main .hal-block#riesgos::after { background:#ef4444; box-shadow:0 0 14px rgba(239,68,68,.6); }
html body .hw-main .hal-block#riesgos[data-n]::before { -webkit-text-stroke-color:rgba(239,68,68,.32); }
html body .hw-main .hal-block#checklist { 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 .hw-main .pf-step { border-radius:16px; background:linear-gradient(160deg,rgba(255,255,255,.035),rgba(255,255,255,0) 60%),#070707; box-shadow:inset 0 1px 0 rgba(255,255,255,.05); transition:border-color .3s,transform .3s; }
@media (hover:hover) { html body .hw-main .pf-step:hover { transform:translateY(-3px); border-color:rgba(247,147,26,.45); } }
html body .hw-main .sat-wrap { border-radius:14px; border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.02); }
html body .hw-main .sat-tab tbody tr { transition:background .25s; }
html body .hw-main .sat-tab tbody tr:hover { background:rgba(247,147,26,.05); }
/* FAQ y enlaces */
html body .hw-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 .hw-main .faq-item[open] { border-color:rgba(247,147,26,.35); background:rgba(247,147,26,.05); }
html body .hw-main .faq-item summary { list-style:none; padding:16px 34px 16px 0; position:relative; cursor:pointer; }
html body .hw-main .faq-item summary::-webkit-details-marker { display:none; }
html body .hw-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 .hw-main .faq-item[open] summary::after { transform:translateY(-50%) rotate(45deg); }
html body .hw-main .faq-item p { margin:0; padding-bottom:16px; }
html body .hw-main .hal-links { grid-template-columns:repeat(2,minmax(0,1fr)); }
html body .hw-main .hal-links li { margin:0; }
html body .hw-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 .hw-main .hal-links a::after { content:'→'; color:#F7931A; transition:transform .3s; }
html body .hw-main .hal-links a:hover { border-color:rgba(247,147,26,.45); background:rgba(247,147,26,.07); transform:translateY(-2px); }
html body .hw-main .hal-links a:hover::after { transform:translateX(3px); }

@media (max-width:900px) {
  html body .page-hero.hwh-hero { grid-template-columns:minmax(0,1fr); gap:34px; padding:108px 20px 56px; }
  html body .page-hero.hwh-hero::before { width:100%; right:0; top:34%; height:66%; }
}
@media (max-width:600px) {
  html body .hw-main .hal-block { padding:26px 20px 22px; }
  html body .hw-main .hal-block::after { left:20px; }
  html body .hw-main .hal-block[data-n]::before { font-size:3.6rem; right:14px; top:12px; }
  html body .hw-main .hal-block[data-n] > h2 { padding-right:62px; }
  html body .hw-main .hal-links { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:520px) {
  .hwh-top { padding-left:14px; gap:8px; font-size:.66rem; }
  .hwh-stage { padding:20px 12px 4px; gap:16px; }
  .hwh-row { grid-template-columns:minmax(0,.8fr) minmax(40px,.38fr) minmax(0,1.15fr); }
  .hwh-pc { padding:14px 6px 10px; }
  .hwh-ic { width:42px; height:42px; border-radius:13px; }
  .hwh-ic svg { width:20px; height:20px; }
  .hwh-pc b { font-size:.72rem; }
  .hwh-pc small { font-size:.58rem; }
  .hwh-dev { padding:26px 9px 9px; border-radius:20px; gap:8px; }
  .hwh-scr { padding:9px 8px 8px; }
  .hwh-amt { font-size:.88rem; }
  .hwh-to { font-size:.64rem; }
  .hwh-vault { padding:7px 7px; gap:7px; }
  .hwh-vault svg { width:18px; height:18px; }
  .hwh-vault b { font-size:.62rem; }
  .hwh-vault small { font-size:.6rem; }
  .hwh-pkt { font-size:.54rem; padding:3px 5px; }
  .hwh-steps { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  .hwh-steps li { font-size:.7rem; padding:7px 8px; }
  html body .page-hero.hwh-hero .hwh-status { font-size:.8rem; }
  .hwh-stats div { padding:12px 10px; }
  .hwh-stats dt { font-size:.58rem; letter-spacing:.03em; }
  .hwh-stats dd { font-size:.82rem; }
}
@media (prefers-reduced-motion:reduce) {
  .hwh-live, .hwh-dot, .hwh-art.js .hwh-pkt, .hwh-art.js .hwh-tap, .hwh-art.js .hwh-vault svg { animation:none!important; }
  .hwh-pc, .hwh-log i, .hwh-scr, .hwh-to em, .hwh-ok, .hwh-vault, .hwh-steps li, .hwh-steps i,
  html body .hw-main .hal-block, html body .hw-main .pf-step, html body .hw-main .hal-links a, html body .hw-main .hal-links a::after, html body .hw-main .faq-item, html body .hw-main .faq-item summary::after { transition:none!important; }
  html body .hw-main .hal-links a:hover, html body .hw-main .pf-step:hover { transform:none; }
  .hwh-art .hwh-pkt.in { opacity:1; }
}
