/* ==========================================================================
   ADUANAS LACOSTE S.A. - MÓDULO TEMPORADA DICIEMBRE: COPOS ESTRELLA
   Directriz Maestra: §2.9 (Módulo independiente, GPU, prefers-reduced-motion)
   DESCONEXIÓN EN ENERO: Retirar <link> y <script> de diciembre-copos-estrella.
   ========================================================================== */

.dic-estrellas-capa {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  z-index: 83;
}

.dic-copo-estrella {
  position: absolute;
  top: -48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' fill='none'%3E%3Cpath d='M32 4 V60 M7.8 18 L56.2 46 M56.2 18 L7.8 46'/%3E%3Cpath d='M25 11 L32 18 L39 11 M25 53 L32 46 L39 53'/%3E%3Cpath d='M12 26 L20 25 L19 17 M45 47 L44 39 L52 38'/%3E%3Cpath d='M45 17 L44 25 L52 26 M12 38 L20 39 L19 47'/%3E%3C/g%3E%3Ccircle cx='32' cy='32' r='3.5' fill='%23ffffff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  filter: drop-shadow(0 0 6px rgba(186, 230, 253, 0.72));
  will-change: transform, opacity;
  animation-name: dic-estrella-caida;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes dic-estrella-caida {
  0% {
    transform: translate3d(0, -6vh, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: var(--estrella-opacidad, 0.85);
  }
  50% {
    transform: translate3d(var(--estrella-deriva, 26px), 52vh, 0) rotate(180deg);
  }
  90% {
    opacity: var(--estrella-opacidad, 0.82);
  }
  100% {
    transform: translate3d(calc(var(--estrella-deriva, 26px) * -0.5), 108vh, 0) rotate(360deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dic-estrellas-capa {
    display: none !important;
  }
}
