/* --- BOTONES DE FILTRO --- */
.inkas-filtros {
    text-align: center;
    margin-bottom: 25px;
}
.inkas-btn-filtro {
    background-color: #f1f1f1;
    color: #333;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
}
.inkas-btn-filtro:hover, 
.inkas-btn-filtro.activo {
    background-color: #005A9C; 
    color: white;
}

/* --- CUADRÍCULA ADAPTABLE --- */
.inkas-cuadricula {
    display: grid;
    gap: 15px;
}
.inkas-cuadricula.columnas-2 { grid-template-columns: repeat(2, 1fr); }
.inkas-cuadricula.columnas-3 { grid-template-columns: repeat(3, 1fr); }
.inkas-cuadricula.columnas-4 { grid-template-columns: repeat(4, 1fr); }

/* Ajuste automático para celulares */
@media (max-width: 768px) {
    .inkas-cuadricula.columnas-3, 
    .inkas-cuadricula.columnas-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .inkas-cuadricula.columnas-2, 
    .inkas-cuadricula.columnas-3, 
    .inkas-cuadricula.columnas-4 {
        grid-template-columns: 1fr;
    }
}

/* --- FORMATO DE IMÁGENES --- */
.inkas-item {
    border-radius: 6px;
    overflow: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease;
    cursor: pointer; /* Cursor de mano activo */
}
.inkas-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.inkas-oculto {
    display: none;
}

/* --- EFECTO CAJA DE LUZ (LIGHTBOX) --- */
#inkas-lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0; /* Ancla los 4 bordes al espacio visible real */
    width: 100%; height: 100%; /* Usamos % en lugar de vw/vh para respetar la barra del navegador */
    background: rgba(0,0,0,0.85);
    z-index: 999999;
    display: none;
    touch-action: none; /* Previene el zoom accidental en móviles */
}

/* Las imágenes dentro del carrusel */
.inkas-slide {
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0; 
    margin: auto; 
    max-width: 95vw !important;
    max-height: 85vh !important;
    width: auto !important;
    height: auto !important;
    border-radius: 6px;
    box-shadow: 0 0 25px rgba(0,0,0,0.7);
    object-fit: contain !important;
    user-select: none; 
    -webkit-user-drag: none;
}

/* ESTE ES EL INTERRUPTOR QUE FALTABA */
#inkas-lightbox.activo {
    display: block;
}
#inkas-lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    color: white; 
    font-size: 45px;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.3s;
    z-index: 20;
}
#inkas-lightbox-close:hover {
    color: #ff4a4a;
}

/* --- DISEÑO DE LAS FLECHAS --- */
.inkas-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    padding: 20px;
    transition: color 0.3s ease;
    z-index: 20;
}
.inkas-nav:hover {
    color: #b3b3b3;
}
#inkas-lightbox-prev { left: 20px; }
#inkas-lightbox-next { right: 20px; }

@media (max-width: 768px) {
    .inkas-nav {
        font-size: 35px;
        padding: 10px;
    }
    #inkas-lightbox-prev { left: 5px; }
    #inkas-lightbox-next { right: 5px; }
}