/* ZamiGTZ: colores, fuente y animaciones sacados del logo animado. */

@property --rgb-a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  color-scheme: dark;
  --ink: #08080f;
  --panel: #12121e;
  --panel-2: #191928;
  --line: #2c2c40;
  --text: #f4f5ff;
  --muted: #abacc6;
  --yellow: #e8ff3a;
  --cyan: #00e5ff;
  --pink: #ff2e88;
  --blue: #3d5afe;
  --rgb: linear-gradient(90deg, var(--yellow), var(--cyan), var(--blue), var(--pink), var(--yellow));
  --rgb-v: linear-gradient(180deg, var(--yellow), var(--cyan), var(--blue), var(--pink), var(--yellow));
  --rgb-spin: conic-gradient(from var(--rgb-a), var(--yellow), var(--cyan), var(--blue), var(--pink), var(--yellow));
  --rail: 0px; /* ancho de cada banda lateral */
  --gutter: clamp(16px, 3vw, 32px);
  --display: "Russo One", system-ui, sans-serif;
  --body: "Chakra Petch", system-ui, sans-serif;
  --slide-ms: 6000ms;
}
@media (min-width: 1100px) { :root { --rail: clamp(124px, 9.5vw, 190px); } }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  font: 500 16px/1.45 var(--body);
  color: var(--text);
  background:
    radial-gradient(70vw 50vh at 0% 55%, rgb(255 46 136 / .09), transparent 70%),
    radial-gradient(70vw 60vh at 100% 90%, rgb(0 229 255 / .08), transparent 70%),
    var(--ink);
  background-attachment: fixed;
}

