/* --- ESTILOS GENERALES DE LA SECCIÓN --- */
#seccion-carrusel-custom {
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    background-color: #f4f4f4; /* Opcional: para distinguir la sección */
}

/* Marco del carrusel */
#seccion-carrusel-custom .slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px; 
    height: 300px;     /* Altura fija del carrusel */
    margin: 0 auto;
    overflow: hidden;
}

/* Pista deslizante */
#seccion-carrusel-custom .slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    /* El ancho se ajusta dinámicamente con JS/Flex */
}

/* CADA SLIDE (Lógica para ver 4 a la vez) */
#seccion-carrusel-custom .slider-slide {
    min-width: 25%; /* 100% / 4 = 25% */
    height: 100%;
    box-sizing: border-box;
    padding: 0 5px; /* Espacio entre fotos */
}

/* Estilo de la imagen */
#seccion-carrusel-custom .slider-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* Recorta para llenar el cuadro */
    border-radius: 6px;
    cursor: zoom-in;   /* Icono de lupa al pasar el mouse */
    transition: transform 0.3s;
}

#seccion-carrusel-custom .slider-slide img:hover {
    transform: scale(1.02); /* Pequeño efecto al pasar el mouse */
}

/* BOTONES DE NAVEGACIÓN */
#seccion-carrusel-custom .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    font-size: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: background 0.3s;
}

#seccion-carrusel-custom .slider-btn:hover {
    background-color: #333;
    color: #fff;
}

#seccion-carrusel-custom .btn-prev { left: 10px; }
#seccion-carrusel-custom .btn-next { right: 10px; }

/* RESPONSIVE */
@media (max-width: 900px) {
    #seccion-carrusel-custom .slider-slide { min-width: 33.33%; } /* 3 fotos */
}
@media (max-width: 600px) {
    #seccion-carrusel-custom .slider-slide { min-width: 50%; } /* 2 fotos */
}
@media (max-width: 400px) {
    #seccion-carrusel-custom .slider-slide { min-width: 100%; } /* 1 foto */
}


/* --- ESTILOS DEL MODAL (LIGHTBOX) --- */
.modal-overlay {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Fondo negro casi total */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px); /* Efecto borroso de fondo */
}

.modal-image {
    max-width: 90%;
    max-height: 90vh; /* Máximo 90% de la altura de la pantalla */
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    animation: zoomIn 0.3s;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100000;
}

@keyframes zoomIn {
    from {transform:scale(0.8); opacity: 0;} 
    to {transform:scale(1); opacity: 1;}
}