/* ==========================================================================
   ESTILOS DE EFECTOS VISUALES ANIMADOS PARA BANNERS - LA CORONA
   Efectos de ALTA VISIBILIDAD: brillos, destello, fuego, burbujas, nieve, confeti, vapor
   ========================================================================== */

.banner-effect-wrap {
  position: relative !important;
  overflow: hidden !important;
}

.banner-effect-layer {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 5 !important;
  overflow: hidden !important;
}

/* ==========================================================================
   1. BRILLOS Y ESTRELLAS (ALTA VISIBILIDAD / DESTELLOS DORADOS Y DIAMANTE)
   ========================================================================== */
.banner-effect-layer.efecto-brillos .efecto-brillo-star {
  position: absolute;
  pointer-events: none;
  animation: animLuminousStar 3.2s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  will-change: transform, opacity;
}

/* Núcleo central ultra brillante */
.banner-effect-layer.efecto-brillos .efecto-brillo-star::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, transparent 0%, #ffffff 35%, #ffffff 65%, transparent 100%);
  border-radius: 50%;
  box-shadow: 0 0 10px #ffffff, 0 0 20px #facc15, 0 0 35px #eab308;
}

.banner-effect-layer.efecto-brillos .efecto-brillo-star::after {
  content: '';
  position: absolute;
  height: 100%;
  width: 5px;
  background: linear-gradient(180deg, transparent 0%, #ffffff 35%, #ffffff 65%, transparent 100%);
  border-radius: 50%;
  box-shadow: 0 0 10px #ffffff, 0 0 20px #facc15, 0 0 35px #eab308;
}

/* Punto focal central */
.banner-effect-layer.efecto-brillos .efecto-brillo-star .star-core {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 12px #ffffff, 0 0 24px #fde047;
}

@keyframes animLuminousStar {
  0%, 100% {
    transform: scale(0.1) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
    transform: scale(1.3) rotate(30deg);
  }
  50% {
    opacity: 0.95;
    transform: scale(0.9) rotate(70deg);
  }
  75% {
    opacity: 1;
    transform: scale(1.2) rotate(110deg);
  }
  90% {
    opacity: 0.4;
    transform: scale(0.4) rotate(140deg);
  }
}

/* ==========================================================================
   2. DESTELLO LÁSER / REFLEJO DIAMANTE
   ========================================================================== */
.banner-effect-layer.efecto-destello .efecto-destello-bar {
  position: absolute;
  top: 0;
  left: -130%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 10%,
    rgba(255, 255, 255, 0.2) 30%,
    rgba(255, 255, 255, 0.85) 48%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0.85) 52%,
    rgba(56, 189, 248, 0.4) 65%,
    transparent 90%
  );
  transform: skewX(-25deg);
  animation: animBarridoLaser 3.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
}

@keyframes animBarridoLaser {
  0% { left: -130%; }
  45%, 100% { left: 190%; }
}

.banner-effect-layer.efecto-destello .efecto-destello-spark {
  position: absolute;
  width: 32px;
  height: 32px;
  animation: animLaserSpark 3.8s ease-in-out infinite;
  opacity: 0;
}

.banner-effect-layer.efecto-destello .efecto-destello-spark::before,
.banner-effect-layer.efecto-destello .efecto-destello-spark::after {
  content: '';
  position: absolute;
  background: #ffffff;
  box-shadow: 0 0 12px #ffffff, 0 0 25px rgba(56, 189, 248, 1);
  border-radius: 50%;
}

.banner-effect-layer.efecto-destello .efecto-destello-spark::before {
  top: 50%; left: 0; right: 0; height: 4px; transform: translateY(-50%);
}
.banner-effect-layer.efecto-destello .efecto-destello-spark::after {
  left: 50%; top: 0; bottom: 0; width: 4px; transform: translateX(-50%);
}

@keyframes animLaserSpark {
  0%, 35%, 100% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  45% {
    transform: scale(1.4) rotate(45deg);
    opacity: 1;
  }
  55% {
    transform: scale(0.9) rotate(90deg);
    opacity: 0.9;
  }
  65% {
    transform: scale(0) rotate(135deg);
    opacity: 0;
  }
}

/* ==========================================================================
   3. FUEGO / BRASAS Y CHISPAS ARDIENTES
   ========================================================================== */
