/* Contenedor del slider */
.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Slider principal */
.slider-wrapper {
    width: 100%;
    height: 100%; /* Ajusta el alto según prefieras */
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}

.slider {
    display: flex;
    width: 100%;
    height: 100%; /* Asegura que el slider ocupe todo el alto del contenedor */
    transition: transform 0.5s ease-in-out;
}

.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Escala proporcionalmente la imagen para cubrir todo el espacio */
    flex-shrink: 0;
    display: block;
}

/* Vista previa */
.preview-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
    width: 100%;
}

.nav-button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    z-index: 1;
    background-color: rgb(90, 93, 240);
    border-radius: 16px;
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.preview-slider {
    display: flex;
    overflow-x: hidden;
    flex-grow: 1;
    gap: 5px;
    max-width: calc(100% - 80px); /* Espacio para los botones */
    scroll-behavior: smooth;
    padding: 0px 6px;
}

.preview-slider img {
    width: 80px;
    height: 50px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px;
}

.preview-slider img.active {
    opacity: 1;
    border: 2px solid #007BFF;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px;
}
