        /* Estilos personalizados para la galería */
        :root {
            --primary-color: #0d6efd;
            --dark-color: #212529;
        }

        body {
            background-color: #f8f9fa;
        }

        .gallery-header {
            padding: 3rem 0;
            text-align: center;
        }

        /* Estilo de los menús (Pestañas) */
        .nav-pills .nav-link {
            border-radius: 50px;
            padding: 0.75rem 1.5rem;
            margin: 0 0.5rem 0.5rem 0;
            color: var(--dark-color);
            font-weight: 500;
            background-color: #fff;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            transition: all 0.3s ease;
        }

        .nav-pills .nav-link:hover {
            background-color: #e9ecef;
            transform: translateY(-2px);
        }

        .nav-pills .nav-link.active {
            background-color: var(--primary-color);
            color: #fff;
            box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
        }

        /* Contenedor de cada imagen */
        .gallery-item {
            position: relative;
            overflow: hidden;
            border-radius: 12px;
            cursor: pointer;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            aspect-ratio: 4/3; /* Mantiene todas las imágenes del mismo tamaño */
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* Evita que las imágenes se deformen */
            transition: transform 0.5s ease;
        }

        /* Efecto Hover (Oscurecer y hacer zoom) */
        .gallery-item:hover {
            box-shadow: 0 8px 15px rgba(0,0,0,0.2);
        }

        .gallery-item:hover img {
            transform: scale(1.1);
        }

        .gallery-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .gallery-item:hover .gallery-overlay {
            opacity: 1;
        }

        .gallery-overlay i {
            color: white;
            font-size: 2.5rem;
            transform: translateY(20px);
            transition: transform 0.3s ease;
        }

        .gallery-item:hover .gallery-overlay i {
            transform: translateY(0);
        }

        /* Título sobre la imagen */
        .image-title {
            position: absolute;
            bottom: 15px;
            left: 15px;
            color: white;
            margin: 0;
            font-weight: 600;
            opacity: 0;
            transition: all 0.3s ease;
            z-index: 2;
        }

        .gallery-item:hover .image-title {
            opacity: 1;
            transform: translateY(-5px);
        }

        /* Estilo del modal (Lightbox) */
        .modal-content {
            background-color: transparent;
            border: none;
        }
        .modal-body {
            padding: 0;
            position: relative;
        }
        .btn-close-white {
            position: absolute;
            top: -30px;
            right: 0;
            z-index: 1060;
        }
        /* Asegura que la imagen no exceda la pantalla */
        #modalImage {
        max-height: 80vh;
        object-fit: contain;
        }     




