/* Geomil Festividades — capa decorativa: nunca bloquea clics */
.gml-fest {
  position: fixed;
  inset: 0;
  z-index: 99990;
  pointer-events: none;
  overflow: hidden;
  transition: opacity .45s ease;
}
.gml-fest * { pointer-events: none; }
.gml-fest--saliendo { opacity: 0 !important; }

/* =========================== HALLOWEEN =========================== */

/* Telarañas */
.gml-web {
  position: absolute;
  top: 0;
  width: clamp(80px, 10vw, 170px);
  height: auto;
  color: rgba(255, 255, 255, .62);
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, .25));
}
.gml-web-izq { left: 0; }
.gml-web-der { right: 0; transform: scaleX(-1); }

/* Araña colgante */
.gml-spider {
  position: absolute;
  top: 0;
  right: clamp(46px, 7.5vw, 130px);
  width: clamp(26px, 2.4vw, 38px);
  animation: gmlSpiderBaja 11s ease-in-out infinite;
}
.gml-spider-hilo {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 4px);
  width: 1px;
  height: 100vh;
  background: rgba(255, 255, 255, .75);
  box-shadow: 0 0 1px rgba(0, 0, 0, .35);
}
.gml-spider-svg {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 50% 0;
  animation: gmlSpiderVaiven 3.2s ease-in-out infinite;
}
@keyframes gmlSpiderBaja {
  0%, 12%   { transform: translateY(-70px); }
  45%, 62%  { transform: translateY(clamp(90px, 14vh, 160px)); }
  100%      { transform: translateY(-70px); }
}
@keyframes gmlSpiderVaiven {
  0%, 100% { transform: rotate(-6deg); }
  50%      { transform: rotate(6deg); }
}

/* Murciélagos */
.gml-bat {
  position: absolute;
  left: 0;
  will-change: transform;
  animation-name: gmlVueloDer;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.gml-bat--izq { animation-name: gmlVueloIzq; }
.gml-bat--una-vez { animation-iteration-count: 1; animation-fill-mode: both; animation-timing-function: ease-in-out; }
.gml-bat--izq .gml-bat-svg { transform: scaleX(-1); }
.gml-bat-ola { animation: gmlOla 2s ease-in-out infinite alternate; }
.gml-bat-svg {
  display: block;
  height: auto;
  fill: #23182f;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25));
}
.gml-ala {
  transform-box: view-box;
  transform-origin: 50px 26px;
  animation: gmlAleteo var(--aleteo, .25s) ease-in-out infinite alternate;
}
@keyframes gmlVueloDer {
  from { transform: translateX(-12vw); }
  to   { transform: translateX(112vw); }
}
@keyframes gmlVueloIzq {
  from { transform: translateX(112vw); }
  to   { transform: translateX(-12vw); }
}
@keyframes gmlOla {
  from { transform: translateY(-22px); }
  to   { transform: translateY(22px); }
}
@keyframes gmlAleteo {
  from { transform: scaleY(1); }
  to   { transform: scaleY(.25); }
}

/* Cosas que suben flotando (fantasmas, corazones, globos) */
.gml-sube {
  position: absolute;
  bottom: 0;
  opacity: 0;
  will-change: transform, opacity;
  animation: gmlFantasmaSube 20s linear infinite;
}
.gml-sube-svg {
  display: block;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .18));
  animation: gmlFantasmaVaiven 3.4s ease-in-out infinite alternate;
}
@keyframes gmlFantasmaSube {
  0%   { transform: translateY(110%); opacity: 0; }
  10%  { opacity: .85; }
  80%  { opacity: .75; }
  100% { transform: translateY(-105vh); opacity: 0; }
}
.gml-sube--ocasional { animation-name: gmlSubeOcasional; animation-fill-mode: both; }
@keyframes gmlSubeOcasional {
  0%   { transform: translateY(110%); opacity: 0; }
  4%   { opacity: .8; }
  30%  { opacity: .7; }
  36%  { transform: translateY(-105vh); opacity: 0; }
  100% { transform: translateY(-105vh); opacity: 0; }
}
@keyframes gmlFantasmaVaiven {
  from { transform: translateX(-18px) rotate(-5deg); }
  to   { transform: translateX(18px) rotate(5deg); }
}

