/* Animaciones de temporada de la tienda (copiadas de tienda-ropa/css/styles.css):
   partículas que caen o suben, personajes que cruzan la pantalla y la escena del encabezado (.cab). */
/* ---------- Íconos animados de temporada ---------- */
.particulas { position: fixed; inset: 0; z-index: 15; pointer-events: none; overflow: hidden; }
.particula {
  position: absolute; top: -40px; display: block; opacity: var(--opacidad);
  animation: var(--animacion) var(--duracion) linear var(--retraso) infinite;
  will-change: transform;
}
.particula svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12)); }
.particulas--caer .particula { --animacion: caer; }
.particulas--subir .particula { --animacion: subir; top: auto; bottom: -40px; }
.particulas--titilar .particula { --animacion: titilar; animation-timing-function: ease-in-out; }
@keyframes caer {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(var(--vaiven), 55vh, 0) rotate(calc(var(--giro) / 2)); }
  100% { transform: translate3d(calc(var(--vaiven) * -0.4), 110vh, 0) rotate(var(--giro)); }
}
@keyframes subir {
  0% { transform: translate3d(0, 0, 0) scale(0.8); opacity: 0; }
  10% { opacity: var(--opacidad); }
  50% { transform: translate3d(var(--vaiven), -55vh, 0) scale(1); }
  90% { opacity: var(--opacidad); }
  100% { transform: translate3d(calc(var(--vaiven) * -0.5), -110vh, 0) scale(1.1); opacity: 0; }
}
@keyframes titilar {
  0%, 100% { transform: scale(0.4) rotate(0deg); opacity: 0.15; }
  50% { transform: scale(1) rotate(calc(var(--giro) / 6)); opacity: var(--opacidad); }
}
/* ---------- Personajes que cruzan la pantalla (bruja, reno, máscara...) ---------- */
.voladores { position: fixed; inset: 0; z-index: 14; pointer-events: none; overflow: hidden; }
.volador {
  position: absolute; left: 0; display: block;
  transform: translateX(-40vw);
  animation: cruzar var(--duracion) linear var(--retraso) infinite;
  will-change: transform;
}
.volador--izq { animation-name: cruzar-izq; }
.volador > span { display: block; animation: flotar 2.4s ease-in-out infinite alternate; }
.volador svg { width: 100%; height: auto; display: block; stroke: none; filter: drop-shadow(0 6px 8px rgba(42, 20, 70, 0.25)); }
/* Cruza durante el 55% del ciclo y luego espera fuera de la pantalla: aparece de vez en cuando */
@keyframes cruzar {
  0% { transform: translateX(-40vw); }
  55%, 100% { transform: translateX(120vw); }
}
@keyframes cruzar-izq {
  0% { transform: translateX(120vw) scaleX(-1); }
  55%, 100% { transform: translateX(-40vw) scaleX(-1); }
}
@keyframes flotar {
  from { transform: translateY(-12px) rotate(-4deg); }
  to { transform: translateY(12px) rotate(3deg); }
}