.banner-effect-layer.efecto-fuego .efecto-ember {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #ffffff 10%, #fef08a 35%, #f97316 70%, #dc2626 100%);
  box-shadow: 0 0 10px #f97316, 0 0 22px #ea580c, 0 0 35px #b91c1c;
  animation: animSubirFuego linear infinite;
  opacity: 0;
}

@keyframes animSubirFuego {
  0% {
    bottom: -20px;
    transform: scale(0.6) translateX(0);
    opacity: 0;
  }
  15% {
    opacity: 1;
    transform: scale(1.1) translateX(6px);
  }
  50% {
    transform: scale(1) translateX(18px);
    opacity: 0.95;
  }
  80% {
    opacity: 0.75;
    transform: scale(0.8) translateX(-8px);
  }
  100% {
    bottom: 108%;
    transform: scale(0.4) translateX(-18px);
    opacity: 0;
  }
}

/* ==========================================================================
   4. BURBUJAS FLOTANTES EFERVESCENTES (3D CRISTALINAS)
   ========================================================================== */
.banner-effect-layer.efecto-burbujas .efecto-bubble {
  position: absolute;
  bottom: -35px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.5) 25%,
    rgba(147, 197, 253, 0.25) 50%,
    rgba(255, 255, 255, 0.6) 80%,
    rgba(255, 255, 255, 0.9) 100%
  );
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset -3px -3px 8px rgba(255, 255, 255, 0.6), 0 0 14px rgba(255, 255, 255, 0.5);
  animation: animSubirBurbuja3D linear infinite;
  opacity: 0;
}

@keyframes animSubirBurbuja3D {
  0% {
    bottom: -35px;
    transform: scale(0.5) translateX(0);
    opacity: 0;
  }
  12% {
    opacity: 0.95;
  }
  50% {
    transform: scale(1.05) translateX(16px);
    opacity: 0.9;
  }
  85% {
    opacity: 0.85;
  }
  100% {
    bottom: 106%;
    transform: scale(1.2) translateX(-10px);
    opacity: 0;
  }
}

/* ==========================================================================
   5. NIEVE INVERNAL / COPOS BRILLANTES
   ========================================================================== */
.banner-effect-layer.efecto-nieve .efecto-snowflake {
  position: absolute;
  top: -35px;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 1), 0 0 20px rgba(186, 230, 253, 0.95);
  user-select: none;
  pointer-events: none;
  opacity: 0;
  animation: animCaerNieveGlow linear infinite;
}

.banner-effect-layer.efecto-nieve .efecto-snowdot {
  position: absolute;
  top: -25px;
  background: radial-gradient(circle, #ffffff 40%, rgba(224, 242, 254, 0.9) 80%, transparent 100%);
  box-shadow: 0 0 10px #ffffff, 0 0 18px rgba(186, 230, 253, 0.9);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: animCaerNieveGlow linear infinite;
}

@keyframes animCaerNieveGlow {
  0% {
    top: -35px;
    transform: translateX(0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 0.95;
  }
  50% {
    transform: translateX(24px) rotate(180deg);
    opacity: 0.9;
  }
  85% {
    opacity: 0.85;
  }
  100% {
    top: 106%;
    transform: translateX(-18px) rotate(360deg);
    opacity: 0;
  }
}

/* ==========================================================================
   6. CONFETI FESTIVO (METÁLICO MULTICOLOR)
   ========================================================================== */
.banner-effect-layer.efecto-confeti .efecto-confeti-p {
  position: absolute;
  top: -25px;
  border-radius: 3px;
  opacity: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: animCaerConfeti3D linear infinite;
}

@keyframes animCaerConfeti3D {
  0% {
    top: -25px;
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 0.95;
  }
  100% {
    top: 106%;
    transform: rotateX(720deg) rotateY(360deg) rotateZ(540deg);
    opacity: 0;
  }
}

/* ==========================================================================
   7. VAPOR SUAVE (VISIBLE Y VOLUMÉTRICO)
   ========================================================================== */
.banner-effect-layer.efecto-vapor .efecto-vapor-cloud {
  position: absolute;
  bottom: -70px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.38) 45%, rgba(255, 255, 255, 0.12) 75%, transparent 90%);
  filter: blur(10px);
  border-radius: 50%;
  animation: animFlotarVaporPro ease-out infinite;
  opacity: 0;
}

