﻿/* Halloween Decorations */
.halloween-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.halloween-ghost {
    position: absolute;
    top: 60px;
    left: 50vw;
    width: 60px;
    height: 60px;
    font-size: 50px;
    animation: floatGhost 3s ease-in-out infinite;
}

.halloween-ghost::before {
    content: '👻';
}

@keyframes floatGhost {
    0%, 100% { transform: translateY(0) translateX(-50%); }
    50% { transform: translateY(-30px) translateX(-50%); }
}

.halloween-bat {
    position: absolute;
    width: 50px;
    height: 30px;
    font-size: 40px;
    animation: flyBat 6s linear infinite;
}

.halloween-bat::before {
    content: '🦇';
}

.bat1 { top: 30px; left: 10vw; animation-delay: 0s; }
.bat2 { top: 100px; left: 80vw; animation-delay: 2s; }

@keyframes flyBat {
    0% { transform: translateY(0) scaleX(1); }
    50% { transform: translateY(-20px) scaleX(-1); }
    100% { transform: translateY(0) scaleX(1); }
}

.halloween-spider {
    position: absolute;
    top: 10vh;
    left: 20vw;
    width: 40px;
    height: 40px;
    font-size: 35px;
    animation: dropSpider 4s ease-in-out infinite;
}

.halloween-spider::before {
    content: '🕷️';
}

.spider1 { top: 10vh; left: 20vw; animation-delay: 0s; }
.spider2 { top: 5vh; right: 25vw; animation-delay: 2s; }

@keyframes dropSpider {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(40px); }
}

.halloween-web {
    position: absolute;
    font-size: 70px;
    opacity: 0.7;
}

.halloween-web::before {
    content: '🕸️';
}

.web1 { top: 0; right: 0; }
.web2 { top: 0; left: 0; }
.web3 { bottom: 0; left: 10vw; font-size: 60px; }
.web4 { top: 30vh; right: 5vw; font-size: 55px; }
.web5 { top: 50vh; left: 5vw; font-size: 65px; }

.halloween-zombie {
    position: absolute;
    bottom: 0;
    left: 5vw;
    width: 70px;
    height: 70px;
    font-size: 60px;
    animation: zombieWave 2.5s ease-in-out infinite;
}

.halloween-zombie::before {
    content: '🧟';
}

@keyframes zombieWave {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(10deg); }
}

.halloween-pumpkin {
    position: absolute;
    width: 50px;
    height: 50px;
    font-size: 45px;
    animation: pumpkinBounce 2s ease-in-out infinite;
}

.halloween-pumpkin::before {
    content: '🎃';
}

.pumpkin1 { bottom: 10px; left: 20vw; animation-delay: 0s; }
.pumpkin2 { bottom: 10px; right: 15vw; animation-delay: 1s; }
.pumpkin3 { bottom: 50px; left: 40vw; animation-delay: 0.5s; font-size: 40px; }

.halloween-skull {
    position: absolute;
    font-size: 40px;
    animation: skullFloat 3.5s ease-in-out infinite;
}

.halloween-skull::before {
    content: '💀';
}

.skull1 { top: 40vh; left: 3vw; animation-delay: 0s; }
.skull2 { top: 60vh; right: 8vw; animation-delay: 1.5s; }

@keyframes skullFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(10deg); }
}

.halloween-witch {
    position: absolute;
    top: 20vh;
    right: 10vw;
    font-size: 50px;
    animation: witchFly 8s ease-in-out infinite;
}

.halloween-witch::before {
    content: '🧙';
}

@keyframes witchFly {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-30px); }
}

.halloween-candy {
    position: absolute;
    font-size: 35px;
    animation: candySpin 4s linear infinite;
}

.halloween-candy::before {
    content: '🍬';
}

.candy1 { top: 70vh; left: 15vw; animation-delay: 0s; }
.candy2 { top: 25vh; right: 30vw; animation-delay: 2s; }

@keyframes candySpin {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.halloween-cat {
    position: absolute;
    bottom: 20px;
    right: 10vw;
    font-size: 50px;
    animation: catWalk 5s ease-in-out infinite;
}

.halloween-cat::before {
    content: '🐈‍⬛';
}

@keyframes catWalk {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-20px); }
}

