/* Contenedor del panel */
.custom-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    scroll-margin-top: 80px; /* Espacio para el sticky header */
}

/* Limitamos ancho en pantallas grandes */
.panelSplide {
    width: 100%;
    max-width: 800px; /* ancho máximo en escritorio */
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Ajuste de imágenes */
.panelSplide img {
    width: 100%;
    height: 50vh; 
    min-height: 350px;
    max-height: 800px;
    object-fit: cover;
    display: block;
    position: relative;
    box-shadow: inset 0 0 60px rgba(0,0,0,0.5); /* sombra interna para mejor contraste */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Efecto hover más lujoso */
.panelSplide img:hover {
    transform: scale(1.1);
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.6);
}

/* En pantallas grandes, ajusta a proporción más elegante */
@media (min-width: 768px) {
    .panelSplide img {
        height: 60vh; /* más alto en tablets/desktop */
        max-height: 600px; /* límite para que no se estire demasiado */
    }
}

/* Barra de progreso */
.custom-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.3);
}

.custom-progress-bar {
    width: 0;
    height: 100%;
    background: var(--primary-color);
    transition: width linear;
}