/* /halloween: la pagina del evento de Halloween (25 oct - 2 nov).
   Va aparte de styles.css: es de una pagina y de una temporada, y no necesita sellado.
   Paleta: la noche de brujas (ciruela casi negro), calabaza y violeta. El oro sigue
   siendo la marca (titulos, botones); el naranja y el violeta son solo de esta pagina. */

body.es-halloween {
  --bg: #0e0913;
  --panel: #1a1124;
  --panel-sunk: #130c1b;
  --panel-raised: #251833;
  --edge-hi: #523468;
  --edge-lo: #08050c;
  --ink: #f6eee8;
  --ink-dim: #cdbfd8;
  --ink-faint: #a595b3;
  --edge-warm: rgba(255, 138, 31, 0.34);
  --hw: #ff8a1f;
  --hw-luz: #ffc06a;
  --hw-mor: #a35bff;
  --hw-mor-luz: #d6b8ff;
  --hw-sangre: #e0553f;
  background:
    radial-gradient(ellipse 900px 520px at 85% -8%, rgba(255, 138, 31, 0.16), transparent 62%),
    radial-gradient(ellipse 800px 480px at 8% 4%, rgba(125, 52, 210, 0.22), transparent 62%),
    var(--bg);
}

.halloween { overflow-x: clip; }
.halloween .wrap > .section-head { margin-bottom: clamp(1.4rem, 4vw, 2.2rem); }
.halloween .hw-bloque { padding-top: clamp(2.2rem, 6vw, 3.8rem); scroll-margin-top: 5rem; }
.halloween [hidden] { display: none !important; }

/* ====================================================================
   PORTADA
   ==================================================================== */
.hw-portada {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(1.6rem, 4vw, 2.8rem) 0 clamp(1.8rem, 4vw, 3rem);
}
.hw-portada::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/halloween-poster.webp") center 35% / cover no-repeat;
  opacity: 0.2;
  filter: saturate(0.9) blur(1.5px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
}
.hw-portada::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(14, 9, 19, 0.9), transparent 70%);
  pointer-events: none;
}
.hw-luna {
  position: absolute;
  top: clamp(0.8rem, 2.4vw, 1.8rem);
  right: clamp(0.8rem, 5vw, 4.5rem);
  width: clamp(90px, 13vw, 170px);
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: -1;
  background: radial-gradient(circle at 38% 36%, #ffe2a8 0%, #ffbe62 38%, #e98a2a 78%, #c46618 100%);
  box-shadow: 0 0 80px 18px rgba(255, 150, 50, 0.28), inset -18px -10px 30px rgba(120, 50, 10, 0.4);
  opacity: 0.5;
}
.hw-murcielago {
  position: absolute;
  z-index: -1;
  width: var(--t, 34px);
  height: auto;
  color: #07040b;
  opacity: 0.85;
  animation: hw-vuela var(--d, 16s) linear infinite;
  animation-delay: var(--r, 0s);
  left: -60px;
  top: var(--y, 20%);
}
@keyframes hw-vuela {
  0%   { transform: translate(0, 0) scaleY(1); }
  25%  { transform: translate(28vw, -22px) scaleY(0.7); }
  50%  { transform: translate(56vw, 10px) scaleY(1); }
  75%  { transform: translate(84vw, -26px) scaleY(0.7); }
  100% { transform: translate(112vw, 0) scaleY(1); }
}

.hw-portada-dentro {
  display: grid;
  gap: clamp(1.6rem, 4vw, 2.8rem);
  align-items: center;
}
@media (min-width: 960px) {
  .hw-portada-dentro { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); }
}
.hw-texto { min-width: 0; }
.hw-texto .volver { margin-bottom: 1.1rem; }
.hw-texto h1 {
  margin: 0.2rem 0 0.35rem;
  font-size: clamp(2.2rem, 10.5vw, 4.2rem);
  line-height: 0.98;
  text-wrap: balance;
}
@media (min-width: 960px) { .hw-texto h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); } }
.hw-texto h1 em {
  display: block;
  font-style: normal;
  background: linear-gradient(180deg, #fff1c9 0%, #ffc060 38%, #ff8a1f 72%, #c9500d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.4));
}
.hw-texto .hero-lema { white-space: normal; text-indent: 0; letter-spacing: 0.22em; }
.hw-entrada { max-width: 56ch; margin: 1rem 0 0; color: var(--ink-dim); line-height: 1.7; }
.hw-entrada strong { color: var(--hw-luz); }

/* la cuenta atras del evento */
.hw-reloj {
  margin-top: 1.3rem;
  padding: 1rem 1.1rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 138, 31, 0.4);
  background: linear-gradient(180deg, rgba(255, 138, 31, 0.1), rgba(163, 91, 255, 0.07)), var(--panel-sunk);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 18px 34px -22px rgba(255, 120, 20, 0.45);
  max-width: 34rem;
}
.hw-reloj-etq {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.65rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hw-luz);
}
.hw-reloj-etq::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hw);
  box-shadow: 0 0 10px var(--hw);
  animation: hw-late 1.6s ease-in-out infinite;
}
.hw-reloj.es-ahora .hw-reloj-etq { color: #ff9b8a; }
.hw-reloj.es-ahora .hw-reloj-etq::before { background: var(--hw-sangre); box-shadow: 0 0 12px var(--hw-sangre); }
.hw-reloj.es-cerrado .hw-reloj-etq::before { animation: none; background: var(--ink-faint); box-shadow: none; }
@keyframes hw-late { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.7); } }
.hw-reloj-titulo { margin: 0 0 0.7rem; font-family: var(--font-display); font-size: clamp(1.25rem, 3.6vw, 1.6rem); line-height: 1.1; }
.hw-cuenta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.hw-cuenta > div {
  padding: 0.5rem 0.2rem 0.4rem;
  border-radius: 8px;
  text-align: center;
  background: rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.hw-cuenta b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  line-height: 1;
  color: var(--ember-glow);
  font-variant-numeric: tabular-nums;
}
.hw-cuenta i {
  display: block;
  margin-top: 0.25rem;
  font-style: normal;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hw-reloj-nota { margin: 0.7rem 0 0; font-size: 0.86rem; color: var(--ink-dim); line-height: 1.5; }
.hw-reloj-nota strong { color: var(--ink); }

.hw-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.3rem; }
.hw-cta .btn { text-decoration: none; }

