/* Gente del Maule — Halloween amable (solo octubre)
   Activado por halloween.js entre el 1 y el 31 de octubre.
*/
.halloween-season .halloween-decor,
.halloween-season .halloween-decor *{box-sizing:border-box}

.halloween-decor{
  position:fixed;
  inset:0;
  z-index:3;
  pointer-events:none;
  overflow:hidden;
  font-family:Arial,sans-serif;
}

.halloween-ghost{
  position:absolute;
  width:52px;
  height:60px;
  border-radius:50% 50% 18px 18px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(15,54,77,.10);
  box-shadow:0 8px 20px rgba(15,54,77,.10);
  opacity:.78;
  animation:halloween-float 5.5s ease-in-out infinite;
}
.halloween-ghost::before,
.halloween-ghost::after{
  content:"";
  position:absolute;
  top:25px;
  width:7px;
  height:10px;
  border-radius:50%;
  background:#17364a;
}
.halloween-ghost::before{left:17px}
.halloween-ghost::after{right:17px}
.halloween-ghost .ghost-mouth{
  position:absolute;
  left:50%;
  top:39px;
  width:8px;
  height:6px;
  transform:translateX(-50%);
  border-radius:50%;
  background:#17364a;
}
.halloween-ghost .ghost-wave{
  position:absolute;
  bottom:-1px;
  left:0;
  width:100%;
  height:16px;
  background:inherit;
  clip-path:polygon(0 20%,16% 80%,32% 20%,50% 80%,68% 20%,84% 80%,100% 20%,100% 100%,0 100%);
}

.halloween-ghost.g1{left:max(8px,calc((100vw - 1240px)/2 - 34px));top:11%;transform:scale(.78);animation-delay:-1.2s}
.halloween-ghost.g2{right:max(8px,calc((100vw - 1240px)/2 - 34px));top:16%;transform:scale(.62);animation-delay:-3.2s}
.halloween-ghost.g3{left:max(8px,calc((100vw - 1240px)/2 - 34px));bottom:9%;transform:scale(.54);animation-delay:-4.1s}
.halloween-ghost.g4{right:max(8px,calc((100vw - 1240px)/2 - 34px));bottom:13%;transform:scale(.66);animation-delay:-2s}

.halloween-pumpkin{
  position:absolute;
  right:max(14px,calc((100vw - 1240px)/2 - 20px));
  bottom:24px;
  width:48px;
  height:39px;
  border-radius:48% 48% 44% 44%;
  background:#f28c28;
  border:2px solid #c96d16;
  box-shadow:inset 8px 0 rgba(255,255,255,.12), inset -8px 0 rgba(128,65,10,.10), 0 7px 16px rgba(15,54,77,.10);
  transform:rotate(-3deg);
}
.halloween-pumpkin::before{
  content:"";
  position:absolute;
  width:9px;
  height:12px;
  left:23px;
  top:-10px;
  border-radius:5px 5px 2px 2px;
  background:#5d8c50;
  transform:rotate(8deg);
}
.halloween-pumpkin .eye{position:absolute;top:13px;width:9px;height:9px;background:#17364a;clip-path:polygon(50% 0,100% 100%,0 100%)}
.halloween-pumpkin .eye.left{left:12px}
.halloween-pumpkin .eye.right{right:12px}
.halloween-pumpkin .smile{position:absolute;left:10px;right:10px;bottom:7px;height:10px;border-bottom:3px solid #17364a;border-radius:0 0 50% 50%}
.halloween-pumpkin .smile::before{content:"";position:absolute;left:3px;right:3px;bottom:0;height:3px;background:#17364a;clip-path:polygon(0 0,18% 100%,36% 0,54% 100%,72% 0,90% 100%,100% 0,100% 100%,0 100%)}

.halloween-bat{position:absolute;width:40px;height:24px;opacity:.55;animation:halloween-bat 8s linear infinite}
.halloween-bat::before,
.halloween-bat::after{content:"";position:absolute;top:3px;width:22px;height:15px;background:#31495a}
.halloween-bat::before{left:0;clip-path:polygon(100% 0,75% 45%,55% 25%,38% 70%,0 35%,12% 100%,45% 82%,50% 100%,62% 80%,88% 100%,100% 40%)}
.halloween-bat::after{right:0;clip-path:polygon(0 0,25% 45%,45% 25%,62% 70%,100% 35%,88% 100%,55% 82%,50% 100%,38% 80%,12% 100%,0 40%)}
.halloween-bat.b1{left:28%;top:8%;animation-delay:-2s}
.halloween-bat.b2{right:28%;top:12%;transform:scale(.68);animation-delay:-5s}


@keyframes halloween-float{0%,100%{translate:0 0}50%{translate:0 -13px}}
@keyframes halloween-bat{0%{translate:-40vw 0;rotate:-3deg}50%{translate:15vw -20px;rotate:4deg}100%{translate:80vw 5px;rotate:-2deg}}

@media (prefers-reduced-motion:reduce){
  .halloween-ghost,.halloween-bat{animation:none}
}
@media (max-width:700px){
  .halloween-ghost.g1,.halloween-ghost.g3,.halloween-bat.b2{display:none}
  .halloween-ghost.g2{right:6px;top:12%;transform:scale(.48)}
  .halloween-ghost.g4{right:6px;bottom:7%;transform:scale(.46)}
  .halloween-pumpkin{right:14px;bottom:16px;transform:scale(.82)}
}

/* Mantener la decoración en los márgenes: nunca debe bloquear ni competir con la UI. */
@media (max-width:1100px){
  .halloween-ghost.g1{left:6px}
  .halloween-ghost.g2{right:6px}
  .halloween-ghost.g3{left:6px}
  .halloween-ghost.g4{right:6px}
  .halloween-bat.b1{left:22%;}
  .halloween-bat.b2{right:22%;}
}
