/* Ajuste para evitar superposición de contenido */
.content {
    position: relative;
    z-index: 2;
    padding: 50px;
    background:white ;
}
.section-1, .slider-container, .background {
    width: 100% !important; /* Fuerza el 100% del ancho */
    left: 0 !important; /* Asegura que el contenido comience desde la izquierda */
    right: 0 !important; /* Asegura que el contenido llegue hasta la derecha */
    margin-left: 0 !important; /* Elimina márgenes que pudieran moverse */
    margin-right: 0 !important;
    padding-right: 0 !important; /* Elimina padding que pudiera causar espacio en blanco */
    box-sizing: border-box !important; /* Asegura que el padding no afecte el ancho total */
    overflow: hidden !important; /* Evita que el contenido se desborde */
}
.section-1 {
    position: relative;
    width: 100%;
    height:900px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -250px;
}
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/sections/section1.webp') center/cover no-repeat;
    background-size: cover;
    background-position: center center; /* Centra la imagen */
    z-index: -1;
   /* margin-top: 20px;*/
}
.slider-container {
     position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}
.slider {
    display: flex;
    width: 300%; /* Debido a que tenemos 3 imágenes */
    height: 100%;
    transition: transform 1.8s ease-in-out; /* Transición suave */
}
.slide {
    width: 100%; /* Cada slide ocupa el 33% del slider */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Las imágenes empiezan invisibles */
    transition: opacity 1.8s ease-in-out; /* Transición suave para el desvanecimiento */

}

   /* La imagen activa se vuelve visible */
   .slide.active {
    opacity: 1;
}

/* Asegurarse de que el primer slide tenga opacidad 1 al cargar la página */
.slider .slide:first-child {
    opacity: 1;
}
.slide img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-top: 100px;
    padding-top: 0px;
}
.buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}
.buttons button {
    background: rgba(255, 187, 5, 0.53);
    color: #594300;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}
.dots {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    z-index: 2;
}
.dot {
    width: 12px;
    height: 12px;
    margin: 5px;
    background-color: #f2ddac;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}
.dot.active {
    background-color: #fabe1e;
}






/* Media Queries para Responsividad */
@media (max-width: 1600px) and (min-width: 601px) {
    .background {
        background-size: contain; /* Ajusta la imagen sin recortarla */
        background-position: center center; /* Centra la imagen para evitar distorsiones */
    }
    .section-1 {
        height: 900px; /* Ajuste de altura para pantallas grandes */
    }
    .dots {
       bottom: 12%;
        margin-bottom: 20px;
    }
    

}


@media (max-width: 1400px){
    .dots {
           bottom: 15%;
            margin-bottom: 20px;
        }
        .slider-container {
            position: relative;
              }
    }
    
@media (max-width: 1200px) {
    .section-1 {
        height: 700px;
    }
    
    .dots {
        bottom: 13%;
      
}
}

@media (max-width: 1024px) {
    .section-1 {
        height: 600px;
    }

    .dots {
        bottom: 11%;
        margin-bottom: 0px;
        }
}


@media (max-width: 950px) {
    .section-1 {
        height: 600px;
    }

    .dots {
        bottom: 13%;
        margin-bottom: 0px;
        }
}
@media (max-width: 900px) {
    .section-1 {
        height: 600px;
    }

    .dots {
        bottom: 13%;
        margin-bottom: 0px;
        }
    .background{
        margin-top: 80px;
    }
}

@media (max-width: 850px) {
    .section-1 {
        height: 600px;
    }
    
    .dots {
        bottom: 15%;
       
}
}


@media (max-width: 768px) {
    .section-1 {
        height: 600px;
    }
       .dots {
        bottom: 19%;
       
}
}

@media (max-width: 600px) {
    .section-1 {
        height: 400px;
        top:100px;
        margin-bottom: 100px;
    }
    .background {
        background-size: contain;
    }
    .slide img {
        max-width: 100%;
    }
    .dots {
        bottom: 17%; /* Ajuste para mantener los dots dentro del slider */
    }
}

/* Ocultar los dots en pantallas menores a 500px */
@media (max-width: 500px) {
    .dots {
        display: none;
    }
    .section-1 {
        height: 350px; /* Ajuste de altura para pantallas muy pequeñas */
    }
}