/* Halloween Typography for Carousel Active Item */
.carousel-item:first-child.active .carousel-caption h5 {
    font-family: 'Creepster', cursive !important;
    letter-spacing: 3px;
    font-size: 48px !important;
    font-weight: 400 !important;
    color: #FFFFFF;
    text-shadow: 
        -3px -3px 0 #FF6600,
        3px -3px 0 #FF6600,
        -3px 3px 0 #FF6600,
        3px 3px 0 #FF6600,
        -3px 0 0 #FF6600,
        3px 0 0 #FF6600,
        0 -3px 0 #FF6600,
        0 3px 0 #FF6600,
        -4px -4px 0 #FF4500,
        4px -4px 0 #FF4500,
        -4px 4px 0 #FF4500,
        4px 4px 0 #FF4500,
        0 0 20px rgba(255, 102, 0, 0.8),
        0 0 30px rgba(255, 102, 0, 0.6);
    animation: spookyGlow 2s ease-in-out infinite;
}

.carousel-item:first-child.active .carousel-caption p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600 !important;
    font-size: 20px !important;
    color: #FFFFFF;
    text-shadow: 
        -2px -2px 0 #FF6600,
        2px -2px 0 #FF6600,
        -2px 2px 0 #FF6600,
        2px 2px 0 #FF6600,
        -2px 0 0 #FF6600,
        2px 0 0 #FF6600,
        0 -2px 0 #FF6600,
        0 2px 0 #FF6600,
        0 0 15px rgba(255, 102, 0, 0.7);
}

@keyframes spookyGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 15px rgba(255, 102, 0, 0.8));
    }
    50% { 
        filter: drop-shadow(0 0 25px rgba(255, 69, 0, 1));
    }
}

/* Responsive Halloween Typography */
@media (max-width: 768px) {
    .carousel-item:first-child.active .carousel-caption h5 {
        font-size: 32px !important;
        letter-spacing: 2px;
        text-shadow: 
            -2px -2px 0 #FF6600,
            2px -2px 0 #FF6600,
            -2px 2px 0 #FF6600,
            2px 2px 0 #FF6600,
            0 0 15px rgba(255, 102, 0, 0.7);
    }
    
    .carousel-item:first-child.active .carousel-caption p {
        font-size: 16px !important;
        text-shadow: 
            -1px -1px 0 #FF6600,
            1px -1px 0 #FF6600,
            -1px 1px 0 #FF6600,
            1px 1px 0 #FF6600,
            0 0 10px rgba(255, 102, 0, 0.6);
    }
}

/* Responsive - Mobile: Ocultar elementos extras */
@media (max-width: 768px) {
    /* Ocultar una araña */
    .spider2 {
        display: none;
    }
    
    /* Ocultar telarañas extras (dejar solo 2) */
    .web3,
    .web4,
    .web5 {
        display: none;
    }
    
    /* Ocultar una calabaza */
    .pumpkin3 {
        display: none;
    }
    
    /* Ocultar una calavera */
    .skull2 {
        display: none;
    }
    
    /* Ocultar los dulces */
    .candy1,
    .candy2 {
        display: none;
    }
    
    /* Reducir tamaño de elementos restantes */
    .halloween-ghost {
        font-size: 35px;
    }
    
    .halloween-bat {
        font-size: 30px;
    }
    
    .halloween-spider {
        font-size: 28px;
    }
    
    .halloween-web {
        font-size: 50px;
    }
    
    .halloween-zombie {
        font-size: 45px;
    }
    
    .halloween-pumpkin {
        font-size: 35px;
    }
    
    .halloween-skull {
        font-size: 30px;
    }
    
    .halloween-witch {
        font-size: 35px;
    }
    
    .halloween-cat {
        font-size: 35px;
    }
}

/* Responsive - Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Ocultar telaraña central */
    .web5 {
        display: none;
    }
    
    /* Ocultar un dulce */
    .candy2 {
        display: none;
    }
    
    /* Reducir ligeramente el tamaño */
    .halloween-ghost,
    .halloween-bat,
    .halloween-spider,
    .halloween-zombie,
    .halloween-pumpkin,
    .halloween-skull,
    .halloween-witch,
    .halloween-cat {
        font-size: 85%;
    }
}

/* End Halloween Decorations */
