/* Reset y base */
        * {

            box-sizing: border-box;
        }
        
        body {
            background-color: #f8f9fa;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: #333;
        }
        
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            text-align: center;
        }
        .container h1 {
            font-size: 1.2em;
            padding: 4px;
        }
        
        /* Grid system simple */
        .row {
            display: flex;
            flex-wrap: wrap;
            margin: 0 -15px;
        }
        
        .col-md-4 {
            /*! flex: 0 0 33.333333%; */
            max-width: 22%;
            padding: 0 5px;
            margin-bottom: 2rem;
            margin-left: 2%;
        }
        
        @media (max-width: 768px) {
            .col-md-4 {
                flex: 0 0 100%;
                max-width: 100%;
            }
            
            .navbar-nav {
                flex-direction: column;
                gap: 1rem;
            }
        }
        
        /* Cards */
        .card {
            background: white;
            border-radius: 4px;
            overflow: hidden;
            box-shadow: 2px 3px 20px rgb(122, 227, 149);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            height: 100%;
        }
        
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 15px rgba(0,0,0,0.2);
        }
        
        .card-img-top {
            /*! width: 100%; */
            /*! height: 200px; */
            /*! object-fit: cover; */
        }
        
        .card-body {
            padding: 1rem;
        }
        
        .card-title {
            font-size: 1.25rem;
            /*! margin-bottom: 0.5rem; */
            color: #2c3e50;
            float: left;
            margin-right: 12%;
            margin-top: -4px;
        }
        
        .card-text {
            color: #7f8c8d;
            /*! margin-bottom: 1rem; */
            margin-left: 4%;
        }
        
        /* Botones */
        .btn {
            display: block;
            padding: 4px 12px;
            border: none;
            border-radius: 0.375rem;
            text-decoration: none;
            font-weight: 600;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            margin: 4px;
        }
        
        .btn-primary {
            background-color: #e74c3c;
            color: white;
        }
        
        .btn-primary:hover {
            background-color: #c0392b;
        }
        
        .btn-secondary {
            background-color: #95a5a6;
            color: white;
        }
        
        .btn-secondary:hover {
            background-color: #7f8c8d;
        }
        
                
        


            /* Estilos para los botones de navegación */
    .navigation-controls {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 20px;
        padding: 20px;
    }
    
    .nav-btn {
        padding: 12px 20px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        text-decoration: none;
        border-radius: 8px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 500;
    }
    
    .nav-btn:hover {
        background: rgba(0, 0, 0, 0.9);
        border-color: rgba(255, 255, 255, 0.6);
        transform: translateY(-2px);
    }
    
    .nav-btn.disabled {
        opacity: 0.5;
        cursor: not-allowed;
        background: rgba(0, 0, 0, 0.4);
    }
    
    .nav-icon {
        font-size: 16px;
        font-weight: bold;
    }
    
    .close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 24px;
        color: white;
        text-decoration: none;
        background: rgba(0, 0, 0, 0.7);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .close-btn:hover {
        background: rgba(0, 0, 0, 0.9);
        transform: scale(1.1);
    }


    /* Estilos para show.blade.php */

        .image-link {
        display: block;
        transition: transform 0.3s ease;
    }
    
    .image-link:hover {
        transform: scale(1.05);
        text-decoration: none;
    }
    
    .img-thumbnail {
        border: 3px solid #dee2e6;
        transition: border-color 0.3s ease;
    }
    
    .image-link:hover .img-thumbnail {
        border-color: #e74c3c;
    }


    /* Contenedor principal de la galería */
    .gallery {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        padding: 0 20px;
        margin: 0 auto;
        max-width: 1400px;
        width: 100%;
    }
    
    /* Items de la galería */
    .gallery .col-md-3 {
        width: 100% !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
    }
    
    /* Enlaces de las imágenes */
    .gallery .image-link {
        display: block;
        width: 100%;
        height: 100%;
        text-decoration: none;
        transition: all 0.3s ease;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .gallery .image-link:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }
    
    /* Imágenes */
    .gallery .img-thumbnail {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover !important;
        border: none !important;
        border-radius: 12px !important;
        transition: transform 0.3s ease;
    }
    
    .gallery .image-link:hover .img-thumbnail {
        transform: scale(1.05);
    }
    
    /* Responsive para tablets */
    @media (max-width: 992px) {
        .gallery {
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
            padding: 15px;
        }
        
        .gallery .img-thumbnail {
            height: 180px !important;
        }
    }
    
    /* Responsive para móviles */
    @media (max-width: 768px) {
        .gallery {
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 12px;
            padding: 12px;
        }
        
        .gallery .img-thumbnail {
            height: 150px !important;
        }
    }
    
    /* Móviles muy pequeños */
    @media (max-width: 480px) {
        .gallery {
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 10px;
            padding: 10px;
        }
        
        .gallery .img-thumbnail {
            height: 120px !important;
        }
    }
    
    /* Botón de volver */
    .btn-secondary {
        margin: 20px;
        background: linear-gradient(45deg, #6c757d, #5a6268);
        border: none;
        border-radius: 8px;
        padding: 10px 20px;
        transition: all 0.3s ease;
    }
    
    .btn-secondary:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        background: linear-gradient(45deg, #5a6268, #4e555b);
    }    