@keyframes animFlotarVaporPro {
  0% {
    bottom: -70px;
    transform: scale(0.7) translateX(0);
    opacity: 0;
  }
  20% {
    opacity: 0.85;
  }
  60% {
    transform: scale(1.7) translateX(28px);
    opacity: 0.6;
  }
  100% {
    bottom: 106%;
    transform: scale(2.4) translateX(-18px);
    opacity: 0;
  }
}

/* ==========================================================================
   ANIMACIONES COMPARTIDAS POR LOS EFECTOS NUEVOS (prefijo bfx-)
   ========================================================================== */
@keyframes bfxCaerVaiven {
  0%   { top: -45px; transform: translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  25%  { transform: translateX(var(--sway, 30px)) rotate(90deg); }
  50%  { transform: translateX(calc(var(--sway, 30px) * -0.4)) rotate(200deg); }
  75%  { transform: translateX(var(--sway, 30px)) rotate(290deg); }
  90%  { opacity: 0.9; }
  100% { top: 106%; transform: translateX(0) rotate(400deg); opacity: 0; }
}

@keyframes bfxSubirVaiven {
  0%   { bottom: -90px; transform: translateX(0) scale(0.7); opacity: 0; }
  10%  { opacity: 1; }
  30%  { transform: translateX(var(--sway, 25px)) scale(1); }
  60%  { transform: translateX(calc(var(--sway, 25px) * -1)) scale(1); }
  85%  { opacity: 0.9; }
  100% { bottom: 108%; transform: translateX(0) scale(0.95); opacity: 0; }
}

@keyframes bfxGirar { to { transform: rotate(360deg); } }

/* ==========================================================================
   8. LUCES NAVIDEÑAS
   ========================================================================== */
.bfx-luz-seg {
  position: absolute;
  top: 0;
  height: 18px;
  box-sizing: border-box;
  border-bottom: 3px solid #166534;
  border-radius: 0 0 50% 50%;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5));
}
.bfx-luz-foco {
  position: absolute;
  left: 50%;
  top: 16px;
  width: 14px;
  height: 21px;
  margin-left: -7px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: var(--c);
  box-shadow: 0 0 8px 2px var(--c), 0 0 20px 5px var(--c);
  animation: bfxParpadeo 1.5s ease-in-out infinite;
}
.bfx-luz-foco::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 3.5px;
  width: 7px;
  height: 6px;
  background: #1e293b;
  border-radius: 2px;
}
@keyframes bfxParpadeo {
  0%, 100% { opacity: 1; filter: brightness(1.3); }
  50%      { opacity: 0.3; filter: brightness(0.7); }
}

/* ==========================================================================
   9. FUEGOS ARTIFICIALES
   ========================================================================== */
.bfx-fw-burst { position: absolute; width: 0; height: 0; }
.bfx-fw-p {
  position: absolute;
  left: -12px;
  top: -3px;
  width: 24px;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, transparent, var(--c) 60%, #ffffff);
  box-shadow: 0 0 8px var(--c), 0 0 16px var(--c);
  opacity: 0;
  animation: bfxFwP 2.8s ease-out infinite;
}
@keyframes bfxFwP {
  0%   { transform: rotate(var(--a)) translateX(0) scale(1); opacity: 0; }
  4%   { opacity: 1; }
  40%  { transform: rotate(var(--a)) translateX(var(--r)) scale(1); opacity: 1; }
  70%  { transform: rotate(var(--a)) translateX(calc(var(--r) * 1.15)) scale(0.3); opacity: 0; }
  100% { opacity: 0; }
}
.bfx-fw-flash {
  position: absolute;
  left: -40px;
  top: -40px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, var(--c) 30%, transparent 70%);
  opacity: 0;
  animation: bfxFwFlash 2.8s ease-out infinite;
}
@keyframes bfxFwFlash {
  0%   { opacity: 0; transform: scale(0.2); }
  5%   { opacity: 0.9; transform: scale(1); }
  20%  { opacity: 0; transform: scale(1.5); }
  100% { opacity: 0; }
}

/* ==========================================================================
   10. PÉTALOS DE CEMPASÚCHIL
   ========================================================================== */
