:root {
  --bg: #14030a;
  --bg2: #2a0610;
  --violet: #e61932;
  --pink: #ff6a3d;
  --text: #fff0ee;
  --muted: #e0b3b3;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; overflow: hidden; }

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 10%, #5e0a1c 0%, var(--bg) 55%);
}

/* Barra de secciones arriba del todo */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 70px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  background: linear-gradient(180deg, #e0263a 0%, #b50f22 60%, #8f0a1a 100%);
}
/* Remate: filo de luz que se desvanece en los extremos + sombra suave hacia la seccion */
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28px; pointer-events: none;
  transform: translateY(100%);
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .85) 50%, transparent 100%) top / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(60, 0, 10, .55), rgba(60, 0, 10, 0));
}

/* Hueco izquierdo: giratorio en Inicio, Icon en el resto */
.logo { position: relative; flex: none; width: 110px; height: 62px; }
.logo img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); user-select: none; pointer-events: none; }
/* Halo oscuro para separar Icon de la barra roja sin tapar el logo */
.logo::before { content: ""; position: absolute; inset: -4px -10px; border-radius: 50%; opacity: 0; transition: opacity .5s ease .35s; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .28) 40%, rgba(0, 0, 0, 0) 70%); }
.logo.docked::before { opacity: 1; }
#spinLink { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; display: block; cursor: pointer; }
#spinLink::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; opacity: 0; pointer-events: none; will-change: transform, opacity;
  background: radial-gradient(circle, rgba(255, 255, 255, .95) 0%, rgba(255, 200, 200, .55) 38%, rgba(255, 255, 255, 0) 70%); }
#spinner { position: static; transform: none; width: 100%; height: 100%; transition: opacity .45s ease; }
#discordIcon { left: auto; right: -12px; top: auto; bottom: 2px; width: 14px; height: 14px; transform: none; object-fit: contain; filter: brightness(0) invert(1); transition: opacity .45s ease; }
.tip { position: absolute; right: 4px; top: calc(100% + 12px); z-index: 60; white-space: nowrap; pointer-events: none;
  padding: .35rem .7rem; border-radius: 6px; background: rgba(20, 0, 5, .88); color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .3px;
  opacity: 0; transform: translateY(-4px); transition: opacity .25s ease, transform .25s ease; }
#spinLink:focus-visible { outline: 2px solid #fff; border-radius: 50%; }
#spinLink:focus-visible ~ .tip { opacity: 1; transform: none; }
@media (hover: hover) {
  #spinLink:hover::before { opacity: 1; animation: beat 1.8s ease-in-out infinite; }
  #spinLink:hover ~ .tip { opacity: 1; transform: none; }
}
@keyframes beat { 0%, 100% { transform: scale(.85); opacity: .55; } 50% { transform: scale(1.2); opacity: 1; } }
.logo.leaving #spinLink { pointer-events: none; }
.logo.leaving .tip { opacity: 0 !important; }
.logo.leaving #discordIcon { opacity: 0; }
#dockIcon { width: 100%; height: auto; display: none; }
.logo.docked #dockIcon { display: block; }
.logo.leaving #spinner { opacity: 0; }
.logo.gone #spinLink { display: none; }
#flyIcon { position: fixed; left: 0; top: 0; z-index: 120; display: none; transform-origin: 0 0; pointer-events: none; will-change: transform; user-select: none; }
.t-logo.away { visibility: hidden; }

nav { display: flex; flex-direction: row; gap: 0; filter: drop-shadow(0 3px 4px rgba(60, 0, 10, .45)); }
.menu-toggle { display: none; }
.menu-easter-message { display: none; }

