/* Rediseño 2026-11-30 (explorador.html): cabecera «la lupa que encuentra tu transacción».
   Escribes un txid, la lupa recorre la cadena y el mempool, lo descubre sin confirmar y lo sigue
   hasta el bloque que lo confirma y los 5 que llegan encima. Secciones con más profundidad, en la
   línea de mineria.html y guarda-btc.html. */

/* ── Cabecera ── */
html body .page-hero.ex-hero.xh { max-width:1220px; grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr); padding:128px 24px 80px; }
html body .page-hero.ex-hero.xh::before { right:0; top:40px; width:100%; height:calc(100% - 40px); background:radial-gradient(46% 60% at 74% 52%,rgba(247,147,26,.16),transparent 72%), linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px) 0 0/56px 56px, linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px) 0 0/56px 56px; -webkit-mask-image:radial-gradient(80% 85% at 60% 50%,#000 30%,transparent 80%); mask-image:radial-gradient(80% 85% at 60% 50%,#000 30%,transparent 80%); }
.xh-kicker { display:inline-flex; align-items:center; gap:10px; padding:7px 16px; border:1px solid rgba(255,255,255,.16); border-radius:999px; background:rgba(255,255,255,.03); font-size:.85rem; color:#c9c9ce; }
.xh-dot { width:8px; height:8px; border-radius:50%; background:#F7931A; animation:xhPing 2s infinite; }
@keyframes xhPing { 0% { box-shadow:0 0 0 0 rgba(247,147,26,.6); } 70%,100% { box-shadow:0 0 0 9px rgba(247,147,26,0); } }
html body .page-hero.ex-hero.xh h1 { font-size:clamp(2.2rem,3.5vw,3.25rem); margin:18px 0 22px; line-height:1.04; font-weight:900; letter-spacing:-.03em; font-stretch:110%; background:linear-gradient(180deg,#fff 40%,#F7931A 160%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
html body .page-hero.ex-hero.xh h1 span { -webkit-text-fill-color:#F7931A; }

/* Escenario */
.xh-rig { margin:0; border-radius:24px; border:1px solid rgba(255,255,255,.1); background:linear-gradient(160deg,rgba(255,255,255,.06),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; transition:border-color .5s,box-shadow .5s; }
.xh-rig.ok { border-color:rgba(63,211,122,.45); box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 34px 70px -26px rgba(0,0,0,.95),0 0 80px -18px rgba(63,211,122,.35); }
.xh-bar { 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; }
.xh-led { width:8px; height:8px; border-radius:50%; background:#F7931A; box-shadow:0 0 8px #F7931A; flex:none; animation:xhBlink 1.1s steps(2,jump-none) infinite; }
.xh-rig.ok .xh-led { background:#3fd37a; box-shadow:0 0 8px #3fd37a; animation:none; }
.xh-rig.paused .xh-led { animation:none; opacity:.5; }
@keyframes xhBlink { 50% { opacity:.25; } }
.xh-url { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; letter-spacing:.02em; }
.xh-url b { color:#F7931A; font-weight:600; }
.xh-state { margin-left:auto; flex:none; padding:5px 10px; border-radius:999px; border:1px solid rgba(247,147,26,.45); color:#F7931A; font-size:.68rem; letter-spacing:.06em; text-transform:uppercase; white-space:nowrap; transition:background .4s,color .4s,border-color .4s; }
.xh-rig.wait .xh-state { border-color:rgba(248,113,113,.55); color:#F87171; background:rgba(239,68,68,.12); }
.xh-rig.ok .xh-state { border-color:#3fd37a; background:#3fd37a; color:#000; font-weight:600; }

.xh-stage { padding:12px 12px 4px; transition:opacity .4s; }
.xh-rig.fade .xh-stage { opacity:0; }
.xh-svg { display:block; width:100%; height:auto; overflow:visible; }
.xh-svg text { font-family:'Archivo',sans-serif; }
.xh-q-bg { fill:#0c0c0c; stroke:rgba(247,147,26,.55); stroke-width:1.4; }
.xh-qi { fill:none; stroke:#8E8E94; stroke-width:2; stroke-linecap:round; }
.xh-svg .xh-q { font-family:'JetBrains Mono',monospace; font-size:14px; fill:#F5F5F5; }
.xh-caret { fill:#F7931A; animation:xhBlink 1s steps(2,jump-none) infinite; }
.xh-svg .xh-lbl { font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; fill:#A1A1A6; }
.xh-svg .xh-lbl-r { text-anchor:end; }
.xh-mp { fill:rgba(255,255,255,.02); stroke:rgba(255,255,255,.22); stroke-width:1.2; stroke-dasharray:4 4; }

/* Bloques y transacciones */
.xh-box { fill:#111113; stroke:rgba(255,255,255,.22); stroke-width:1.2; }
.xh-cap { fill:#F7931A; opacity:.75; }
.xh-lnk { stroke:rgba(255,255,255,.28); stroke-width:1.5; }
.xh-blk.mine .xh-box { stroke:#3fd37a; fill:rgba(63,211,122,.07); }
.xh-blk.mine .xh-cap { fill:#3fd37a; opacity:1; }
.xh-svg .xh-h { font-family:'JetBrains Mono',monospace; font-size:11px; fill:#8E8E94; text-anchor:middle; }
.xh-blk.mine .xh-h { fill:#3fd37a; font-weight:600; }
.xh-t.t0 { fill:#2a2a2e; } .xh-t.t1 { fill:#45454b; } .xh-t.t2 { fill:#6b5a44; } .xh-t.t3 { fill:#9a6a2c; }
.xh-me { fill:#45454b; transition:fill .4s; }
.xh-me.found { fill:#F7931A; filter:url(#xhGlow); }

/* Lupa */
.xh-lens-bg { fill:#050505; opacity:var(--grow,0); }
#xhMag { opacity:var(--grow,0); }
.xh-glass { opacity:var(--grow,0); pointer-events:none; }
.xh-ring { fill:none; stroke:#F7931A; stroke-width:2.6; }
.xh-handle { stroke:#F7931A; stroke-width:6; stroke-linecap:round; }
.xh-rig.ok .xh-ring { stroke:#FFB347; }

/* Medidor de confirmaciones */
.xh-seg { fill:rgba(255,255,255,.07); stroke:rgba(255,255,255,.12); transition:fill .45s, stroke .45s; }
.xh-seg.on { fill:#3fd37a; stroke:#3fd37a; }
.xh-svg .xh-num { font-family:'JetBrains Mono',monospace; font-size:11px; fill:#8E8E94; text-anchor:middle; }

/* Lecturas */
.xh-read { margin:0; display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,.8fr) minmax(0,.9fr) minmax(0,1.15fr); border-top:1px solid rgba(255,255,255,.08); }
.xh-read > div { padding:12px 16px; min-width:0; border-right:1px solid rgba(255,255,255,.07); }
.xh-read > div:last-child { border-right:0; }
.xh-read dt { font-size:.68rem; letter-spacing:.05em; text-transform:uppercase; color:#A1A1A6; margin-bottom:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.xh-read dd { margin:0; font:600 .95rem/1.3 'JetBrains Mono',monospace; color:#F5F5F7; font-variant-numeric:tabular-nums; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.xh-read dd small { color:#A1A1A6; font-weight:400; }
.xh-read .xh-id { color:#F7931A; font-size:.82rem; padding-top:2px; }
.xh-rig.ok .xh-read .xh-cf { color:#3fd37a; }
.xh-note { margin:0; padding:12px 18px 15px; border-top:1px solid rgba(255,255,255,.08); font-size:.8rem; line-height:1.55; color:#A1A1A6; }

/* ── Secciones con más profundidad ── */
html body .hal.ex-main .hal-block { transition:border-color .35s, box-shadow .35s; }
html body .hal.ex-main .hal-block::after { background:#F7931A; box-shadow:0 0 14px rgba(247,147,26,.7); }
html body .hal.ex-main .hal-block[data-n]::before { font-size:5.4rem; color:transparent; -webkit-text-stroke:1px rgba(247,147,26,.28); }
@media (hover:hover) {
  html body .hal.ex-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.ex-main .hal-links a { transition:border-color .3s, background .3s, transform .3s; }
  html body .hal.ex-main .hal-links a:hover { transform:translateY(-2px); }
}
/* El txid de ejemplo, con un barrido como el de la lupa */
.ex-main .ex-hex { position:relative; overflow:hidden; }
.ex-main .ex-hex::after { content:''; position:absolute; inset:0; background:linear-gradient(100deg,transparent 30%,rgba(247,147,26,.16) 50%,transparent 70%); transform:translateX(-100%); animation:xhSweep 5s ease-in-out 1s infinite; pointer-events:none; }
@keyframes xhSweep { 0% { transform:translateX(-100%); } 40%,100% { transform:translateX(100%); } }
/* La resta de entradas y salidas como una cuenta que se va completando */
.ex-main .ex-sum div { position:relative; background:linear-gradient(160deg,rgba(255,255,255,.05),rgba(255,255,255,0) 60%),#0b0b0b; box-shadow:inset 0 1px 0 rgba(255,255,255,.06); }
.ex-main .ex-sum div.eq { background:radial-gradient(120% 140% at 0% 0%,rgba(247,147,26,.2),transparent 60%),#0b0b0b; box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 0 30px -12px rgba(247,147,26,.5); }
.ex-main .ex-sum.xh-arm div { opacity:0; }
.ex-main .ex-sum.xh-arm.xh-in div { opacity:1; animation:xhUp .55s cubic-bezier(.2,.8,.2,1) both; }
.ex-main .ex-sum.xh-in div:nth-child(2) { animation-delay:.12s; }
.ex-main .ex-sum.xh-in div:nth-child(3) { animation-delay:.24s; }
.ex-main .ex-sum.xh-in div:nth-child(4) { animation-delay:.38s; }
@keyframes xhUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
/* Estados: punto de color que late en «sin confirmar» */
.ex-main .ex-states .ex-pill::before { content:''; width:7px; height:7px; border-radius:50%; background:currentColor; margin-right:7px; flex:none; }
.ex-main .ex-states .ex-pill.wait::before { animation:xhPingR 1.8s infinite; }
@keyframes xhPingR { 0% { box-shadow:0 0 0 0 rgba(248,113,113,.6); } 70%,100% { box-shadow:0 0 0 7px rgba(248,113,113,0); } }
/* Maqueta con más relieve */
.ex-main .ex-mock { border-color:rgba(255,255,255,.14); box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 30px 60px -28px rgba(0,0,0,.95),0 0 60px -22px rgba(247,147,26,.4); }
.ex-main .ex-io { transition:border-color .25s, background .25s; }
.ex-main .ex-io.hl-box { background:rgba(247,147,26,.07); }

/* ── Responsive ── */
@media (max-width:960px) {
  html body .page-hero.ex-hero.xh { grid-template-columns:minmax(0,1fr); gap:36px; padding:108px 20px 56px; }
}
@media (max-width:600px) {
  html body .page-hero.ex-hero.xh { padding:100px 16px 44px; }
  .xh-bar { padding:11px 14px; }
  .xh-stage { padding:8px 4px 2px; }
  .xh-svg .xh-q { font-size:17px; }
  .xh-svg .xh-lbl { font-size:14px; letter-spacing:.06em; }
  .xh-svg .xh-h, .xh-svg .xh-num { font-size:14px; }
  .xh-read { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .xh-read > div { padding:10px 14px; }
  .xh-read > div:nth-child(2n) { border-right:0; }
  .xh-read > div:nth-child(-n+2) { border-bottom:1px solid rgba(255,255,255,.07); }
  .xh-note { padding:11px 14px 14px; }
  html body .hal.ex-main .hal-block[data-n]::before { font-size:3.6rem; }
}
@media (prefers-reduced-motion:reduce) {
  .xh-dot, .xh-led, .xh-caret, .ex-main .ex-hex::after, .ex-main .ex-states .ex-pill.wait::before { animation:none; }
  .ex-main .ex-hex::after { display:none; }
  .ex-main .ex-sum.xh-arm div { opacity:1; animation:none; }
  .xh-rig, .xh-state, .xh-stage, .xh-seg, .xh-me, html body .hal.ex-main .hal-block, html body .hal.ex-main .hal-links a, .ex-main .ex-io { transition:none!important; }
  html body .hal.ex-main .hal-links a:hover { transform:none; }
}
