/* ==========================================================================
   ESTILO 2026 — vidrio más oscuro, íconos en círculo brilloso y entrada en orden
   Va encima de estilos.css; solo cambia cómo se ve, no la estructura.
   La entrada larga (línea de luz → logo → nombre → redes → tarjetas) sale solo la primera vez
   que abren la página en la sesión (lo decide entrada-2026.js); al volver de otra página entra rápido.
   ========================================================================== */

/* fondo: la noche estrellada más profunda, con viñeta, para que la luz resalte */
.velo { background:
  radial-gradient(95% 58% at 50% 20%, rgba(8, 16, 52, .1), rgba(5, 10, 34, .5) 78%, rgba(3, 6, 22, .7) 100%),
  linear-gradient(180deg, rgba(3, 6, 22, .08), rgba(3, 6, 22, .3)) !important; }

/* ---------- avatar: esfera de vidrio con aura ---------- */
.avatar { isolation: isolate; }
.avatar::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; z-index: 2; pointer-events: none;
  background:
    radial-gradient(60% 38% at 35% 18%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%),   /* reflejo de arriba */
    conic-gradient(from var(--giro, 0deg), rgba(244, 207, 85, 0) 0 55%, rgba(255, 236, 170, .95) 70%, rgba(244, 207, 85, 0) 85%); /* luz que recorre el borde */
  -webkit-mask: radial-gradient(closest-side, transparent 86%, #000 88%, #000 100%), linear-gradient(#000 0 0);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  animation: borde-luz 6s linear infinite; }
@property --giro { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes borde-luz { to { --giro: 360deg; } }
.avatar img { box-shadow: 0 0 0 3px rgba(244, 207, 85, .9), 0 0 46px rgba(244, 207, 85, .45), 0 0 120px rgba(90, 140, 255, .5), 0 18px 40px rgba(2, 6, 24, .6) !important; }

/* ---------- nombre y bio: más limpio ---------- */
.nombre { letter-spacing: -.01em; text-shadow: 0 2px 0 rgba(4, 10, 36, .55), 0 0 28px rgba(244, 207, 85, .28) !important; }
.bio { opacity: .92; }

/* ---------- redes: burbujas un poco más oscuras ---------- */
.vidrio.vidrio--icono { background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03)), rgba(11, 23, 67, .36) !important;
  border-color: rgba(255, 246, 216, .2) !important; }

/* ---------- tarjetas de enlace: vidrio oscuro, ícono en cuadrito brilloso, flecha ---------- */
.enlaces { gap: 12px !important; }
.enlaces .vidrio {
  padding: 11px 20px 11px 11px !important; gap: 14px !important;
  background: linear-gradient(140deg, rgba(var(--tinte), .13) 0%, rgba(var(--tinte), .03) 55%, rgba(var(--tinte), .07) 100%), rgba(9, 19, 58, .34) !important;
  border: 1px solid rgba(255, 246, 216, .18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 -1px 0 rgba(0, 0, 0, .25), 0 14px 34px rgba(2, 6, 26, .5) !important;
}

/* el círculo se pinta con degradados (sin border-radius): así Safari no recorta el logo de adentro */
.enlaces .vidrio > .icono {
  box-sizing: border-box; width: 46px !important; height: 46px !important; padding: 12.5px; border-radius: 0; overflow: visible;
  background:
    radial-gradient(ellipse 62% 38% at 50% 24%, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 72%),
    radial-gradient(circle closest-side, rgba(var(--azulejo, 30, 52, 130), .88) calc(100% - 2px), rgba(255, 255, 255, .32) calc(100% - 1.2px), rgba(255, 255, 255, 0) 100%);
  box-shadow: none; filter: drop-shadow(0 5px 7px rgba(2, 6, 26, .45));
}
.enlaces .vidrio[data-kick] { border-color: rgba(83, 252, 24, .55) !important;
  background: linear-gradient(140deg, rgba(83, 252, 24, .16), rgba(83, 252, 24, .03) 55%, rgba(83, 252, 24, .08)), rgba(7, 22, 17, .4) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 30px rgba(83, 252, 24, .22), 0 14px 34px rgba(2, 6, 26, .5) !important; }
.enlaces [data-kick] > .icono { --azulejo: 10, 16, 10; padding: 11px !important; color: #53fc18; box-shadow: none !important; filter: drop-shadow(0 0 7px rgba(83, 252, 24, .45)) !important; }
.enlaces .vidrio .texto { flex: 1; }
.enlaces .vidrio .texto strong { letter-spacing: .005em; }
.enlaces .vidrio .texto small { opacity: .7 !important; }
.enlaces .vidrio:not([data-kick])::after { /* flecha discreta */
  content: "›"; position: static; inset: auto; order: 9; z-index: 1; background: none; mix-blend-mode: normal;
  font-size: 1.6rem; line-height: 1; opacity: .45 !important; margin-left: auto; transition: transform .3s ease, opacity .3s ease; }
.enlaces .vidrio:not([data-kick]).activo::after { transform: translateX(3px); opacity: .9 !important; }

/* destello que cruza cada tarjeta una vez al entrar */
.enlaces li { position: relative; }
/* (sin overflow: hidden, para que la etiqueta "NUEVO" que sobresale no se corte) */
.enlaces li > .vidrio .texto::after { content: ""; position: absolute; inset: 0; border-radius: var(--radio, 999px); pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, .26) 50%, rgba(255, 255, 255, 0) 58%) no-repeat;
  background-size: 260% 100%; background-position: 160% 0; opacity: 0;
  animation: cruza-carta 1.1s ease-in-out calc(1.3s + var(--n, 0) * 90ms) both; }