/* Cards blancas con forma de paralelogramo */
nav a {
  position: relative; color: #c8102e; text-decoration: none; font-weight: 700; letter-spacing: .3px;
  padding: .7rem 1.7rem; margin-left: -10px;
  background: linear-gradient(180deg, #fff, #f1e6e8);
  clip-path: polygon(16% 0, 100% 0, 84% 100%, 0 100%);
  transition: background .25s, transform .25s, color .25s;
}
nav a:first-child { margin-left: 0; }
nav a:hover { background: #fff; transform: translateY(-2px); }
nav a.active {
  z-index: 1; color: #f2a900;
  background: #fff;
  box-shadow: inset 0 -5px 0 #e0263a;
  transform: translateY(-2px) scale(1.06);
}/* Secciones una al lado de la otra */
.track {
  position: fixed; top: 70px; left: 0; bottom: 0;
  width: 400vw;
  display: flex; flex-direction: row;
}

.panel {
  width: 100vw; height: 100%;
  overflow-y: auto; overflow-x: hidden;
  padding: 3rem 4vw 4rem;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.1; }
h1 span, h2 {
  background: linear-gradient(90deg, var(--violet), var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .5rem; }
.lead { color: var(--muted); font-size: 1.15rem; margin-bottom: 2rem; }

.hero { text-align: center; padding: 3rem 0 3rem; }
.hero p { color: var(--muted); font-size: 1.2rem; margin: 1rem 0 2rem; }

.cta {
  border: none; cursor: pointer; color: #fff; font-size: 1.05rem; font-weight: 700;
  padding: .9rem 2.2rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  box-shadow: 0 0 25px rgba(255, 80, 60, .6);
  transition: transform .2s, box-shadow .2s;
}
.cta:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 0 40px rgba(255, 80, 60, .9); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: linear-gradient(160deg, rgba(90, 12, 25, .7), rgba(35, 6, 12, .9));
  border: 1px solid rgba(230, 25, 50, .4);
  border-radius: 18px; overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover {
  transform: translateY(-8px);
  border-color: var(--pink);
  box-shadow: 0 10px 35px rgba(230, 25, 50, .55);
}
.card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.card h3 { padding: 1rem 1.2rem .3rem; }
.card p { padding: 0 1.2rem 1.3rem; color: var(--muted); }
.card h3:last-child { padding-bottom: 1.2rem; }

/* Barrido: rayo dentado con halo calido que chisporrotea mientras cruza */
.sweep {
  position: fixed; top: -10vh; bottom: -10vh; left: 0; z-index: 100;
  width: 22vw;
  pointer-events: none;
  transform: translateX(-120%) skewX(-12deg);
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(90, 190, 255, .5) 0%, rgba(120, 210, 255, .2) 45%, rgba(90, 190, 255, 0) 100%);
  opacity: 0;
}
.sweep svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sweep .bolt { fill: none; stroke-linejoin: miter; stroke-linecap: round; opacity: 0;
  animation: crackle .16s steps(1) infinite; animation-play-state: paused;
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 14px #5fd0ff) drop-shadow(0 0 32px #1e90ff); }
.sweep.active .bolt { animation-play-state: running; }
.sweep .bolt path { stroke: #fff; stroke-width: 4; vector-effect: non-scaling-stroke; }
.sweep .bolt path.thin { stroke: #bfeaff; stroke-width: 2; }
.sweep .b2 { animation-delay: .08s; }
@keyframes crackle { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 760px) {
  .topbar { padding: 0 .8rem; }
  .logo { width: 64px; height: 44px; }
  #spinLink { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
  #discordIcon { left: auto; right: -9px; bottom: 1px; width: 11px; height: 11px; }
  nav { flex: 1; min-width: 0; justify-content: space-between; gap: 0; }
  nav a { padding: .5rem .55rem; font-size: .8rem; }
}




/* Bienvenida: imagen de fondo + estrellas */
#inicio {
  position: relative; padding: 0; overflow: hidden;
  background-color: #4a2a8a;
  background-image: url("IMG/Fondo%20pagina%20principal.png");
  background-size: cover; background-position: center;
}
.stars { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.stars canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .25; will-change: opacity; animation: twinkle 4s ease-in-out infinite alternate; }
.stars canvas:nth-child(2) { animation-duration: 5.5s; animation-delay: -1.7s; }
.stars canvas:nth-child(3) { animation-duration: 3.2s; animation-delay: -2.6s; }
@keyframes twinkle { from { opacity: .15; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .stars canvas { animation: none; opacity: .8; } }
.hero { z-index: 1; }
/* Avioncito: capa propia entre las estrellas y la portada, siempre detras del personaje y del Icon.
   El PNG es 1080x1920 con el dibujo en el centro, asi que se recorta con overflow. */
.plane {
  position: absolute; z-index: 0; left: 0; top: 13%; width: min(9vw, 130px); aspect-ratio: 960 / 340;
  overflow: hidden; pointer-events: none; user-select: none; visibility: hidden; will-change: transform;
}
/* Ciudad inferior: emerge al entrar a Inicio y se hunde al salir. Va detras de personajes e Icon, y delante del avioncito.
   El PNG tiene un hilo suelto en sus 3 px izquierdos, por eso la imagen es algo mas ancha que la pantalla y se recorta por los lados. */
.city {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; user-select: none; overflow: hidden;
  transform: translate3d(0, 102%, 0); visibility: hidden; will-change: transform;
  transition: transform 1.1s cubic-bezier(.22, 1, .36, 1), visibility 0s linear 1.1s;
}
.city.up { transform: none; visibility: visible; transition-delay: 0s; }
.city img {
  position: absolute; left: 50%; margin-left: calc(min(100vw, 960px) / -2); bottom: -14px; width: min(100vw, 960px); max-width: none; height: auto; display: block;
  transform: translate3d(var(--bx, 0px), var(--by, 0px), 0); transition: transform .35s ease-out; will-change: transform;
}
.plane img { position: absolute; width: 112.5%; left: -8.333%; top: -220.59%; max-width: none; display: block; }
.hero { position: relative; width: 100%; height: 100%; overflow: hidden; }

.hero-text {
  position: absolute; left: 4vw; top: 56%; z-index: 3; width: 42vw; max-width: 640px;
  transform: translateY(-50%);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; pointer-events: none;
  transition: transform .5s ease-out; will-change: transform;
}
.hero-text h1 { margin: 0; line-height: 0; }
.hero-text svg { width: 100%; height: auto; display: block; overflow: visible; }
.hero-text a { pointer-events: auto; cursor: pointer; }
.hero-text text { font-family: "Segoe UI Black", "Segoe UI", system-ui, sans-serif; font-weight: 900; }
.t-black { fill: #ffffff; letter-spacing: 2px; }
.t-logo {
  will-change: transform;
  transform: translate(var(--ix, 0px), var(--iy, 0px)) rotate(-4deg);
  transform-box: fill-box; transform-origin: center;
  transition: transform .35s ease-out;
}
.t-glow {
  transform: translate(var(--ix, 0px), var(--iy, 0px));
  transform-box: fill-box; transform-origin: center;
  transition: transform .35s ease-out; pointer-events: none;
}
.t-sub { fill: #e3d6ff; font-weight: 700; letter-spacing: 6px; }
.hero-stage { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; }
/* Foco de luz estatico: un degradado barato, sin filtros ni repintado en cada frame */
.hero-stage::before {
  content: ""; position: absolute; z-index: 2; pointer-events: none; left: 50%; top: 52%; width: 90%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, .5) 0%, rgba(215, 190, 255, .3) 28%, rgba(150, 110, 255, 0) 66%);
}
.hero-stage.swap::before { animation: glowSwap .9s ease-in-out; }
@keyframes glowSwap { 0%, 100% { opacity: 1; } 45% { opacity: 0; } }
.hero-char {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center bottom;
  pointer-events: none; user-select: none; will-change: transform; z-index: 3;
    transform: translate3d(var(--cx, 0px), var(--cy, 0px), 0) scale(1.08);
  opacity: 0;
  transition: transform .35s ease-out, opacity .9s ease-in-out;
}
.hero-char.on { opacity: 1; }
/* Frase del personaje: solo transform y opacity, sin filtros */
.hero .quote {
  position: absolute; z-index: 4; left: 2%; top: 26%; max-width: 30%; margin: 0;
  color: #fff !important; font: italic 700 clamp(.8rem, 1.15vw, 1.05rem)/1.35 "Segoe UI", system-ui, sans-serif;
  text-shadow: 0 1px 6px rgba(20, 5, 60, .85);
  pointer-events: none; user-select: none; -webkit-user-select: none;
  opacity: 0; will-change: transform, opacity;
  transform: translate3d(var(--qx, 0px), var(--qy, 0px), 0);
  transition: transform .35s ease-out, opacity .9s ease-in-out;
}
.hero .quote.on { opacity: 1; }
/* Logo.png trae el borde derecho cortado: lo pegamos al borde de la página para que lo recorte la ventana */
.hero-char.edge {
  width: calc(100% + 3vw); object-position: right bottom; transform-origin: right bottom;
  transform: translate3d(var(--cx, 0px),   var(--cy, 0px), 0) translateY(8vh) scale(1.15);
}

/* Pantalla de carga */
#loader {
  position: fixed; inset: 0; z-index: 1000; background: #ff0000;
  display: none; overflow: hidden;
}
body.loading #loader { display: block; }
#loader .lf {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #ff0000;
  opacity: 0; transition: opacity .6s ease-in-out; transform-origin: center;
}
#loader .lf.on { opacity: 1; }
#loader.zoom .lf.on { animation: zoomFade 1.1s cubic-bezier(.6, 0, .9, .5) forwards; }
#loader.zoom { animation: fadeOut 1.1s ease-in forwards; }
@keyframes zoomFade { to { transform: scale(3); } }
@keyframes fadeOut { 0%, 35% { opacity: 1; } 100% { opacity: 0; } }

.wait {
  position: absolute; right: 1.4rem; bottom: 1.6rem;
  display: flex; align-items: center; gap: .4rem;
  color: #fff; font-weight: 800; font-size: .85rem; letter-spacing: 3px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}
.wait span { margin-right: .35rem; }
.wait i {
  width: 7px; height: 7px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
  animation: dot 1.2s infinite ease-in-out;
}
.wait i:nth-of-type(2) { animation-delay: .2s; }
.wait i:nth-of-type(3) { animation-delay: .4s; }
@keyframes dot { 0%, 70%, 100% { transform: scale(1); } 35% { transform: scale(2.2); } }
#loader.done .wait { opacity: 0; transition: opacity .3s; }

.bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: rgba(0, 0, 0, .18); }
.bar b {
  display: block; height: 100%; width: 100%; background: #fff;
  box-shadow: 0 0 14px 2px rgba(255, 255, 255, .9);
  transform-origin: left; transform: scaleX(0);
}

@media (max-width: 760px) {
  .topbar { height: 56px; padding: 0 .85rem; justify-content: space-between; }
  .logo { width: 64px; height: 44px; }
  #spinLink { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
  .menu-toggle {
    position: relative; z-index: 52; display: flex; flex: none; width: 44px; height: 44px;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    border: 1px solid rgba(255, 255, 255, .8); border-radius: 11px;
    background: linear-gradient(180deg, #fff, #f1e6e8);
    box-shadow: 0 3px 8px rgba(50, 0, 10, .24); cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .menu-toggle > span:nth-child(-n+3) {
    display: block; width: 21px; height: 2px; border-radius: 2px;
    background: #c8102e;
    transition: transform .22s ease, opacity .18s ease;
  }
  .topbar.nav-open .menu-toggle > span:first-child { transform: translateY(7px) rotate(45deg); }
  .topbar.nav-open .menu-toggle > span:nth-child(2) { opacity: 0; }
  .topbar.nav-open .menu-toggle > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
  .menu-easter-message {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 60;
    display: flex; align-items: center; justify-content: center; gap: .45rem;
    width: calc(100% - 16px); max-width: 420px; margin-inline: auto;
    min-width: 0; min-height: 52px; padding: .5rem .65rem;
    border: 1px solid rgba(255, 255, 255, .85); border-radius: 14px;
    background: linear-gradient(180deg, #fff, #f7f3f3); color: #8f1025;
    box-shadow: 0 10px 24px rgba(35, 0, 8, .32);
    font-size: .84rem; font-weight: 800; line-height: 1.25; text-align: left;
    opacity: 0; visibility: hidden; transform: translateY(-18px);
    pointer-events: none; transition: opacity .22s ease, transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s linear .28s;
  }
  .menu-easter-emoji { flex: none; font-size: 1.25rem; line-height: 1; }
  .menu-easter-message > span:nth-child(2) { flex: 1; }
  .menu-easter-message > img { display: block; flex: none; width: 36px; height: 36px; object-fit: contain; }
  .topbar.menu-cooldown .menu-toggle { opacity: .38; cursor: not-allowed; }
  .topbar.menu-cooldown .menu-easter-message {
    opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s;
  }
  .topbar.menu-message-exit .menu-easter-message {
    opacity: 0; visibility: hidden; transform: translateY(-18px);
    transition-delay: 0s, 0s, .28s;
  }
  nav#sectionNav {
    position: absolute; z-index: 51; top: calc(100% + 9px); left: .75rem; right: .75rem;
    display: flex; flex-direction: column; gap: .35rem; min-width: 0; max-height: 0; overflow: hidden;
    padding: 0 .65rem; border: 1px solid rgba(255, 255, 255, .22); border-width: 0; border-radius: 16px;
    background: linear-gradient(155deg, rgba(103, 7, 25, .98), rgba(37, 3, 15, .98));
    box-shadow: 0 10px 22px rgba(20, 0, 8, .38), inset 0 1px 0 rgba(255, 255, 255, .14);
    filter: none; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px);
    transform-origin: top center;
    transition: max-height .24s ease, padding .24s ease, border-width .24s ease, opacity .18s ease, transform .22s ease, visibility 0s linear .24s;
  }
  .topbar.nav-open nav#sectionNav {
    max-height: 290px; padding: .65rem; border-width: 1px; opacity: 1; visibility: visible;
    pointer-events: auto; transform: translateY(0); transition-delay: 0s;
  }
  nav#sectionNav a, nav#sectionNav a:first-child {
    position: relative; display: flex; align-items: center; width: 100%; min-height: 50px; flex: none;
    margin: 0; padding: .7rem 1rem .7rem 14%; border: 0;
    border-radius: 0; clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
    color: #a90e27; font-size: .96rem; font-weight: 800; text-align: left; letter-spacing: .035em;
    background: linear-gradient(180deg, #fff, #f3e7e9);
    box-shadow: 0 2px 5px rgba(15, 0, 20, .18);
    transition: background .18s ease, color .18s ease, transform .18s ease;
  }
  nav#sectionNav a:hover { transform: translateX(2px); background: #fff; }
  nav#sectionNav a.active {
    z-index: 1; color: #8f6200; background: linear-gradient(180deg, #fff, #fff9e8);
    box-shadow: inset 0 -3px 0 #e0263a, 0 2px 6px rgba(15, 0, 20, .2); transform: translateX(2px);
  }
  @media (prefers-reduced-motion: reduce) {
    .menu-toggle > span:nth-child(-n+3), nav#sectionNav, .menu-easter-message { transition: none; }
  }
  .hero-char.wide { object-position: center center; transform: translate3d(var(--cx, 0px), var(--cy, 0px), 0) scale(1.75); }
  nav a:first-child { margin-left: 0; }
  .plane { width: 19vw; top: 9%; }
  .city img { width: 130vw; margin-left: -65vw; }
  .track { top: 56px; }
  .panel { padding: 2rem 5vw 3rem; }
  .hero-text {
    left: 50%; right: auto; width: min(96vw, 78vh); max-width: none; top: 1.5vh; margin-left: calc(min(96vw, 78vh) / -2);
    transform: none;
  }
  .hero-stage { width: 100%; top: calc(0.69 * min(96vw, 78vh) + 3vh); }
  .hero-char { transform: translate3d(var(--cx, 0px), var(--cy, 0px), 0) scale(1.05); }
  .hero .quote { left: 5%; top: 4%; max-width: 46%; font-size: .78rem; }
  .wait { font-size: .7rem; right: 1rem; bottom: 1.2rem; }
}



























/* Corredor de Twicers: pegado al pie de la pagina, dentro de la columna 2 del track */
.runlane { position: absolute; left: 100vw; bottom: 0; width: 100vw; height: 24vw; max-height: 190px; min-height: 90px; overflow: hidden; pointer-events: none; z-index: 5; }
.runlane { --rw: clamp(56px, 7vw, 100px); }
#runner { position: absolute; left: 0; bottom: calc(var(--rw) * -0.3); width: var(--rw); height: auto; max-width: none; visibility: hidden; user-select: none; will-change: transform; }
@media (max-width: 760px) { .runlane { height: 90px; --rw: 50px; } }

/* Twicers: mismo fondo que Inicio */
#twicers {
  position: relative; padding: 0; overflow: hidden;
  background-color: #4a2a8a;
  background-image: url("IMG/Fondo%20pagina%20principal.png");
  background-size: cover; background-position: center;
}
.twicer-stage { position: relative; z-index: 1; height: 100%; min-height: 0; overflow: hidden; }
.twicer-pages {
  position: relative; display: flex; flex-direction: column; width: 100%; height: calc(var(--twicer-page-count, 3) * 100%);
  transform: translate3d(0, 0, 0); transition: transform .65s cubic-bezier(.65, 0, .35, 1);
  will-change: transform;
}
.twicer-page {
  position: relative; display: flex; flex: 0 0 calc(100% / var(--twicer-page-count, 3)); flex-direction: column; align-items: center;
  justify-content: center; width: 100%; min-height: 0; overflow-x: hidden; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .5) transparent;
}
.twicer-page[hidden] { display: none; }
.twicer-page[aria-hidden="true"] { pointer-events: none; }
.twicer-videos-page { justify-content: flex-start; }
.twicer-videos-page .vwrap { width: 100%; padding-bottom: 0; }
.twicer-page-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; flex: none; padding: .35rem 0 .8rem; }
.twicer-down, .twicer-up {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0;
  border-radius: 50%; background: rgba(20, 3, 10, .28); color: #fff;
  font-size: 0; cursor: pointer; transition: transform .2s, background .2s;
}
.twicer-down::before, .twicer-up::before, .gallery-page-arrow::before, .discover-page-arrow::before {
  content: "↓"; display: block; font: 300 2.6rem/1 "Segoe UI", system-ui, sans-serif;
  text-shadow: 0 2px 9px rgba(0, 0, 0, .7);
}
.twicer-up::before, .gallery-page-arrow[data-gallery-target="featured"]::before, .discover-page-arrow-up::before { content: "↑"; }
.twicer-down:hover, .twicer-up:hover { transform: scale(1.12); background: rgba(255, 255, 255, .16); }
.twicer-down:focus-visible, .twicer-up:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.twicer-up { font-size: 2rem; }
.twicer-feature-layout {
  display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 4vw, 3.5rem);
  width: min(1080px, 92%); margin: auto;
}
.twicer-feature-image-link { display: block; flex: 0 1 48%; width: 48%; }
.twicer-feature-image-link img {
  display: block; width: 100%; max-height: min(56vh, 460px); object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(13, 2, 40, .5)); animation: twicerArtFloat 4.8s ease-in-out infinite;
}
.twicer-featured-page .vfeat {
  isolation: isolate; flex: 0 1 470px; width: min(470px, 50%); margin: 0; padding: clamp(1.5rem, 3.3vw, 2.6rem);
  overflow: hidden; border: 1px solid rgba(255, 255, 255, .28); border-radius: 26px; color: #fff;
  background: linear-gradient(145deg, rgba(39, 20, 92, .96), rgba(16, 9, 46, .95));
  box-shadow: 0 22px 55px rgba(10, 2, 34, .48), inset 0 1px 0 rgba(255, 255, 255, .2);
  filter: none; transform: none; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.twicer-featured-page .vfeat::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 5px;
  background: linear-gradient(90deg, #f4c75e, #ff6a9b, #9e83ff);
}
.twicer-featured-page .vfeat-badge {
  width: auto; max-width: none; margin: 0; padding: 0; color: #f7d884;
  background: none; clip-path: none; font-size: .75rem; letter-spacing: .16em; font-weight: 800;
}
.twicer-featured-page .vfeat-body {
  display: block; background: none; clip-path: none;
}
.twicer-featured-page .vfeat-txt { display: flex; flex-direction: column; gap: .75rem; padding: .5rem 0 0; }
.twicer-featured-page .vfeat-txt b {
  display: -webkit-box; overflow: hidden; color: #fff; font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 900; line-height: 1.12; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical;
}
.twicer-featured-page .vfeat-txt span {
  display: -webkit-box; overflow: hidden; color: rgba(255, 255, 255, .86);
  font-size: clamp(1rem, 1.65vw, 1.2rem); font-weight: 600; line-height: 1.6;
  -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical;
}
.twicer-featured-page .vfeat:hover, .twicer-featured-page .vfeat:focus-visible {
  border-color: rgba(255, 255, 255, .65); box-shadow: 0 28px 65px rgba(10, 2, 34, .58), 0 0 28px rgba(151, 117, 255, .24);
  transform: translateY(-4px);
}
.twicer-featured-page .vfeat:focus-visible, .twicer-feature-image-link:focus-visible { outline: 3px solid #fff; outline-offset: 5px; border-radius: 26px; }
.twicer-promo-layout {
  display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 4vw, 3.5rem);
  width: min(1080px, 92%); margin: auto;
}
.twicer-artwork-link { display: contents; }
.twicer-promo-art {
  display: block; flex: 0 1 48%; width: 48%; max-height: min(56vh, 460px); object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(13, 2, 40, .5)); animation: twicerArtFloat 4.8s ease-in-out infinite;
}
@keyframes twicerArtFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  50% { transform: translate3d(0, -12px, 0) rotate(1deg); }
}
.twicer-promo-card, .twicer-discord-card {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex: 0 1 470px;
  flex-direction: column; align-items: flex-start; gap: .8rem; width: min(470px, 50%);
  padding: clamp(1.5rem, 3.3vw, 2.6rem); border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 26px; color: #fff; text-align: left;
  background: linear-gradient(145deg, rgba(39, 20, 92, .96), rgba(16, 9, 46, .95));
  box-shadow: 0 22px 55px rgba(10, 2, 34, .48), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.twicer-promo-card::before, .twicer-discord-card::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 5px;
  background: linear-gradient(90deg, #f4c75e, #ff6a9b, #9e83ff);
}
.twicer-promo-eyebrow {
  color: #f7d884; font-size: .75rem; font-weight: 800; letter-spacing: .16em;
}
.twicer-promo-title {
  display: block; color: #fff; font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 900; line-height: 1.12; text-wrap: balance;
}
.twicer-promo-copy, .twicer-discord-copy {
  display: block; max-width: 38ch; color: rgba(255, 255, 255, .86);
  font-size: clamp(1rem, 1.65vw, 1.2rem); font-weight: 600; line-height: 1.6;
}
.twicer-discord-card {
  text-decoration: none; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.twicer-discord-card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, .65); box-shadow: 0 28px 65px rgba(10, 2, 34, .58), 0 0 28px rgba(151, 117, 255, .24); }
