/* volatilidad.html (2026-12-02): cabecera animada «el sismógrafo» y secciones con profundidad.
   Cabecera: a la derecha un panel que dibuja el precio de BTC/USD (escala log, trazo estilizado
   entre los máximos y mínimos de la tabla de la guía) y, debajo, un sismógrafo naranja cuya aguja
   tiembla más cuanto más brusco es el movimiento. En cada mínimo aparece la caída de la tabla.
   El gráfico de barras que estaba en la cabecera pasa, sin cambios, a la sección «Las grandes caídas». */

/* ── Cabecera ── */
html body .page-hero.vo-hero { isolation:isolate; }
html body .page-hero.vo-hero::before { right:-3%; top:2%; width:66%; height:96%; background:radial-gradient(closest-side,rgba(247,147,26,.18),transparent 72%), linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px) 0 0/44px 44px, linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px) 0 0/44px 44px; -webkit-mask-image:radial-gradient(closest-side,#000 40%,transparent); mask-image:radial-gradient(closest-side,#000 40%,transparent); }
html body .page-hero.vo-hero h1 { background:linear-gradient(180deg,#fff 40%,#F7931A 170%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
html body .page-hero.vo-hero h1 span { -webkit-text-fill-color:#F7931A; }

.vh-rig { position:relative; margin:0; min-width: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; text-align:left; transition:border-color .4s,box-shadow .4s; }
.vh-rig.hit { border-color:rgba(247,147,26,.55); box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 34px 70px -26px rgba(0,0,0,.95),0 0 90px -12px rgba(247,147,26,.6); }
.vh-rig.quake .vh-stage { animation:vhQuake .55s cubic-bezier(.36,.07,.19,.97); }
@keyframes vhQuake { 10%,90% { transform:translate(-1px,0); } 20%,80% { transform:translate(2px,1px); } 30%,50%,70% { transform:translate(-3px,-1px); } 40%,60% { transform:translate(3px,1px); } }

.vh-bar { display:flex; align-items:center; gap:10px; padding:11px 14px 11px 18px; border-bottom:1px solid rgba(255,255,255,.08); font:500 .74rem/1 'JetBrains Mono',monospace; color:#A1A1A6; }
.vh-led { width:8px; height:8px; border-radius:50%; background:#F7931A; box-shadow:0 0 8px #F7931A; flex:none; animation:vhBlink 1.1s steps(2,jump-none) infinite; }
.vh-rig.paused .vh-led { animation:none; opacity:.5; }
.vh-rig.still .vh-led { animation:none; }
@keyframes vhBlink { 50% { opacity:.25; } }
.vh-bar-t { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; letter-spacing:.03em; min-width:0; }
.vh-play { appearance:none; margin-left:auto; flex:none; width:32px; height:32px; display:grid; place-items:center; border-radius:50%; border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.03); color:#D0D0D3; cursor:pointer; transition:border-color .3s; }
.vh-play:hover { border-color:#F7931A; }
.vh-play:focus-visible { outline:2px solid #F7931A; outline-offset:2px; }
.vh-play svg path { fill:currentColor; }
.vh-play .i-pl, .vh-rig.paused .vh-play .i-pa { display:none; }
.vh-rig.paused .vh-play .i-pl { display:inline; }
.vh-rig.still .vh-play { display:none; }

.vh-stage { padding:6px 8px 0; }
.vh-svg { display:block; width:100%; height:auto; overflow:visible; }
.vh-svg text { font-family:'JetBrains Mono',monospace; font-size:10.5px; fill:#8E8E94; }
.vh-svg .grid { stroke:rgba(255,255,255,.07); stroke-width:1; stroke-dasharray:2 5; }
.vh-svg .ax { text-anchor:end; font-size:10px; }
.vh-svg .yr { text-anchor:middle; }
.vh-svg .area { fill:url(#vhFill); }
.vh-svg .line { fill:none; stroke:url(#vhStroke); stroke-width:2.2; stroke-linejoin:round; stroke-linecap:round; filter:url(#vhGlow); }
.vh-svg .ghost { fill:none; stroke:rgba(255,255,255,.1); stroke-width:1.1; stroke-dasharray:2 4; }
.vh-svg .pen-h { fill:rgba(247,147,26,.28); transform-box:fill-box; transform-origin:center; animation:vhPulse 1.2s ease-in-out infinite; }
.vh-svg .pen { fill:#FFD08A; }
@keyframes vhPulse { 50% { transform:scale(1.8); opacity:.35; } }
.vh-svg .pk { fill:#050505; stroke:#F5F5F5; stroke-width:1.4; }
.vh-svg .drop { stroke:#F7931A; stroke-width:1.2; stroke-dasharray:3 3; fill:none; }
.vh-svg .drop-top { stroke:rgba(245,245,245,.35); stroke-width:1; stroke-dasharray:2 3; }
.vh-svg .dd { font-size:13px; font-weight:600; fill:#F7931A; text-anchor:middle; paint-order:stroke; stroke:#050505; stroke-width:4px; stroke-linejoin:round; }
.vh-svg .dd-y { font-size:9.5px; fill:#B9B9BE; text-anchor:middle; paint-order:stroke; stroke:#050505; stroke-width:3px; }
.vh-svg .mark { opacity:0; transform:translateY(6px); transform-box:fill-box; transition:opacity .45s ease,transform .6s cubic-bezier(.2,1.4,.4,1); }
.vh-svg .mark.on { opacity:1; transform:none; }
.vh-svg .seis-bg { fill:rgba(247,147,26,.035); stroke:rgba(247,147,26,.16); stroke-width:1; }
.vh-svg .seis-base { stroke:rgba(247,147,26,.3); stroke-width:1; }
.vh-svg .seis { fill:none; stroke:#F7931A; stroke-width:1.1; stroke-linejoin:round; }
.vh-svg .seis-l { font-family:'Archivo',sans-serif; font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; fill:#F5C58A; }
.vh-svg .needle { stroke:#FFD08A; stroke-width:1.4; }
.vh-svg .needle-h { fill:#FFD08A; }
.vh-svg .covid { font-size:9.5px; fill:#F5C58A; text-anchor:start; }

.vh-read { margin:0; display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr) minmax(0,1fr); border-top:1px solid rgba(255,255,255,.08); }
.vh-read > div { padding:11px 16px; min-width:0; border-right:1px solid rgba(255,255,255,.07); }
.vh-read > div:last-child { border-right:0; }
.vh-read dt { font-size:.68rem; letter-spacing:.06em; text-transform:uppercase; color:#A1A1A6; margin-bottom:5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vh-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; }
.vh-read dd#vhDd { color:#F7931A; }
.vh-read dd#vhSt.up { color:#4ADE80; }
html body .page-hero .vh-rig .vh-note { max-width:none; font-weight:400; margin:0; padding:11px 18px 14px; border-top:1px solid rgba(255,255,255,.08); font-size:.78rem; line-height:1.55; color:#A1A1A6; }
.vh-sr { position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* El gráfico de barras, ahora dentro de «Las grandes caídas» */
html body .hal.vo-main .vo-fig.vh-moved { max-width:600px; margin:20px auto 22px; }

/* ── Secciones con profundidad ── */
html body .hal.vo-main .hal-block.vh-depth { transition:transform .5s cubic-bezier(.2,.8,.2,1),border-color .4s,box-shadow .5s,opacity .8s ease; }
html body .hal.vo-main .hal-block.vh-depth > .vh-spot { position:absolute; z-index:0; inset:0; border-radius:inherit; pointer-events:none; opacity:0; transition:opacity .4s; background:radial-gradient(420px circle at var(--mx,50%) var(--my,0%),rgba(247,147,26,.11),transparent 62%); }
html body .hal.vo-main .hal-block.vh-depth:hover { border-color:rgba(247,147,26,.32); box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 34px 60px -30px rgba(0,0,0,1),0 0 50px -24px rgba(247,147,26,.45); }
html body .hal.vo-main .hal-block.vh-depth:hover > .vh-spot { opacity:1; }
html body .hal.vo-main .hal-block.vh-depth.visible:hover { transform:translateY(-3px); }
/* Acento superior: un trazo de sismógrafo que se dibuja al aparecer la tarjeta */
html body .hal.vo-main .hal-block.vh-depth::after { width:96px; height:14px; top:-1px; border-radius:0; box-shadow:none; background:linear-gradient(90deg,#F7931A,#FFC46B 60%,#4ADE80); -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 14'%3E%3Cpath d='M0 3h18l4 6 5-8 5 12 5-12 4 8 3-4h10l3 3 3-3h32' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 0 0/96px 14px no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 14'%3E%3Cpath d='M0 3h18l4 6 5-8 5 12 5-12 4 8 3-4h10l3 3 3-3h32' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 0 0/96px 14px no-repeat; clip-path:inset(0 100% 0 0); transition:clip-path 1.1s cubic-bezier(.6,0,.2,1) .25s; filter:drop-shadow(0 0 4px rgba(247,147,26,.7)); }
html body .hal.vo-main .hal-block.vh-depth.visible::after { clip-path:inset(0 0 0 0); }
html body .hal.vo-main .hal-block.vh-depth[data-n]::before { transition:-webkit-text-stroke-color .4s,transform .6s cubic-bezier(.2,.8,.2,1); }
html body .hal.vo-main .hal-block.vh-depth:hover[data-n]::before { -webkit-text-stroke-color:rgba(247,147,26,.55); transform:translateY(-2px) scale(1.03); }

@media (max-width:900px) {
    .vh-rig { border-radius:20px; }
}
@media (max-width:640px) {
    .vh-bar { padding:9px 10px 9px 14px; font-size:.68rem; }
    .vh-stage { padding:4px 2px 0; }
    .vh-svg text { font-size:12.5px; }
    .vh-svg .ax { font-size:10.5px; }
    .vh-svg .dd { font-size:15.5px; }
    .vh-svg .dd-y, .vh-svg .covid { font-size:11.5px; }
    .vh-svg .seis-l { font-size:11.5px; }
    .vh-read > div { padding:10px 10px; }
    .vh-read dt { font-size:.6rem; letter-spacing:.04em; white-space:normal; line-height:1.25; }
    .vh-read dd { font-size:.82rem; }
    html body .page-hero .vh-rig .vh-note { padding:10px 14px 13px; font-size:.74rem; }
    html body .hal.vo-main .hal-block.vh-depth::after { left:20px; }
}
@media (hover:none) {
    html body .hal.vo-main .hal-block.vh-depth > .vh-spot { display:none; }
    html body .hal.vo-main .hal-block.vh-depth.visible:hover { transform:none; }
}
@media (prefers-reduced-motion:reduce) {
    .vh-led, .vh-svg .pen-h { animation:none; }
    .vh-rig.quake .vh-stage { animation:none; }
    .vh-svg .mark { transition:none; transform:none; }
    html body .hal.vo-main .hal-block.vh-depth, html body .hal.vo-main .hal-block.vh-depth::after, html body .hal.vo-main .hal-block.vh-depth[data-n]::before { transition:none; }
    html body .hal.vo-main .hal-block.vh-depth.visible:hover, html body .hal.vo-main .hal-block.vh-depth:hover[data-n]::before { transform:none; }
}