@keyframes cruza-carta { 0% { background-position: 160% 0; opacity: 1; } 99% { opacity: 1; } 100% { background-position: -60% 0; opacity: 0; } }

/* ---------- entrada en orden (como un arranque): línea de luz → logo → nombre → redes → tarjetas ---------- */
.entrada-2026 .avatar { animation: e-logo 1.1s cubic-bezier(.2, .9, .3, 1) .35s both, flotar 6s ease-in-out 1.6s infinite !important; }
.entrada-2026 .nombre { animation: e-sube .8s cubic-bezier(.2, .9, .3, 1) .75s both !important; }
.entrada-2026 .bio { animation: e-sube .8s cubic-bezier(.2, .9, .3, 1) .9s both !important; }
.entrada-2026 .redes li { animation: e-pop .6s cubic-bezier(.3, 1.5, .5, 1) calc(1.05s + var(--n, 0) * 60ms) both !important; }
.redes li:nth-child(1), .enlaces li:nth-child(1) { --n: 0; }
.redes li:nth-child(2), .enlaces li:nth-child(2) { --n: 1; }
.redes li:nth-child(3), .enlaces li:nth-child(3) { --n: 2; }
.redes li:nth-child(4), .enlaces li:nth-child(4) { --n: 3; }
.redes li:nth-child(5), .enlaces li:nth-child(5) { --n: 4; }
.redes li:nth-child(6), .enlaces li:nth-child(6) { --n: 5; }
.redes li:nth-child(7), .enlaces li:nth-child(7) { --n: 6; }
.redes li:nth-child(8), .enlaces li:nth-child(8) { --n: 7; }
.redes li:nth-child(9), .enlaces li:nth-child(9) { --n: 8; }
.redes li:nth-child(10), .enlaces li:nth-child(10) { --n: 9; }
.redes li:nth-child(11), .enlaces li:nth-child(11) { --n: 10; }
.redes li:nth-child(12), .enlaces li:nth-child(12) { --n: 11; }

.entrada-2026 .vidrio--campana { animation: e-pop .6s cubic-bezier(.3, 1.5, .5, 1) 1.2s both !important; }
.entrada-2026 .enlaces li { animation: e-carta .75s cubic-bezier(.2, .9, .3, 1) calc(1.25s + var(--n, 0) * 80ms) both !important; }
.linea-luz { display: none; }
.entrada-2026 .linea-luz { display: block; position: fixed; left: 0; right: 0; top: 50%; height: 2px; z-index: 50; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 170, .95), #fff, rgba(140, 180, 255, .95), transparent);
  box-shadow: 0 0 24px rgba(255, 236, 170, .9), 0 0 60px rgba(120, 160, 255, .6);
  animation: e-linea 1.1s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes e-linea { 0% { transform: scaleX(0); opacity: 0; } 40% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1.05) scaleY(4); opacity: 0; filter: blur(6px); } }
@keyframes e-logo { 0% { opacity: 0; transform: scale(.6); filter: blur(14px) brightness(2); } 60% { opacity: 1; filter: blur(0) brightness(1.3); } 100% { transform: none; filter: none; } }
@keyframes e-sube { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { filter: none; } }
@keyframes e-pop { from { opacity: 0; transform: translateY(10px) scale(.6); } }
@keyframes e-carta { from { opacity: 0; transform: translateY(22px) scale(.97); filter: blur(5px); } to { filter: none; } }

@media (prefers-reduced-motion: reduce) {
  .linea-luz { display: none; }
  .entrada-2026 *, .avatar::after, .enlaces li > .vidrio .texto::after { animation: none !important; }
}

