@charset "utf-8";
/* CSS Document */

/* Contenedor Principal (Grid) */
        .galeria-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 15px;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        /* Tarjetas de Imagen */
        .galeria-item {
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            cursor: pointer;
            transition: transform 0.3s ease;
            height: 200px;
        }

        .galeria-item:hover {
            transform: scale(1.03);
        }

        .galeria-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Modal (Fondo Transparente / Semitransparente) */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.85); /* Fondo oscuro semitransparente */
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .modal-contenido {
            position: relative;
            max-width: 80%;
            max-height: 80%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .modal-imagen {
            max-width: 100%;
            max-height: 80vh;
            border-radius: 4px;
            object-fit: contain;
        }

        /* Botones de Navegación */
        .btn-cerrar {
            position: absolute;
            top: -40px;
            right: 0;
            background: none;
            border: none;
            color: white;
            font-size: 30px;
            cursor: pointer;
        }

        .btn-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            font-size: 2rem;
            padding: 10px 15px;
            cursor: pointer;
            border-radius: 5px;
            transition: background 0.3s;
            user-select: none;
        }

        .btn-nav:hover {
            background: rgba(255, 255, 255, 0.5);
        }

        .btn-atras {
            left: -60px;
        }

        .btn-adelante {
            right: -60px;
        }

        /* Responsivo para botones móviles */
        @media (max-width: 768px) {
            .btn-atras { left: 10px; }
            .btn-adelante { right: 10px; }
            .btn-cerrar { right: 10px; top: 10px; }
            .modal-contenido { max-width: 95%; }
        }

