/* Rediseño 2026-11-24: cabecera «la PSBT que viaja» (monedero de vigilancia → Trezor firma → se combina → se emite)
   con los campos del BIP 174 que se van rellenando, y secciones con profundidad, en la línea de coinbase.html y timelock.html. */
html body .page-hero.px-hero { max-width:1200px; margin:0 auto; min-height:0; display:grid; grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr); gap:52px; align-items:center; text-align:left; padding:132px 24px 84px; isolation:isolate; }
html body .page-hero.px-hero::after { display:none; }
html body .page-hero.px-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.px-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.px-hero h1 span { -webkit-text-fill-color:#F7931A; }
html body .page-hero.px-hero > .px-text > p { margin:0; max-width:34em; font-size:clamp(1.02rem,1.3vw,1.15rem); }
.px-chips { display:flex; flex-wrap:wrap; gap:10px; margin:28px 0 0; list-style:none; padding:0; }
.px-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; }
.px-chips svg { width:16px; height:16px; flex:none; stroke:#F7931A; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.px-chips li:nth-child(3) svg { stroke:#4ADE80; }
.px-chips code { font:600 .8rem/1 'JetBrains Mono',monospace; color:#F5C58A; }
.px-chips li.lnk { padding:0; border-color:rgba(247,147,26,.45); background:rgba(247,147,26,.08); }
.px-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; }
.px-chips li.lnk a:hover { background:rgba(247,147,26,.14); }
.px-chips li.lnk a:focus-visible, .px-play:focus-visible { outline:2px solid #F7931A; outline-offset:2px; }

/* Tarjeta animada */
.px-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; }
.px-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; }
.px-live { width:8px; height:8px; border-radius:50%; background:#F7931A; box-shadow:0 0 8px #F7931A; animation:pxPulse 2s ease-in-out infinite; flex:none; }
.px-art.paused .px-live, .px-art.still .px-live { animation:none; opacity:.5; }
.px-rate { margin-left:auto; color:#F7931A; white-space:nowrap; }
.px-sr { position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.px-k { font-size:.64rem; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:#A1A1A6; }

/* Rail con las cuatro paradas */
.px-rail { position:relative; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:18px 10px 12px; }
.px-line { position:absolute; left:12.5%; right:12.5%; top:40px; height:2px; border-radius:2px; background:rgba(255,255,255,.1); }
.px-line::after { content:''; position:absolute; inset:0; background:linear-gradient(90deg,#F7931A,#FFD29A); box-shadow:0 0 10px #F7931A; transform:scaleX(var(--p,0)); transform-origin:0 50%; }
.px-art.sent .px-line::after { background:linear-gradient(90deg,#F7931A,#4ADE80); }
.px-tok { position:absolute; top:29px; left:calc(12.5% + 75% * var(--p,0)); transform:translateX(-50%); z-index:2; font:700 .56rem/1 'JetBrains Mono',monospace; color:#000; background:#F7931A; padding:5px 6px 4px; border-radius:5px; box-shadow:0 0 0 3px #050505,0 0 18px rgba(247,147,26,.8); letter-spacing:.04em; opacity:var(--tv,1); transition:background-color .4s,box-shadow .4s; }
.px-tok::before { content:''; position:absolute; right:0; top:0; border-width:0 5px 5px 0; border-style:solid; border-color:transparent #050505 rgba(0,0,0,.35) transparent; }
.px-art.sent .px-tok { background:#4ADE80; box-shadow:0 0 0 3px #050505,0 0 18px rgba(74,222,128,.7); }
.px-st { position:relative; display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; min-width:0; }
.px-ic { position:relative; z-index:1; width:46px; height:46px; border-radius:14px; display:flex; align-items:center; justify-content:center; gap:2px; border:1px solid rgba(255,255,255,.14); background:linear-gradient(165deg,rgba(255,255,255,.08),rgba(255,255,255,.01)),#0b0b0b; color:#A1A1A6; transition:border-color .4s,color .4s,box-shadow .4s,transform .4s; }
.px-ic svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.px-ic.two svg { width:17px; height:17px; }
.px-ic.two svg + svg { transition:color .4s; }
.px-st b { font-size:.78rem; color:#D0D0D3; font-weight:700; line-height:1.2; }
.px-st small { font-size:.68rem; color:#A1A1A6; line-height:1.25; }
.px-st.done .px-ic { border-color:rgba(247,147,26,.45); color:#F5C58A; }
.px-st.cur .px-ic { border-color:#F7931A; color:#F7931A; box-shadow:0 0 22px -4px rgba(247,147,26,.65); transform:translateY(-2px); }
.px-st.cur b { color:#F5F5F5; }
.px-art.sent .px-st.cur .px-ic { border-color:#4ADE80; color:#4ADE80; box-shadow:0 0 22px -4px rgba(74,222,128,.6); }
.px-ic.two .a, .px-ic.two .b { color:inherit; }
.px-art.sigA .px-ic.two .a, .px-art.sigB .px-ic.two .b { color:#4ADE80; }

/* La PSBT por dentro */
.px-doc { margin:4px 18px 14px; border-radius:16px; border:1px solid rgba(255,255,255,.1); background:linear-gradient(160deg,rgba(255,255,255,.05),rgba(255,255,255,0) 60%),#080808; box-shadow:inset 0 1px 0 rgba(255,255,255,.07); overflow:hidden; transition:border-color .5s; }
.px-art.sent .px-doc { border-color:rgba(74,222,128,.4); }
.px-dh { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:11px 14px; border-bottom:1px solid rgba(255,255,255,.08); }
.px-file { font:600 .78rem/1 'JetBrains Mono',monospace; color:#F5F5F5; }
.px-magic { font:500 .7rem/1 'JetBrains Mono',monospace; color:#A1A1A6; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; flex:1; }
.px-magic b { color:#F7931A; font-weight:600; }
.px-pill { margin-left:auto; font:700 .6rem/1 'Archivo',sans-serif; letter-spacing:.08em; text-transform:uppercase; padding:5px 9px; border-radius:999px; border:1px solid rgba(255,255,255,.18); color:#D0D0D3; white-space:nowrap; transition:border-color .4s,color .4s,background-color .4s; }
.px-art.s1 .px-pill, .px-art.s2 .px-pill, .px-art.s3 .px-pill { border-color:rgba(247,147,26,.6); color:#F7931A; background:rgba(247,147,26,.1); }
.px-art.sent .px-pill { border-color:rgba(74,222,128,.55); color:#4ADE80; background:rgba(34,197,94,.1); }
.px-maps { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px; padding:12px 14px 4px; }
.px-col { display:flex; flex-direction:column; gap:10px; min-width:0; }
.px-map { display:flex; flex-direction:column; gap:5px; min-width:0; }
.px-map > .px-k { display:flex; justify-content:space-between; gap:6px; }
.px-map > .px-k i { font-style:normal; font-weight:500; letter-spacing:0; text-transform:none; color:#8A8A90; font-family:'JetBrains Mono',monospace; }
.px-f { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:2px 8px; padding:6px 9px; border-radius:9px; border:1px dashed rgba(255,255,255,.14); background:rgba(255,255,255,.015); min-width:0; transition:border-color .45s,background-color .45s,opacity .45s; }
.px-f code { font:500 .62rem/1.3 'JetBrains Mono',monospace; color:#8A8A90; overflow-wrap:anywhere; transition:color .45s; }
.px-f code em { font-style:normal; color:#A1A1A6; margin-right:5px; transition:color .45s; }
.px-f span { font:500 .7rem/1.3 'JetBrains Mono',monospace; color:#F5F5F5; opacity:0; transform:translateX(6px); transition:opacity .45s,transform .45s; text-align:right; margin-left:auto; }
.px-f.on { border-style:solid; border-color:rgba(247,147,26,.32); background:rgba(247,147,26,.06); }
.px-f.on code { color:#D0D0D3; }
.px-f.on code em { color:#F7931A; }
.px-f.on span { opacity:1; transform:none; }
.px-f.sig.on { border-color:rgba(74,222,128,.45); background:rgba(34,197,94,.08); }
.px-f.sig.on span { color:#4ADE80; }
.px-f.fin.on { border-color:#F7931A; box-shadow:0 0 18px -6px rgba(247,147,26,.6); }
.px-f.gone { opacity:.38; border-style:dashed; border-color:rgba(255,255,255,.12); background:transparent; box-shadow:none; }
.px-f.gone span { opacity:1; transform:none; text-decoration:line-through; color:#A1A1A6; }
.px-f.flash { animation:pxFlash .7s ease-out; }
.px-fee { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:4px 10px; margin:6px 14px 12px; padding:9px 11px; border-radius:11px; border:1px solid rgba(255,255,255,.08); font-size:.72rem; color:#B9B9BE; }
.px-fee b { font:600 .74rem/1.3 'JetBrains Mono',monospace; color:#F5F5F5; font-variant-numeric:tabular-nums; }
.px-fee b i { font-style:normal; color:#F7931A; white-space:nowrap; }
.px-ms { display:block; margin:0 18px 12px; font-size:.82rem; line-height:1.45; color:#D0D0D3; min-height:2.9em; }
.px-ms b { color:#F7931A; font-weight:700; }
.px-foot { display:flex; align-items:flex-start; gap:14px; padding:0 18px 16px; }
.px-foot figcaption { flex:1; font-size:.8rem; color:#A1A1A6; line-height:1.5; }
.px-play { flex:none; 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; }
.px-play:hover { border-color:rgba(247,147,26,.5); color:#F5F5F5; }
.px-play .r, .px-art.paused .px-play .p { display:none; }
.px-art.paused .px-play .r { display:inline; }
.px-art:not(.js) .px-play, .px-art.still .px-play { display:none; }
@keyframes pxPulse { 0%,100% { opacity:1; } 50% { opacity:.35; } }
@keyframes pxFlash { 0% { box-shadow:0 0 0 0 rgba(247,147,26,.7); } 100% { box-shadow:0 0 0 8px rgba(247,147,26,0); } }

/* Secciones con profundidad */
html body .hal.px-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.px-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,#4ADE80); box-shadow:0 0 14px rgba(247,147,26,.6); }
html body .hal.px-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.px-main .hal-block > * { position:relative; z-index:1; }
html body .hal.px-main .hal-block[data-n] > h2 { padding-right:96px; }
html body .hal.px-main .hal-block h2 { font-size:clamp(1.35rem,2.2vw,1.65rem); letter-spacing:-.01em; }
html body .hal.px-main .hal-block > p { color:#B9B9BE; }
@media (hover:hover) { html body .hal.px-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.px-main .hal-block.cl-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.px-main .hal-block.cl-sum p { color:#D2D2D6; }
html body .hal.px-main .sat-wrap { border-radius:14px; border:1px solid 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,.06); padding:4px 14px; }
html body .hal.px-main .sat-tab tr:last-child td { border-bottom:0; }
html body .hal.px-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.px-main .pf-step:nth-child(3) { 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.px-main .pf-step:hover { border-color:rgba(247,147,26,.45); transform:translateY(-2px); } }
html body .hal.px-main .pf-hex { 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.px-main .pf-note { border-radius:14px; background:linear-gradient(160deg,rgba(247,147,26,.1),rgba(247,147,26,.03) 60%); }
html body .hal.px-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.px-main .faq-item[open] { border-color:rgba(247,147,26,.35); background:rgba(247,147,26,.05); }
html body .hal.px-main .faq-item summary { list-style:none; padding:16px 34px 16px 0; position:relative; }
html body .hal.px-main .faq-item summary::-webkit-details-marker { display:none; }
html body .hal.px-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.px-main .faq-item[open] summary::after { transform:translateY(-50%) rotate(45deg); }
html body .hal.px-main .faq-item p { margin:0; padding-bottom:16px; }
html body .hal.px-main .hal-links { grid-template-columns:repeat(2,minmax(0,1fr)); padding:0; }
html body .hal.px-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.px-main .hal-links a::after { content:'→'; color:#F7931A; transition:transform .3s; }
html body .hal.px-main .hal-links a:hover { border-color:rgba(247,147,26,.45); background:rgba(247,147,26,.07); transform:translateY(-2px); }
html body .hal.px-main .hal-links a:hover::after { transform:translateX(3px); }

@media (max-width:900px) {
    html body .page-hero.px-hero { grid-template-columns:minmax(0,1fr); gap:34px; padding:108px 20px 56px; }
    html body .page-hero.px-hero::before { width:100%; right:0; top:34%; height:66%; }
}
@media (max-width:600px) {
    html body .hal.px-main .hal-block { padding:26px 20px 22px; }
    html body .hal.px-main .hal-block::after { left:20px; }
    html body .hal.px-main .hal-block[data-n]::before { font-size:3.6rem; right:14px; top:12px; }
    html body .hal.px-main .hal-block[data-n] > h2 { padding-right:62px; }
    html body .hal.px-main .hal-links { grid-template-columns:minmax(0,1fr); }
    html body .hal.px-main .sat-wrap { padding:2px 8px; }
}
@media (max-width:560px) {
    .px-top .px-rate { display:none; }
    .px-rail { padding:14px 2px 8px; }
    .px-line { top:35px; }
    .px-tok { top:24px; }
    .px-ic { width:40px; height:40px; border-radius:12px; }
    .px-ic svg { width:19px; height:19px; }
    .px-ic.two svg { width:15px; height:15px; }
    .px-st b { font-size:.7rem; }
    .px-st small { display:none; }
    .px-doc { margin:2px 10px 12px; }
    .px-dh { padding:10px 11px; gap:8px; }
    .px-maps { grid-template-columns:minmax(0,1fr); padding:10px 10px 2px; }
    .px-fee { margin:6px 10px 10px; }
    .px-ms { margin:0 12px 12px; font-size:.8rem; }
    .px-foot { padding:0 12px 14px; flex-direction:column; gap:10px; }
}
@media (prefers-reduced-motion:reduce) {
    .px-live, .px-f.flash { animation:none; }
    .px-ic, .px-tok, .px-f, .px-f code, .px-f code em, .px-f span, .px-doc, .px-pill,
    html body .hal.px-main .hal-block, html body .hal.px-main .pf-step, html body .hal.px-main .hal-links a, html body .hal.px-main .hal-links a::after, html body .hal.px-main .faq-item, html body .hal.px-main .faq-item summary::after { transition:none!important; }
    html body .hal.px-main .hal-links a:hover, html body .hal.px-main .pf-step:hover { transform:none; }
}
.px-art:not(.js) .px-f span { opacity:1; transform:none; }