.bfx-petalo {
  position: absolute;
  top: -45px;
  border-radius: 70% 0 70% 0 / 70% 0 70% 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  opacity: 0;
  animation: bfxCaerVaiven linear infinite;
}
.bfx-petalo.bfx-flor {
  border-radius: 50%;
  box-shadow: none;
  background:
    radial-gradient(circle, #7c2d12 0 14%, transparent 15%),
    repeating-conic-gradient(#f97316 0 15deg, #fbbf24 15deg 30deg);
  -webkit-mask: radial-gradient(circle closest-side, #000 92%, transparent 100%);
  mask: radial-gradient(circle closest-side, #000 92%, transparent 100%);
}

/* ==========================================================================
   11. PAPEL PICADO
   ========================================================================== */
.bfx-pp-cuerda {
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.bfx-pp-flag {
  position: absolute;
  top: 7px;
  height: clamp(30px, 22%, 70px);
  opacity: 0.93;
  transform-origin: top center;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 87.5% 100%, 75% 85%, 62.5% 100%, 50% 85%, 37.5% 100%, 25% 85%, 12.5% 100%, 0 85%);
  -webkit-mask-image:
    radial-gradient(circle at 50% 45%, transparent 0 16%, #000 17%),
    radial-gradient(circle, transparent 0 2.2px, #000 2.7px);
  -webkit-mask-size: 100% 100%, 9px 9px;
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(circle at 50% 45%, transparent 0 16%, #000 17%),
    radial-gradient(circle, transparent 0 2.2px, #000 2.7px);
  mask-size: 100% 100%, 9px 9px;
  mask-composite: intersect;
  animation: bfxOndear 2.6s ease-in-out infinite alternate;
}
@keyframes bfxOndear {
  0%   { transform: perspective(300px) rotateX(0deg) skewX(-4deg) rotate(-2deg); }
  100% { transform: perspective(300px) rotateX(28deg) skewX(4deg) rotate(2deg); }
}

/* ==========================================================================
   12. CORAZONES
   ========================================================================== */
.bfx-corazon {
  position: absolute;
  bottom: -90px;
  width: var(--s);
  height: var(--s);
  opacity: 0;
  filter: drop-shadow(0 0 6px var(--c));
  animation: bfxSubirVaiven linear infinite;
}
.bfx-corazon-forma {
  position: absolute;
  inset: 0;
  background: var(--c);
  transform: rotate(-45deg) scale(0.68);
}
.bfx-corazon-forma::before,
.bfx-corazon-forma::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--c);
}
.bfx-corazon-forma::before { top: -50%; left: 0; }
.bfx-corazon-forma::after  { top: 0; left: 50%; }

/* ==========================================================================
   13. HOJAS DE OTOÑO
   ========================================================================== */
.bfx-hoja {
  position: absolute;
  top: -45px;
  border-radius: 0 80% 0 80%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  opacity: 0;
  animation: bfxCaerVaiven linear infinite;
}
.bfx-hoja::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -5%;
  width: 110%;
  height: 1.5px;
  background: rgba(60, 20, 0, 0.5);
  transform: rotate(45deg);
}

/* ==========================================================================
   14. GLOBOS
   ========================================================================== */
.bfx-globo {
  position: absolute;
  bottom: -90px;
  width: var(--s);
  height: calc(var(--s) * 1.22);
  border-radius: 50% 50% 48% 48% / 56% 56% 44% 44%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.85) 0 7%, transparent 24%), var(--c);
  box-shadow: inset -6px -8px 14px rgba(0, 0, 0, 0.25);
  opacity: 0;
  animation: bfxSubirVaiven linear infinite;
}
.bfx-globo::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  margin-left: -4px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 7px solid var(--c);
}
.bfx-globo::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: 5px;
  width: 1px;
  height: calc(var(--s) * 1.2);
  background: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   15. LLUVIA DE MONEDAS
   ========================================================================== */
.bfx-moneda {
  position: absolute;
  top: -45px;
  perspective: 200px;
  opacity: 0;
  animation: bfxCaerMoneda linear infinite;
}
.bfx-moneda-cara {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff7cc 0 8%, #fde047 22%, #facc15 45%, #ca8a04 78%, #a16207 100%);
  border: 2px solid #a16207;
  box-shadow: inset 0 0 0 3px rgba(255, 247, 204, 0.55), 0 0 12px rgba(250, 204, 21, 0.85);
  color: #854d0e;
  font-weight: 900;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bfxGirarMoneda 1.2s linear infinite;
}
@keyframes bfxGirarMoneda {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}
@keyframes bfxCaerMoneda {
  0%   { top: -45px; opacity: 0; }
  8%   { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 106%; opacity: 0; }
}

/* ==========================================================================
   16. ETIQUETAS DE DESCUENTO
   ========================================================================== */
.bfx-tag {
  position: absolute;
  top: -40px;
  padding: 4px 10px 4px 17px;
  font-weight: 900;
  letter-spacing: 0.5px;
  white-space: nowrap;
  line-height: 1.2;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  clip-path: polygon(11px 0, 100% 0, 100% 100%, 11px 100%, 0 50%);
  transform-origin: 0 50%;
  opacity: 0;
  animation: bfxCaerTag linear infinite;
}
.bfx-tag::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
}
@keyframes bfxCaerTag {
  0%   { top: -40px; transform: rotate(var(--rot)); opacity: 0; }
  10%  { opacity: 1; }
  30%  { transform: rotate(calc(var(--rot) * -1)); }
  55%  { transform: rotate(var(--rot)); }
  80%  { transform: rotate(calc(var(--rot) * -1)); }
  90%  { opacity: 1; }
  100% { top: 106%; transform: rotate(var(--rot)); opacity: 0; }
}

/* ==========================================================================
   17. BORDE BRILLANTE QUE LATE
   ========================================================================== */
@property --bfx-ang {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.bfx-borde {
  position: absolute;
  inset: 0;
  border: 4px solid #facc15;
  border-radius: inherit;
  animation: bfxLatido 1.6s ease-in-out infinite;
}
@keyframes bfxLatido {
  0%, 100% { border-color: #facc15; box-shadow: inset 0 0 10px rgba(250, 204, 21, 0.5); opacity: 0.75; }
  15%      { border-color: #fff7cc; box-shadow: inset 0 0 32px rgba(250, 204, 21, 1); opacity: 1; }
  30%      { opacity: 0.8; }
  45%      { border-color: #fde047; box-shadow: inset 0 0 28px rgba(239, 68, 68, 0.85); opacity: 1; }
  65%      { opacity: 0.75; }
}
.bfx-borde-brillo {
  position: absolute;
  inset: 0;
  padding: 4px;
  border-radius: inherit;
  background: conic-gradient(from var(--bfx-ang), transparent 0 78%, #ffffff 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: bfxGirarBrillo 3s linear infinite;
}
@keyframes bfxGirarBrillo { to { --bfx-ang: 360deg; } }

/* ==========================================================================
   18. RELÁMPAGOS
   ========================================================================== */
.bfx-rayo-flash {
  position: absolute;
  inset: 0;
  background: rgb(220, 235, 255);
  opacity: 0;
  animation: bfxFlash 4.2s linear infinite;
}
@keyframes bfxFlash {
  0%, 100% { opacity: 0; }
  2%  { opacity: 0.5; }
  3%  { opacity: 0; }
  5%  { opacity: 0.35; }
  8%  { opacity: 0; }
}
.bfx-rayo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0;
  filter: drop-shadow(0 0 5px #bfdbfe) drop-shadow(0 0 12px #60a5fa);
  animation: bfxRayo 4.2s linear infinite;
}
.bfx-rayo polyline {
  fill: none;
  stroke: #ffffff;
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
}
@keyframes bfxRayo {
  0%, 100% { opacity: 0; }
  2%  { opacity: 1; }
  3%  { opacity: 0.2; }
  5%  { opacity: 1; }
  10% { opacity: 0; }
}

/* ==========================================================================
   19. ESCARCHA / HIELO
   ========================================================================== */
.banner-effect-layer.efecto-escarcha {
  box-shadow: inset 0 0 45px 12px rgba(224, 242, 254, 0.75);
}
.bfx-hielo-esquina {
  position: absolute;
  width: 40%;
  height: 85%;
  filter: blur(1.5px);
  animation: bfxRespirar 4s ease-in-out infinite;
}
.bfx-hielo-tl { top: 0; left: 0;     background: radial-gradient(ellipse at 0 0,       rgba(255,255,255,0.97) 0%, rgba(224,242,254,0.75) 22%, rgba(186,230,253,0.35) 45%, transparent 68%); }
.bfx-hielo-tr { top: 0; right: 0;    background: radial-gradient(ellipse at 100% 0,    rgba(255,255,255,0.97) 0%, rgba(224,242,254,0.75) 22%, rgba(186,230,253,0.35) 45%, transparent 68%); }
.bfx-hielo-bl { bottom: 0; left: 0;  background: radial-gradient(ellipse at 0 100%,    rgba(255,255,255,0.97) 0%, rgba(224,242,254,0.75) 22%, rgba(186,230,253,0.35) 45%, transparent 68%); }
.bfx-hielo-br { bottom: 0; right: 0; background: radial-gradient(ellipse at 100% 100%, rgba(255,255,255,0.97) 0%, rgba(224,242,254,0.75) 22%, rgba(186,230,253,0.35) 45%, transparent 68%); }
@keyframes bfxRespirar {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}
.bfx-hielo-cristal {
  position: absolute;
  background: #ffffff;
  box-shadow: 0 0 6px #ffffff, 0 0 14px #7dd3fc;
  opacity: 0;
  animation: bfxCristal ease-in-out infinite;
}
@keyframes bfxCristal {
  0%, 100% { opacity: 0; transform: rotate(45deg) scale(0.3); }
  50%      { opacity: 1; transform: rotate(45deg) scale(1); }
}

/* ==========================================================================
   20. GOTAS DE CONDENSACIÓN
   ========================================================================== */
.bfx-gota {
  position: absolute;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.95) 0 12%, rgba(255,255,255,0.35) 30%, rgba(186,230,253,0.2) 65%, rgba(255,255,255,0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.18), inset 0 -2px 3px rgba(255, 255, 255, 0.4);
  animation: bfxGotaBrillo ease-in-out infinite;
}
@keyframes bfxGotaBrillo {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; filter: brightness(1.25); }
}
.bfx-gota.bfx-gota-corre {
  opacity: 0;
  animation: bfxGotaCorre ease-in infinite;
}
.bfx-gota.bfx-gota-corre::after {
  content: '';
  position: absolute;
  bottom: 90%;
  left: 30%;
  width: 40%;
  height: 320%;
  border-radius: 2px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.45), transparent);
}
@keyframes bfxGotaCorre {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: 1; }
  35%  { transform: translateY(8px); }
  90%  { opacity: 0.9; }
  100% { transform: translateY(var(--h, 400px)); opacity: 0; }
}

/* ==========================================================================
   21. BURBUJAS DE JABÓN TORNASOL
   ========================================================================== */
.bfx-jabon {
  position: absolute;
  bottom: -90px;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, rgba(255, 255, 255, 0.05) 70%, rgba(255, 255, 255, 0.16) 92%);
  opacity: 0;
  animation: bfxSubirVaiven linear infinite;
}
.bfx-jabon-aro {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(rgba(255,0,170,0.6), rgba(0,200,255,0.6), rgba(255,230,0,0.6), rgba(0,255,140,0.6), rgba(170,0,255,0.6), rgba(255,0,170,0.6));
  -webkit-mask: radial-gradient(circle closest-side, transparent 80%, #000 90%, #000 98%, transparent 100%);
  mask: radial-gradient(circle closest-side, transparent 80%, #000 90%, #000 98%, transparent 100%);
  animation: bfxGirar 4s linear infinite;
}
.bfx-jabon-brillo {
  position: absolute;
  top: 16%;
  left: 20%;
  width: 26%;
  height: 15%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  transform: rotate(-35deg);
}

/* ==========================================================================
   22. ESTRELLAS FUGACES
   ========================================================================== */
.bfx-fugaz-punto {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 4px #ffffff;
  animation: bfxTitilar 2.4s ease-in-out infinite;
}
@keyframes bfxTitilar {
  0%, 100% { opacity: 0.2; }
  50%      { opacity: 1; }
}
.bfx-fugaz {
  position: absolute;
  width: 180px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #ffffff, rgba(191, 219, 254, 0.6) 40%, rgba(255, 255, 255, 0));
  filter: drop-shadow(0 0 4px rgba(147, 197, 253, 0.9));
  transform-origin: left center;
  opacity: 0;
  animation: bfxFugaz ease-in infinite;
}
.bfx-fugaz::before {
  content: '';
  position: absolute;
  left: -4px;
  top: -2.5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #ffffff, 0 0 20px #93c5fd;
}
@keyframes bfxFugaz {
  0%   { transform: rotate(-30deg) translateX(0); opacity: 0; }
  5%   { opacity: 1; }
  35%  { transform: rotate(-30deg) translateX(calc(var(--dist, 800px) * -1)); opacity: 0; }
  100% { transform: rotate(-30deg) translateX(calc(var(--dist, 800px) * -1)); opacity: 0; }
}
