/* mempool.html — Rediseño 2026-11-18: cabecera con la «sala de espera» animada (las transacciones llegan, se ordenan por sat/vB y las que más pagan llenan el siguiente bloque), dato en vivo y secciones con profundidad */

/* ---------- Cabecera ---------- */
html body .page-hero.mp-hero { max-width:1180px; margin:0 auto; min-height:0; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.04fr); gap:56px; align-items:center; text-align:left; padding:132px 24px 84px; isolation:isolate; }
html body .page-hero.mp-hero::after { display:none; }
html body .page-hero.mp-hero::before { content:''; position:absolute; z-index:-1; right:-4%; top:4%; width:60%; height:92%; background:radial-gradient(closest-side,rgba(247,147,26,.15),transparent 72%); pointer-events:none; }
html body .page-hero.mp-hero h1 { max-width:none; margin:14px 0 22px; font-size:clamp(2.2rem,4.2vw,3.7rem); background:linear-gradient(180deg,#fff 40%,#F7931A 150%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
html body .page-hero.mp-hero h1 span { -webkit-text-fill-color:#F7931A; }
html body .page-hero.mp-hero p { margin:0; max-width:34em; font-size:clamp(1.02rem,1.3vw,1.15rem); }
.mp-chips { display:flex; flex-wrap:wrap; gap:10px; margin-top:28px; list-style:none; padding:0; }
.mp-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; }
.mp-chips svg { width:16px; height:16px; flex:none; stroke:#F7931A; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* Tarjeta de la ilustración */
.mp-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; }
.mp-top { display:flex; align-items:center; gap:10px; padding:13px 18px; border-bottom:1px solid rgba(255,255,255,.08); font:500 .74rem/1.2 'JetBrains Mono',monospace; color:#A1A1A6; }
.mp-dot { width:8px; height:8px; border-radius:50%; background:#3fd37a; box-shadow:0 0 8px #3fd37a; animation:mpPulse 2s ease-in-out infinite; flex:none; }
.mp-std { margin-left:auto; color:#F7931A; white-space:nowrap; }
.mp-sr { position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.mp-stage { padding:16px 14px 4px; }
.mp-svg { display:block; width:100%; height:auto; overflow:visible; }

/* Marcos: mempool (discontinuo) y bloque */
.mp-pool { fill:rgba(247,147,26,.03); stroke:rgba(247,147,26,.5); stroke-width:1.5; stroke-dasharray:6 5; }
.mp-blk { fill:rgba(255,255,255,.025); stroke:rgba(255,255,255,.2); stroke-width:1.2; transition:stroke .5s, fill .5s; }
.mp-fill { fill:rgba(247,147,26,.1); transform-box:fill-box; transform-origin:50% 100%; transition:transform 1s cubic-bezier(.2,.8,.2,1), opacity .5s; }
.mp-lbl { font:800 9.5px 'Archivo',sans-serif; letter-spacing:.08em; fill:#D0D0D3; }
.mp-lbl.o { fill:#F7931A; }
.mp-cap { font:600 9px 'JetBrains Mono',monospace; fill:#A1A1A6; transition:opacity .4s; }
.mp-ok { opacity:0; transition:opacity .45s; }
.mp-ok rect { fill:#0b0b0b; stroke:#3fd37a; stroke-width:1; }
.mp-ok text { font:700 9.5px 'Archivo',sans-serif; fill:#3fd37a; }
.mp-arrow { fill:none; stroke:#F7931A; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; opacity:.35; transition:opacity .4s; }

/* Transacciones: ancho = tamaño (vB), color = tarifa (sat/vB) */
.mp-tx { transition:transform .95s cubic-bezier(.2,.8,.2,1), opacity .5s; }
.mp-tx rect { stroke-width:1; }
.mp-tx text { font:600 10px 'JetBrains Mono',monospace; text-anchor:middle; }
.mp-tx.t4 rect { fill:#F7931A; stroke:#FFC27A; } .mp-tx.t4 text { fill:#000; }
.mp-tx.t3 rect { fill:#C9771A; stroke:#E59A45; } .mp-tx.t3 text { fill:#000; }
.mp-tx.t2 rect { fill:#6E4718; stroke:#9A6526; } .mp-tx.t2 text { fill:#F5F5F5; }
.mp-tx.t1 rect { fill:#2E2E32; stroke:#4A4A50; } .mp-tx.t1 text { fill:#D0D0D3; }

/* Estados (s1 llegan, s2 se ordenan, s3 entran en el bloque, s4 bloque minado). Sin JS o con «Reducir movimiento»: s4 fijo */
.mp-art:not(.s3):not(.s4) .mp-fill { transform:scaleY(0); }
.mp-art.s3 .mp-arrow, .mp-art.s4 .mp-arrow { opacity:1; }
.mp-art.s3 .mp-blk { stroke:rgba(247,147,26,.6); }
.mp-art.s4 .mp-blk { stroke:#3fd37a; fill:rgba(63,211,122,.05); }
.mp-art.s4 .mp-fill { fill:rgba(63,211,122,.08); }
.mp-art.s4 .mp-ok { opacity:1; }
.mp-art.s4 .mp-cap { opacity:0; }
.mp-wait { font:600 10px 'Archivo',sans-serif; fill:#A1A1A6; opacity:0; transition:opacity .45s; }
.mp-art.s4 .mp-wait { opacity:1; }
.mp-art.out .mp-tx.sel, .mp-art.out .mp-fill { opacity:0; }
.mp-art.nt .mp-tx, .mp-art.nt .mp-fill { transition:none; }
.mp-tx.hide { opacity:0; }

/* Pasos */
.mp-steps { list-style:none; margin:10px 14px 0; padding:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; counter-reset:mps; }
.mp-steps li { counter-increment:mps; position:relative; padding:9px 8px 8px; border-radius:10px; border:1px solid rgba(255,255,255,.09); background:rgba(255,255,255,.025); font-size:.7rem; line-height:1.25; font-weight:600; color:#A1A1A6; transition:color .4s, border-color .4s, background .4s; }
.mp-steps li::before { content:counter(mps); display:block; margin-bottom:3px; font:700 .66rem/1 'JetBrains Mono',monospace; color:#7c7c82; transition:color .4s; }
.mp-art.s1 .mp-steps li:nth-child(1), .mp-art.s2 .mp-steps li:nth-child(2), .mp-art.s3 .mp-steps li:nth-child(3), .mp-art.s4 .mp-steps li:nth-child(4) { color:#F5F5F5; border-color:rgba(247,147,26,.55); background:rgba(247,147,26,.09); }
.mp-art.s1 .mp-steps li:nth-child(1)::before, .mp-art.s2 .mp-steps li:nth-child(2)::before, .mp-art.s3 .mp-steps li:nth-child(3)::before, .mp-art.s4 .mp-steps li:nth-child(4)::before { color:#F7931A; }

/* Leyenda */
.mp-legend { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; margin:12px 18px 0; font-size:.72rem; color:#A1A1A6; }
.mp-legend b { font:600 .7rem/1 'JetBrains Mono',monospace; color:#D0D0D3; }
.mp-legend span { display:inline-flex; align-items:center; gap:5px; font-family:'JetBrains Mono',monospace; }
.mp-legend i { width:12px; height:12px; border-radius:3px; display:inline-block; }
.mp-legend .t4 { background:#F7931A; } .mp-legend .t3 { background:#C9771A; } .mp-legend .t2 { background:#6E4718; } .mp-legend .t1 { background:#2E2E32; border:1px solid #4A4A50; }
.mp-legend em { font-style:normal; margin-left:auto; }

/* Datos: valores por defecto, o en vivo si responde mempool.space */
.mp-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:16px 0 0; border-top:1px solid rgba(255,255,255,.08); }
.mp-stats div { padding:14px 16px; min-width:0; }
.mp-stats div + div { border-left:1px solid rgba(255,255,255,.08); }
.mp-stats dt { font-size:.66rem; letter-spacing:.07em; text-transform:uppercase; color:#A1A1A6; margin-bottom:6px; line-height:1.3; }
.mp-stats dd { margin:0; white-space:nowrap; font:600 clamp(.82rem,1.15vw,1rem)/1.15 'JetBrains Mono',monospace; color:#F5F5F5; }
.mp-stats dd small { display:block; margin-top:4px; font:500 .68rem/1.2 'Archivo',sans-serif; color:#A1A1A6; white-space:normal; }
.mp-stats dd.o { color:#F7931A; }
.mp-live { display:none; }
.mp-art.is-live .mp-live { display:grid; }
.mp-art.is-live .mp-fixed { display:none; }
.mp-art figcaption { padding:0 18px 16px; font-size:.8rem; color:#A1A1A6; line-height:1.5; }
.mp-st-live { display:none; color:#3fd37a; font-weight:600; }
.mp-art.is-live .mp-st-live { display:inline; }
.mp-art.is-live .mp-st-fix { display:none; }

@keyframes mpPulse { 50% { transform:scale(1.45); opacity:.55; } }

/* ---------- Secciones: tarjetas con profundidad, numeración de fondo y acento naranja ---------- */
html body .hal.mp-main { max-width:860px; }
html body .mp-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 .mp-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 .mp-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 .mp-main .hal-block[data-n] > h2 { padding-right:96px; }
html body .mp-main .hal-block h2 { font-size:clamp(1.35rem,2.2vw,1.65rem); letter-spacing:-.01em; }
html body .mp-main .hal-block p { color:#B9B9BE; }
@media (hover:hover) { html body .mp-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 .mp-main .hal-block.mp-key { 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 .mp-main .hal-block.mp-key p { color:#D2D2D6; }
html body .mp-main .hal-block.mp-fix { border-color:rgba(63,211,122,.35); background-image:radial-gradient(120% 140% at 100% 0%,rgba(63,211,122,.12),rgba(63,211,122,0) 55%); }
html body .mp-main .hal-block.mp-fix::after { background:#3fd37a; box-shadow:0 0 14px rgba(63,211,122,.7); }
html body .mp-main .hal-block.mp-fix[data-n]::before { -webkit-text-stroke-color:rgba(63,211,122,.32); }
html body .mp-main .hal-scroll { border-radius:14px; border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.02); }
html body .mp-main .hal-table tbody tr { transition:background .25s; }
html body .mp-main .hal-table tbody tr:hover { background:rgba(247,147,26,.05); }
html body .mp-main .hal-table tr:last-child td { border-bottom:0; }
html body .mp-main code { font-family:'JetBrains Mono',monospace; font-size:.86em; padding:1px 6px; border-radius:6px; background:rgba(247,147,26,.1); color:#F5C58A; }
html body .mp-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 .mp-main .faq-item[open] { border-color:rgba(247,147,26,.35); background:rgba(247,147,26,.05); }
html body .mp-main .faq-item summary { list-style:none; padding:16px 34px 16px 0; position:relative; cursor:pointer; }
html body .mp-main .faq-item summary::-webkit-details-marker { display:none; }
html body .mp-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 .mp-main .faq-item[open] summary::after { transform:translateY(-50%) rotate(45deg); }
html body .mp-main .faq-item p { margin:0; padding-bottom:16px; }
html body .mp-main .hal-links { grid-template-columns:repeat(2,minmax(0,1fr)); }
html body .mp-main .hal-links li { margin:0; }
html body .mp-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; text-decoration:none; transition:border-color .3s,background .3s,transform .3s; }
html body .mp-main .hal-links a::after { content:'→'; color:#F7931A; transition:transform .3s; }
html body .mp-main .hal-links a:hover { border-color:rgba(247,147,26,.45); background:rgba(247,147,26,.07); transform:translateY(-2px); }
html body .mp-main .hal-links a:hover::after { transform:translateX(3px); }

/* ---------- Responsive ---------- */
@media (max-width:900px) {
    html body .page-hero.mp-hero { grid-template-columns:minmax(0,1fr); gap:34px; padding:108px 20px 56px; }
    html body .page-hero.mp-hero::before { width:100%; right:0; top:34%; height:66%; }
}
@media (max-width:600px) {
    html body .mp-main .hal-block { padding:26px 20px 22px; }
    html body .mp-main .hal-block::after { left:20px; }
    html body .mp-main .hal-block[data-n]::before { font-size:3.6rem; right:14px; top:12px; }
    html body .mp-main .hal-block[data-n] > h2 { padding-right:62px; }
    html body .mp-main .hal-links { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:480px) {
    .mp-top { padding:12px 14px; font-size:.66rem; gap:8px; }
    .mp-ttl { display:none; }
    .mp-stage { padding:12px 8px 2px; }
    .mp-steps { margin:8px 10px 0; gap:4px; }
    .mp-steps li { padding:7px 6px 6px; font-size:.62rem; }
    .mp-legend { margin:10px 12px 0; font-size:.66rem; }
    .mp-legend em { margin-left:0; width:100%; }
    .mp-stats div { padding:12px 10px; }
    .mp-stats dt { font-size:.58rem; letter-spacing:.04em; }
    .mp-stats dd { font-size:.78rem; }
    .mp-art figcaption { padding:0 14px 14px; font-size:.76rem; }
}
@media (prefers-reduced-motion: reduce) {
    .mp-dot { animation:none; }
    .mp-tx, .mp-fill, .mp-blk, .mp-ok, .mp-cap, .mp-wait, .mp-arrow, .mp-steps li { transition:none; }
}