/* ---------- EN VIVO (con la oscuridad nueva) ---------- */
/* logo: el aro y el aura se prenden en rojo, y la luz que recorre el borde también */
.avatar.en-vivo img { box-shadow: 0 0 0 3px #ff3b4e, 0 0 44px rgba(255, 59, 78, .55), 0 0 110px rgba(255, 59, 78, .35), 0 18px 40px rgba(2, 6, 24, .6) !important; }
.avatar.en-vivo::after { background:
    radial-gradient(60% 38% at 35% 18%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 70%),
    conic-gradient(from var(--giro, 0deg), rgba(255, 59, 78, 0) 0 55%, rgba(255, 190, 196, .95) 70%, rgba(255, 59, 78, 0) 85%);
  animation-duration: 3s; }
.avatar.en-vivo .avatar-vivo { box-shadow: 0 0 0 3px rgba(5, 10, 34, .9), 0 6px 22px rgba(255, 59, 78, .7); animation: vivo-late 1.6s ease-in-out infinite; }
@keyframes vivo-late { 50% { box-shadow: 0 0 0 3px rgba(5, 10, 34, .9), 0 6px 30px rgba(255, 59, 78, 1); } }

/* tarjeta de Kick en vivo: brillo verde que respira, pastilla EN VIVO roja con su punto */
.enlaces .vidrio[data-kick].en-vivo { border-color: rgba(83, 252, 24, .9) !important;
  background: linear-gradient(140deg, rgba(83, 252, 24, .24), rgba(83, 252, 24, .05) 55%, rgba(83, 252, 24, .12)), rgba(7, 25, 14, .44) !important;
  animation: kick-respira 2.4s ease-in-out infinite; }
@keyframes kick-respira {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 26px rgba(83, 252, 24, .3), 0 14px 34px rgba(2, 6, 26, .5); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 46px rgba(83, 252, 24, .6), 0 14px 34px rgba(2, 6, 26, .5); } }
.enlaces [data-kick].en-vivo > .icono { filter: drop-shadow(0 0 11px rgba(83, 252, 24, .75)) !important; }
.enlaces [data-kick].en-vivo .texto small { opacity: .95 !important; color: #c9ffb3; }
.enlaces .vidrio.en-vivo .vivo { box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 0 18px rgba(255, 59, 78, .65); }

/* TikTok en vivo: contorno con sus colores */
.enlaces .vidrio[data-tiktok].en-vivo { border-color: rgba(254, 44, 85, .8) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), -6px 0 26px rgba(37, 244, 238, .3), 6px 0 26px rgba(254, 44, 85, .4), 0 14px 34px rgba(2, 6, 26, .5) !important; }
.enlaces .vidrio[data-tiktok].en-vivo > .icono { --azulejo: 0, 0, 0; color: #fff; filter: drop-shadow(-1.5px 0 0 #25f4ee) drop-shadow(1.5px 0 0 #fe2c55); }
@media (prefers-reduced-motion: reduce) { .enlaces [data-kick].en-vivo, .avatar.en-vivo .avatar-vivo { animation: none !important; } }

/* ==========================================================================
   PÁGINAS SECUNDARIAS (Pase, Merch, Videos, Confesionario, Ruleta, avisos y 404)
   El mismo vidrio un poco más oscuro y una entrada en orden corta.
   (Los juegos tienen su propia interfaz y no cargan este archivo.)
   ========================================================================== */
.vidrio, .pase-tarjeta, .pase-pista, .producto, .video, .conf-tarjeta, .conf-consejos, .ruleta-panel, .ventana-cuerpo {
  background-color: rgba(9, 19, 58, .34);
}
.pase-tarjeta, .pase-pista, .producto, .video, .conf-tarjeta, .conf-consejos, .ruleta-panel {
  border-color: rgba(255, 246, 216, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(0, 0, 0, .22), 0 14px 34px rgba(2, 6, 26, .45);
}
/* entrada en orden: cada bloque de la página sube y aparece, uno tras otro */
.pagina:not(#contenido) > *, .ruleta-app > * { animation: e-entra .45s cubic-bezier(.2, .9, .3, 1) backwards; }   /* backwards: al terminar ya no deja nada "pegado" (no rompe ventanas fijas) */
.pagina:not(#contenido) > :nth-child(2), .ruleta-app > :nth-child(2) { animation-delay: .03s; }
.pagina:not(#contenido) > :nth-child(3), .ruleta-app > :nth-child(3) { animation-delay: .06s; }
.pagina:not(#contenido) > :nth-child(4), .ruleta-app > :nth-child(4) { animation-delay: .09s; }
.pagina:not(#contenido) > :nth-child(5), .ruleta-app > :nth-child(5) { animation-delay: .12s; }
.pagina:not(#contenido) > :nth-child(n+6), .ruleta-app > :nth-child(n+6) { animation-delay: .15s; }
/* tarjetas de productos y videos: en cascada */
.producto, .video { animation: e-entra .45s cubic-bezier(.2, .9, .3, 1) backwards; }
/* subpáginas: entrada corta y sin blur (el blur sobre toda la página en iPhone se veía lavado y lento) */
@keyframes e-entra { from { opacity: 0; transform: translateY(10px); } }
.producto:nth-child(2), .video:nth-child(2) { animation-delay: .08s; }
.producto:nth-child(3), .video:nth-child(3) { animation-delay: .12s; }
.producto:nth-child(4), .video:nth-child(4) { animation-delay: .16s; }
.producto:nth-child(n+5), .video:nth-child(n+5) { animation-delay: .2s; }
@media (prefers-reduced-motion: reduce) { .pagina > *, .ruleta-app > *, .producto, .video { animation: none !important; } }
