        body {
            background: linear-gradient(360deg, #0F4C5C, #5F0F40);
            font-family: 'Segoe UI', sans-serif;
            color: #333;
            position: relative;
        }

        /* Patrón de fondo con calabazas y fantasmas */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0.08;
            z-index: 0;
            pointer-events: none;
            background-image: 
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><text x="10" y="50" font-size="40">🎃</text></svg>'),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><text x="10" y="50" font-size="35">👻</text></svg>');
            background-size: 100px 100px, 120px 120px;
            background-position: 0 0, 50px 50px;
            background-repeat: repeat;
        }

        /* Asegurar que el contenido esté sobre el patrón */
        header, main, footer {
            position: relative;
            z-index: 1;
            
        }
        .header-wrapper {
            border: 2px solid #fff2e7;
            border-radius: 15px;
            overflow: hidden;  /* Contiene todo dentro */
        }

        header {
            color: rgb(201, 147, 1);
            overflow: visible;  /* Las calabazas pueden salir */
            border: none;  /* Quitar el borde de aquí */
            border-radius: 0;
        }
        .nav-buttons {
            display: flex;
            justify-content: center;
            gap: 95px;
            margin-top: -25px;
            flex-wrap: wrap;
            padding-bottom: 15px;
        }
        .nav-btn {
            background: linear-gradient(180deg, #FB8B24 0%, #FF6B00 100%);
            color: #5F0F40;
            font-weight: 1000;
            font-size: 1.1rem;
            padding: 12px 30px;
            border: 2px solid #833b01;  /* ← CORRECTO: grosor + estilo + color */
            border-radius: 15px;
            background-color: #fff;
            cursor: pointer;
            position: relative;
            text-shadow: 1px 1px 2px rgba(251, 255, 0, 0.5);
            transition: all 0.3s ease;
            letter-spacing: 0.8px;
            min-width: 350px;
            box-shadow: 0 3px 6px rgba(20, 20, 20, 0.2);
        }
        .nav-btn:hover {
            background: linear-gradient(180deg, #c40327 0%, #a00220 100%);
            color: #FFD700;
            transform: translateY(-2px);
            box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        }

        .nav-btn:active {
            transform: translateY(0);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }
        /* Calabazas adicionales */
        .header-pumpkin {
            position: absolute;
            font-size: 2.5rem;
            z-index: 10;
            animation: float 3s ease-in-out infinite;
            filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
        }

        .pumpkin-1 {
            top: 20px;
            left: 45%;
            transform: rotate(-25deg);
            animation-delay: 0.5s;
        }

        .pumpkin-2 {
            top: 115px;
            right: 5%;
            transform: rotate(20deg);
            animation-delay: 2s;
        }

        .pumpkin-3 {
            top: 105px;
            left: 24%;
            font-size: 4rem;
            transform: rotate(10deg);
            animation-delay: 1s;
        }

        .pumpkin-4 {
            top: 25px;
            right: 30%;
            font-size: 2rem;
            transform: rotate(-10deg);
            animation-delay: 2.5s;
        }
        .pumpkin-5 {
            top: 55px;
            left: 12%;
            font-size: 3rem;
            transform: rotate(-15deg);
            animation-delay: 0s;
        }

        .pumpkin-6 {
            top: 60px;
            right: 15%;
            font-size: 3rem;
            transform: rotate(15deg);
            animation-delay: 1.5s;
        }
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(var(--rotate, 0deg));
    }
    50% {
        transform: translateY(-10px) rotate(var(--rotate, 0deg));
    }
}

        .logo {
            width: 80px;
            height: auto;
            margin-left: 2.5rem;
        }

        .header-title {
            font-size: 3rem;
            font-weight: 700;
            color: #0F4C5C;
            text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
            text-align: center;
        }

        header .logo {
            width: 120px;
            height: auto;
            margin-bottom: 0.5rem;
        }

        .social-icon {
            width: 50px;
            height: 50px;
            margin-left: 0.5rem;
            border-radius: 50%;
            transition: transform 0.2s ease, opacity 0.2s ease;
        }

        .social-icon:hover {
            transform: scale(1.1);
            opacity: 0.75;
        }

        .header-center {
            margin-right: 90px;
        }

        .card {
            border-radius: 10px;
            transition: transform 0.2s;
            background: linear-gradient(270deg, #c40327, #FB8B24);
            color: #5F0F40;
            text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
        }

        .card:hover {
            transform: translateY(-4px);
        }

        h2 {
            color: #004aad;
        }

        .gallery-vertical img {
            width: 100%;
            border-radius: 8px;
            margin-bottom: 0.8rem;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        }

        footer {
            text-align: center;
            padding: 1.5rem;
            background: linear-gradient(270deg, #c40327, #FB8B24);
            color: #004aad;
            margin-top: 2rem;
        }

        .event-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            text-align: left;
        }

        .event-card {
            background: #ffb8c5;
            border-left: 6px solid #9A031E;
            border-radius: 8px;
            padding: 1rem 1.2rem;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
            position: relative;
        }

        .event-card h4 {
            color: #9A031E;
            margin-bottom: 0.3rem;
        }

        .event-card p {
            margin: 0.2rem 0;
        }

        .event-date {
            font-weight: 600;
            color: #1a1a1a;
        }

        .event-place {
            font-style: italic;
            color: #444;
        }

        /* Imagen del cartel expandible */
        .event-poster {
            width: 100%;
            max-width: 150px;
            margin: 1rem auto 0;
            display: block;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .event-poster:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
            transform: scale(1.05);
        }

        /* Texto de ayuda para el cartel */
        .poster-hint {
            text-align: center;
            font-size: 0.75rem;
            color: #666;
            margin-top: 0.5rem;
            font-style: italic;
        }

        /* Modal/Popup para la imagen */
        .image-modal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            animation: fadeIn 0.3s ease;
        }
        
        .image-modal.active {
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .modal-content {
            max-width: none;
            max-height: 90vh;
            width: auto;
            height: auto;
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
            animation: zoomIn 0.3s ease;
        }
        
        .close-modal {
            position: absolute;
            top: 20px;
            right: 35px;
            color: #fff;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 1;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
        }
        
        .close-modal:hover {
            color: #ff6b6b;
            transform: scale(3);
        }
        
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(5);
        opacity: 1;
    }
}

        #clavariMajorCarousel {
            max-width: 100%;
            margin: 0 auto;
        }

        #clavariMajorCarousel img {
            height: 300px;
            object-fit: cover;
        }

        .carousel-control-prev-icon,
        .carousel-control-next-icon {
            background-color: #FB8B24;
            border-radius: 50%;
            padding: 10px;
        }

        .footer-section {
            background-color: #f8f9fa;
            border-top: 2px solid #ddd;
            padding-top: 30px;
            padding-bottom: 20px;
            width: 100%;
        }

        .footerText h6 {
            font-weight: 600;
            color: #333;
            margin-bottom: 20px;
        }

        .comercios-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
            gap: 25px;
            justify-items: center;
            align-items: center;
            width: 100%;
            padding: 0 40px;
            box-sizing: border-box;
        }

        .comercio-logo {
            width: 85px;
            height: 85px;
            object-fit: cover;
            border-radius: 50%;
            border: 2px solid #ddd;
            background-color: #fff;
            transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
            cursor: pointer;
        }

        .comercio-logo:hover {
            transform: scale(1.1);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
            border-color: #007bff;
        }

        .comercio-item {
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding-top: 20px;
        }

        .comercio-name {
            position: absolute;
            top: -5px;
            left: 50%;
            transform: translate(-50%, 0);
            background-color: #343a40;
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 0.8rem;
            white-space: nowrap;
            z-index: 10;
            pointer-events: none;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
        }

        .comercio-item:hover .comercio-name {
            opacity: 1;
            visibility: visible;
            transform: translate(-50%, -10px);
        }

        .visit-btn {
            display: none;
            margin-top: 8px;
            padding: 6px 16px;
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
            animation: slideDown 0.3s ease;
        }

        .visit-btn:hover {
            background-color: #0056b3;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(0, 123, 255, 0.5);
        }

        .comercio-item.active .visit-btn {
            display: block;
        }

        .comercio-item.active .comercio-logo {
            border-color: #007bff;
            box-shadow: 0 4px 10px rgba(0, 123, 255, 0.4);
        }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    
            body::before {
                background-size: 60px 60px, 80px 80px;
                opacity: 0.05;
            }

            header .card-body {
                flex-direction: column !important;
                align-items: center !important;
                justify-content: center !important;
                text-align: center !important;
                gap: 1rem;
                padding: 1.5rem 1rem !important;
            }

            header .card-body.d-flex {
                justify-content: center !important;
            }

            .header-left,
            .header-center,
            .header-right {
                width: 100%;
                display: flex;
                justify-content: center !important;
                align-items: center !important;
                text-align: center !important;
            }

            .header-center {
                margin-right: 0 !important;
            }

            .header-title {
                font-size: 2.3rem;
                line-height: 1.2;
                text-align: center !important;
                margin: 0.5rem 0;
                color: #003b8e;
                width: 100%;
            }
            header::before,
            header::after {
                font-size: 2rem;
            }
            
            .header-pumpkin {
                font-size: 1.8rem;
            }
            
            .pumpkin-1 {
                top: 20px;
                left: 45%;
                transform: rotate(-25deg);
                animation-delay: 0.5s;
                display:none;
            }
            
            .pumpkin-2 {
                top: 115px;
                right: 5%;
                transform: rotate(20deg);
                animation-delay: 2s;
                display: block;
            }
            
            .pumpkin-3 {
                top: 125px;
                left: 24%;
                font-size: 2rem;
                transform: rotate(10deg);
                animation-delay: 1s;
        
            }
            
            .pumpkin-4 {
                top: 25px;
                right: 30%;
                font-size: 2rem;
                transform: rotate(-10deg);
                animation-delay: 2.5s;
                display: none;
            }
            .logo {
                width: 100px;
                margin: 0 auto 0.5rem auto !important;
                display: block;
            }

            .social-icon {
                width: 45px;
                height: 45px;
                margin: 0 0.4rem;
            }

            .comercio-logo {
                width: 65px;
                height: 65px;
            }

            .comercios-grid {
                gap: 15px;
                padding: 0 15px;
            }

            .event-poster:active {
                transform: scale(2);
            }
            .modal-content {
                max-width: 95vw;
                max-height: 85vh;
                width: auto;
                height: auto;
            }
        
            .close-modal {
                top: 10px;
                right: 15px;
                font-size: 35px;
            }
            .nav-buttons {
                display: flex;
                justify-content: center;
                gap: 6px;
                margin-top: -25px;
                flex-wrap: wrap;
                padding-bottom: 15px;
            }
    
            .nav-btn {
                background: linear-gradient(180deg, #FB8B24 0%, #FF6B00 100%);
                color: #5F0F40;
                font-weight: 700;
                font-size: 1.1rem;
                padding: 12px 30px;
                border: 2px black #ddd;
                background-color: #fff;
                border-radius: 8px;
                cursor: pointer;
                position: relative;
                text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
                transition: all 0.3s ease;
                letter-spacing: 0.5px;
                min-width: 120px;
                box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
            }
    
            .nav-btn:hover {
                background: linear-gradient(180deg, #c40327 0%, #a00220 100%);
                color: #FFD700;
                transform: translateY(-2px);
                box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
            }
    
            .nav-btn:active {
                transform: translateY(0);
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            }
        }