/* el video */
.hw-video { margin: 0; min-width: 0; }
.hw-marco {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 2px solid var(--edge-hi);
  box-shadow: 0 0 0 1px #000, 0 28px 60px -26px rgba(255, 120, 20, 0.55), 0 0 60px -10px rgba(163, 91, 255, 0.35);
  aspect-ratio: 16 / 9;
}
.hw-marco video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.hw-video figcaption { margin-top: 0.7rem; font-size: 0.82rem; color: var(--ink-faint); text-align: center; letter-spacing: 0.02em; }

/* las cifras */
.hw-cifras {
  list-style: none;
  margin: clamp(1.6rem, 4vw, 2.4rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
@media (min-width: 760px) { .hw-cifras { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hw-cifras li {
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.hw-cifras strong { display: block; font-family: var(--font-display); font-size: clamp(1.4rem, 4vw, 1.9rem); line-height: 1.05; color: var(--hw-luz); }
.hw-cifras span { display: block; margin-top: 0.2rem; font-size: 0.82rem; color: var(--ink-dim); line-height: 1.35; }

/* ====================================================================
   CALENDARIO
   ==================================================================== */
.hw-hora-mundo {
  margin: 0 0 1.4rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border-left: 3px solid var(--hw);
  background: rgba(255, 138, 31, 0.07);
  color: var(--ink-dim);
  font-size: 0.92rem;
  line-height: 1.6;
}
.hw-hora-mundo strong { color: var(--ink); }
.hw-hora-mundo .hw-tu-hora { display: block; margin-top: 0.3rem; color: var(--hw-luz); font-weight: 700; }

.hw-noches {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 215px), 1fr));
  gap: 0.9rem;
}
.hw-noche {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1rem 0.95rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 45%), var(--panel);
  box-shadow: inset 1px 1px 0 var(--edge-hi), inset -1px -1px 0 var(--edge-lo), 0 14px 28px -20px #000;
  min-width: 0;
}
.hw-fecha { display: flex; align-items: baseline; gap: 0.5rem; }
.hw-fecha b { font-family: var(--font-display); font-size: 2.3rem; line-height: 1; color: var(--hw-luz); }
.hw-fecha i { font-style: normal; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.hw-noche h3 { margin: 0.15rem 0 0; font-size: 1.25rem; line-height: 1.15; }
.hw-noche p { margin: 0; font-size: 0.88rem; color: var(--ink-dim); line-height: 1.5; flex: 1; }
.hw-noche .hw-h { margin-top: 0.3rem; font-weight: 800; font-size: 0.86rem; letter-spacing: 0.04em; color: var(--ember-glow); }
.hw-noche .hw-h small { font-weight: 600; color: var(--ink-faint); letter-spacing: 0; }
.hw-noche .hw-local { display: block; font-size: 0.78rem; color: var(--hw-mor-luz); font-weight: 600; }
.hw-estado {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  padding: 0.18em 0.6em;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink-faint);
}
.hw-estado:empty { display: none; }
.hw-noche.es-pasada { opacity: 0.55; }
.hw-noche.es-pasada h3 { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.25); }
.hw-noche.es-hoy {
  box-shadow: inset 0 0 0 2px var(--hw), 0 0 0 1px #000, 0 18px 36px -18px rgba(255, 138, 31, 0.6);
}
.hw-noche.es-hoy .hw-estado { background: var(--hw); color: #2a1100; }
.hw-noche.es-ahora .hw-estado { background: var(--hw-sangre); color: #fff; animation: hw-late 1.4s ease-in-out infinite; }
.hw-noche-jefe {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 138, 31, 0.28), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 45%), #22101a;
  box-shadow: inset 0 0 0 1px rgba(255, 138, 31, 0.6), 0 0 0 1px #000, 0 22px 40px -22px rgba(255, 110, 20, 0.6);
}
.hw-noche-jefe .hw-fecha b { color: #ffd88a; }
.hw-etq-jefe {
  align-self: flex-start;
  padding: 0.15em 0.6em;
  border-radius: 4px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2a1100;
  background: linear-gradient(180deg, #ffe3a8, #ff9a2e);
}
@media (min-width: 640px) { .hw-noche-jefe { grid-column: span 2; } }
.hw-nota-azar { margin: 1.1rem 0 0; color: var(--ink-dim); font-size: 0.92rem; line-height: 1.6; }
.hw-nota-azar strong { color: var(--ink); }

/* ====================================================================
   LOS EVENTOS
   ==================================================================== */
.hw-eventos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.hw-evento {
  --ac: var(--hw);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.2rem 0.95rem;
  padding: 1.15rem 1.15rem 1.2rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 42%), var(--panel);
  box-shadow: inset 0 3px 0 var(--ac), inset 1px 1px 0 var(--edge-hi), inset -1px -1px 0 var(--edge-lo), 0 16px 30px -22px #000;
  min-width: 0;
}
.hw-evento.es-morado { --ac: var(--hw-mor); }
.hw-evento.es-sangre { --ac: var(--hw-sangre); }
.hw-evento.es-dorado { --ac: #ffcf6a; }
.hw-ev-ico {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 12px;
  font-size: 1.7rem;
  background: color-mix(in srgb, var(--ac) 18%, #000);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 55%, transparent);
}
.hw-evento h3 { margin: 0; font-size: 1.3rem; line-height: 1.12; }
.hw-evento .hw-tipo { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ac); }
.hw-evento p { margin: 0.35rem 0 0; font-size: 0.92rem; line-height: 1.55; color: var(--ink-dim); }
.hw-evento p strong { color: var(--ink); }
.hw-evento .hw-premio { grid-column: 2; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px dashed rgba(255, 255, 255, 0.14); font-size: 0.86rem; color: var(--ink-dim); }
.hw-evento .hw-premio b { color: var(--ac); }

/* ====================================================================
   EL REY CALABAZA
   ==================================================================== */
.hw-rey {
  display: grid;
  gap: clamp(1.2rem, 4vw, 2.2rem);
  align-items: center;
  padding: clamp(1rem, 3vw, 1.6rem);
  border-radius: 18px;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(255, 138, 31, 0.16), transparent 60%),
    radial-gradient(80% 100% at 100% 100%, rgba(163, 91, 255, 0.16), transparent 60%),
    var(--panel-sunk);
  box-shadow: inset 0 0 0 1px rgba(255, 138, 31, 0.4), 0 28px 60px -34px rgba(255, 110, 20, 0.5);
}
@media (min-width: 900px) {
  .hw-rey { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
  .hw-rey-foto { position: sticky; top: 5.5rem; }
}
.hw-rey-foto { margin: 0; min-width: 0; align-self: start; }
.hw-rey-foto figcaption {
  margin-top: 0.9rem;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--hw);
  border-radius: 0 8px 8px 0;
  background: rgba(0, 0, 0, 0.3);
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--hw-luz);
}
.hw-rey-foto figcaption small { display: block; margin-top: 0.25rem; font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.hw-rey-foto img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--edge-hi);
  box-shadow: 0 0 0 1px #000, 0 20px 50px -24px rgba(255, 120, 20, 0.6);
}
.hw-rey-texto { min-width: 0; }
.hw-rey-texto h3 { margin: 0 0 0.5rem; font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.05; }
.hw-rey-texto h3 span { color: var(--hw-luz); }
.hw-rey-texto > p { margin: 0 0 0.9rem; color: var(--ink-dim); line-height: 1.65; }
.hw-lista { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.55rem; }
.hw-lista li { position: relative; padding-left: 1.5rem; color: var(--ink-dim); line-height: 1.5; font-size: 0.95rem; }
.hw-lista li::before { content: ""; position: absolute; left: 0.1rem; top: 0.5em; width: 0.55rem; height: 0.55rem; background: var(--hw); box-shadow: 0 0 8px rgba(255, 138, 31, 0.7); transform: rotate(45deg); }
.hw-lista strong { color: var(--ink); }
.hw-rey .hw-reloj { max-width: none; margin-top: 0.4rem; }

