/* Rediseño 2026-11-21 (energia.html): cabecera «energía sobrante → mina → bloques» con la
   mina como carga flexible (en el pico de demanda se apaga y la potencia vuelve a la red),
   y secciones con profundidad, en la línea de multifirma.html y enviar-recibir.html. */

html body .page-hero.en-hero { max-width:1200px; margin:0 auto; min-height:0; display:grid; grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr); gap:52px; align-items:center; text-align:left; padding:132px 24px 84px; isolation:isolate; }
html body .page-hero.en-hero::after { display:none; }
html body .page-hero.en-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.en-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.en-hero h1 span { -webkit-text-fill-color:#F7931A; }
html body .page-hero.en-hero > .en-text > p { margin:0; max-width:34em; font-size:clamp(1.02rem,1.3vw,1.15rem); }

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

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

.en-stage { padding:18px 18px 0; }
.en-svg { width:100%; height:auto; display:block; overflow:visible; }
.en-svg text { font-family:'JetBrains Mono',monospace; }

/* Fuentes de energía */
.en-src .card { fill:rgba(247,147,26,.08); stroke:rgba(247,147,26,.55); stroke-width:1.5; }
.en-src .ico { fill:none; stroke:#F7931A; stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
.en-src .ico-f { fill:#F7931A; }
.en-src .lbl { font-size:11px; fill:#C9C9CE; }
.en-blades { transform-box:view-box; transform-origin:90px 150px; animation:enSpin 3.2s linear infinite; }
.en-flame { transform-box:fill-box; transform-origin:50% 100%; animation:enFlick 1.1s ease-in-out infinite; }
.en-art.paused .en-blades, .en-art.paused .en-flame { animation-play-state:paused; }

/* Cables */
.en-w .base { fill:none; stroke:rgba(255,255,255,.12); stroke-width:2.5; }
.en-w .flow { fill:none; stroke:#F7931A; stroke-width:3; stroke-linecap:round; stroke-dasharray:6 10; opacity:0; transition:opacity .5s; }
.en-w.src .flow, .en-art.mine .en-w.to-mine .flow, .en-art.mine .en-w.to-chain .flow, .en-art.peak .en-w.to-city .flow { opacity:1; animation:enFlow 1s linear infinite; }
.en-art.paused .en-w .flow { animation-play-state:paused; }
.en-hub { fill:#0d0d0d; stroke:#F7931A; stroke-width:2.5; }
.en-hub-t { font-size:13px; font-weight:700; fill:#F7931A; text-anchor:middle; dominant-baseline:central; }

/* Mina (contenedor con ASIC) */
.en-box { fill:#0d0d0d; stroke:rgba(255,255,255,.2); stroke-width:2; transition:stroke .6s; }
.en-art.mine .en-box { stroke:rgba(247,147,26,.65); }
.en-rib { stroke:rgba(255,255,255,.08); stroke-width:2; }
.en-fan circle { fill:#070707; stroke:#5a5a60; stroke-width:2; transition:stroke .5s; }
.en-fan path { fill:#5a5a60; transition:fill .5s; }
.en-fan .rot { transform-box:fill-box; transform-origin:center; }
.en-art.mine .en-fan circle { stroke:#F7931A; }
.en-art.mine .en-fan path { fill:#F7931A; }
.en-art.mine .en-fan .rot { animation:enSpin .7s linear infinite; }
.en-art.paused .en-fan .rot { animation-play-state:paused; }
.en-led { fill:#3a3a3e; transition:fill .4s; }
.en-art.mine .en-led { fill:#22C55E; filter:drop-shadow(0 0 4px #22C55E); }
.en-mine-t { font-size:11px; fill:#A1A1A6; text-anchor:middle; }
.en-glow { opacity:0; transition:opacity .8s; }
.en-art.mine .en-glow { opacity:1; }

/* Ciudad */
.en-city .bld { fill:#0d0d0d; stroke:rgba(255,255,255,.22); stroke-width:1.5; transition:stroke .5s; }
.en-city .win { fill:#232326; transition:fill .5s; }
.en-art.peak .en-city .win { fill:#F7931A; }
.en-art.peak .en-city .bld { stroke:rgba(247,147,26,.7); }
.en-art.peak .en-city { filter:drop-shadow(0 0 10px rgba(247,147,26,.45)); }

/* Bloques */
.en-blk rect { fill:#0b0b0b; stroke:rgba(255,255,255,.14); stroke-width:1.5; transition:fill .45s,stroke .45s; }
.en-blk text { font-size:11px; font-weight:600; fill:#5a5a60; text-anchor:middle; dominant-baseline:central; transition:fill .45s; }
.en-blk.on rect { fill:rgba(247,147,26,.14); stroke:#F7931A; }
.en-blk.on text { fill:#F7931A; }
.en-blk { transform-box:fill-box; transform-origin:center; transition:transform .5s cubic-bezier(.3,1.5,.4,1); }
.en-blk.on { transform:scale(1.04); }

/* Estado y leyenda */
.en-meter { display:flex; align-items:center; flex-wrap:wrap; gap:10px 14px; margin:14px 0 0; padding:12px 14px; border-radius:14px; border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.025); }
.en-ml { font-size:.7rem; letter-spacing:.07em; text-transform:uppercase; color:#A1A1A6; }
.en-bar { position:relative; width:120px; height:8px; border-radius:99px; background:rgba(255,255,255,.1); overflow:hidden; }
.en-bar i { position:absolute; inset:0; transform-origin:left; transform:scaleX(0); background:#F7931A; box-shadow:0 0 10px rgba(247,147,26,.6); transition:transform .8s cubic-bezier(.6,0,.2,1); }
.en-art.mine .en-bar i { transform:scaleX(1); }
.en-num { font:600 .9rem/1 'JetBrains Mono',monospace; color:#F5F5F5; min-width:3.4em; }
.en-state { margin-left:auto; display:inline-flex; align-items:center; gap:7px; padding:5px 11px; border-radius:999px; border:1px solid rgba(255,255,255,.16); font-size:.74rem; font-weight:700; color:#B9B9BE; transition:border-color .45s,color .45s,background .45s; }
.en-state .p, .en-art.peak .en-state .m { display:none; }
.en-art.peak .en-state .p { display:inline; }
.en-art.mine .en-state { color:#F7931A; border-color:rgba(247,147,26,.55); background:rgba(247,147,26,.1); }

.en-legend { list-style:none; margin:12px 0 0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.en-legend li { display:flex; align-items:flex-start; gap:8px; padding:10px; border-radius:12px; border:1px solid rgba(255,255,255,.08); background:#0a0a0a; font-size:.76rem; line-height:1.35; color:#B9B9BE; }
.en-legend b { flex:none; width:22px; height:22px; border-radius:50%; display:grid; place-items:center; font:700 .72rem/1 'JetBrains Mono',monospace; background:rgba(247,147,26,.15); color:#F7931A; }

.en-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:16px 0 0; border-top:1px solid rgba(255,255,255,.08); }
.en-stats div { padding:14px 16px; }
.en-stats div + div { border-left:1px solid rgba(255,255,255,.08); }
.en-stats dt { font-size:.68rem; letter-spacing:.07em; text-transform:uppercase; color:#A1A1A6; margin-bottom:6px; }
.en-stats dd { margin:0; font:600 1.1rem/1.15 'JetBrains Mono',monospace; color:#F5F5F5; }
.en-stats dd.or { color:#F7931A; }
.en-foot { display:flex; align-items:flex-start; gap:14px; padding:0 18px 16px; }
.en-foot figcaption { flex:1; font-size:.8rem; color:#A1A1A6; line-height:1.5; }
.en-play { flex:none; display:inline-flex; align-items:center; gap:6px; 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; }
.en-play:hover { border-color:rgba(247,147,26,.5); color:#F5F5F5; }
.en-play:focus-visible { outline:2px solid #F7931A; outline-offset:2px; }
.en-play .r, .en-art.paused .en-play .p { display:none; }
.en-art.paused .en-play .r { display:inline; }
.en-art:not(.js) .en-play, .en-art.still .en-play { display:none; }

@keyframes enPulse { 50% { transform:scale(1.45); opacity:.55; } }
@keyframes enFlow { to { stroke-dashoffset:-32; } }
@keyframes enSpin { to { transform:rotate(360deg); } }
@keyframes enFlick { 50% { transform:scaleY(.82) scaleX(1.08); } }

/* Secciones: tarjetas con profundidad, numeración de fondo y acento naranja */
html body .hal.en-main { max-width:860px; }
html body .en-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 .en-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 .en-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 .en-main .hal-block > * { position:relative; z-index:1; }
html body .en-main .hal-block[data-n] > h2 { padding-right:96px; }
html body .en-main .hal-block h2 { font-size:clamp(1.35rem,2.2vw,1.65rem); letter-spacing:-.01em; }
html body .en-main .hal-block p { color:#B9B9BE; }
@media (hover:hover) { html body .en-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 .en-main .hal-block.dif-t30 { 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 .en-main .hal-block.dif-t30 p { color:#D2D2D6; }
/* Cifras clave con profundidad */
html body .en-main .ene-stats .dif-stat { border-radius:16px; border-color:rgba(255,255,255,.09); background:linear-gradient(160deg,rgba(255,255,255,.05),rgba(255,255,255,0) 60%),#070707; box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 18px 36px -24px rgba(0,0,0,.95); }
/* Mezcla eléctrica y mitos */
html body .en-main .ene-mix { border-radius:16px; }
html body .en-main .ene-myth { border-radius:14px; border:1px solid rgba(255,255,255,.08); background:linear-gradient(160deg,rgba(255,255,255,.04),rgba(255,255,255,0) 60%),#070707; border-left:3px solid #F7931A; padding:16px 18px; margin:0 0 10px; transition:border-color .3s; }
@media (hover:hover) { html body .en-main .ene-myth:hover { border-color:rgba(247,147,26,.35); } }
/* FAQ y enlaces */
html body .en-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 .en-main .faq-item[open] { border-color:rgba(247,147,26,.35); background:rgba(247,147,26,.05); }
html body .en-main .faq-item summary { list-style:none; padding:16px 34px 16px 0; position:relative; cursor:pointer; }
html body .en-main .faq-item summary::-webkit-details-marker { display:none; }
html body .en-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 .en-main .faq-item[open] summary::after { transform:translateY(-50%) rotate(45deg); }
html body .en-main .faq-item p { margin:0; padding-bottom:16px; }
html body .en-main .hal-links { grid-template-columns:repeat(2,minmax(0,1fr)); }
html body .en-main .hal-links li { margin:0; }
html body .en-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 .en-main .hal-links a::after { content:'→'; color:#F7931A; transition:transform .3s; }
html body .en-main .hal-links a:hover { border-color:rgba(247,147,26,.45); background:rgba(247,147,26,.07); transform:translateY(-2px); }
html body .en-main .hal-links a:hover::after { transform:translateX(3px); }

@media (max-width:900px) {
  html body .page-hero.en-hero { grid-template-columns:minmax(0,1fr); gap:34px; padding:108px 20px 56px; }
  html body .page-hero.en-hero::before { width:100%; right:0; top:34%; height:66%; }
}
@media (max-width:600px) {
  html body .en-main .hal-block { padding:26px 20px 22px; }
  html body .en-main .hal-block::after { left:20px; }
  html body .en-main .hal-block[data-n]::before { font-size:3.6rem; right:14px; top:12px; }
  html body .en-main .hal-block[data-n] > h2 { padding-right:62px; }
  html body .en-main .hal-links { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:520px) {
  .en-top .en-tag { display:none; }
  .en-stage { padding:14px 12px 0; }
  .en-meter { gap:8px 10px; padding:10px 12px; }
  .en-bar { width:72px; }
  .en-state { margin-left:0; }
  .en-legend { grid-template-columns:minmax(0,1fr); gap:6px; }
  .en-legend li { padding:8px 10px; align-items:center; }
  .en-stats div { padding:12px 10px; }
  .en-stats dt { font-size:.6rem; letter-spacing:.03em; }
  .en-stats dd { font-size:.95rem; }
  .en-foot { padding:0 12px 14px; flex-direction:column; gap:10px; }
}
@media (prefers-reduced-motion:reduce) {
  .en-live, .en-blades, .en-flame, .en-art.mine .en-fan .rot { animation:none; }
  .en-w .flow { animation:none!important; stroke-dasharray:none; }
  .en-w .flow, .en-box, .en-fan *, .en-led, .en-glow, .en-city *, .en-blk, .en-blk *, .en-bar i, .en-state,
  html body .en-main .hal-block, html body .en-main .hal-links a, html body .en-main .hal-links a::after, html body .en-main .faq-item, html body .en-main .faq-item summary::after { transition:none!important; }
  html body .en-main .hal-links a:hover { transform:none; }
}