.twicer-discord-card:focus-visible, .twicer-artwork-link:focus-visible { outline: 3px solid #fff; outline-offset: 5px; border-radius: 26px; }
.twicer-discord-mark-wrap { display: grid; place-items: center; width: 48px; height: 48px; flex: none; padding: 10px; border-radius: 50%; background: #fff; }
.twicer-discord-mark { display: block; width: 100%; height: 100%; object-fit: contain; filter: brightness(0); }
.twicer-discord-card:hover .twicer-discord-mark,
.twicer-discord-card:focus-visible .twicer-discord-mark { animation: discordBeat 1.4s ease-in-out infinite; }
.twicer-discord-action { color: #f7d884; font-weight: 800; }
@keyframes discordBeat {
  0%, 100% { filter: brightness(0) drop-shadow(0 0 0 rgba(116, 91, 255, 0)); transform: scale(1); }
  50% { filter: brightness(0) drop-shadow(0 0 10px rgba(116, 91, 255, .95)); transform: scale(1.12); }
}
@media (min-width: 761px) {
  .vgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
  .vcard, .vcard:first-child { grid-column: auto; width: auto; justify-self: stretch; margin-left: 0; }
  .vcard span { padding-inline: 8%; font-size: clamp(.65rem, 1vw, .8rem); }
  .vtitle { width: min(650px, 82%); margin-bottom: .25rem; }
  .vfeat { width: min(680px, 82%); margin-bottom: .5rem; }
  .vfeat-body { height: clamp(115px, 19vh, 175px); overflow: hidden; }
  .vfeat img { height: 100%; aspect-ratio: auto; }
  .vfeat-txt { padding-block: .45rem; }
  .vfeat-txt span { -webkit-line-clamp: 3; line-clamp: 3; }
  .vinfo { margin-top: .5rem; }
}
@media (max-width: 760px) {
  .twicer-pages { transition-duration: .5s; }
  .twicer-page-nav { padding: .25rem 0 .55rem; }
  .twicer-down, .twicer-up { width: 42px; height: 42px; font-size: 2.2rem; }
  .twicer-up { font-size: 1.7rem; }
  .twicer-feature-layout { flex-direction: column; gap: .6rem; width: min(460px, 92%); }
  .twicer-feature-image-link { flex: none; width: min(76%, 340px); }
  .twicer-feature-image-link img { max-height: 30vh; }
  .twicer-featured-page .vfeat { flex: none; width: 100%; padding: 1.1rem 1.25rem; border-radius: 20px; }
  .twicer-featured-page .vfeat-txt { gap: .45rem; }
  .twicer-featured-page .vfeat-txt b { font-size: clamp(1.35rem, 6vw, 1.8rem); }
  .twicer-featured-page .vfeat-txt span { font-size: clamp(.95rem, 4.2vw, 1.1rem); }
  .twicer-promo-layout { flex-direction: column; gap: .6rem; width: min(460px, 92%); }
  .twicer-artwork-link { display: contents; }
  .twicer-promo-art { flex: none; width: min(76%, 340px); max-height: 30vh; }
  .twicer-promo-card, .twicer-discord-card { flex: none; gap: .55rem; width: 100%; padding: 1.1rem 1.25rem; border-radius: 20px; }
  .twicer-promo-title { font-size: clamp(1.35rem, 6vw, 1.8rem); }
  .twicer-promo-copy, .twicer-discord-copy { font-size: clamp(.95rem, 4.2vw, 1.1rem); }
  .twicer-discord-mark-wrap { width: 42px; height: 42px; padding: 8px; }
  .vwrap { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .twicer-pages { transition: none; }
  .twicer-promo-art { animation: none; }
  .twicer-feature-image-link img { animation: none; }
  .twicer-discord-card:hover .twicer-discord-mark, .twicer-discord-card:focus-visible .twicer-discord-mark { animation: none; }
}
#galeria {
  position: relative; padding: 0; overflow: hidden;
  background-color: #4a2a8a;
  background-image: url("IMG/Fondo%20pagina%20principal.png");
  background-size: cover; background-position: center;
}
.gallery-stage { position: relative; z-index: 1; height: 100%; min-height: 0; overflow: hidden; }
.gallery-pages {
  position: relative; display: flex; flex-direction: column; width: 100%; height: 200%;
  transform: translate3d(0, 0, 0); transition: transform .65s cubic-bezier(.65, 0, .35, 1);
  will-change: transform;
}
.gallery-page {
  position: relative; display: flex; flex: 0 0 50%; flex-direction: column; align-items: center;
  justify-content: flex-start; width: 100%; min-height: 0; overflow-x: hidden; overflow-y: auto;
  padding: clamp(1rem, 3vh, 2.2rem) 4vw 4rem;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .5) transparent;
}
.gallery-page[aria-hidden="true"] { pointer-events: none; }
.gallery-wrap { position: relative; z-index: 1; width: 100%; max-width: 1400px; margin: 0 auto; padding-bottom: 1rem; }
.gallery-section-heading {
  margin: 0 auto 1rem; color: #fff; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900;
  letter-spacing: .12em; line-height: 1.1; text-align: center; text-shadow: 0 4px 18px rgba(20, 3, 55, .65);
}
.gallery-featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 1.5rem); }
.gallery-featured-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden; padding: .45rem;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 22px;
  background: linear-gradient(145deg, rgba(39, 20, 92, .9), rgba(16, 9, 46, .92));
  box-shadow: 0 18px 42px rgba(10, 2, 34, .4), inset 0 1px 0 rgba(255, 255, 255, .16);
  animation: galleryArtFloat 5.2s ease-in-out infinite;
  contain: layout paint;
}
.gallery-featured-card:nth-child(2) { animation-delay: -.9s; }
.gallery-featured-card:nth-child(3) { animation-delay: -1.8s; }
.gallery-featured-card .gallery-image-button { padding: 0; aspect-ratio: 16 / 10; }
.gallery-featured-card .gallery-image-button img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; background: transparent;
}
.gallery-featured-card figcaption {
  display: flex; justify-content: center; padding: .75rem .6rem .6rem;
  border-top: 1px solid rgba(255, 255, 255, .16); color: #fff; text-align: center;
}
.gallery-featured-card figcaption time { color: #f7d884; font-size: .82rem; font-weight: 700; }
@keyframes galleryArtFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-.5deg); }
  50% { transform: translate3d(0, -9px, 0) rotate(.5deg); }
}
.gallery-page-nav { display: flex; align-items: center; justify-content: center; flex: none; padding: .65rem 0 .2rem; }
.gallery-page-arrow {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(20, 3, 10, .28); color: #fff; cursor: pointer;
  font-size: 0;
  transition: transform .2s, background .2s;
}
.gallery-page-arrow:hover { transform: scale(1.12); background: rgba(255, 255, 255, .16); }
.gallery-page-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.gallery-collection-page .gallery-wrap { padding-bottom: 1rem; }
.gallery-collection-page .gallery-controls { justify-content: space-between; align-items: center; margin: 0 0 1rem; }
#descubre {
  position: relative; padding: 0; overflow: hidden;
  background-color: #4a2a8a;
  background-image: url("IMG/Fondo%20pagina%20principal.png");
  background-size: cover; background-position: center;
}
.discover-stage { position: relative; z-index: 1; height: 100%; min-height: 0; overflow: hidden; }
.discover-pages {
  position: relative; display: flex; flex-direction: column; width: 100%;
  height: calc(var(--discover-page-count, 4) * 100%);
  transform: translate3d(0, 0, 0); transition: transform .65s cubic-bezier(.65, 0, .35, 1);
}
.discover-page {
  position: relative; display: flex; flex: 0 0 calc(100% / var(--discover-page-count, 4));
  flex-direction: column; align-items: center; justify-content: space-between; width: 100%;
  min-height: 0; overflow-x: hidden; overflow-y: auto; padding: 1.5rem 4vw 3rem;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .5) transparent;
}
.discover-page[aria-hidden="true"] { pointer-events: none; }
.discover-page-nav { display: flex; align-items: center; justify-content: center; flex: none; padding: .35rem 0; }
.discover-page-nav-up { align-self: flex-start; margin-left: clamp(12px, 3vw, 40px); }
.discover-page-nav-down { align-self: center; }
.discover-page-arrow {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(20, 3, 10, .28); color: #fff; cursor: pointer;
  font-size: 0;
  transition: transform .2s, background .2s;
}
.discover-page-arrow:hover { transform: scale(1.12); background: rgba(255, 255, 255, .16); }
.discover-page-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.discover-card {
  position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 5vw, 4rem);
  width: min(1100px, 92%); margin: auto; padding: clamp(1rem, 3vw, 2rem);
  overflow: hidden; border: 1px solid rgba(255, 255, 255, .38); border-radius: 30px; text-decoration: none;
  background: linear-gradient(135deg, rgba(73, 37, 137, .72), rgba(21, 9, 62, .88) 58%, rgba(91, 17, 77, .72));
  box-shadow: 0 24px 58px rgba(10, 2, 34, .48), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.discover-card::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 5px;
  background: linear-gradient(90deg, #f7d884, #ff6a9b, #9e83ff, #7be8ff);
}
.discover-card::after {
  content: ""; position: absolute; z-index: -1; width: 340px; height: 340px; right: -140px; bottom: -230px;
  border-radius: 50%; background: rgba(255, 106, 155, .16); filter: blur(2px);
}
.discover-card:hover, .discover-card:focus-visible {
  transform: translateY(-5px); border-color: rgba(255, 255, 255, .78);
  background: linear-gradient(135deg, rgba(93, 48, 165, .8), rgba(25, 10, 76, .92) 58%, rgba(116, 22, 96, .8));
  box-shadow: 0 30px 70px rgba(10, 2, 34, .56), 0 0 30px rgba(151, 117, 255, .28);
}
.discover-card:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.discover-membership-card {
  position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center;
  gap: clamp(1rem, 4vw, 3rem); width: min(1120px, 92%); margin: auto; padding: clamp(1.2rem, 3.4vw, 2.7rem);
  border: 1px solid rgba(255, 232, 156, .48); border-radius: 32px; color: #fff; text-decoration: none;
  background: linear-gradient(125deg, rgba(58, 27, 118, .92), rgba(24, 9, 65, .96) 55%, rgba(88, 33, 99, .92));
  box-shadow: 0 24px 58px rgba(10, 2, 34, .5), inset 0 1px 0 rgba(255, 255, 255, .23);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.discover-membership-card::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 5px;
  border-radius: 32px 32px 0 0;
  background: linear-gradient(90deg, #fff0a3, #f5b938, #ffdf73, #fff0a3);
}
.discover-membership-card::after {
  content: ""; position: absolute; z-index: -1; inset: -18%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 211, 74, .3), rgba(255, 211, 74, .12) 42%, transparent 72%);
  filter: blur(24px); opacity: 0; transform: scale(.86); pointer-events: none;
  transition: opacity .35s ease, transform .5s cubic-bezier(.2,.8,.2,1);
}
.discover-membership-card:hover, .discover-membership-card:focus-visible {
  border-color: rgba(255, 237, 166, .95); animation: discoverMembershipBeat 2.1s ease-in-out infinite;
  box-shadow: 0 30px 72px rgba(10, 2, 34, .58), 0 0 28px rgba(255, 211, 74, .3), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.discover-membership-card:hover::after, .discover-membership-card:focus-visible::after {
  opacity: 1; transform: scale(1); animation: discoverMembershipGlow 2.4s ease-in-out infinite;
}
.discover-membership-card:focus-visible { outline: 3px solid #fff1b8; outline-offset: 5px; }
.discover-membership-art {
  position: relative; z-index: 1; display: block; flex: 0 1 46%; width: 46%; max-width: 490px;
  max-height: min(58vh, 500px); object-fit: contain; filter: drop-shadow(0 18px 24px rgba(8, 0, 35, .55));
  animation: twicerArtFloat 4.8s ease-in-out infinite;
}
.discover-membership-content {
  position: relative; z-index: 1; display: flex; flex: 1 1 54%; flex-direction: column; align-items: flex-start;
  gap: clamp(.65rem, 1.5vh, 1rem); max-width: 570px; padding: clamp(1.25rem, 3vw, 2.4rem);
  border: 1px solid rgba(255, 230, 145, .46); border-radius: 28px;
  background: linear-gradient(150deg, rgba(58, 34, 112, .96), rgba(28, 12, 72, .98));
  box-shadow: 0 22px 46px rgba(7, 0, 28, .48), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.discover-membership-eyebrow { color: #ffe38b; font-size: .75rem; font-weight: 900; letter-spacing: .18em; }
.discover-membership-title {
  color: #fff5cc; font-size: clamp(1.65rem, 3.2vw, 2.7rem); font-weight: 950; line-height: 1.08;
  text-shadow: 0 3px 18px rgba(255, 211, 74, .28); text-wrap: balance;
}
.discover-membership-copy { color: rgba(255, 255, 255, .91); font-size: clamp(.98rem, 1.45vw, 1.15rem); font-weight: 600; line-height: 1.6; }
.discover-membership-action {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem; margin-top: .3rem; padding: .75rem 1rem;
  border: 1px solid rgba(255, 235, 161, .7); border-radius: 999px; color: #28114e;
  background: linear-gradient(180deg, #fff0a6, #f4c34f); box-shadow: 0 8px 22px rgba(255, 199, 59, .23);
  font-size: .95rem; font-weight: 900; transition: transform .25s ease, box-shadow .25s ease;
}
.discover-membership-action img { display: block; width: 24px; height: 24px; object-fit: contain; }
.discover-membership-card:hover .discover-membership-action, .discover-membership-card:focus-visible .discover-membership-action {
  transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 211, 74, .42);
}
@keyframes discoverMembershipGlow {
  0%, 100% { opacity: .72; transform: scale(.94); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes discoverMembershipBeat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -4px, 0) scale(1.008); }
}
.discover-artwork {
  display: block; flex: 0 1 62%; width: 62%; max-width: 650px; max-height: min(58vh, 500px);
  object-fit: contain; filter: drop-shadow(0 18px 24px rgba(13, 2, 40, .5));
  animation: twicerArtFloat 4.8s ease-in-out infinite;
}
.discover-platform-card {
  position: relative; display: flex; flex: 0 1 340px; flex-direction: column; align-items: center; justify-content: center;
  gap: .8rem; width: min(340px, 36%); min-height: 300px; padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 28px; color: #fff; text-align: center;
  background: linear-gradient(155deg, rgba(69, 41, 135, .96), rgba(21, 10, 61, .98) 68%, rgba(72, 20, 86, .96));
  box-shadow: 0 24px 50px rgba(10, 2, 34, .46), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.discover-card:hover .discover-platform-card, .discover-card:focus-visible .discover-platform-card {
  transform: translateY(-3px); border-color: rgba(247, 216, 132, .82);
  box-shadow: 0 28px 58px rgba(10, 2, 34, .55), 0 0 24px rgba(247, 216, 132, .15), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.discover-platform-logo {
  display: block; width: clamp(76px, 9vw, 112px); height: clamp(76px, 9vw, 112px); padding: 12px;
  border: 1px solid rgba(255, 255, 255, .24); border-radius: 24px; object-fit: contain;
  background: linear-gradient(145deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .04));
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .24));
  transition: transform .3s ease, background .3s ease;
}
.discover-card:hover .discover-platform-logo, .discover-card:focus-visible .discover-platform-logo {
  transform: scale(1.06) rotate(-3deg); background: rgba(255, 255, 255, .22);
}
.discover-platform-name { color: #f7d884; font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 900; letter-spacing: .08em; text-shadow: 0 2px 12px rgba(247, 216, 132, .25); }
.discover-platform-message {
  max-width: 25ch; color: rgba(255, 255, 255, .92); font-size: clamp(.95rem, 1.35vw, 1.12rem);
  font-weight: 650; line-height: 1.5; text-wrap: balance;
}
.section-credit {
  position: fixed; z-index: 49; left: clamp(12px, 2vw, 26px); bottom: clamp(10px, 1.5vh, 18px);
  max-width: calc(100% - 24px); color: rgba(255, 218, 80, .46);
  font-size: clamp(.55rem, .72vw, .72rem); font-weight: 500; line-height: 1.3;
  letter-spacing: .025em; pointer-events: none; user-select: none; display: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
body[data-sec="1"] .section-credit,
body[data-sec="2"] .section-credit,
body[data-sec="3"] .section-credit { display: block; }
.gallery-fiesta {
  position: absolute; z-index: 0; inset: 0;
  visibility: hidden; pointer-events: none; user-select: none; will-change: transform;
}
.gallery-fiesta img {
  position: absolute; top: 0; left: 0; width: clamp(56px, 8vw, 100px); height: auto;
  pointer-events: none; user-select: none; will-change: transform;
}
.gallery-title { margin: 0 auto .2rem; width: min(760px, 92%); }
.gallery-controls { display: flex; justify-content: flex-end; margin: 0 0 1rem; }
.gallery-refresh {
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: linear-gradient(180deg, #fff, #f1e6e8); color: #c8102e; font-size: 2rem; line-height: 1;
  cursor: pointer; box-shadow: 0 3px 8px rgba(20, 0, 30, .4); transition: transform .25s, background .25s;
}
.gallery-refresh:hover { transform: rotate(45deg); background: #fff; }
.gallery-refresh:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .65rem;
  transform: translate3d(var(--ggx, 0px), var(--ggy, 0px), 0); transition: transform .35s ease-out;
  will-change: transform;
}
.gallery-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .24); border-radius: 16px;
  background: linear-gradient(145deg, rgba(39, 20, 92, .97), rgba(16, 9, 46, .96)); color: #fff;
  box-shadow: 0 10px 26px rgba(10, 2, 34, .32), inset 0 1px 0 rgba(255, 255, 255, .14);
  contain: layout paint; transition: transform .25s, background .25s, border-color .25s, box-shadow .25s;
}
.gallery-card:hover { z-index: 1; transform: translateY(-4px); border-color: rgba(255, 255, 255, .58); box-shadow: 0 16px 34px rgba(10, 2, 34, .44), 0 0 18px rgba(151, 117, 255, .17); }
.gallery-image-button {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 6px 6px 0; overflow: hidden; border: 0; border-radius: 15px 15px 0 0; background: transparent;
  cursor: zoom-in; line-height: 0;
}
.gallery-image-button:focus-visible { outline: 2px solid #f7d884; outline-offset: -3px; }
.gallery-card img {
  position: absolute; inset: 6px 0 0; display: block; width: 100%; height: calc(100% - 6px); object-fit: contain; border-radius: 10px; background: #2a1020;
}
.gallery-card figcaption {
  min-height: 2.2rem; margin: 0 6px; padding: .55rem .5rem .6rem;
  border-top: 1px solid rgba(255, 255, 255, .12); color: #f7d884;
  text-align: center; font-weight: 700; font-size: .82rem; line-height: 1.2;
}
.gallery-lightbox {
  position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none;
  padding: min(4vw, 64px); border: 0; overflow: hidden; background: transparent;
  align-items: center; justify-content: center;
}
.gallery-lightbox[open] { display: flex; }
.gallery-lightbox::backdrop { background: rgba(0, 0, 0, .58); }
.gallery-lightbox > img {
  display: block; max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; border-radius: 4px;
}
.gallery-lightbox-close {
  position: absolute; top: 14px; right: 18px; z-index: 1; display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(20, 0, 5, .72);
  color: #fff; font: 300 2.2rem/1 "Segoe UI", system-ui, sans-serif; cursor: pointer;
  transition: background .2s, transform .2s;
}
.gallery-lightbox-close:hover { background: rgba(20, 0, 5, .95); transform: scale(1.06); }
.gallery-lightbox-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.vwrap { position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; padding-bottom: 150px; }
.vtitle { margin: 0 auto .6rem; width: min(760px, 92%); line-height: 0; background: none; user-select: none; -webkit-user-select: none; pointer-events: none;
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0); transition: transform .35s ease-out; will-change: transform; }
.vtitle svg { width: 100%; height: auto; display: block; overflow: visible; }
.vt-main { font-family: "Segoe UI Black", "Segoe UI", system-ui, sans-serif; font-weight: 900; letter-spacing: 2px; fill: #fff; }

.vrow { display: flex; align-items: center; gap: .6rem; }
.vgrid { transform: translate3d(var(--gx, 0px), var(--gy, 0px), 0); transition: transform .35s ease-out; flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; filter: drop-shadow(0 4px 6px rgba(20, 0, 30, .5)); }
.vcard {
  display: flex; flex-direction: column; margin-left: -4%; min-width: 0; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .24); border-radius: 14px; text-decoration: none; color: #fff;
  background: linear-gradient(145deg, rgba(39, 20, 92, .97), rgba(16, 9, 46, .96));
  box-shadow: 0 8px 20px rgba(10, 2, 34, .28), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: transform .25s, background .25s, border-color .25s, box-shadow .25s;
}
.vcard:first-child { margin-left: 0; }
.vcard:hover, .vcard:focus-visible { background: linear-gradient(145deg, rgba(49, 26, 111, .99), rgba(20, 11, 57, .99)); border-color: rgba(255, 255, 255, .58); box-shadow: 0 14px 28px rgba(10, 2, 34, .42), 0 0 16px rgba(151, 117, 255, .16); transform: translateY(-4px); outline: none; z-index: 2; }
.vcard:focus-visible { outline: 2px solid #f7d884; outline-offset: 2px; }
.vcard img { display: block; width: calc(100% - 10px); margin: 5px 5px 0; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; background: #2a1020; }
.vcard span { padding: .55rem .5rem .7rem; border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .94); font-weight: 700; font-size: .8rem; line-height: 1.25; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; box-sizing: content-box; }
.varrow {
  flex: none; width: 46px; height: 64px; border: 0; cursor: pointer; color: #c8102e; font-size: 1.2rem; font-weight: 700;
  background: linear-gradient(180deg, #fff, #f1e6e8); clip-path: polygon(16% 0, 100% 0, 84% 100%, 0 100%); transition: transform .2s, opacity .2s;
}
.varrow:hover:not(:disabled) { transform: scale(1.1); }
.varrow:disabled { opacity: .3; cursor: default; }
.vinfo { text-align: center; color: #fff; margin: 1.2rem 0 0; font-weight: 600; text-shadow: 0 2px 4px rgba(0, 0, 0, .6); }
@media (max-width: 760px) {
  .discover-page { padding: .45rem 4vw 1rem; }
  .discover-page-nav { padding: .15rem 0; }
  .discover-page-nav-up { margin-left: 0; }
  .discover-page-arrow { width: 42px; height: 42px; }
  .twicer-down::before, .twicer-up::before, .gallery-page-arrow::before, .discover-page-arrow::before {
    content: ""; display: block; width: 18px; height: 22px; background: #fff;
    font-size: 0; text-shadow: none;
    clip-path: polygon(35% 0, 65% 0, 65% 55%, 100% 55%, 50% 100%, 0 55%, 35% 55%);
  }
  .twicer-up::before, .gallery-page-arrow[data-gallery-target="featured"]::before,
  .discover-page-arrow-up::before { content: ""; transform: rotate(180deg); }
  .discover-card { flex-direction: column; gap: .65rem; width: min(460px, 96%); padding: .8rem; border-radius: 22px; }
  .discover-artwork { flex: none; width: min(100%, 390px); max-height: 38vh; }
  .discover-membership-card { flex-direction: column; gap: .55rem; width: min(460px, 96%); padding: .75rem; border-radius: 22px; }
  .discover-membership-art { flex: none; width: min(100%, 360px); max-height: 30vh; }
  .discover-membership-content { flex: none; gap: .5rem; width: 100%; padding: .85rem; border-radius: 17px; }
  .discover-membership-eyebrow { font-size: .62rem; letter-spacing: .13em; }
  .discover-membership-title { font-size: clamp(1.35rem, 6vw, 1.8rem); }
  .discover-membership-copy { font-size: .86rem; line-height: 1.42; }
  .discover-membership-action { gap: .5rem; padding: .6rem .8rem; font-size: .8rem; }
  .discover-membership-action img { width: 20px; height: 20px; }
  .discover-platform-card { flex: none; display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; justify-items: start; gap: .1rem .75rem; width: 100%; min-height: 0; padding: .7rem .85rem; border-radius: 16px; text-align: left; }
  .discover-platform-logo { grid-row: 1 / 3; width: 48px; height: 48px; padding: 6px; border-radius: 14px; }
  .discover-platform-name { align-self: end; font-size: 1rem; }
  .discover-platform-message { max-width: none; font-size: .82rem; line-height: 1.35; text-wrap: initial; }
  .gallery-page { padding: 1rem 4vw 3rem; }
  .gallery-section-heading { margin-bottom: .8rem; }
  .gallery-featured-grid { grid-template-columns: minmax(0, 1fr); width: min(480px, 100%); gap: .8rem; }
  .gallery-featured-card { border-radius: 18px; }
  .gallery-featured-card figcaption { padding: .55rem .5rem .45rem; }
  .gallery-featured-card figcaption time { font-size: .72rem; }
  .gallery-page-nav { padding: .45rem 0 .2rem; }
  .gallery-page-arrow { width: 42px; height: 42px; font-size: 2.2rem; }
  .vgrid { grid-template-columns: repeat(2, 1fr); gap: .8rem .4rem; }
  .vcard, .vcard:first-child { margin-left: 0; }
  .vcard:nth-child(5) { grid-column: 1 / -1; width: 50%; justify-self: center; }
}
@media (max-width: 400px) and (max-height: 700px) {
  .discover-membership-card { gap: .4rem; padding: .55rem; }
  .discover-membership-art { max-height: 22vh; }
  .discover-membership-content { gap: .35rem; padding: .65rem; }
  .discover-membership-title { font-size: 1.25rem; }
  .discover-membership-copy { font-size: .78rem; line-height: 1.32; }
  .discover-membership-action { padding: .48rem .65rem; font-size: .75rem; }
}
@media (max-width: 760px) {
  .varrow { width: 30px; height: 48px; font-size: 1rem; }
  .vrow { gap: .3rem; }
  .vcard span { font-size: .7rem; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .gallery-card:nth-child(5) { grid-column: 1 / -1; width: 50%; justify-self: center; }
  .gallery-card figcaption { font-size: .75rem; }
  .gallery-lightbox { padding: 52px 12px 12px; }
  .gallery-lightbox-close { top: 8px; right: 8px; }
}
@media (max-width: 760px) {
  .discover-membership-card::before { border-radius: 22px 22px 0 0; }
}
.vgrid.swap .vcard { animation: vin .35s ease-out both; }
.gallery-grid.swap .gallery-card { animation: vin .35s ease-out both; }
.vgrid.swap .vcard:nth-child(2) { animation-delay: .04s; } .vgrid.swap .vcard:nth-child(3) { animation-delay: .08s; }
.vgrid.swap .vcard:nth-child(4) { animation-delay: .12s; } .vgrid.swap .vcard:nth-child(5) { animation-delay: .16s; }
@keyframes vin { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .vgrid.swap .vcard, .gallery-grid.swap .gallery-card { animation: none; }
  .gallery-pages, .gallery-grid, .gallery-card, .gallery-refresh, .gallery-page-arrow { transition: none; }
  .gallery-featured-card { animation: none; }
  .discover-pages, .discover-page-arrow, .discover-card { transition: none; }
  .discover-platform-card, .discover-platform-logo { transition: none; }
  .discover-artwork { animation: none; }
  .discover-membership-card, .discover-membership-card::after, .discover-membership-action { transition: none; animation: none; }
  .discover-membership-art { animation: none; }
  .discover-membership-card:hover::after, .discover-membership-card:focus-visible::after { animation: none; }
}
/* Nuevo capitulo: card destacada 1 semana, arriba del titulo */
.vfeat {
  position: relative; display: block; width: min(860px, 94%); margin: 0 auto 1.4rem; text-decoration: none; color: #c8102e;
  transform: translate3d(var(--gx, 0px), var(--gy, 0px), 0); transition: transform .35s ease-out;
  filter: drop-shadow(0 6px 10px rgba(20, 0, 30, .55));
}
.vfeat[hidden] { display: none; }
.vfeat-badge {
  position: relative; z-index: 2; display: block; width: max-content; max-width: 90%; margin: 0 auto -1px; padding: .45rem 2.4rem .5rem;
  background: linear-gradient(180deg, #5a2fb0, #2f1566); color: #ffe6a3; font-weight: 600; letter-spacing: 5px; font-size: clamp(.75rem, 2vw, .95rem); font-family: "Segoe UI Semibold", "Segoe UI", system-ui, sans-serif;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); 
}
.vfeat-body {
  display: flex; align-items: stretch; background: linear-gradient(180deg, #fff, #f1e6e8);
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%); transition: background .25s;
}
.vfeat:hover .vfeat-body, .vfeat:focus-visible .vfeat-body { background: #fff; }
.vfeat:focus-visible { outline: none; }
.vfeat img { flex: 0 0 56%; width: 56%; min-width: 0; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #2a1020; }
.vfeat-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: .5rem; padding: .8rem 8% .8rem 1.2rem; }
.vfeat-txt b { font-size: clamp(.95rem, 2.2vw, 1.3rem); line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vfeat-txt span { color: #4a2a5a; font-size: clamp(.75rem, 1.6vw, .92rem); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 5; line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 760px) {
  .vfeat { width: 96%; }
  .vfeat-body { flex-direction: column; clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%); }
  .vfeat img { flex: none; width: 100%; }
  .vfeat-txt { padding: .7rem 7% .9rem; text-align: center; }
  .vfeat-txt span { -webkit-line-clamp: 4; line-clamp: 4; }
}

/* Rendimiento: capas propias, aislamiento de repintado y animaciones pausadas fuera de pantalla */
.vgrid, .vfeat, .vtitle { will-change: transform; backface-visibility: hidden; }
.vcard { contain: layout paint; transition: transform .2s; }
.vcard img { content-visibility: auto; }
.vwrap { contain: layout; }
body:not([data-sec="1"]) #twicers .stars canvas { animation-play-state: paused; }
body[data-sec="1"] #inicio .stars canvas, body[data-sec="2"] #inicio .stars canvas, body[data-sec="3"] #inicio .stars canvas { animation-play-state: paused; }
body:not([data-sec="2"]) #galeria .stars canvas { animation-play-state: paused; }
body:not([data-sec="3"]) #descubre .stars canvas { animation-play-state: paused; }
body.gallery-lightbox-open #galeria .stars canvas { animation-play-state: paused; }
#discoverPages .discover-artwork, #discoverPages .discover-membership-art { animation-play-state: paused; }
body[data-sec="3"] #discoverPages .discover-page[aria-hidden="false"] .discover-artwork,
body[data-sec="3"] #discoverPages .discover-page[aria-hidden="false"] .discover-membership-art { animation-play-state: running; }
body:not([data-sec="3"]) #discoverPages .discover-membership-card,
body:not([data-sec="3"]) #discoverPages .discover-membership-card::after { animation-play-state: paused; }
@media (hover: none), (max-width: 760px) {
  .vgrid, .vfeat, .vtitle { transition: none; filter: none; }
  .vgrid { filter: none; }
  .gallery-grid { transition: none; }
  #twicers .stars canvas:nth-child(3) { display: none; }
  .vcard, .gallery-card { box-shadow: 0 5px 12px rgba(10, 2, 34, .28); }
  .vfeat-body { box-shadow: 0 3px 6px rgba(20, 0, 30, .35); }
}

/* Durante el cambio de seccion se congela todo lo que titila o se mueve de fondo */
body.switching .stars canvas { animation-play-state: paused !important; }
body.switching .runlane, body.switching .vgrid, body.switching .vfeat, body.switching .vtitle { transition: none !important; }
.panel { contain: layout paint style; }

@media (max-width: 760px) {
  .panel,
  .twicer-page,
  .gallery-page,
  .discover-page {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }

  .twicer-videos-page .vwrap {
    padding: .75rem 3vw 1rem;
  }

  .discover-card,
  .discover-membership-card {
    width: min(460px, 100%);
  }
}