h1, h2, p, figure { margin: 0; }
img, svg { display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 50;
  padding: 10px 16px; background: var(--yellow); color: var(--ink); font-weight: 700;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Las bandas flotan encima: el fondo llega hasta el borde y solo el contenido se aparta de ellas. */
.wrap { width: 100%; max-width: min(1200px, calc(100% - 2 * var(--rail))); margin-inline: auto; padding-inline: var(--gutter); }
.arrow { width: 20px; height: 20px; flex: none; }

/* ---------- Logo (del documento de marca) ---------- */

@keyframes zzJitter { 0%,86%,100% { transform: translate(0,0) } 88% { transform: translate(-6px,2px) } 90% { transform: translate(5px,-2px) } 92% { transform: translate(-3px,0) } 94% { transform: translate(0,0) } }
@keyframes zzBandA { 0%,60%,100% { transform: translateX(0) } 62% { transform: translateX(22px) } 66% { transform: translateX(-10px) } 70% { transform: translateX(0) } }
@keyframes zzBandB { 0%,30%,100% { transform: translateX(0) } 32% { transform: translateX(-24px) } 36% { transform: translateX(12px) } 40% { transform: translateX(0) } }
@keyframes zzPink { 0%,100% { transform: translate(0,0); opacity: .85 } 50% { transform: translate(-6px,2px); opacity: .6 } 88% { transform: translate(-14px,4px); opacity: 1 } }
@keyframes zzBlue { 0%,100% { transform: translate(0,0); opacity: .5 } 50% { transform: translate(5px,-2px); opacity: .35 } 90% { transform: translate(12px,-4px); opacity: .8 } }
@keyframes zzBlink { 0%,48%,52%,100% { opacity: 1 } 50% { opacity: 0 } }
@keyframes zzSpeed { 0% { transform: translateX(0) } 50% { transform: translateX(-14px) } 100% { transform: translateX(0) } }
@keyframes zzGlow { 0%,100% { opacity: .75 } 45% { opacity: .55 } 50% { opacity: .9 } 88% { opacity: .4 } 90% { opacity: .85 } }
@keyframes zzSliceA { 0%,64%,100% { transform: translateX(.2em) } 66% { transform: translateX(.45em) } 69% { transform: translateX(-.1em) } 72% { transform: translateX(.2em) } }
@keyframes zzSliceB { 0%,20%,100% { transform: translateX(-.24em) } 22% { transform: translateX(-.39em) } 25% { transform: translateX(.1em) } 28% { transform: translateX(-.24em) } }
@keyframes zzNameFlick { 0%,86%,100% { opacity: 1 } 88% { opacity: .4 } 90% { opacity: 1 } 92% { opacity: .6 } 94% { opacity: 1 } }

.zz-jitter { animation: zzJitter 3s steps(1,end) infinite; }
.zz-bandA { animation: zzBandA 2s steps(1,end) infinite; }
.zz-bandB { animation: zzBandB 3s steps(1,end) infinite; }
.zz-pink { animation: zzPink 2s ease-in-out infinite; }
.zz-blue { animation: zzBlue 1.5s ease-in-out infinite; }
.zz-blink { animation: zzBlink 1.2s steps(1,end) infinite; }
.zz-blink2 { animation: zzBlink 1.5s steps(1,end) infinite .4s; }
.zz-speed { animation: zzSpeed 1.2s ease-in-out infinite; }
.zz-glow { animation: zzGlow 3s ease-in-out infinite; }
.zz-nameflick { animation: zzNameFlick 3s steps(1,end) infinite; }

.logo { width: var(--logo-w); }
.logo svg { width: 100%; height: auto; overflow: visible; }

.zz-name {
  position: relative;
  isolation: isolate;
  width: fit-content;
  margin: 2px auto 0;
  transform: skewX(-12deg);
  font: 400 calc(var(--logo-w) * .145)/1 var(--display);
  letter-spacing: .1em;
  color: #fff;
}
.zz-ghost { position: absolute; inset: 0; }
.zz-ghost-glow { z-index: -4; color: var(--cyan); opacity: .85; filter: blur(.22em); }
.zz-ghost-pink { z-index: -2; color: var(--pink); transform: translate(-.08em, .05em); }
.zz-sliceA { z-index: -1; color: var(--pink); clip-path: inset(44% 0 42% 0); animation: zzSliceA 2s steps(1,end) infinite; }
.zz-sliceB { z-index: -3; color: var(--yellow); clip-path: inset(76% 0 10% 0); animation: zzSliceB 3s steps(1,end) infinite; }

/* ---------- Portada y carrusel ---------- */

/* La portada deja espacio: al entrar se ve también la cuenta regresiva y lo que sigue. */
.hero {
  --logo-w: clamp(150px, 44vw, 190px);
  position: relative;
  height: clamp(300px, 43svh, 420px);
  overflow: hidden;
  background: #05050a;
}
@media (min-width: 900px) {
  /* La portada toma el espacio que sobre, para que todo quepa en la primera pantalla. */
  .site { display: flex; flex-direction: column; min-height: 100svh; }
  .hero {
    --logo-w: clamp(170px, min(16vw, 27svh), 270px);
    flex: 1 0 clamp(290px, 42svh, 500px);
    height: auto;
    max-height: 640px;
  }
}

.carousel { position: absolute; inset: 0; touch-action: pan-y; }
.slides { position: absolute; inset: 0; }

.slide {
  position: absolute; inset: 0; overflow: hidden;
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.slide.on { opacity: 1; visibility: visible; transition: opacity .45s ease; }

.ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.slide.on .ph { animation: kenburns calc(var(--slide-ms) + 1500ms) ease-out forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }

/* Foto que no encaja en el marco: se ve completa, con su propia versión borrosa de fondo. */
.slide.contain::before {
  content: "";
  position: absolute; inset: -40px;
  background: var(--src) center / cover no-repeat;
  filter: blur(34px) saturate(1.3) brightness(.5);
}
.slide.contain .ph { object-fit: contain; object-position: center 22%; animation: none; filter: drop-shadow(0 0 22px rgb(0 0 0 / .55)); }

/* Video: aparece sobre su miniatura cuando ya está reproduciendo. */
.vid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 28%;
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.vid.playing { opacity: 1; }
.slide.is-video .ph { animation: none; }
.slide.contain .vid { object-fit: contain; object-position: center 22%; }
.vid-play {
  position: absolute; z-index: 1; left: 50%; top: 36%;
  display: grid; place-items: center;
  width: 72px; height: 72px; margin: -36px 0 0 -36px; padding: 0;
  border: 1px solid rgb(255 255 255 / .45);
  background: rgb(8 8 15 / .6);
  backdrop-filter: blur(6px);
  transform: skewX(-12deg);
}
.vid-play[hidden] { display: none; }
.vid-play svg { width: 30px; height: 30px; transform: skewX(12deg); }
@media (hover: hover) {
  .vid-play:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: -3px 2px 0 var(--pink), 3px -2px 0 var(--cyan); }
}

/* Separación RGB al cambiar de foto: dos copias teñidas, igual que el rosa y cian del logo. */
.gl {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: var(--gl, none) center 28% / cover no-repeat;
  background-blend-mode: multiply;
  mix-blend-mode: screen;
}
.carousel.fit-contain .gl { background-size: contain; background-position: center 22%; }
.gl-a { background-color: var(--pink); }
.gl-b { background-color: var(--cyan); }
.gl-tear {
  position: absolute; left: 0; right: 0; top: 40%; height: 7%;
  opacity: 0; pointer-events: none;
  background: var(--rgb); mix-blend-mode: screen;
}
.carousel.fx .gl-a { animation: glA .46s steps(1, end); }
.carousel.fx .gl-b { animation: glB .46s steps(1, end); }
.carousel.fx .gl-tear { animation: glTear .46s steps(1, end); }

@keyframes glA {
  0% { opacity: .95; transform: translate(-22px, 4px); clip-path: inset(0 0 58% 0); }
  20% { opacity: .9; transform: translate(14px, -2px); clip-path: inset(30% 0 22% 0); }
  45% { opacity: .75; transform: translate(-12px, 2px); clip-path: inset(62% 0 0 0); }
  70% { opacity: .5; transform: translate(-6px, 0); clip-path: inset(0); }
  100% { opacity: 0; transform: none; clip-path: inset(0); }
}
@keyframes glB {
  0% { opacity: .95; transform: translate(22px, -4px); clip-path: inset(44% 0 0 0); }
  20% { opacity: .9; transform: translate(-16px, 3px); clip-path: inset(0 0 52% 0); }
  45% { opacity: .75; transform: translate(10px, -2px); clip-path: inset(18% 0 44% 0); }
  70% { opacity: .5; transform: translate(6px, 0); clip-path: inset(0); }
  100% { opacity: 0; transform: none; clip-path: inset(0); }
}
@keyframes glTear {
  0% { opacity: .7; top: 22%; height: 3%; }
  25% { opacity: .5; top: 58%; height: 6%; }
  50% { opacity: .6; top: 37%; height: 2%; }
  75% { opacity: .3; top: 76%; height: 4%; }
  100% { opacity: 0; }
}

.shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, var(--ink) 0%, rgb(8 8 15 / .9) 16%, rgb(8 8 15 / .35) 42%, transparent 62%),
    linear-gradient(to bottom, rgb(8 8 15 / .55), transparent 18%);
}
.shade::after {
  content: "";
  position: absolute; inset: 0; opacity: .3;
  background: repeating-linear-gradient(0deg, rgb(0 0 0 / .5) 0 1px, transparent 1px 3px);
}

