/* JjgamingRD: azul eléctrico, negro y blanco, los colores de su logo. Limpio y actual. */

:root {
  color-scheme: dark;
  --night: #03060f;
  --panel: rgb(14 24 42 / .62);
  --panel-solid: #0a111e;
  --line: rgb(140 190 255 / .16);
  --text: #f2f7ff;
  --muted: #a3b4cc;
  --blue: #1f9bff;
  --blue-deep: #0a5fe0;
  --ice: #bfe3ff;
  --red: #ff2d2a;
  --gutter: clamp(18px, 4vw, 64px);
  --font: "Archivo", system-ui, sans-serif;
  --slide-ms: 6500ms;
}

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

html { background: var(--night); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.igniting { overflow: hidden; }

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  font: 450 17px/1.5 var(--font);
  color: var(--text);
  background: var(--night);
}

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(--ice); outline-offset: 3px; }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 110;
  padding: 10px 16px; border-radius: 10px;
  background: var(--blue); color: #02101f; font-weight: 700;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap { width: min(1240px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.arrow { width: 20px; height: 20px; flex: none; }

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

.kicker { color: var(--blue); font-size: 14px; font-weight: 650; }
.h2 {
  margin-top: 4px;
  font-size: clamp(30px, 4.2vw, 56px);
  font-weight: 750;
  font-stretch: 112%;
  line-height: 1.04;
  letter-spacing: -.022em;
}
.lead { margin-top: 10px; max-width: 44em; color: var(--muted); font-size: 18px; }
.lead time { color: var(--text); font-weight: 650; white-space: nowrap; }

/* ---------- Pantalla de carga ---------- */

.ignition {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  overflow: hidden;
  background:
    radial-gradient(70vmax 34vmax at 50% 108%, rgb(31 155 255 / .18), transparent 72%),
    #010205;
  cursor: pointer;
  /* Red de seguridad: si el JavaScript no llega, la carga no se queda tapando la página. */
  animation: igFailsafe .3s linear 14s forwards;
}
@keyframes igFailsafe { to { opacity: 0; visibility: hidden; } }

.ig-stage { display: grid; justify-items: center; gap: clamp(8px, 1.6vh, 16px); width: min(90vw, 64svh); }