/* ====================================================================
   LA HISTORIA
   ==================================================================== */
.hw-capitulos { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; counter-reset: cap; }
.hw-cap {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.15rem 1rem;
  padding: 0.95rem 1.1rem 1rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 45%), var(--panel);
  box-shadow: inset 1px 1px 0 var(--edge-hi), inset -1px -1px 0 var(--edge-lo);
  min-width: 0;
}
.hw-cap-num {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink-faint);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}
.hw-cap h3 { margin: 0; font-size: 1.15rem; line-height: 1.2; }
.hw-cap .hw-cap-dia { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.hw-cap p { margin: 0.2rem 0 0; font-size: 0.9rem; color: var(--ink-dim); line-height: 1.5; }
.hw-cap.es-abierto .hw-cap-num { color: #2a1100; background: linear-gradient(180deg, #ffd88a, #ff8a1f); box-shadow: 0 0 14px rgba(255, 138, 31, 0.5); }
.hw-cap.es-abierto .hw-cap-dia { color: var(--hw-luz); }
.hw-cap.es-cerrado h3 { color: var(--ink-dim); }
.hw-cap.es-cerrado .hw-cap-resumen { display: none; }
.hw-cap .hw-cap-candado { display: none; }
.hw-cap.es-cerrado .hw-cap-candado { display: block; font-style: italic; color: var(--ink-faint); font-size: 0.88rem; margin-top: 0.2rem; }
.hw-cap.es-cerrado .hw-cap-abierto { display: none; }
@media (min-width: 820px) { .hw-capitulos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ====================================================================
   MISIONES, CARAMELOS, AMBIENTE
   ==================================================================== */
.hw-trio {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.hw-tarjeta {
  padding: 1.2rem 1.2rem 1.25rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 42%), var(--panel);
  box-shadow: inset 1px 1px 0 var(--edge-hi), inset -1px -1px 0 var(--edge-lo), 0 16px 30px -22px #000;
  min-width: 0;
}
.hw-tarjeta .hw-ico { display: block; font-size: 1.9rem; line-height: 1; margin-bottom: 0.6rem; }
.hw-tarjeta h3 { margin: 0 0 0.4rem; font-size: 1.28rem; line-height: 1.15; }
.hw-tarjeta p { margin: 0; color: var(--ink-dim); font-size: 0.93rem; line-height: 1.6; }
.hw-tarjeta p + p { margin-top: 0.55rem; }
.hw-tarjeta strong { color: var(--ink); }

.hw-premios { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.hw-premios li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  font-size: 0.88rem;
  color: var(--ink-dim);
}
.hw-premios b { color: var(--ink); }

.hw-tienda { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr)); }
.hw-tienda li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  background: var(--panel-sunk);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  font-size: 0.9rem;
  color: var(--ink-dim);
}
.hw-tienda span { font-size: 1.25rem; }

