/* Rediseño 2026-11-21 (historia.html): cabecera «bloque a bloque» (línea de tiempo
   2008 → 2028 con los hitos que se encienden y la escalera de la recompensa por bloque)
   y secciones con profundidad, en la línea de multifirma.html y enviar-recibir.html. */

html body .page-hero.hh-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.hh-hero::after { display:none; }
html body .page-hero.hh-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.hh-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.hh-hero h1 span { -webkit-text-fill-color:#F7931A; }
html body .page-hero.hh-hero > .hh-text > p { margin:0; max-width:34em; font-size:clamp(1.02rem,1.3vw,1.15rem); }

.hh-chips { display:flex; flex-wrap:wrap; gap:10px; margin:28px 0 0; list-style:none; padding:0; }
.hh-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; }
.hh-chips svg { width:16px; height:16px; flex:none; stroke:#F7931A; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.hh-chips li.lnk { padding:0; border-color:rgba(247,147,26,.45); background:rgba(247,147,26,.08); }
.hh-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; }
.hh-chips li.lnk a:hover { background:rgba(247,147,26,.14); }
.hh-chips li.lnk a:focus-visible { outline:2px solid #F7931A; outline-offset:2px; }

/* Ilustración */
.hh-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; }
.hh-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; }
.hh-live { width:8px; height:8px; border-radius:50%; background:#F7931A; box-shadow:0 0 8px #F7931A; animation:hhPulse 2s ease-in-out infinite; flex:none; }
.hh-art.paused .hh-live, .hh-art.still .hh-live { animation:none; opacity:.5; }
.hh-cap { margin-left:auto; color:#F7931A; white-space:nowrap; }
.hh-sr { position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

.hh-stage { padding:16px 14px 0; }
.hh-svg { width:100%; height:auto; display:block; overflow:visible; }
.hh-svg text { font-family:'JetBrains Mono',monospace; }
.hh-grid { stroke:rgba(255,255,255,.06); stroke-width:1; stroke-dasharray:2 5; fill:none; }
.hh-ax { font-size:10.5px; fill:#8E8E93; }
.hh-st-bg { fill:rgba(255,255,255,.04); stroke:rgba(255,255,255,.12); stroke-width:1; stroke-dasharray:3 4; }
.hh-st { fill:url(#hhStG); }
.hh-st-l { fill:none; stroke:#F7931A; stroke-width:2.2; stroke-linejoin:round; filter:drop-shadow(0 0 5px rgba(247,147,26,.7)); }
.hh-clip, .hh-fill { transform-box:view-box; transform-origin:30px 0; transition:transform 1s cubic-bezier(.65,0,.35,1); }
.hh-rl { font-size:11.5px; font-weight:600; fill:#F5C58A; text-anchor:middle; }
.hh-today { stroke:rgba(255,255,255,.35); stroke-width:1; stroke-dasharray:3 3; }
.hh-tl { font-size:10.5px; fill:#D0D0D3; text-anchor:middle; text-transform:uppercase; letter-spacing:.08em; }
.hh-track { stroke:#2c2c2e; stroke-width:3; stroke-linecap:round; }
.hh-fill { stroke:#F7931A; stroke-width:3; stroke-linecap:round; filter:drop-shadow(0 0 4px rgba(247,147,26,.8)); }
.hh-yr { font-size:12px; fill:#8E8E93; text-anchor:middle; }

.hh-d .dot { fill:#0a0a0a; stroke:#6b6b70; stroke-width:2; transition:fill .45s,stroke .45s,r .45s; }
.hh-d .halo { fill:#F7931A; opacity:0; transition:opacity .45s; }
.hh-d .hit { fill:transparent; cursor:pointer; }
.hh-d.past .dot { fill:#F7931A; stroke:#F7931A; }
.hh-d.c-p.past .dot { fill:#8AB4FF; stroke:#8AB4FF; }
.hh-d.c-e.past .dot { fill:#6EE7A0; stroke:#6EE7A0; }
.hh-d.c-o.past .dot { fill:#F5F5F5; stroke:#F5F5F5; }
.hh-d.c-f .dot { stroke-dasharray:2 2; }
.hh-d.on .dot { r:6.5; }
.hh-d.on .halo { opacity:.22; animation:hhHalo 1.8s ease-in-out infinite; transform-box:fill-box; transform-origin:center; }
.hh-d.c-f.on .dot { fill:#0a0a0a; stroke:#F7931A; }

/* Lectura del hito activo */
.hh-read { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:14px; align-items:stretch; margin:14px 18px 16px; }
.hh-evs { list-style:none; margin:0; padding:14px 16px; display:grid; border-radius:16px; border:1px solid rgba(255,255,255,.09); background:linear-gradient(160deg,rgba(255,255,255,.05),rgba(255,255,255,0) 60%),#080808; min-height:96px; }
.hh-ev { grid-area:1/1; opacity:0; transform:translateY(8px); transition:opacity .45s,transform .45s; visibility:hidden; }
.hh-ev.on { opacity:1; transform:none; visibility:visible; }
.hh-meta { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin-bottom:8px; }
.hh-meta time { font:600 .82rem/1 'JetBrains Mono',monospace; color:#F5F5F5; }
.hh-meta .tl-cat { font-size:.66rem; }
.hh-blk { font:500 .72rem/1 'JetBrains Mono',monospace; color:#F7931A; padding:3px 8px; border-radius:6px; background:rgba(247,147,26,.1); }
html body .page-hero .hh-art .hh-t { margin:0; max-width:none; font-weight:800; font-size:1.02rem; line-height:1.3; color:#F5F5F5; letter-spacing:-.01em; }
.hh-rw { display:flex; flex-direction:column; justify-content:center; gap:6px; min-width:136px; padding:12px 16px; border-radius:16px; border:1px solid rgba(247,147,26,.38); background:radial-gradient(120% 120% at 100% 0%,rgba(247,147,26,.16),rgba(247,147,26,0) 60%),#0a0a0a; }
.hh-rw > span { font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:#B9B9BE; }
.hh-rw b { font:600 1.5rem/1 'JetBrains Mono',monospace; color:#F7931A; white-space:nowrap; }
.hh-rw small { font-size:.7rem; color:#D0D0D3; }
.hh-rw.bump b { animation:hhBump .5s ease-out; }

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

@keyframes hhPulse { 50% { transform:scale(1.45); opacity:.55; } }
@keyframes hhHalo { 50% { transform:scale(1.35); opacity:.08; } }
@keyframes hhBump { 0% { transform:scale(1.18); } 100% { transform:none; } }

/* Secciones: tarjetas con profundidad, numeración de fondo y acento naranja */
html body .hal.hh-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.hh-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 .hal.hh-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 .hal.hh-main .hal-block > * { position:relative; z-index:1; }
html body .hal.hh-main .hal-block[data-n] > h2 { padding-right:96px; }
html body .hal.hh-main .hal-block h2 { font-size:clamp(1.35rem,2.2vw,1.65rem); letter-spacing:-.01em; }
html body .hal.hh-main .hal-block p { color:#B9B9BE; }
@media (hover:hover) { html body .hal.hh-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.hh-main .hal-block.hh-lead { 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.hh-main .hal-block.hh-lead p { color:#D2D2D6; }
html body .hal.hh-main .hist-two .hal-block { margin-bottom:0; }
html body .hal.hh-main .hist-stat { position:relative; border-radius:18px; border:1px solid rgba(255,255,255,.08); background:linear-gradient(160deg,rgba(247,147,26,.09),rgba(255,255,255,0) 60%),#0a0a0a; box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 18px 36px -24px rgba(0,0,0,.95); transition:transform .35s,border-color .35s; }
html body .hal.hh-main .hist-stat b { font-size:1.75rem; text-shadow:0 0 18px rgba(247,147,26,.45); }
html body .hal.hh-main .hist-stat span { color:#B9B9BE; }
@media (hover:hover) { html body .hal.hh-main .hist-stat:hover { transform:translateY(-3px); border-color:rgba(247,147,26,.35); } }

html body .hal.hh-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.hh-main .faq-item[open] { border-color:rgba(247,147,26,.35); background:rgba(247,147,26,.05); }
html body .hal.hh-main .faq-item summary { list-style:none; padding:16px 34px 16px 0; position:relative; cursor:pointer; }
html body .hal.hh-main .faq-item summary::-webkit-details-marker { display:none; }
html body .hal.hh-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.hh-main .faq-item[open] summary::after { transform:translateY(-50%) rotate(45deg); }
html body .hal.hh-main .faq-item p { margin:0; padding-bottom:16px; }
html body .hal.hh-main .hal-links { grid-template-columns:repeat(2,minmax(0,1fr)); }
html body .hal.hh-main .hal-links li { margin:0; }
html body .hal.hh-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.hh-main .hal-links a::after { content:'→'; color:#F7931A; transition:transform .3s; }
html body .hal.hh-main .hal-links a:hover { border-color:rgba(247,147,26,.45); background:rgba(247,147,26,.07); transform:translateY(-2px); }
html body .hal.hh-main .hal-links a:hover::after { transform:translateX(3px); }

@media (max-width:900px) {
  html body .page-hero.hh-hero { grid-template-columns:minmax(0,1fr); gap:34px; padding:108px 20px 56px; }
  html body .page-hero.hh-hero::before { width:100%; right:0; top:34%; height:66%; }
}
@media (max-width:600px) {
  html body .hal.hh-main .hal-block { padding:26px 20px 22px; }
  html body .hal.hh-main .hal-block::after { left:20px; }
  html body .hal.hh-main .hal-block[data-n]::before { font-size:3.6rem; right:14px; top:12px; }
  html body .hal.hh-main .hal-block[data-n] > h2 { padding-right:62px; }
  html body .hal.hh-main .hal-links { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:520px) {
  .hh-top .hh-cap { display:none; }
  .hh-stage { padding:12px 6px 0; }
  .hh-read { grid-template-columns:minmax(0,1fr); margin:12px 12px 14px; gap:10px; }
  .hh-rw { flex-direction:row; align-items:center; justify-content:space-between; min-width:0; }
  .hh-foot { padding:0 12px 14px; flex-direction:column; gap:10px; }
}
@media (prefers-reduced-motion:reduce) {
  .hh-live, .hh-d.on .halo, .hh-rw.bump b { animation:none; }
  .hh-clip, .hh-fill, .hh-ev, .hh-d .dot, .hh-d .halo,
  html body .hal.hh-main .hal-block, html body .hal.hh-main .hist-stat, html body .hal.hh-main .hal-links a, html body .hal.hh-main .hal-links a::after, html body .hal.hh-main .faq-item, html body .hal.hh-main .faq-item summary::after { transition:none!important; }
  html body .hal.hh-main .hal-links a:hover, html body .hal.hh-main .hist-stat:hover { transform:none; }
}