/* ---------- Escena de la cinta de categorías (cada tema tiene la suya) ---------- */
/* El nombre de la categoría se sigue leyendo sobre los dibujos */
.cinta-escena { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cinta-escena > span { position: absolute; display: block; }
.cinta-escena svg[aria-hidden="true"] { display: block; width: 100%; height: auto; stroke: none; stroke-width: 1; overflow: visible; }

/* Movimientos comunes: caer girando, subir, titilar, luces desenfocadas y cruzar */
.esc-cae { top: -26px; animation: esc-caer var(--dur) linear var(--del) infinite; }
.esc-cae > span { display: block; animation: esc-vaiven var(--vaiven) ease-in-out var(--del) infinite alternate; }
.esc-cae > span > span { display: block; animation: esc-girar3d var(--giro) ease-in-out infinite alternate; }
.esc-cae--plano > span > span { animation: none; }
@keyframes esc-caer { to { transform: translate(var(--x), 270px); } }
@keyframes esc-vaiven { from { transform: translateX(-12px) rotate(-10deg); } to { transform: translateX(12px) rotate(10deg); } }
@keyframes esc-girar3d {
  from { transform: perspective(70px) rotateX(-55deg) rotateY(25deg); }
  to { transform: perspective(70px) rotateX(50deg) rotateY(-40deg); }
}
.esc-sube { bottom: -70px; opacity: 0; animation: esc-subir var(--dur) linear var(--del) infinite; }
.esc-sube > span { display: block; animation: esc-vaiven var(--vaiven) ease-in-out infinite alternate; }
@keyframes esc-subir {
  0% { transform: translateY(0); opacity: 0; }
  8%, 82% { opacity: var(--op); }
  100% { transform: translateY(-310px); opacity: 0; }
}
.esc-titila { animation: esc-titilar var(--dur) ease-in-out var(--del) infinite; }
@keyframes esc-titilar { 0%, 100% { opacity: 0.1; transform: scale(0.55) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(20deg); } }
.esc-bokeh {
  border-radius: 50%;
  background: radial-gradient(circle at 42% 40%, color-mix(in srgb, var(--color) 45%, transparent), color-mix(in srgb, var(--color) 14%, transparent) 58%, transparent 72%);
  animation: esc-deriva var(--dur) ease-in-out var(--del) infinite alternate;
}
@keyframes esc-deriva {
  0% { transform: translate(0, 0) scale(0.9); opacity: 0.35; }
  50% { opacity: 0.85; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1.1); opacity: 0.45; }
}
.esc-cruza { left: 0; animation: esc-cruzar var(--dur) linear var(--del) infinite; will-change: transform; }
.esc-cruza > span { display: block; animation: esc-mecer var(--mecer, 3s) ease-in-out infinite alternate; }
@keyframes esc-cruzar {
  from { transform: translate(-260px, var(--y1, 0px)); }
  to { transform: translate(calc(100vw + 60px), var(--y2, 0px)); }
}
@keyframes esc-mecer { from { transform: translateY(-2px) rotate(-1deg); } to { transform: translateY(2px) rotate(1deg); } }
.esc-alas { transform-box: fill-box; transform-origin: center; animation: esc-aletear 0.9s ease-in-out infinite alternate; }
@keyframes esc-aletear { to { transform: scaleY(0.45); } }
@keyframes esc-latido { from { transform: scale(1); opacity: 0.88; } to { transform: scale(1.06); opacity: 1; } }
@keyframes esc-pendulo { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@keyframes esc-mecerse { from { transform: rotate(-1deg); } to { transform: rotate(1.2deg); } }

/* Verano: sol con halo, palmeras, mar en tres capas, surfista y gaviotas */
.esc-sol, .esc-luna, .esc-estrella-guia { animation: esc-latido 7s ease-in-out infinite alternate; }
.esc-palmera { bottom: 4px; width: 86px; transform-origin: 55% 100%; animation: esc-mecerse 7s ease-in-out infinite alternate; }
.esc-palmera--der { animation-delay: -3.5s; }
.esc-palmera--der svg, .esc-arbol--der svg, .esc-telarana--der svg, .esc-rama--der svg { transform: scaleX(-1); }
.esc-hojas { transform-origin: 62px 46px; animation: esc-hojas 5s ease-in-out infinite alternate; }
@keyframes esc-hojas { from { transform: rotate(-2deg); } to { transform: rotate(2.5deg); } }
.esc-mar { left: 0; right: 0; bottom: 0; background-repeat: repeat-x; background-position: 0 100%; animation: linear infinite; }
.esc-mar--fondo {
  height: 34px; background-size: 240px 34px; animation-name: esc-ola-240; animation-duration: 28s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='34'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%2387d8e6'/%3E%3Cstop offset='1' stop-color='%23238fa8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 12C40 3 80 3 120 12S200 21 240 12V34H0z' fill='url(%23a)' fill-opacity='.6'/%3E%3C/svg%3E");
}
.esc-mar--medio {
  height: 26px; background-size: 180px 26px; animation-name: esc-ola-180; animation-duration: 19s; animation-direction: reverse;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='26'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%234cc3d6'/%3E%3Cstop offset='1' stop-color='%2316809b'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 9C30 2 60 2 90 9S150 16 180 9V26H0z' fill='url(%23a)' fill-opacity='.75'/%3E%3Cpath d='M0 9C30 2 60 2 90 9S150 16 180 9' fill='none' stroke='%23ffffff' stroke-opacity='.45' stroke-width='1'/%3E%3C/svg%3E");
}
.esc-mar--frente {
  height: 18px; background-size: 140px 18px; animation-name: esc-ola-140; animation-duration: 13s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='18'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%235fd0df'/%3E%3Cstop offset='1' stop-color='%230e7490'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 7C23 1 47 1 70 7S117 13 140 7V18H0z' fill='url(%23a)'/%3E%3Cpath d='M0 7C23 1 47 1 70 7S117 13 140 7' fill='none' stroke='%23ffffff' stroke-opacity='.9' stroke-width='1.3'/%3E%3Cg fill='%23ffffff' fill-opacity='.7'%3E%3Ccircle cx='30' cy='4.6' r='.8'/%3E%3Ccircle cx='96' cy='10' r='.7'/%3E%3Ccircle cx='120' cy='9.4' r='.6'/%3E%3C/g%3E%3C/svg%3E");
}
@keyframes esc-ola-240 { to { background-position-x: 240px; } }
@keyframes esc-ola-180 { to { background-position-x: 180px; } }
@keyframes esc-ola-140 { to { background-position-x: 140px; } }

/* Halloween: luna, árboles secos, telarañas, arañas, murciélagos, calabazas y niebla */
.esc-arbol { bottom: 0; width: 100px; transform-origin: 30% 100%; animation: esc-mecerse 9s ease-in-out infinite alternate; }
.esc-arbol--der { animation-delay: -4s; }
.esc-telarana { top: 0; width: 82px; transform-origin: 0 0; animation: esc-mecerse 6s ease-in-out infinite alternate; }
.esc-telarana--der { transform-origin: 100% 0; animation-delay: -3s; }
.esc-arana { top: -96px; width: 22px; animation: esc-arana var(--dur) ease-in-out var(--del, 0s) infinite; }
.esc-arana svg { transform-origin: 50% 0; animation: esc-pendulo 3.2s ease-in-out infinite alternate; }
@keyframes esc-arana { 0%, 100% { transform: translateY(0); } 35%, 62% { transform: translateY(72px); } }
.esc-calabaza { bottom: 6px; animation: esc-resplandor 3s ease-in-out var(--del, 0s) infinite alternate; }
@keyframes esc-resplandor {
  from { filter: drop-shadow(0 0 2px rgba(255, 140, 20, 0.35)); }
  to { filter: drop-shadow(0 0 10px rgba(255, 140, 20, 0.75)); }
}
.esc-vela { animation: esc-vela 2.2s linear infinite; }
@keyframes esc-vela { 0%, 100% { opacity: 1; } 12% { opacity: 0.8; } 20% { opacity: 0.95; } 33% { opacity: 0.72; } 47% { opacity: 1; } 60% { opacity: 0.84; } 74% { opacity: 0.97; } 86% { opacity: 0.78; } }
.esc-niebla {
  left: -25%; width: 150%; bottom: 0; height: 64px; opacity: 0.6;
  background:
    radial-gradient(ellipse 14% 60% at 8% 82%, rgba(255, 255, 255, 0.8), transparent 70%),
    radial-gradient(ellipse 18% 70% at 30% 92%, rgba(240, 232, 255, 0.85), transparent 70%),
    radial-gradient(ellipse 13% 55% at 52% 86%, rgba(255, 255, 255, 0.75), transparent 70%),
    radial-gradient(ellipse 18% 70% at 74% 92%, rgba(240, 232, 255, 0.85), transparent 70%),
    radial-gradient(ellipse 14% 60% at 95% 84%, rgba(255, 255, 255, 0.8), transparent 70%);
  animation: esc-niebla 34s ease-in-out infinite alternate;
}
.esc-niebla--frente { height: 38px; opacity: 0.5; animation-duration: 26s; animation-direction: alternate-reverse; }
@keyframes esc-niebla { from { transform: translateX(-8%); } to { transform: translateX(8%); } }

/* Navidad: cielo de invierno, luna, trineo de Santa, guirnalda, nieve y pinos nevados */
  background:
    radial-gradient(55% 130% at 80% -20%, rgba(255, 214, 102, 0.5), transparent 62%),
    radial-gradient(40% 100% at 6% 115%, rgba(255, 255, 255, 0.2), transparent 70%),
    linear-gradient(180deg, #ef1a36 0%, #c8081f 55%, #9a0618 100%);
  padding-top: 16px; border-top-color: #ffd166;
}
.esc-baston { top: -2px; transform-origin: 50% 0; animation: esc-pendulo var(--dur) ease-in-out var(--del) infinite alternate; filter: drop-shadow(0 2px 2px rgba(60, 0, 8, 0.35)); }
.esc-regalos { bottom: 7px; transform-origin: 50% 100%; animation: esc-regalo-salto 2.6s ease-in-out infinite; filter: drop-shadow(0 2px 2px rgba(60, 0, 8, 0.3)); }
@keyframes esc-regalo-salto { 0%, 64%, 100% { transform: translateY(0) scale(1); } 72% { transform: translateY(-5px) scale(1.03, 0.97); } 80% { transform: translateY(0) scale(1.04, 0.95); } 88% { transform: translateY(-1px) scale(1); } }
.esc-muneco { bottom: 5px; transform-origin: 50% 100%; animation: esc-mecerse 2.4s ease-in-out infinite alternate; filter: drop-shadow(0 2px 2px rgba(60, 0, 8, 0.3)); }
.esc-brazo { transform-box: fill-box; transform-origin: 0 100%; animation: esc-saludo 0.7s ease-in-out infinite alternate; }
.esc-nariz { transform-box: fill-box; transform-origin: center; animation: esc-nariz 0.9s ease-in-out infinite alternate; }
@keyframes esc-nariz { from { opacity: 0.15; transform: scale(0.7); } to { opacity: 0.6; transform: scale(1.25); } }
[data-escena="navidad"] .esc-bombillo { animation-duration: 1.35s; }
[data-escena="navidad"] .esc-pino { filter: drop-shadow(0 2px 3px rgba(40, 0, 6, 0.35)); }
.particulas[data-tema="navidad"] .particula svg { filter: drop-shadow(0 1px 1.5px rgba(120, 0, 20, 0.4)); }
.esc-luces {
  left: 0; right: 0; top: 0; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='22'%3E%3Cpath d='M0 2Q30 16 60 2' fill='none' stroke='%23243b30' stroke-width='1.2'/%3E%3C/svg%3E") repeat-x 0 0 / 60px 22px;
}
.esc-bombillo {
  position: absolute; top: 8px; width: 7px; height: 11px; border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0 12%, var(--color) 48%, color-mix(in srgb, var(--color) 62%, #000) 100%);
  box-shadow: 0 0 9px 1px color-mix(in srgb, var(--color) 70%, transparent);
  animation: esc-bombillo 3.4s ease-in-out var(--del) infinite alternate;
}
.esc-bombillo::before { content: ""; position: absolute; left: 1.5px; top: -2.5px; width: 4px; height: 3.5px; border-radius: 1px; background: linear-gradient(90deg, #4b5563, #9ca3af, #4b5563); }
@keyframes esc-bombillo { from { opacity: 0.55; box-shadow: 0 0 2px color-mix(in srgb, var(--color) 40%, transparent); } to { opacity: 1; } }
.esc-copo {
  display: block; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 42% 40%, #ffffff 0 45%, rgba(255, 255, 255, 0.65) 70%, rgba(255, 255, 255, 0) 100%);
  box-shadow: 0 0 2px rgba(140, 170, 205, 0.8);
}
.esc-nieve {
  left: 0; right: 0; bottom: 0; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='18'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%23dbe5ef'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 8Q14 1 30 7T64 6T96 8T120 8V18H0z' fill='url(%23a)'/%3E%3C/svg%3E") repeat-x 0 100% / 120px 18px;
  filter: drop-shadow(0 -1px 1px rgba(120, 150, 185, 0.35));
}
.esc-pino { bottom: 8px; }
.esc-lucecitas circle { animation: esc-bombillo 2.4s ease-in-out infinite alternate; }
.esc-punta { transform-box: fill-box; transform-origin: center; animation: esc-latido 2.6s ease-in-out infinite alternate; filter: drop-shadow(0 0 2px #f4cf5d); }
.esc-patas { transform-box: fill-box; transform-origin: 50% 0; animation: esc-galope 0.42s ease-in-out infinite alternate; }
@keyframes esc-galope { from { transform: skewX(-8deg); } to { transform: skewX(14deg); } }
.esc-saludo { transform-box: fill-box; transform-origin: 0 100%; animation: esc-saludo 0.9s ease-in-out infinite alternate; }
@keyframes esc-saludo { to { transform: rotate(-20deg); } }
.esc-estela circle { animation: esc-titilar 1.6s ease-in-out infinite; }

/* Carnaval: serpentinas colgando y confeti que cae girando */
.esc-serpentina { top: -4px; transform-origin: 50% 0; animation: esc-pendulo 4.6s ease-in-out var(--del) infinite alternate; }

/* San Valentín, Día de las Madres y Primavera: pétalos, corazones, ramas florecidas y mariposas */
.esc-rama { transform-origin: 0 0; animation: esc-mecerse 6.5s ease-in-out infinite alternate; }
.esc-rama--der { transform-origin: 100% 0; animation-delay: -3s; }
.esc-ala { transform-origin: 20px 15px; animation: esc-aleteo 0.5s ease-in-out infinite alternate; }
@keyframes esc-aleteo { to { transform: scaleX(0.3); } }

/* Black Friday: etiquetas de precio colgando y destellos dorados */
.esc-etiqueta { top: -6px; transform-origin: 50% 0; animation: esc-pendulo var(--dur) ease-in-out var(--del) infinite alternate; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.18)); }

/* Reyes: estrella guía, cielo estrellado, dunas y la caravana de los Reyes Magos */
.esc-dunas {
  left: 0; right: 0; bottom: 0; height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='40'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ecd3a2'/%3E%3Cstop offset='1' stop-color='%23c99a5b'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 22C50 6 110 8 160 20S270 30 320 22V40H0z' fill='url(%23a)' fill-opacity='.75'/%3E%3C/svg%3E") repeat-x 0 100% / 320px 40px;
}
.esc-dunas--frente {
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='20'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23e3be82'/%3E%3Cstop offset='1' stop-color='%23b8854a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 10C60 2 120 4 170 9S230 14 260 10V20H0z' fill='url(%23a)'/%3E%3C/svg%3E");
  background-size: 260px 20px;
}

/* Año Nuevo: fuegos artificiales, destellos y confeti dorado */
.esc-fuego { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.esc-fuego__rayos { position: absolute; inset: 0; opacity: 0; animation: esc-fuego 4.4s ease-out var(--del) infinite; filter: drop-shadow(0 0 3px var(--color)); }
.esc-fuego__rayos i {
  position: absolute; left: 50%; top: 50%; width: 2px; height: 30px; margin-left: -1px; transform-origin: 50% 0; border-radius: 2px;
  background: linear-gradient(to bottom, transparent 15%, var(--color));
}
@keyframes esc-fuego {
  0% { transform: scale(0.1); opacity: 0; }
  6% { opacity: 1; }
  45% { transform: scale(1); opacity: 0.95; }
  78% { transform: scale(1.14) translateY(7px); opacity: 0; }
  100% { transform: scale(1.14) translateY(7px); opacity: 0; }
}

/* Otoño: árboles, hojas que caen girando y hojarasca en el suelo */
.esc-hojarasca { left: 0; right: 0; bottom: 0; height: 22px; }
.esc-hojarasca > span { position: absolute; bottom: 0; width: 18px; }

/* Día del Niño: globos y burbujas de jabón que suben */

@media (max-width: 700px) {
  .esc-palmera { width: 60px; }
  .esc-arbol { width: 70px; }
  .esc-telarana { width: 56px; }
  .esc-rama { width: 110px !important; }
  .esc-cruza { zoom: 0.75; }
  .esc-pino { zoom: 0.8; }
  .esc-sol, .esc-luna, .esc-estrella-guia { width: 70px !important; }
}
/* La cinta es pequeña y se anima siempre; si el equipo pide menos movimiento, lo que cruza va más lento. */
@media (prefers-reduced-motion: reduce) {
  .cinta-escena .esc-cruza { animation-duration: calc(var(--dur) * 1.6); }
}

[data-escena="navidad"] .esc-cruza svg { filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.95)) drop-shadow(0 3px 4px rgba(60, 0, 8, 0.4)); }
/* Encabezado de la app con la escena del tema detrás del nombre. */
.cab { overflow: hidden; isolation: isolate; }
.cab > .cinta-escena { opacity: .75; }
.cab > :not(.cinta-escena) { position: relative; z-index: 1; }
.particulas, .voladores { z-index: 25; }
@media (prefers-reduced-motion: reduce) { .particulas, .voladores { display: none; } }

/* Animaciones del tema de la tienda. */
.esc-rayos {
  inset: 0; background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.1) 44%, rgba(255, 225, 140, 0.2) 50%, transparent 60%);
  background-size: 260% 100%; animation: esc-barrido 7s ease-in-out infinite;
}
@keyframes esc-barrido { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.esc-prisma { filter: drop-shadow(0 0 10px rgba(245, 197, 66, 0.35)); animation: esc-flotar 5s ease-in-out infinite alternate; }
@keyframes esc-flotar { from { transform: translateY(2px); } to { transform: translateY(-4px); } }
.esc-arcoiris { animation: esc-arcoiris 3.2s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 0 50%; }
@keyframes esc-arcoiris { from { opacity: 0.55; transform: scaleY(0.92); } to { opacity: 1; transform: scaleY(1.06); } }
/* En el encabezado de la app el prisma no va (taparía los botones). */
.cab > .cinta-escena .esc-prisma { display: none; }
/* Carnaval (copiado de tienda-ropa/css/styles.css): banderines, antifaces, reflectores, tambor y maracas. */
.esc-banderines {
  left: 0; right: 0; top: 0; height: 26px; z-index: 1;
  background: linear-gradient(180deg, transparent 3px, rgba(255, 233, 160, 0.95) 3px, rgba(255, 233, 160, 0.95) 4.4px, transparent 4.4px);
}
.esc-banderin {
  position: absolute; top: 4px; width: 17px; height: 19px; transform-origin: 50% 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.5), transparent 45%), var(--color);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  animation: esc-pendulo 2.6s ease-in-out var(--del) infinite alternate;
}
.esc-antifaz { top: -8px; transform-origin: 50% 0; animation: esc-pendulo var(--dur) ease-in-out var(--del) infinite alternate; filter: drop-shadow(0 4px 5px rgba(20, 0, 40, 0.5)); z-index: 1; }
.esc-antifaz--chico { top: -16px; opacity: 0.88; }
.esc-lentejuela { animation: esc-brillito 1.4s ease-in-out infinite alternate; }
.esc-lentejuela:nth-child(2n) { animation-delay: -0.7s; }
@keyframes esc-brillito { from { opacity: 0.15; } to { opacity: 1; } }
.esc-reflector {
  bottom: -14px; width: 110px; height: 280px; transform-origin: 50% 100%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 85%);
  clip-path: polygon(44% 100%, 56% 100%, 100% 0, 0 0);
  animation: esc-reflector 6.5s ease-in-out var(--del) infinite alternate;
}
.esc-reflector--der { background: linear-gradient(to top, rgba(255, 210, 63, 0.38), rgba(255, 210, 63, 0) 85%); animation-direction: alternate-reverse; }
@keyframes esc-reflector { from { transform: rotate(-30deg); } to { transform: rotate(30deg); } }
.esc-tambor { bottom: 2px; transform-origin: 50% 100%; animation: esc-tamborazo 0.7s ease-in-out infinite; filter: drop-shadow(0 3px 3px rgba(20, 0, 40, 0.45)); }
@keyframes esc-tamborazo { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.04, 0.95); } 50% { transform: scale(1); } 65% { transform: scale(1.03, 0.96); } }
.esc-baqueta { transform-box: fill-box; transform-origin: 0 0; animation: esc-golpe 0.35s ease-in-out infinite alternate; }
.esc-baqueta--der { transform-origin: 100% 0; animation-name: esc-golpe-der; animation-delay: -0.17s; }
@keyframes esc-golpe { from { transform: rotate(-16deg); } to { transform: rotate(4deg); } }
@keyframes esc-golpe-der { from { transform: rotate(16deg); } to { transform: rotate(-4deg); } }
.esc-maracas { bottom: 4px; filter: drop-shadow(0 3px 3px rgba(20, 0, 40, 0.45)); }
.esc-maraca { transform-box: fill-box; transform-origin: 50% 100%; animation: esc-sacudir 0.3s ease-in-out infinite alternate; }
.esc-maraca--b { animation-delay: -0.15s; }
@keyframes esc-sacudir { from { transform: rotate(-12deg); } to { transform: rotate(10deg); } }
[data-escena="carnaval"] .esc-fuego { zoom: 0.85; }
[data-escena="carnaval"] .esc-cae svg { filter: drop-shadow(0 1px 1px rgba(20, 0, 40, 0.3)); }
/* En el encabezado de la app no van los antifaces, el tambor ni las maracas (taparían el GPS y el nombre). */
.cab > .cinta-escena .esc-antifaz, .cab > .cinta-escena .esc-tambor, .cab > .cinta-escena .esc-maracas { display: none; }
/* Ahorro de batería (app.js: ahorroAnimaciones): en ruta o con la batería baja, sin piezas que caen ni personajes,
   y la escena del encabezado quieta. */
html.ahorro-anim .particulas, html.ahorro-anim .voladores { display: none; }
html.ahorro-anim .cinta-escena, html.ahorro-anim .cinta-escena * { animation-play-state: paused !important; }