/* Barras de avance arriba, cada una es un botón. */
.ticks {
  position: absolute; z-index: 6; top: 6px;
  left: calc(var(--rail) + var(--gutter)); right: calc(var(--rail) + var(--gutter));
  display: flex; gap: 6px;
}
.tick {
  position: relative; flex: 1; min-width: 0; height: 30px;
  padding: 0; border: 0; background: none;
}
.tick::before, .fill {
  content: ""; position: absolute; left: 0; top: 13px; height: 4px;
}
.tick::before { width: 100%; background: rgb(255 255 255 / .32); }
.fill { width: 0; background: var(--rgb); background-size: 400px 100%; box-shadow: 0 0 10px rgb(0 229 255 / .8); }
.tick.done .fill { width: 100%; }
.tick.on .fill { animation: fill var(--slide-ms) linear forwards; }
.carousel.paused .tick.on .fill, .carousel.video-wait .tick.on .fill { animation-play-state: paused; }
.carousel.no-auto .tick.on .fill { animation: none; width: 100%; }
.carousel.no-auto [data-pause] { display: none; }
.carousel.no-auto.on-video [data-pause] { display: grid; }
@keyframes fill { from { width: 0; } to { width: 100%; } }

.ctrls { position: absolute; z-index: 6; top: 42px; right: calc(var(--rail) + var(--gutter)); display: flex; gap: 6px; }
.ctrl {
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid rgb(255 255 255 / .28);
  background: rgb(8 8 15 / .6);
  backdrop-filter: blur(6px);
  transform: skewX(-12deg);
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.ctrl svg { width: 20px; height: 20px; transform: skewX(12deg); }
.ctrl .i-play { display: none; }
.ctrl[aria-pressed="true"] .i-play { display: block; }
.ctrl[aria-pressed="true"] .i-pause { display: none; }
.ctrl[hidden] { display: none; }
.ctrl .i-sound { display: none; }
.ctrl[aria-pressed="true"] .i-sound { display: block; }
.ctrl[aria-pressed="true"] .i-muted { display: none; }
@media (hover: hover) {
  .ctrl:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: -3px 2px 0 var(--pink), 3px -2px 0 var(--cyan); }
}
/* En el celular se cambia de foto deslizando o con las barras; así el aviso de EN VIVO cabe al lado. */
@media (max-width: 560px) {
  .ctrl[data-prev], .ctrl[data-next] { display: none; }
}

