/* --- CONTENEDOR PRINCIPAL --- */
.halloween-banner {
    position: relative;
    min-height: 380px;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.6) 30%, rgba(0, 0, 0, 0.9) 90%);
}

/* --- FONDO ANIMADO --- */
.halloween-bg {
    background: url('/img/halloween-bg.webp') center/cover no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.35;
    z-index: 0;
    animation: bgMove 25s linear infinite alternate;
}

@keyframes bgMove {
    0% {
        transform: scale(1) translateX(0);
    }

    100% {
        transform: scale(1.1) translateX(-20px);
    }
}

/* --- TEXTO --- */
.halloween-banner h2 {
    text-shadow: 0 0 15px #ff6600;
}

.halloween-banner p {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

/* --- BOTÓN --- */
.halloween-banner .btn-warning {
    background: #ff9900;
    border: none;
    color: #000;
    transition: all 0.3s ease;
}

.halloween-banner .btn-warning:hover {
    background: #ffaa33;
    transform: scale(1.05);
}

/* --- ELEMENTOS DECORATIVOS --- */
.halloween-bat {
    position: absolute;
    width: 80px;
    opacity: 0.85;
    z-index: 1;
    animation: batFlight 12s linear infinite;
    filter: drop-shadow(0 0 4px rgba(255, 140, 0, 0.3));
}

.bat-1 {
    top: 20%;
    left: -10%;
    animation-delay: 0s;
}

.bat-2 {
    top: 50%;
    left: -15%;
    animation-delay: 4s;
}

.bat-3 {
    top: 35%;
    left: -12%;
    animation-delay: 8s;
}



/* Calabaza parpadeante */
.halloween-pumpkin {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    animation: flicker 2s infinite alternate;
    z-index: 2;
}

@keyframes flicker {

    0%,
    100% {
        opacity: 1;
        filter: brightness(1);
    }

    50% {
        opacity: 0.7;
        filter: brightness(1.4);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .halloween-banner {
        min-height: 320px;
        padding: 3rem 1rem;
    }

    .halloween-banner h2 {
        font-size: 1.8rem;
        text-shadow: 0 0 10px #ff6600;
    }

    .halloween-banner p {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .halloween-pumpkin {
        width: 80px;
        bottom: 5%;
    }

    .halloween-bat {
        display: none;
        /* menos distracción en móvil */
    }
}


/* Vuelo con curvas suaves y ligera oscilación */
@keyframes batFlight {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    25% {
        transform: translate(25vw, -20px) scale(1.1) rotate(8deg);
    }

    50% {
        transform: translate(50vw, 10px) scale(1.05) rotate(-5deg);
    }

    75% {
        transform: translate(80vw, -15px) scale(0.95) rotate(6deg);
        opacity: 1;
    }

    100% {
        transform: translate(110vw, 0px) scale(0.9) rotate(-10deg);
        opacity: 0;
    }
}

/* Simulación de aleteo (ligero batir de alas) */
.halloween-bat img,
.halloween-bat::before {
    animation: batFlap 0.4s ease-in-out infinite alternate;
}

@keyframes batFlap {
    from {
        transform: rotate(2deg) scaleY(1.05);
    }

    to {
        transform: rotate(-2deg) scaleY(0.95);
    }
}