/* Calabaza */
.gml-pumpkin {
  position: absolute;
  left: 14px;
  bottom: 12px;
  width: clamp(54px, 5.5vw, 86px);
  animation: gmlCalabazaSalta 4s ease-in-out infinite;
}
.gml-pumpkin-svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .3)) drop-shadow(0 0 14px rgba(255, 170, 40, .55));
}
.gml-cara { fill: #ffd23f; animation: gmlBrillo 1.8s ease-in-out infinite; }
@keyframes gmlBrillo {
  0%, 100% { fill: #ffd23f; opacity: 1; }
  40%      { fill: #ffe98a; opacity: .85; }
  55%      { fill: #ffb703; opacity: 1; }
  70%      { fill: #fff1a8; opacity: .9; }
}
@keyframes gmlCalabazaSalta {
  0%, 80%, 100% { transform: translateY(0) rotate(0); }
  86%           { transform: translateY(-8px) rotate(-4deg); }
  92%           { transform: translateY(0) rotate(3deg); }
}

/* =========================== NAVIDAD =========================== */
.gml-snow {
  position: absolute;
  top: -12px;
  border-radius: 50%;
  background: #e9f8ff;
  box-shadow: 0 0 6px rgba(18, 179, 230, .55);
  animation-name: gmlNieveCae, gmlNieveVaiven;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-direction: normal, alternate;
}
@keyframes gmlNieveCae {
  from { top: -12px; }
  to   { top: 102vh; }
}
@keyframes gmlNieveVaiven {
  from { transform: translateX(-16px); }
  to   { transform: translateX(16px); }
}

/* =========================== COSAS QUE CAEN (confeti, pétalos, serpentinas) =========================== */
.gml-cae {
  position: absolute;
  top: -40px;
  animation-name: gmlCae, gmlGira;
  animation-timing-function: linear, linear;
  animation-iteration-count: infinite, infinite;
}
.gml-cae svg { display: block; height: auto; }
.gml-confeti { border-radius: 2px; opacity: .9; }
.gml-petalo { opacity: .9; }
.gml-serpentina { opacity: .95; }
.gml-petalo.gml-cae, .gml-serpentina.gml-cae { animation-timing-function: linear, ease-in-out; animation-direction: normal, alternate; }
@keyframes gmlCae {
  from { top: -40px; }
  to   { top: 104vh; }
}
@keyframes gmlGira {
  from { transform: rotate(0) rotateY(0); }
  to   { transform: rotate(360deg) rotateY(720deg); }
}
.gml-petalo.gml-cae, .gml-serpentina.gml-cae { animation-name: gmlCae, gmlBalanceo; }
@keyframes gmlBalanceo {
  from { transform: translateX(-26px) rotate(-35deg); }
  to   { transform: translateX(26px) rotate(35deg); }
}

/* =========================== CINTA CON MENSAJE =========================== */
.gml-fest-cinta {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 99991;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100vw - 28px);
  padding: 7px 8px 7px 12px;
  border-radius: 999px;
  font-family: 'Poppins', 'Plus Jakarta Sans', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
  line-height: 1.3;
  color: var(--gml-cinta-texto, #ffffff);
  background: var(--gml-cinta-fondo, #4b2766);
  border: 1.5px solid var(--gml-cinta-borde, #ffd23f);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  backdrop-filter: blur(6px);
  transform: translate(-50%, 160%);
  opacity: 0;
  transition: transform .6s cubic-bezier(.2, .9, .3, 1.2), opacity .45s ease;
  box-sizing: border-box;
}
.gml-fest-cinta--visible { transform: translate(-50%, 0); opacity: 1; }
.gml-fest-cinta.gml-fest--saliendo { transform: translate(-50%, 160%); opacity: 0 !important; }
.gml-fest-cinta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gml-cinta-ico { width: 22px; height: auto; flex-shrink: 0; }
.gml-fest-cinta .gml-fest-cerrar,
.gml-fest-cinta .gml-fest-cerrar:hover,
.gml-fest-cinta .gml-fest-cerrar:focus,
.gml-fest-cinta .gml-fest-cerrar:active {
  all: unset;
  box-sizing: border-box;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: inherit;
  font: 600 16px/1 Arial, sans-serif;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.gml-fest-cinta .gml-fest-cerrar:hover, .gml-fest-cinta .gml-fest-cerrar:focus-visible { background: rgba(255, 255, 255, .32); transform: rotate(90deg); }

/* =========================== MÓVIL =========================== */
@media (max-width: 768px) {
  .gml-fest-cinta { bottom: 10px; font-size: 12.5px; gap: 8px; }
  .gml-fest-cinta span { white-space: normal; }
  .gml-pumpkin { bottom: 64px; left: 8px; }
}

/* =========================== SIN MOVIMIENTO (accesibilidad) =========================== */
.gml-fest--quieto *, .gml-fest--quieto { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .gml-fest *, .gml-fest-cinta { animation: none !important; transition: none !important; }
}