.hero-id {
  position: absolute; z-index: 5;
  left: 0; right: 0; bottom: 34px;
  width: 100%; max-width: min(1200px, calc(100% - 2 * var(--rail))); margin-inline: auto; padding-inline: var(--gutter);
  pointer-events: none;
}
.tagline {
  margin-top: 6px; max-width: 34em;
  font-size: clamp(14.5px, 1.1vw, 17px); font-weight: 600; line-height: 1.3;
  text-shadow: 0 1px 12px rgb(0 0 0 / .9);
}

/* Sin fotos todavía: la portada es el logo en grande sobre una rejilla RGB. */
.hero.hero-empty { --logo-w: clamp(210px, min(22vw, 38svh), 360px); }
.hero-empty .hero-id { bottom: auto; top: 47%; transform: translateY(-50%); display: grid; justify-items: center; text-align: center; }
.hero-empty .shade { background: linear-gradient(to top, var(--ink), transparent 30%); }
.hero-empty .shade::after { opacity: .15; }
.hero-grid {
  position: absolute; inset: 0;
  background:
    radial-gradient(45% 55% at 22% 40%, rgb(255 46 136 / .24), transparent 70%),
    radial-gradient(45% 55% at 78% 45%, rgb(0 229 255 / .22), transparent 70%),
    radial-gradient(40% 40% at 50% 85%, rgb(61 90 254 / .3), transparent 70%),
    linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px) 0 0 / 48px 100%;
}

.live-banner {
  position: absolute; z-index: 6; top: 42px; left: calc(var(--rail) + var(--gutter));
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 14px;
  background: var(--pink); color: var(--ink);
  font-weight: 700; text-decoration: none;
  transform: skewX(-12deg);
  box-shadow: -4px 2px 0 var(--yellow), 4px -2px 0 var(--cyan);
}
.live-banner > * { transform: skewX(12deg); }

.dot {
  display: inline-block; width: 10px; height: 10px; flex: none;
  border-radius: 50%; background: currentColor;
  animation: dot 1.2s ease-in-out infinite;
}
@keyframes dot { 50% { opacity: .25; } }

/* Tira de luces, como la de un gabinete RGB. */
.led {
  position: relative; z-index: 4;
  height: 4px;
  background: var(--rgb);
  background-size: 200% 100%;
  box-shadow: 0 0 16px rgb(0 229 255 / .6), 0 0 44px rgb(255 46 136 / .4);
  animation: ledRun 5s linear infinite;
}
.led-thin { height: 2px; box-shadow: 0 0 12px rgb(0 229 255 / .4); }
@keyframes ledRun { to { background-position: -200% 0; } }

/* ---------- Tarjetas de transmisión ---------- */

@keyframes spin { to { --rgb-a: 360deg; } }

.streams {
  position: relative; z-index: 5;
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  margin-top: -24px;
}

