
.slider-container {
  position: relative; /* Para posicionar los botones */
  width: 56rem;
  margin: auto;
  height: fit-content;
  overflow: hidden; /* ¡Clave! Oculta las diapositivas que se salen */
  border-radius: 0.75rem;
}

.slider-track {
  display: flex;    
  height: fit-content;
  
  /* ¡Clave! Añade una transición suave al movimiento */
  transition: transform 0.4s ease-in-out;
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    
    /* Estilos de demo */
    height: auto;
    display: grid;
    place-items: center;
}

.slide>img {
    width: 100%;
}

/* Colores de demo (igual que antes) */
/* .slide:nth-child(1) { background-image: url('img/slider1.jpg'); }
.slide:nth-child(2) { background-image: url('img/slider2.jpg'); }
.slide:nth-child(3) { background-image: url('img/slider3.jpg'); }
.slide:nth-child(4) { background-image: url('img/slider4.jpg'); } */

/* Estilos de los botones */
.slider-btn {
    width: 3.5rem;
    height: 3.5rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    font-size: 2rem;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    
}

.btn-prev {left: 1.2rem; background-image: url('../img/slider-icon2.svg');}
.btn-next {right: 1.2rem; background-image: url('../img/slider-icon.svg');}


/* --- Estilos para los "Dots" --- */

.slider-nav-dots {

    display: none;
    /* Centra los dots horizontalmente */
    width: 100%;
    height: fit-content;
    margin: auto;
    flex-direction: row;
    
    gap: 10px;
    justify-content: center;
    padding: 1rem;
    background-color: black;
}

.slider-dot {
    
    /* Apariencia de círculo */
    max-width: 10px;
    max-height: 10px;
    min-width: 8px;
    min-height: 8px;
    border-radius: 50%;
    
    /* Estilos base */
    background-color: #ccc;
    border: none; /* Espacio entre dots */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot:hover {
    background-color: #aaa;
    max-width: 10px;
    max-height: 10px;
    min-width: 8px;
    min-height: 8px;
    border-radius: 50%;
}

.slider-dot.active {
    /* Estilo para el dot de la diapositiva actual */
    background-color: #1474e2;
    max-width: 10px;
    max-height: 10px;
    min-width: 8px;
    min-height: 8px;
    border-radius: 50%;
}



@media (max-width: 992px) {
    .slider-container {
        position: relative; /* Para posicionar los botones */
        width: 100%;
        height: fit-content;
        margin: 2rem auto;
        overflow: hidden; /* ¡Clave! Oculta las diapositivas que se salen */
        border-radius: 0px;
}

    .slider-btn {
        width: 3rem;
        height: 3rem;
    }

    .btn-prev {left: 0.2rem; }
    .btn-next {right: 0.2rem;}
}