/* Rediseño 2026-11-26: cabecera «el saldo que es una promesa» (en el exchange tienes un pagaré firmado por la empresa;
   la promesa puede fallar; al retirar, la clave pasa a ser tuya) y secciones con profundidad, en la línea de hash.html y psbt.html. */
html body .page-hero.exh-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.exh-hero::after { display:none; }
html body .page-hero.exh-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.exh-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.exh-hero h1 span { -webkit-text-fill-color:#F7931A; }
html body .page-hero.exh-hero > .exh-text > p { margin:0; max-width:34em; font-size:clamp(1.02rem,1.3vw,1.15rem); }
.exh-chips { display:flex; flex-wrap:wrap; gap:10px; margin:28px 0 0; list-style:none; padding:0; }
.exh-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; }
.exh-chips svg, .exh-own svg { width:16px; height:16px; flex:none; stroke:#F7931A; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.exh-chips li.lnk { padding:0; border-color:rgba(247,147,26,.45); background:rgba(247,147,26,.08); }
.exh-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; }
.exh-chips li.lnk a:hover { background:rgba(247,147,26,.14); }
.exh-chips li.lnk a:focus-visible, .exh-btn:focus-visible { outline:2px solid #F7931A; outline-offset:2px; }

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

.exh-stage { display:grid; grid-template-columns:minmax(0,1fr) 62px minmax(0,1fr); align-items:stretch; gap:0; padding:18px 18px 4px; }
.exh-side { position:relative; display:flex; flex-direction:column; gap:12px; padding:14px; border-radius:18px; 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),0 18px 36px -22px rgba(0,0,0,.95); transition:border-color .5s,box-shadow .5s,opacity .5s; }
.exh-sh { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 10px; }
.exh-own { display:inline-flex; align-items:center; gap:6px; padding:4px 8px; border-radius:999px; border:1px solid rgba(255,255,255,.12); font:500 .66rem/1 'JetBrains Mono',monospace; color:#B9B9BE; white-space:nowrap; }
.exh-own svg { width:13px; height:13px; }
.exh-ex .exh-own svg { stroke:#A1A1A6; }
html body .page-hero .exh-note { margin:0; max-width:none; font-size:.8rem; font-weight:400; line-height:1.4; text-align:left; color:#B9B9BE; min-height:2.3em; }

/* El pagaré */
.exh-pile { position:relative; height:168px; }
.exh-iou { position:absolute; left:6%; right:6%; top:10px; height:142px; border-radius:10px; background:linear-gradient(180deg,#F4ECDC,#E6DAC2); box-shadow:0 14px 26px -12px rgba(0,0,0,.9); transition:transform .7s cubic-bezier(.3,.8,.3,1),opacity .6s,filter .6s; }
.exh-iou.back { opacity:.38; padding:34px 16px 0; display:flex; flex-direction:column; gap:10px; }
.exh-iou.back i { display:block; height:5px; border-radius:3px; background:rgba(60,40,10,.35); }
.exh-iou.back i:nth-child(2) { width:70%; } .exh-iou.back i:nth-child(3) { width:45%; }
.exh-iou.b2 { transform:translate(-7px,-8px) rotate(-7deg); opacity:.22; }
.exh-iou.b1 { transform:translate(6px,-4px) rotate(5deg); }
.exh-iou.front { padding:12px 14px; color:#2A1F10; border:1px solid rgba(120,80,20,.35); }
.exh-iou.front::before { content:''; position:absolute; inset:5px; border:1px dashed rgba(120,80,20,.4); border-radius:7px; pointer-events:none; }
.exh-iou-h { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; font:900 .92rem/1 'Archivo',sans-serif; letter-spacing:.16em; text-transform:uppercase; font-stretch:115%; }
.exh-iou-n { display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:#F7931A; color:#000; font-size:.8rem; letter-spacing:0; }
.exh-iou dl { display:grid; grid-template-columns:auto minmax(0,1fr); gap:5px 10px; margin:0; font-size:.74rem; line-height:1.15; }
.exh-iou dt { font:600 .6rem/1.5 'JetBrains Mono',monospace; letter-spacing:.06em; text-transform:uppercase; color:#5E4A2C; }
.exh-iou dd { margin:0; font-weight:700; color:#2A1F10; border-bottom:1px solid rgba(90,60,20,.25); padding-bottom:2px; overflow-wrap:anywhere; }
.exh-iou dd.exh-sig { font-style:italic; font-weight:600; font-family:Georgia,'Times New Roman',serif; font-size:.86rem; }
.exh-stamp { position:absolute; right:8px; bottom:12px; padding:5px 10px; border:3px double #B3261E; border-radius:6px; color:#B3261E; font:900 .8rem/1 'Archivo',sans-serif; letter-spacing:.12em; text-transform:uppercase; transform:rotate(-12deg) scale(1.9); opacity:0; background:rgba(244,236,220,.7); transition:transform .32s cubic-bezier(.5,1.6,.6,1),opacity .2s; pointer-events:none; }
.exh-stamp > span { display:none; } .exh-stamp > span.on { display:inline; }

/* El camino de la retirada */
.exh-path { position:relative; display:flex; align-items:center; justify-content:center; }
.exh-line { position:absolute; left:6px; right:6px; top:50%; height:2px; background:repeating-linear-gradient(90deg,rgba(247,147,26,.55) 0 6px,transparent 6px 11px); opacity:.35; transition:opacity .5s; }
.exh-coin { position:absolute; left:0; top:50%; width:26px; height:26px; margin-top:-13px; border-radius:50%; display:grid; place-items:center; background:radial-gradient(circle at 35% 30%,#FFD08A,#F7931A 55%,#A35500); color:#000; font:800 .8rem/1 'Archivo',sans-serif; box-shadow:0 0 18px rgba(247,147,26,.7); opacity:0; }
.exh-pl { position:absolute; top:calc(50% + 18px); left:50%; transform:translateX(-50%); width:58px; text-align:center; font:500 .58rem/1.25 'JetBrains Mono',monospace; color:#A1A1A6; }

/* Tu wallet */
.exh-safe { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; height:168px; border-radius:12px; border:1px dashed rgba(255,255,255,.14); background:radial-gradient(90% 90% at 50% 40%,rgba(255,255,255,.04),transparent 70%); transition:border-color .5s,background .5s; }
.exh-bigkey { width:58%; max-width:130px; color:#5A5A5F; transition:color .6s,filter .6s,transform .7s cubic-bezier(.3,1.4,.5,1); transform:rotate(-8deg); }
.exh-utxo { display:inline-flex; align-items:center; gap:8px; padding:6px 12px 6px 6px; border-radius:999px; border:1px solid rgba(247,147,26,.5); background:rgba(247,147,26,.1); font:600 .7rem/1 'JetBrains Mono',monospace; color:#F5C58A; opacity:0; transform:translateY(8px) scale(.9); transition:opacity .5s .5s,transform .5s .5s; }
.exh-utxo b { display:grid; place-items:center; width:22px; height:22px; border-radius:50%; background:#F7931A; color:#000; font-family:'Archivo',sans-serif; }
html body .exh-you .exh-note .on, html body .exh-art[data-step="2"] .exh-you .exh-note .off { display:none; }
html body .exh-art[data-step="2"] .exh-you .exh-note .on { display:inline; color:#F5F5F5; }

/* Paso 0: el saldo */
.exh-art[data-step="0"] .exh-ex { border-color:rgba(247,147,26,.45); box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 0 34px -12px rgba(247,147,26,.4); }
.exh-art[data-step="0"] .exh-iou.front { transform:translateY(-4px) rotate(-1.5deg); }
.exh-art[data-step="0"] .exh-you, .exh-art[data-step="1"] .exh-you { opacity:.72; }
/* Paso 1: la promesa falla */
.exh-art[data-step="1"] .exh-ex { border-color:rgba(255,110,96,.6); border-style:dashed; box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 0 34px -12px rgba(255,90,70,.45); }
.exh-art[data-step="1"] .exh-stamp { opacity:1; transform:rotate(-12deg) scale(1); }
.exh-art[data-step="1"] .exh-iou.front { animation:exhShake .45s .12s ease-out; }
@keyframes exhShake { 25% { transform:translateX(-4px) rotate(-1deg); } 50% { transform:translateX(3px) rotate(.6deg); } 75% { transform:translateX(-2px); } }
/* Paso 2: retiras */
.exh-art[data-step="2"] .exh-iou.front { transform:translate(-6%,26px) rotate(-10deg) scale(.92); opacity:.28; filter:grayscale(1); }
.exh-art[data-step="2"] .exh-iou.back { opacity:.1; }
.exh-art[data-step="2"] .exh-line { opacity:1; }
.exh-art[data-step="2"] .exh-coin { animation:exhTravel 1.1s .15s cubic-bezier(.5,0,.3,1) both; }
@keyframes exhTravel { 0% { left:0; opacity:0; } 15% { opacity:1; } 85% { opacity:1; } 100% { left:calc(100% - 26px); opacity:0; } }
.exh-art[data-step="2"] .exh-you { opacity:1; border-color:rgba(247,147,26,.6); box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 0 40px -10px rgba(247,147,26,.5); }
.exh-art[data-step="2"] .exh-safe { border-color:rgba(247,147,26,.4); background:radial-gradient(90% 90% at 50% 40%,rgba(247,147,26,.14),transparent 70%); }
.exh-art[data-step="2"] .exh-bigkey { color:#F7931A; filter:drop-shadow(0 0 12px rgba(247,147,26,.55)); transform:rotate(0); }
.exh-art[data-step="2"] .exh-utxo { opacity:1; transform:none; }
.exh-art[data-step="2"] .exh-you .exh-own { border-color:rgba(247,147,26,.5); color:#F5C58A; }

/* Pasos */
.exh-steps { list-style:none; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:14px 18px 0; padding:0; }
.exh-steps li { position:relative; overflow:hidden; display:flex; align-items:center; gap:8px; padding:9px 10px 11px; border-radius:12px; border:1px solid rgba(255,255,255,.09); background:rgba(255,255,255,.03); font-size:.76rem; line-height:1.25; color:#A1A1A6; transition:border-color .4s,color .4s,background .4s; }
.exh-art.js .exh-steps li { cursor:pointer; }
.exh-steps b { flex:none; display:grid; place-items:center; width:22px; height:22px; border-radius:7px; border:1px solid rgba(255,255,255,.16); font:600 .7rem/1 'JetBrains Mono',monospace; color:#C9C9CE; }
.exh-steps li::after { content:''; position:absolute; left:0; bottom:0; height:2px; width:0; background:#F7931A; }
.exh-art[data-step="0"] .exh-steps li[data-s="0"], .exh-art[data-step="1"] .exh-steps li[data-s="1"], .exh-art[data-step="2"] .exh-steps li[data-s="2"] { border-color:rgba(247,147,26,.5); background:rgba(247,147,26,.08); color:#F5F5F5; }
.exh-art[data-step="0"] .exh-steps li[data-s="0"] b, .exh-art[data-step="1"] .exh-steps li[data-s="1"] b, .exh-art[data-step="2"] .exh-steps li[data-s="2"] b { background:#F7931A; border-color:#F7931A; color:#000; }
.exh-art.run[data-step="0"] .exh-steps li[data-s="0"]::after, .exh-art.run[data-step="1"] .exh-steps li[data-s="1"]::after, .exh-art.run[data-step="2"] .exh-steps li[data-s="2"]::after { animation:exhBar var(--exh-d,3.6s) linear forwards; }
@keyframes exhBar { to { width:100%; } }

.exh-foot { display:flex; align-items:flex-start; gap:14px; padding:14px 18px 16px; }
.exh-foot figcaption { flex:1; font-size:.8rem; color:#A1A1A6; line-height:1.5; }
.exh-btns { flex:none; display:flex; gap:8px; }
.exh-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; }
.exh-btn:hover { border-color:rgba(247,147,26,.5); color:#F5F5F5; }
.exh-play .r, .exh-art.paused .exh-play .p { display:none; }
.exh-art.paused .exh-play .r { display:inline; }
.exh-art:not(.js) .exh-btns, .exh-art.still .exh-play { display:none; }

/* Secciones con profundidad */
html body .hal.exh-main .hal-block { position:relative; 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.exh-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.exh-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.exh-main .hal-block > * { position:relative; z-index:1; }
html body .hal.exh-main .hal-block[data-n] > h2, html body .hal.exh-main .hal-block[data-n] > .xt-label { padding-right:96px; }
html body .hal.exh-main .hal-block h2 { font-size:clamp(1.35rem,2.2vw,1.65rem); letter-spacing:-.01em; }
@media (hover:hover) { html body .hal.exh-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.exh-main .hal-block:first-child { border-color:rgba(247,147,26,.35); background-image:radial-gradient(120% 140% at 0% 0%,rgba(247,147,26,.13),rgba(247,147,26,0) 55%); }
html body .hal.exh-main .hal-scroll { border-radius:14px; border:1px solid rgba(255,255,255,.08); 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); padding:4px 14px; }
html body .hal.exh-main .ex-steps li { 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; }
@media (hover:hover) { html body .hal.exh-main .ex-steps li:hover { border-color:rgba(247,147,26,.45); transform:translateY(-2px); } }
html body .hal.exh-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.exh-main .faq-item[open] { border-color:rgba(247,147,26,.35); background:rgba(247,147,26,.05); }
html body .hal.exh-main .faq-item summary { list-style:none; padding:16px 34px 16px 0; position:relative; }
html body .hal.exh-main .faq-item summary::-webkit-details-marker { display:none; }
html body .hal.exh-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.exh-main .faq-item[open] summary::after { transform:translateY(-50%) rotate(45deg); }
html body .hal.exh-main .faq-item p { margin:0; padding-bottom:16px; }
html body .hal.exh-main .hal-links { grid-template-columns:repeat(2,minmax(0,1fr)); padding:0; }
html body .hal.exh-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.exh-main .hal-links a::after { content:'→'; color:#F7931A; transition:transform .3s; }
html body .hal.exh-main .hal-links a:hover { border-color:rgba(247,147,26,.45); background:rgba(247,147,26,.07); transform:translateY(-2px); }
html body .hal.exh-main .hal-links a:hover::after { transform:translateX(3px); }

@media (max-width:900px) {
    html body .page-hero.exh-hero { grid-template-columns:minmax(0,1fr); gap:34px; padding:108px 20px 56px; }
    html body .page-hero.exh-hero::before { width:100%; right:0; top:34%; height:66%; }
}
@media (max-width:600px) {
    html body .hal.exh-main .hal-block { padding:26px 20px 22px; }
    html body .hal.exh-main .hal-block::after { left:20px; }
    html body .hal.exh-main .hal-block[data-n]::before { font-size:3.6rem; right:14px; top:12px; }
    html body .hal.exh-main .hal-block[data-n] > h2, html body .hal.exh-main .hal-block[data-n] > .xt-label { padding-right:62px; }
    html body .hal.exh-main .hal-links { grid-template-columns:minmax(0,1fr); }
    html body .hal.exh-main .hal-scroll { padding:0 12px; }
}
@media (max-width:560px) {
    .exh-top { padding:12px 14px; }
    .exh-stage { grid-template-columns:minmax(0,1fr); padding:14px 12px 2px; }
    .exh-pile { height:150px; }
    .exh-safe { height:124px; gap:10px; }
    .exh-iou { height:128px; left:8%; right:8%; }
    .exh-path { height:58px; }
    .exh-line { left:50%; right:auto; top:6px; bottom:6px; width:2px; height:auto; margin-left:-1px; background:repeating-linear-gradient(180deg,rgba(247,147,26,.55) 0 6px,transparent 6px 11px); }
    .exh-coin { left:50%; top:0; margin:0 0 0 -13px; }
    .exh-pl { top:50%; left:calc(50% + 14px); transform:translateY(-50%); width:auto; text-align:left; font-size:.66rem; }
    @keyframes exhTravel { 0% { top:0; opacity:0; } 15% { opacity:1; } 85% { opacity:1; } 100% { top:calc(100% - 26px); opacity:0; } }
    .exh-bigkey { width:42%; }
    .exh-steps { margin:12px 12px 0; gap:6px; }
    .exh-steps li { flex-direction:column; align-items:flex-start; gap:6px; font-size:.72rem; padding:8px 8px 10px; }
    .exh-foot { padding:12px 12px 14px; flex-direction:column; gap:10px; }
}
@media (prefers-reduced-motion:reduce) {
    .exh-live, .exh-art .exh-iou.front, .exh-art .exh-coin, .exh-steps li::after { animation:none!important; }
    .exh-iou, .exh-stamp, .exh-side, .exh-safe, .exh-bigkey, .exh-utxo, .exh-line, .exh-steps li,
    html body .hal.exh-main .hal-block, html body .hal.exh-main .ex-steps li, html body .hal.exh-main .hal-links a, html body .hal.exh-main .hal-links a::after, html body .hal.exh-main .faq-item, html body .hal.exh-main .faq-item summary::after { transition:none!important; }
    html body .hal.exh-main .hal-links a:hover, html body .hal.exh-main .ex-steps li:hover { transform:none; }
}