.stream {
  --cut: 16px;
  display: block; padding: 2px;
  background: var(--rgb-spin);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  text-decoration: none;
  animation: spin 7s linear infinite;
}
.stream.is-live { animation-duration: 1.6s; }
.stream:focus-visible { outline: none; }
.stream:focus-visible .stream-in { outline: 3px solid var(--yellow); outline-offset: -6px; }

.stream-in {
  --cut: 15px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 72px; padding: 10px 16px;
  background: var(--panel);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background .15s;
}
.stream-ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; background: rgb(255 255 255 / .06); transition: filter .15s; }
.stream-ic svg { width: 25px; height: 25px; }
.stream-kick .stream-ic { color: #53fc18; }
.stream-youtube .stream-ic { color: #ff3b30; }

.stream-txt { display: grid; gap: 1px; min-width: 0; }
.stream-top { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 10px; }
.stream-name { font: 400 20px/1.15 var(--display); letter-spacing: .03em; }
.stream-sub { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px;
  background: var(--pink); color: var(--ink);
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.pill .dot { width: 8px; height: 8px; }

.stream-cta { display: inline-flex; align-items: center; gap: 6px; color: var(--yellow); font-weight: 700; white-space: nowrap; transition: gap .15s; }
.stream.is-live .stream-cta { color: var(--pink); }
.stream.is-live .stream-sub { color: var(--text); }

@media (hover: hover) {
  .stream:hover { animation-duration: 1.6s; }
  .stream:hover .stream-in { background: var(--panel-2); }
  .stream:hover .stream-ic { filter: drop-shadow(-3px 1px 0 var(--pink)) drop-shadow(3px -1px 0 var(--cyan)); }
  .stream:hover .stream-cta { gap: 12px; }
}
@media (max-width: 460px) {
  .stream-in { min-height: 66px; padding: 8px 14px; }
  .stream-cta [data-cta] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* ---------- Títulos ---------- */

.h2 {
  font: 400 clamp(20px, 1.6vw, 25px)/1.15 var(--display);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.h2 > span {
  display: inline-block;
  transform: skewX(-12deg);
  text-shadow: -2px 1px 0 var(--pink), 2px -1px 0 var(--cyan);
}

/* ---------- Cuenta regresiva ---------- */

.gta {
  position: relative;
  margin-top: 14px;
  padding-block: 24px;
  background:
    linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px) 0 0 / 100% 40px,
    linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px) 0 0 / 40px 100%,
    linear-gradient(100deg, rgb(61 90 254 / .3), rgb(255 46 136 / .2) 60%, rgb(0 229 255 / .16));
  clip-path: polygon(0 12px, 100% 0, 100% calc(100% - 12px), 0 100%);
}
.gta-in { display: grid; gap: 10px; align-items: center; }
@media (min-width: 760px) { .gta-in { grid-template-columns: 1fr auto; gap: 32px; } }
.gta-txt p { margin-top: 2px; font-size: 15px; line-height: 1.35; }
.gta-txt time { color: var(--yellow); font-weight: 700; white-space: nowrap; }

.clock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 760px) { .clock { grid-template-columns: repeat(4, 86px); } }
.unit {
  --cut: 8px;
  display: grid; justify-items: center; gap: 1px;
  padding: 7px 4px 5px;
  background: rgb(8 8 15 / .78);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.unit b {
  font: 400 clamp(28px, 8vw, 40px)/1 var(--display);
  font-variant-numeric: tabular-nums;
}
.unit span { color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.unit-d b { color: var(--yellow); }
.unit-h b { color: var(--cyan); }
.unit-m b { color: var(--pink); }
.unit-s b { color: #fff; }

/* ---------- Redes y contacto, uno al lado del otro ---------- */

.lower { display: grid; gap: 16px; margin-top: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .lower.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.nets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.net {
  --cut: 10px;
  flex: 1 1 150px;
  display: block; padding: 1.5px;
  background: var(--line);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  text-decoration: none;
}
.net-in {
  --cut: 9px;
  display: flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 8px 12px;
  background: var(--panel);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.net-ic svg { width: 22px; height: 22px; }
.net-name { flex: 1; font-weight: 700; font-size: 15.5px; }
.net .arrow { color: var(--muted); transition: transform .15s, color .15s; }
@media (max-width: 560px) {
  .net { flex-basis: 140px; }
  .net-in { padding-inline: 12px; }
  .net .arrow { display: none; }
}
.net:focus-visible { outline: none; }
.net:focus-visible .net-in { outline: 3px solid var(--yellow); outline-offset: -5px; }
@media (hover: hover) {
  .net:hover { background: var(--rgb-spin); animation: spin 2.4s linear infinite; }
  .net:hover .net-in { background: var(--panel-2); }
  .net:hover .net-ic { filter: drop-shadow(-2px 1px 0 var(--pink)) drop-shadow(2px -1px 0 var(--cyan)); }
  .net:hover .arrow { color: var(--yellow); transform: translateX(4px); }
}

.contact-box { display: grid; }
.contact {
  --cut: 16px;
  display: grid;
  padding: 2px;
  background: var(--rgb);
  background-size: 200% 100%;
  animation: ledRun 8s linear infinite;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.contact-in {
  --cut: 15px;
  display: grid; gap: 8px; align-content: center;
  padding: 14px 20px;
  background: var(--panel);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.contact-lead { margin-top: 2px; color: var(--muted); font-size: 15px; line-height: 1.35; }
.contact-act { display: grid; gap: 8px; min-width: 0; }
.mail {
  font-weight: 700; font-size: 18px; line-height: 1.25;
  color: var(--yellow); overflow-wrap: anywhere; text-decoration: none;
}
.mail:hover { text-decoration: underline; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; padding-inline: 6px; }
.btn {
  display: inline-grid; place-items: center;
  min-height: 44px; padding: 6px 18px;
  border: 2px solid transparent;
  font-weight: 700; text-decoration: none;
  transform: skewX(-12deg);
  transition: box-shadow .15s;
}
.btn > span { display: block; transform: skewX(12deg); }
@media (max-width: 560px) { .btn { flex: 1 1 100%; } }
.btn-main { background: var(--yellow); color: var(--ink); }
.btn-alt { background: transparent; border-color: var(--cyan); color: var(--cyan); }
@media (hover: hover) {
  .btn:hover { box-shadow: -4px 2px 0 var(--pink), 4px -2px 0 var(--cyan); }
  .btn-alt:hover { box-shadow: -4px 2px 0 var(--pink), 4px -2px 0 var(--yellow); }
}

/* ---------- Bandas de sponsors ---------- */

.rail {
  --tile: var(--rail);
  position: fixed; z-index: 20; top: 0; bottom: 0;
  display: none;
  width: var(--rail);
  pointer-events: none; /* lo de abajo sigue respondiendo; solo las marcas con enlace reciben clics */
}
.rail a { pointer-events: auto; }
@media (min-width: 1100px) { .rail { display: block; } }
.rail-l { left: 0; }
.rail-r { right: 0; }

/* Tira de luces en el borde de la pantalla: por dentro volvería a marcar una columna aparte. */
.rail::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: var(--rgb-v);
  background-size: 100% 200%;
  box-shadow: 0 0 10px rgb(0 229 255 / .3);
  animation: ledRunV 5s linear infinite;
}
.rail-l::after { left: 0; }
.rail-r::after { right: 0; }
@keyframes ledRunV { to { background-position: 0 -200%; } }

.rail-view {
  position: absolute; inset: 0;
  overflow: hidden;
  padding-inline: 10px;
}

/* Mismo truco de la banda horizontal: dos copias iguales y se desplaza la mitad, sin cortes. */
.rail-track { display: flex; flex-direction: column; animation: railUp calc(var(--items) * 3.4s) linear infinite; }
.rail-r .rail-track { animation-name: railDown; }
.rail-set { display: flex; flex-direction: column; gap: 10px; padding-bottom: 10px; }
@keyframes railUp { to { transform: translateY(-50%); } }
@keyframes railDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }

/* Solo se detiene para poder hacer clic en una marca con enlace. */
.rail-track:has(a:hover), .rail-track:has(a:focus-visible),
.hband-track:has(a:hover), .hband-track:has(a:focus-visible) { animation-play-state: paused; }

/* Marco de cristal: deja ver lo que pasa detrás, desenfocado, con apenas un filo de luz. */
.tile {
  display: block; flex: none;
  border: 1px solid rgb(255 255 255 / .1);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / .07), rgb(255 255 255 / .012) 42%, rgb(255 255 255 / .03)),
    rgb(8 8 15 / .28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .06);
  color: inherit; text-decoration: none;
}
/* Todas iguales de alto: el ritmo parejo hace menos ruido que piezas de tamaños distintos. */
.tile-in {
  display: grid; grid-template-rows: minmax(0, 1fr); place-items: center;
  height: calc(var(--tile) * .8);
  padding: calc(var(--tile) * .08);
  border-radius: inherit;
  text-align: center;
}
.tile-in b { font: 400 calc(var(--tile) * .082)/1.2 var(--display); letter-spacing: .04em; color: rgb(255 255 255 / .5); }
.tile-img img {
  width: 100%; height: 100%; object-fit: contain;
  opacity: .78;
  filter: saturate(.85);
  transition: opacity .2s, filter .2s;
}
@media (hover: hover) {
  a.tile:hover { border-color: rgb(255 255 255 / .2); }
  a.tile:hover img { opacity: 1; filter: none; }
  a.tile:hover b { color: rgb(255 255 255 / .85); }
}
a.tile:focus-visible { outline-offset: -3px; }
/* Para logos oscuros que se pierden sobre el fondo: se activa por sponsor desde el panel. */
.tile-light { background: rgb(255 255 255 / .58); }
.tile-light img { opacity: 1; filter: none; }

/* Versión horizontal para pantallas donde no caben a los lados. */
.hband {
  --tile: 116px;
  overflow: hidden;
  margin-top: 12px; padding-block: 8px;
  border-block: 1px solid rgb(255 255 255 / .06);
}
@media (min-width: 1100px) { .hband { display: none; } }
.hband-track { display: flex; width: max-content; animation: hbandRun calc(var(--items) * 2.6s) linear infinite; }
.hband-set { display: flex; gap: 8px; padding-right: 8px; }
.hband .tile { width: var(--tile); }
.hband .tile-in { height: 74px; padding: 7px; }
.hband .tile-in b { font-size: 11.5px; }
@keyframes hbandRun { to { transform: translateX(-50%); } }

/* ---------- Pie ---------- */

.foot { margin-top: auto; padding-top: 16px; }
.foot p { padding: 10px var(--gutter) 12px; text-align: center; color: var(--muted); font-size: 13.5px; }

/* ---------- Música de fondo ---------- */

.music {
  position: fixed; z-index: 30;
  right: calc(var(--rail) + var(--gutter)); bottom: max(14px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 8px;
  min-height: 44px; max-width: min(240px, 60vw); padding: 0 14px;
  border: 1px solid rgb(255 255 255 / .28);
  background: rgb(8 8 15 / .72);
  backdrop-filter: blur(6px);
  font-size: 14px; font-weight: 600;
  transform: skewX(-12deg);
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.music > * { transform: skewX(12deg); }
.music-note { flex: none; width: 18px; height: 18px; }
.music-bars { display: none; flex: none; align-items: flex-end; gap: 2px; width: 18px; height: 16px; }
.music-bars i { flex: 1; height: 100%; background: var(--cyan); transform-origin: bottom; animation: musicBar .9s ease-in-out infinite alternate; }
.music-bars i:nth-child(2) { background: var(--yellow); animation-delay: -.4s; }
.music-bars i:nth-child(3) { background: var(--pink); animation-delay: -.7s; }
.music-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.music.on { border-color: var(--cyan); }
.music.on .music-note { display: none; }
.music.on .music-bars { display: flex; }
@keyframes musicBar { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@media (hover: hover) {
  .music:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: -3px 2px 0 var(--pink), 3px -2px 0 var(--cyan); }
}
/* En el celular se queda solo el ícono, para no tapar el contenido. */
@media (max-width: 560px) {
  .music { justify-content: center; width: 48px; padding: 0; }
  .music-label { display: none; }
}

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .gl, .gl-tear { display: none; }
  .rail-view { overflow-y: auto; }
  .hband { overflow-x: auto; }
}