.hw-ambiente { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.hw-ambiente .hw-tarjeta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 0.9rem; align-content: start; }
.hw-ambiente .hw-ico { grid-row: span 2; margin: 0; font-size: 1.7rem; }
.hw-ambiente h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }

/* ====================================================================
   COMO ENTRAR Y COMANDOS
   ==================================================================== */
.hw-pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); counter-reset: paso; }
.hw-paso { counter-increment: paso; padding: 1.15rem 1.2rem; border-radius: 14px; background: var(--panel); box-shadow: inset 1px 1px 0 var(--edge-hi), inset -1px -1px 0 var(--edge-lo); min-width: 0; }
.hw-paso::before {
  content: counter(paso);
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.6rem;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #2a1100;
  background: linear-gradient(180deg, #ffd88a, #ff8a1f);
}
.hw-paso h3 { margin: 0 0 0.3rem; font-size: 1.2rem; }
.hw-paso p { margin: 0; color: var(--ink-dim); font-size: 0.92rem; line-height: 1.55; }
.hw-paso code, .hw-cmds code { font-family: var(--font-pixel, monospace); font-size: 0.78em; color: var(--ember-glow); background: rgba(0, 0, 0, 0.4); padding: 0.18em 0.5em; border-radius: 4px; overflow-wrap: anywhere; }

.hw-cmds { margin-top: 1.2rem; border-radius: 14px; overflow: hidden; background: var(--panel); box-shadow: inset 1px 1px 0 var(--edge-hi), inset -1px -1px 0 var(--edge-lo); }
.hw-cmds table { width: 100%; border-collapse: collapse; }
.hw-cmds th, .hw-cmds td { padding: 0.7rem 1rem; text-align: left; vertical-align: top; font-size: 0.92rem; }
.hw-cmds thead th { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); background: rgba(0, 0, 0, 0.3); }
.hw-cmds tbody tr + tr > * { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.hw-cmds td:first-child { white-space: nowrap; }
.hw-cmds td:last-child { color: var(--ink-dim); }
@media (max-width: 560px) {
  .hw-cmds td:first-child { white-space: normal; }
  .hw-cmds th, .hw-cmds td { padding: 0.6rem 0.75rem; }
}
.hw-solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ====================================================================
   EL EXTREMO Y EL CIERRE
   ==================================================================== */
.hw-extremo {
  display: grid;
  gap: 1rem 1.6rem;
  align-items: center;
  padding: clamp(1.2rem, 3.5vw, 1.8rem);
  border-radius: 16px;
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(209, 80, 63, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%), #1b0f12;
  box-shadow: inset 0 0 0 1px rgba(209, 80, 63, 0.55), 0 24px 50px -30px rgba(209, 80, 63, 0.6);
}
@media (min-width: 800px) { .hw-extremo { grid-template-columns: minmax(0, 1fr) auto; } }
.hw-extremo .eyebrow { color: #ff9b8a; }
.hw-extremo h2 { margin: 0.2rem 0 0.5rem; font-size: clamp(1.6rem, 5vw, 2.3rem); line-height: 1.08; }
.hw-extremo p { margin: 0 0 0.4rem; color: var(--ink-dim); line-height: 1.6; max-width: 60ch; }
.hw-extremo .hw-lista { margin: 0.6rem 0 0; }
.hw-extremo .hw-lista li::before { background: var(--hw-sangre); box-shadow: 0 0 8px rgba(224, 85, 63, 0.7); }
.hw-extremo-botones { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hw-extremo .btn { text-decoration: none; }

.hw-final { text-align: center; padding: clamp(2.2rem, 6vw, 3.6rem) 0 0.6rem; }
.hw-final h2 { margin: 0 0 0.5rem; font-size: clamp(1.8rem, 6vw, 2.8rem); }
.hw-final p { max-width: 52ch; margin: 0 auto 1.2rem; color: var(--ink-dim); line-height: 1.65; }
.hw-final .hw-cta { justify-content: center; }
.hw-calabazas { display: flex; justify-content: center; gap: clamp(0.6rem, 3vw, 1.4rem); margin-top: 2.2rem; opacity: 0.9; }
.hw-calabazas svg { width: clamp(38px, 9vw, 62px); height: auto; shape-rendering: crispEdges; filter: drop-shadow(0 0 12px rgba(255, 138, 31, 0.5)); animation: hw-late 3.2s ease-in-out infinite; }
.hw-calabazas svg:nth-child(2n) { animation-delay: -1.1s; }
.hw-calabazas svg:nth-child(3n) { animation-delay: -2.2s; }

/* ====================================================================
   LA PORTADA DE LA WEB (tarjeta destacada)
   ==================================================================== */
.hw-destacado {
  position: relative;
  display: grid;
  gap: 1rem 1.6rem;
  align-items: center;
  overflow: hidden;
  padding: clamp(1.2rem, 3.5vw, 1.8rem);
  border-radius: 16px;
  isolation: isolate;
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(255, 138, 31, 0.25), transparent 60%),
    radial-gradient(70% 110% at 0% 100%, rgba(163, 91, 255, 0.22), transparent 60%),
    #150d1c;
  box-shadow: inset 0 0 0 1px rgba(255, 138, 31, 0.5), 0 24px 50px -30px rgba(255, 110, 20, 0.55);
}
@media (min-width: 820px) { .hw-destacado { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); } }
.hw-destacado-etq { display: inline-block; margin-bottom: 0.5rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #ffb44d; }
.hw-destacado h2 { margin: 0 0 0.5rem; font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.06; }
.hw-destacado p { margin: 0 0 1rem; color: #d9cde3; line-height: 1.65; max-width: 56ch; }
.hw-destacado p strong { color: #ffd88a; }
.hw-destacado-botones { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hw-destacado-botones .btn { text-decoration: none; }
.hw-destacado-foto { margin: 0; min-width: 0; }
.hw-destacado-foto img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #523468;
  box-shadow: 0 0 0 1px #000, 0 18px 40px -22px rgba(255, 120, 20, 0.6);
}
.hw-destacado-reloj { margin: 0.2rem 0 1rem; font-weight: 700; color: #ffd88a; font-size: 0.95rem; }

/* ====================================================================
   MOVIMIENTO REDUCIDO
   ==================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hw-murcielago, .hw-reloj-etq::before, .hw-noche.es-ahora .hw-estado, .hw-calabazas svg { animation: none; }
}
@media (max-width: 640px) {
  .hw-murcielago:nth-of-type(n+3) { display: none; }
  .hw-luna { opacity: 0.4; }
}

/* ====================================================================
   CABECERA EN MOVILES ESTRECHOS
   Los ajustes de la cabecera para 380 px de styles.css dejaban fuera a los
   telefonos de 381 a ~410 px (iPhone de 390 y 393: el boton del menu se salia
   17 px) y a los de menos de 340. Aqui se amplian. Solo afecta a las paginas
   que cargan esta hoja; cuando se resselle styles.css conviene llevarlo alli.
   ==================================================================== */
@media (max-width: 430px) {
  .nav-row { gap: 0.5rem; }
  .nav-actions { gap: 0.35rem; padding-left: 0.5rem; }
  .nav-actions .btn { padding: 0 0.7em; font-size: 0.66rem; }
  .nav-actions .lang a { padding: 0 0.5em; font-size: 0.66rem; }
  #menu-toggle { width: 36px; height: 36px; }
}
@media (max-width: 345px) {
  .brand { font-size: 1rem; gap: 0.35rem; }
  .brand-mark { width: 26px; height: 26px; }
  .nav-actions { padding-left: 0; gap: 0.25rem; }
  .nav-actions::before { display: none; }
  .nav-actions .lang { padding: 2px; }
  .nav-actions .lang a { padding: 0 0.4em; }
  .nav-actions .btn { padding: 0 0.5em; }
  #menu-toggle { width: 32px; height: 32px; }
  header .nav-row { padding-left: 0.5rem; padding-right: 0.5rem; }
}