.ig-leds { display: flex; gap: clamp(5px, .9vw, 9px); }
.ig-leds i {
  width: clamp(9px, 1.5vh, 13px); aspect-ratio: 1;
  border-radius: 50%;
  background: #10151d;
  box-shadow: inset 0 1px 1px rgb(0 0 0 / .9), 0 1px 0 rgb(255 255 255 / .05);
  transition: background .05s, box-shadow .05s;
}
.ig-leds i.on { background: var(--blue); box-shadow: 0 0 12px 1px var(--blue); }
.ig-leds i.on.a { background: #e8f4ff; box-shadow: 0 0 12px 1px #bfe3ff; }
.ig-leds i.on.r { background: var(--red); box-shadow: 0 0 14px 2px var(--red); }

/* Tablero: aro de metal cepillado, esfera negra retroiluminada, aguja con sombra y cristal encima. */
.ig-gauge { position: relative; width: 100%; aspect-ratio: 1; filter: drop-shadow(0 24px 40px rgb(0 0 0 / .9)); }
.ig-bezel {
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    repeating-conic-gradient(rgb(255 255 255 / .018) 0 .35deg, rgb(0 0 0 / .03) .35deg .7deg),
    conic-gradient(from 18deg, #8d98a5, #e6edf4 7%, #6e7985 16%, #3b444e 26%, #c3ced9 36%, #59636e 47%, #343c45 56%, #dfe7ef 66%, #636d78 76%, #333b44 86%, #8d98a5);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35), inset 0 0 6px 1px rgb(0 0 0 / .6);
}
.ig-bezel::after {
  /* Escalón hacia adentro: la esfera queda hundida respecto al aro. */
  content: "";
  position: absolute; inset: 3.4%;
  border-radius: 50%;
  background: linear-gradient(180deg, #05070a, #2c343d);
  box-shadow: inset 0 3px 7px rgb(0 0 0 / .95);
}
.ig-dial {
  position: absolute; inset: 4.4%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 62%, rgb(0 0 0 / .62) 100%),
    repeating-radial-gradient(circle at 50% 50%, rgb(255 255 255 / .012) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 50% 42%, #10161e, #06090d 70%);
  box-shadow: inset 0 14px 26px rgb(0 0 0 / .9);
}
.ig-gauge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* La iluminación del tablero se prende al dar contacto. */
.ig-marks { opacity: .05; transition: opacity .34s ease-out; }
.ignition.on .ig-marks { opacity: 1; }
.ig-marks text { font-family: var(--font); fill: #f3f8ff; text-anchor: middle; }
.ig-num { font-size: 38px; font-weight: 560; font-stretch: 80%; dominant-baseline: central; filter: drop-shadow(0 0 5px rgb(120 195 255 / .85)); }
.ig-num.hot { fill: #ff4b45; filter: drop-shadow(0 0 6px rgb(255 45 42 / .85)); }
.ig-brand { font-size: 15px; font-weight: 650; font-stretch: 112%; letter-spacing: .01em; fill-opacity: .92; }
.ig-unit { font-size: 10.5px; font-weight: 500; letter-spacing: .12em; fill-opacity: .6; }
.ig-tick { stroke: #eaf4ff; filter: drop-shadow(0 0 2px rgb(120 195 255 / .8)); }
.ig-tick.minor { stroke-opacity: .62; }
.ig-tick.hot { stroke: #ff3a36; stroke-opacity: 1; filter: drop-shadow(0 0 3px rgb(255 45 42 / .9)); }
.ig-red { fill: none; stroke: #e8201d; stroke-width: 7; filter: drop-shadow(0 0 7px rgb(255 45 42 / .75)); }
.ig-panel rect { fill: #020406; stroke: rgb(120 190 255 / .24); stroke-width: 1; }
.ig-gear { font-size: 42px; font-weight: 700; font-stretch: 86%; fill: var(--ice); filter: drop-shadow(0 0 7px rgb(90 180 255 / .95)); }
.ig-rpm { font-size: 13px; font-weight: 550; letter-spacing: .1em; font-variant-numeric: tabular-nums; fill: #7fc4ff; }
/* Testigos: se prenden con el contacto y se apagan solos, como en un carro. */
.ig-tell { opacity: 0; transition: opacity .1s; }
.ignition.on .ig-tell { opacity: 1; }
.ignition.ready .ig-tell { opacity: 0; transition: opacity .28s; }

.ig-needle { transform-origin: 240px 240px; transform: rotate(-135deg); }
.ig-needle-body { filter: drop-shadow(0 5px 3px rgb(0 0 0 / .8)) drop-shadow(0 0 7px rgb(255 45 42 / .75)); }
.ig-glass {
  position: absolute; inset: 4.4%;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(120% 74% at 50% -14%, rgb(255 255 255 / .15), rgb(255 255 255 / .03) 52%, transparent 53%),
    radial-gradient(70% 20% at 66% 92%, rgb(120 195 255 / .06), transparent 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .05);
}

.ig-msg { min-height: 1.4em; font-size: clamp(18px, 2.8vh, 26px); font-weight: 650; font-stretch: 108%; letter-spacing: -.01em; text-align: center; }
.ig-bar { width: 58%; height: 2px; overflow: hidden; border-radius: 2px; background: rgb(255 255 255 / .1); }
.ig-bar i { display: block; height: 100%; width: 0; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.ig-skip { color: #8b9bb2; font-size: 14px; }

.ig-flash { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(circle at 50% 46%, #fff, #a6dbff 26%, var(--blue) 62%, #031a3d); }

.ignition.launch { animation: igOut .92s cubic-bezier(.5, 0, .3, 1) forwards; pointer-events: none; }
.ignition.launch .ig-stage { animation: igZoom .62s cubic-bezier(.7, 0, .84, 0) forwards; }
.ignition.launch .ig-flash { animation: igFlash .92s ease-out forwards; }
@keyframes igZoom { to { transform: scale(3.4); opacity: 0; filter: blur(12px); } }
@keyframes igFlash { 0%, 38% { opacity: 0; } 54% { opacity: 1; } 100% { opacity: 0; } }
@keyframes igOut { 0%, 54% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

/* ---------- Portada ---------- */

.hero {
  /* Cuatro cuadros justos en un teléfono; en pantallas mayores caben más. */
  --tile: clamp(64px, calc((100vw - 2 * var(--gutter) - 24px) / 4), 150px);
  --band-h: max(62px, calc(var(--tile) * .68));
  --band-bottom: clamp(10px, 1.8svh, 18px);
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background:
    radial-gradient(90% 46% at 50% 58%, rgb(31 110 230 / .34), transparent 72%),
    linear-gradient(180deg, #020409, #06122a 58%, #020409 60%, #03060f);
}

.city { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .3s; }
.city.ready { opacity: 1; }

.carousel { position: absolute; inset: 0; touch-action: pan-y; }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; overflow: hidden; visibility: hidden; opacity: 0; }
.slide.on { visibility: visible; opacity: 1; }

.ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.slide.on .ph { animation: drift calc(var(--slide-ms) + 1800ms) cubic-bezier(.2, .2, .4, 1) forwards; }
@keyframes drift { from { transform: none; } to { transform: scale(1.07); } }

/* 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.2) brightness(.45);
}
.slide.contain .ph { object-fit: contain; object-position: center 24%; animation: none; }

.vid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  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 24%; }
.vid-play {
  position: absolute; z-index: 1; left: 50%; top: 38%;
  display: grid; place-items: center;
  width: 76px; height: 76px; margin: -38px 0 0 -38px; padding: 0;
  border: 1px solid rgb(255 255 255 / .45); border-radius: 6px;
  background: rgb(3 6 15 / .62);
  backdrop-filter: blur(10px);
  transform: skewX(-12deg);
  transition: border-color .15s, color .15s, box-shadow .15s;
}
@media (hover: hover) {
  .vid-play:hover { border-color: var(--blue); color: var(--ice); box-shadow: 0 0 22px rgb(31 155 255 / .6); }
}
.vid-play svg { width: 30px; height: 30px; transform: skewX(12deg); }

/* Cambio de foto: la nueva entra en diagonal, enfocándose, detrás de un filo de luz azul. */
.shift-fx { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; visibility: hidden; }
.shift-fx.run { visibility: visible; }
.shift-img {
  position: absolute; inset: 0;
  background: #03060f var(--gl, none) center 30% / cover no-repeat;
  clip-path: polygon(130% 0, 130% 0, 100% 100%, 100% 100%);
}
.shift-fx.fit-contain .shift-img { background-size: contain; background-position: center 24%; }
.shift-edge {
  position: absolute; top: -10%; bottom: -10%; left: 0; width: 22vw;
  background: linear-gradient(90deg, transparent, rgb(31 155 255 / .4) 40%, #e6f4ff 50%, rgb(31 155 255 / .4) 60%, transparent);
  filter: blur(10px);
  mix-blend-mode: screen;
  transform: translateX(120vw) skewX(-16.7deg);
}
.shift-fx.run .shift-img { animation: wipeNext .74s cubic-bezier(.68, 0, .16, 1) both; }
.shift-fx.run .shift-edge { animation: edgeNext .74s cubic-bezier(.68, 0, .16, 1) both; }
.shift-fx.run[data-dir="-1"] .shift-img { animation-name: wipePrev; }
.shift-fx.run[data-dir="-1"] .shift-edge { animation-name: edgePrev; }
@keyframes wipeNext {
  from { clip-path: polygon(130% 0, 130% 0, 100% 100%, 100% 100%); transform: scale(1.1); filter: blur(10px) brightness(1.5); }
  to { clip-path: polygon(0 0, 130% 0, 100% 100%, -30% 100%); transform: none; filter: none; }
}
@keyframes wipePrev {
  from { clip-path: polygon(0 0, 0 0, -30% 100%, -30% 100%); transform: scale(1.1); filter: blur(10px) brightness(1.5); }
  to { clip-path: polygon(0 0, 130% 0, 130% 100%, -30% 100%); transform: none; filter: none; }
}
@keyframes edgeNext {
  from { opacity: 1; transform: translateX(120vw) skewX(-16.7deg); }
  85% { opacity: 1; }
  to { opacity: 0; transform: translateX(-40vw) skewX(-16.7deg); }
}
@keyframes edgePrev {
  from { opacity: 1; transform: translateX(-40vw) skewX(-16.7deg); }
  85% { opacity: 1; }
  to { opacity: 0; transform: translateX(120vw) skewX(-16.7deg); }
}
.slide.leaving .ph, .slide.leaving .vid { transition: transform .74s cubic-bezier(.68, 0, .4, 1), filter .74s; transform: scale(1.1) !important; filter: brightness(.5) blur(4px); animation: none; }

.shade {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(to top, var(--night) 0%, rgb(3 6 15 / .78) 16%, rgb(3 6 15 / .22) 42%, transparent 60%),
    linear-gradient(to bottom, rgb(3 6 15 / .5), transparent 18%);
}

.hero-foot {
  position: absolute; z-index: 5; left: 0; right: 0;
  bottom: calc(var(--band-bottom) + var(--band-h) + clamp(12px, 2.4svh, 24px));
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 36px; flex-wrap: wrap;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.hero-foot a, .hero-foot button { pointer-events: auto; }
.hero-side { display: grid; gap: 10px; width: min(100%, 430px); }

.brand { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 26px); }
.brand-logo {
  width: clamp(84px, 8vw, 132px); height: auto; aspect-ratio: 1; flex: none;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgb(120 195 255 / .5), 0 0 44px rgb(31 155 255 / .55);
}
.brand-name {
  font-size: clamp(42px, 6.2vw, 112px);
  font-weight: 800;
  font-stretch: 118%;
  line-height: .96;
  letter-spacing: -.04em;
  text-shadow: 0 4px 40px rgb(0 0 0 / .55);
}
.brand-name b { font-weight: 800; color: var(--blue); text-shadow: 0 0 40px rgb(31 155 255 / .7); }
.tagline {
  margin-top: 14px; max-width: 34em;
  font-size: clamp(17px, 1.4vw, 21px); font-weight: 500; line-height: 1.35;
  text-shadow: 0 1px 16px rgb(0 0 0 / .95);
}

/* Botones de transmisión */
.starts { display: grid; gap: 10px; }
.start {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  min-height: 72px; padding: 12px 20px 12px 14px;
  border-radius: 20px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line), 0 16px 40px rgb(0 0 0 / .4);
  backdrop-filter: blur(18px) saturate(1.3);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.start-kick { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), 0 16px 44px rgb(31 120 255 / .45); }
.start-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: rgb(255 255 255 / .1); }
.start-kick .start-btn { background: rgb(3 6 15 / .3); }
.start-ic { display: grid; }
.start-ic svg { width: 22px; height: 22px; }
.start-txt { display: grid; min-width: 0; }
.start-top { display: flex; align-items: center; gap: 2px 10px; flex-wrap: wrap; }
.start-name { font-size: 20px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.start-sub { color: var(--muted); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.start-kick .start-sub { color: rgb(255 255 255 / .86); }
.start-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; white-space: nowrap; transition: gap .18s; }
.start.is-live { background: linear-gradient(135deg, #e0201d, #a50f0d); box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), 0 16px 44px rgb(255 45 42 / .45); }
.start.is-live .start-sub { color: #fff; }
@media (hover: hover) {
  .start:hover { transform: translateY(-3px); }
  .start:hover .start-cta { gap: 12px; }
}
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 20px; background: #fff; color: #b00e0c; font-size: 12px; font-weight: 750; }
.pill .dot { width: 7px; height: 7px; }
.dot { display: inline-block; width: 10px; height: 10px; flex: none; border-radius: 50%; background: currentColor; animation: dot 1.1s ease-in-out infinite; }
@keyframes dot { 50% { opacity: .25; } }

.live-banner {
  position: absolute; z-index: 6; top: 42px; left: var(--gutter);
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 8px 18px;
  border-radius: 24px;
  background: var(--red); color: #fff;
  font-weight: 650; text-decoration: none;
  box-shadow: 0 8px 30px rgb(255 45 42 / .55);
}

/* ---------- Lo nuevo: una publicación a la vez, encima de los botones de transmisión ---------- */

.news {
  --news-ms: 6000ms;
  border-radius: 20px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px rgb(31 155 255 / .6), 0 16px 40px rgb(0 0 0 / .4), 0 0 26px rgb(31 155 255 / .24);
  backdrop-filter: blur(18px) saturate(1.3);
}
/* Todas ocupan la misma celda: la tarjeta no cambia de alto al pasar de una a otra. */
.news-items { display: grid; }
.news-item {
  grid-area: 1 / 1;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 84px; padding: 8px 16px 8px 10px;
  text-decoration: none;
  visibility: hidden;
}
.news-item.on { visibility: visible; animation: newsIn .46s cubic-bezier(.2, .7, .2, 1) backwards; }
/* Entra en diagonal, igual que las fotos de la portada. El recorte deja sitio a la foto, que asoma por arriba. */
@keyframes newsIn {
  from { opacity: 0; clip-path: polygon(100% -40%, 130% -40%, 100% 140%, 70% 140%); }
  to { opacity: 1; clip-path: polygon(-30% -40%, 130% -40%, 130% 140%, -30% 140%); }
}
/* La portada es una foto instantánea: marco blanco, más ancho abajo, un poco torcida y asomando por encima de la tarjeta. */
.news-thumb {
  --photo: 78px;
  display: block;
  margin-top: -22px;
  padding: 6px 5px 20px;
  border-radius: 2px;
  background: linear-gradient(160deg, #fffefa, #ece7da);
  box-shadow: 0 1px 2px rgb(0 0 0 / .35), 0 12px 24px rgb(0 0 0 / .55);
  transform: rotate(-4deg);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}
.news-photo {
  position: relative; display: grid; place-items: center;
  width: var(--photo); height: var(--photo); overflow: hidden;
  background: #12151a;
}
/* Brillo del papel, encima de la imagen. */
.news-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgb(255 255 255 / .16), transparent 42%);
  box-shadow: inset 0 0 5px rgb(0 0 0 / .4);
}
.news-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.news-photo svg { width: 34px; height: 34px; color: #fff; }
.news-photo.no-cover { background: var(--tint, var(--blue-deep)); }
/* Cada vez que sale, la foto se revela: de casi negra y lavada a sus colores. */
.news-item.on .news-photo > * { animation: newsDevelop 1.6s ease-out backwards; }
.news.waiting .news-item.on .news-photo > * { animation-play-state: paused; }
@keyframes newsDevelop {
  from { filter: brightness(.12) sepia(.7) contrast(.7) blur(2px); }
  45% { filter: brightness(.7) sepia(.35) contrast(.85) blur(.6px); }
  to { filter: none; }
}
.news-tiktok { --tint: #000; }
.news-youtube { --tint: #cf1610; }
.news-instagram { --tint: linear-gradient(40deg, #f9b233, #e6303f 45%, #a12db4); }
.news-facebook { --tint: #1468d8; }
.news-txt { display: grid; gap: 3px; min-width: 0; }
.news-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.news-top b {
  flex: none; padding: 1px 8px;
  border-radius: 5px;
  background: var(--blue); color: #02101f;
  font-size: 12.5px; font-weight: 750; line-height: 1.4;
  transform: skewX(-10deg);
}
.news-net { display: inline-flex; align-items: center; gap: 5px; min-width: 0; color: var(--muted); font-size: 13.5px; }
.news-net svg { width: 13px; height: 13px; flex: none; }
.news-net span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden;
  font-size: 15.5px; font-weight: 650; line-height: 1.22;
  overflow-wrap: anywhere;
}
.news-item .arrow { transition: transform .18s; }
@media (hover: hover) {
  .news-item:hover .arrow { transform: translateX(4px); }
  .news-item:hover .news-thumb { transform: rotate(-1deg) scale(1.07); }
  .news:hover { box-shadow: inset 0 0 0 1px var(--blue), 0 16px 40px rgb(0 0 0 / .4), 0 0 32px rgb(31 155 255 / .5); }
}

.news-ticks { display: flex; gap: 4px; padding: 0 14px 3px; }
.news-tick { position: relative; display: block; flex: 1; min-width: 0; height: 18px; padding: 0; border: 0; background: none; }
.news-tick::before, .news-fill {
  content: "";
  position: absolute; left: 0; right: 0; top: 7px;
  height: 3px; border-radius: 2px;
}
.news-tick::before { background: rgb(255 255 255 / .26); transition: background .15s; }
.news-fill { display: block; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; }
.news-tick.done .news-fill { transform: none; }
.news-tick.on .news-fill { animation: fill var(--news-ms) linear forwards; }
/* El reloj espera a que termine la pantalla de carga, y se detiene mientras alguien la está mirando o la portada no se ve. */
.news.waiting .news-tick.on .news-fill, .news.hold .news-tick.on .news-fill,
.news:hover .news-tick.on .news-fill, .news:focus-within .news-tick.on .news-fill { animation-play-state: paused; }
@media (hover: hover) { .news-tick:hover::before { background: rgb(255 255 255 / .55); } }

/* ---------- Controles del carrusel: una barra por pieza y botones sueltos ---------- */

.ticks {
  position: absolute; z-index: 6; top: 6px;
  left: var(--gutter); right: var(--gutter);
  display: flex; gap: 6px;
}
.tick {
  position: relative; display: block; flex: 1; min-width: 0;
  height: 30px; padding: 0;
  border: 0; background: none;
}
.tick::before, .fill {
  content: "";
  position: absolute; left: 0; right: 0; top: 13px;
  height: 4px; border-radius: 2px;
}
.tick::before { background: rgb(255 255 255 / .32); transition: background .15s; }
.fill {
  display: block;
  background: linear-gradient(90deg, var(--blue), var(--ice));
  box-shadow: 0 0 10px rgb(31 155 255 / .85);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.tick.done .fill { transform: none; }
.tick.on .fill { animation: fill var(--slide-ms) linear forwards; }
.carousel.paused .tick.on .fill, .carousel.video-wait .tick.on .fill, .carousel.hold .tick.on .fill { animation-play-state: paused; }
.carousel.no-auto .tick.on .fill { animation: none; transform: none; }
@keyframes fill { from { transform: scaleX(0); } to { transform: none; } }
@media (hover: hover) { button.tick:hover::before { background: rgb(255 255 255 / .6); } }

.ctrls { position: absolute; z-index: 6; top: 42px; right: 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); border-radius: 5px;
  background: rgb(3 6 15 / .62);
  backdrop-filter: blur(8px);
  transform: skewX(-12deg);
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.ctrl svg { width: 18px; height: 18px; transform: skewX(12deg); }
.ctrl .i-play, .ctrl .i-sound { display: none; }
.ctrl[aria-pressed="true"] .i-play, .ctrl[aria-pressed="true"] .i-sound { display: block; }
.ctrl[aria-pressed="true"] .i-pause, .ctrl[aria-pressed="true"] .i-muted { display: none; }
.ctrl[hidden] { display: none; }
.carousel.no-auto [data-pause] { display: none; }
.carousel.no-auto.on-video [data-pause] { display: grid; }
@media (hover: hover) {
  .ctrl:hover { border-color: var(--blue); color: var(--ice); box-shadow: 0 0 16px rgb(31 155 255 / .6); }
}
/* En el celular se cambia de pieza deslizando o con las barras. */
@media (max-width: 560px) {
  .ctrl[data-prev], .ctrl[data-next] { display: none; }
}

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

.countdown { padding-block: clamp(36px, 6vw, 84px) clamp(24px, 4vw, 48px); }
.count-in { display: grid; gap: 26px; align-items: center; }
@media (min-width: 960px) { .count-in { grid-template-columns: minmax(0, 1fr) auto; gap: 56px; } }
.clock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 960px) { .clock { grid-template-columns: repeat(4, 124px); } }
.unit {
  display: grid; justify-items: center; gap: 2px;
  padding: 18px 4px 14px;
  border-radius: 20px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}
.unit b { font-size: clamp(30px, 7vw, 54px); font-weight: 700; font-stretch: 92%; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.unit span { color: var(--muted); font-size: 14px; }
.unit-d b { color: var(--blue); }

/* ---------- Banda de patrocinadores ---------- */

/* Vive en la portada, por detrás del nombre y los botones: las piezas caen de lo alto y pasan detrás del texto. */
.band {
  position: absolute; z-index: 4;
  left: var(--gutter); right: var(--gutter); bottom: var(--band-bottom);
  height: var(--band-h);
  pointer-events: none; /* lo de abajo sigue respondiendo; solo las marcas con enlace reciben clics */
}
.band a { pointer-events: auto; }
/* Sin cuadros, la portada no le guarda espacio a la fila. */
.hero:not(:has(.band)) { --band-h: 0px; }

/* Sin JavaScript o con movimiento reducido, la fila se queda quieta. */
.stage {
  position: absolute; inset: 0;
  display: flex; gap: 8px;
  overflow: hidden;
}
.stage.live { display: block; overflow: visible; }

.tile {
  position: relative; display: block; flex: none;
  width: var(--tile); height: 100%;
  border: 1px solid rgb(170 210 255 / .24);
  border-radius: clamp(10px, calc(var(--tile) * .1), 14px);
  background:
    linear-gradient(145deg, rgb(255 255 255 / .09), rgb(255 255 255 / .01) 42%, rgb(255 255 255 / .04)),
    rgb(6 12 24 / .3);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 8px 20px rgb(0 0 0 / .22);
  color: inherit; text-decoration: none;
}
.stage.live .tile { position: absolute; top: 0; }
/* Destello azul en el filo cuando la pieza golpea el suelo. */
.tile::after {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  box-shadow: inset 0 -2px 0 var(--blue), 0 8px 22px rgb(31 155 255 / .75);
  opacity: 0;
  pointer-events: none;
}
.tile-in {
  display: grid; grid-template-rows: minmax(0, 1fr); place-items: center;
  height: 100%;
  padding: max(4px, calc(var(--tile) * .06));
  overflow: hidden;
  border-radius: inherit;
  text-align: center;
}
/* Con el cuadro más transparente, una sombra suave separa el logo de lo que pasa detrás. */
.tile-img img { width: 100%; height: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(0 2px 5px rgb(0 0 0 / .6)); }
.tile-light { background: rgb(255 255 255 / .86); }
.tile-txt { grid-template-rows: none; align-content: center; text-shadow: 0 1px 6px rgb(0 0 0 / .9); }
.tile-txt b {
  font-size: max(11.5px, calc(var(--tile) * .135));
  font-weight: 750;
  font-stretch: 105%;
  line-height: 1.08;
  letter-spacing: -.01em;
}
.tile-txt small { margin-top: 3px; color: var(--ice); font-size: max(9.5px, calc(var(--tile) * .082)); line-height: 1.15; }
.tile-cta b { color: var(--blue); }
@media (hover: hover) {
  a.tile:hover { border-color: var(--blue); box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 0 24px rgb(31 155 255 / .45); }
}

/* ---------- Contacto ---------- */

.boxes { margin-top: clamp(12px, 2vw, 20px); }
.boxes-in {
  display: grid; gap: 20px 40px; align-items: center;
  padding: clamp(22px, 3vw, 36px);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}
@media (min-width: 900px) { .boxes-in { grid-template-columns: minmax(0, 1fr) auto; } }
.contact-act { display: grid; gap: 10px; min-width: 0; }
.mail { font-weight: 650; font-size: 20px; line-height: 1.25; color: var(--ice); overflow-wrap: anywhere; text-decoration: none; }
.mail:hover { text-decoration: underline; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-grid; place-items: center;
  min-height: 50px; padding: 6px 26px;
  border: 0; border-radius: 16px;
  font-weight: 650; font-size: 17px; text-decoration: none;
  transition: transform .18s, box-shadow .18s;
}
@media (max-width: 560px) { .btn { flex: 1 1 100%; } }
.btn-main { background: var(--blue); color: #02101f; }
.btn-alt { background: rgb(255 255 255 / .08); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn-main:hover { box-shadow: 0 10px 30px rgb(31 155 255 / .5); }
}

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

.foot { margin-top: clamp(24px, 4vw, 44px); }
.foot p { padding: 10px var(--gutter); text-align: center; color: var(--muted); font-size: 14.5px; }
.credits a { color: var(--ice); }

/* ---------- Redes ---------- */

.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.social {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgb(10 18 32 / .62);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18);
  backdrop-filter: blur(12px);
  transition: background .18s, transform .18s;
}
.social svg { width: 21px; height: 21px; }
.social-instagram { --tint: linear-gradient(40deg, #f9b233, #e6303f 45%, #a12db4); }
.social-tiktok, .social-x { --tint: #000; }
.social-facebook { --tint: #1468d8; }
.social-discord { --tint: #4f5ce0; }
.social-twitch { --tint: #7a38df; }
@media (hover: hover) {
  .social:hover { background: var(--tint, var(--blue)); transform: translateY(-3px); }
}

/* ---------- Música ---------- */

.music {
  position: fixed; z-index: 30;
  right: var(--gutter); bottom: max(14px, env(safe-area-inset-bottom));
  display: grid; place-items: center;
  width: 50px; height: 50px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgb(10 18 32 / .72);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18), 0 10px 26px rgb(0 0 0 / .5);
  backdrop-filter: blur(14px);
}
.music.on { box-shadow: inset 0 0 0 1px var(--blue), 0 0 22px rgb(31 155 255 / .5); }
.music-note { width: 23px; height: 23px; }
.music-bars { display: none; align-items: flex-end; gap: 2px; width: 22px; height: 20px; }
.music-bars i { flex: 1; height: 100%; background: var(--blue); transform-origin: bottom; animation: musicBar .9s ease-in-out infinite alternate; }
.music-bars i:nth-child(2) { background: #fff; animation-delay: -.4s; }
.music-bars i:nth-child(3) { background: var(--ice); animation-delay: -.7s; }
.music.on .music-note { display: none; }
.music.on .music-bars { display: flex; }
@keyframes musicBar { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

/* ---------- Móvil ---------- */

@media (max-width: 760px) {
  .hero { min-height: 640px; }
  .socials { margin-top: 12px; }
  .social { width: 44px; height: 44px; }
  .brand-logo { width: 72px; }
  .brand { gap: 12px; }
  .brand-name { font-size: min(9.3vw, 64px); }
  .hero-side { width: 100%; }
  .start { min-height: 64px; }
  .news-item { min-height: 72px; gap: 10px; padding: 6px 12px 6px 8px; }
  .news-thumb { --photo: 64px; margin-top: -14px; padding: 5px 4px 16px; }
  /* Con «Lo nuevo» encima, Kick y YouTube van lado a lado para que la fila de cuadros siga cabiendo. */
  .hero-side:has(.news) .starts { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .hero-side:has(.news) .start { grid-template-columns: auto minmax(0, 1fr); gap: 8px; min-height: 56px; padding: 8px 10px 8px 8px; border-radius: 16px; }
  .hero-side:has(.news) .start-btn { width: 38px; height: 38px; border-radius: 11px; }
  .hero-side:has(.news) .start-name { font-size: 18px; }
  .hero-side:has(.news) .start-sub, .hero-side:has(.news) .start-cta { display: none; }
  .hero.has-media:has(.news) .carousel { min-height: 36svh; }
}
@media (max-width: 460px) {
  .start-cta [data-cta] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* ---------- Portada con fotos o videos: el contenido manda ---------- */

/* En la computadora, logo y nombre pequeños y a un lado, para no tapar lo que se está viendo. */
@media (min-width: 761px) {
  .has-media .brand { flex-direction: column; align-items: flex-start; gap: 8px; }
  .has-media .brand-logo { width: clamp(64px, 5.6vw, 96px); }
  .has-media .brand-name { font-size: clamp(32px, 3.3vw, 58px); letter-spacing: -.03em; }
  .has-media .tagline { max-width: 19em; margin-top: 8px; font-size: clamp(15px, 1.15vw, 18px); }
  .has-media .socials { margin-top: 10px; }
  .has-media .social { width: 42px; height: 42px; }
  .has-media .hero-side { width: min(100%, 340px); }
  .has-media .start { min-height: 64px; padding-block: 8px; }
  .has-media .start-cta [data-cta] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* En el celular, el contenido arriba y el texto debajo, sin encimarse. */
@media (max-width: 760px) {
  .hero.has-media { display: flex; flex-direction: column; height: auto; min-height: 100svh; }
  .has-media .carousel { position: relative; inset: auto; flex: 1 1 auto; min-height: 40svh; }
  /* Lo que no llena el marco baja un poco, para no quedar debajo de las barras y los botones. */
  .has-media .slide.contain .ph, .has-media .slide.contain .vid { object-position: center 85%; }
  .has-media .shift-fx.fit-contain .shift-img { background-position: center 85%; }
  .has-media .shade { display: none; }
  .has-media .hero-foot { position: relative; bottom: auto; order: 2; padding-top: 14px; }
  .has-media .band { position: relative; left: auto; right: auto; bottom: auto; order: 3; flex: none; margin: 14px var(--gutter) var(--band-bottom); }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .shift-fx { display: none; }
  .ignition { display: none; }
  .news-tick.on .news-fill { transform: none; } /* no rota sola: se cambia con las barras */
}
