.slider {
    width: 100%;
    max-width: 100vw;
    height: 600px;
    margin: 110px auto 120px;
    position: relative;
    overflow: hidden;
}

.list {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    width: max-content;
    transition: 3s;
}

.list img {
    width: 100%;
    max-width: 100vw;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s; /* Agregar transición para el efecto de zoom */
}

/* Agrega efecto de zoom solo al pasar el ratón sobre la imagen */
.list img:hover {
    transform: scale(1.1); /* Aumenta ligeramente el tamaño de la imagen al pasar el ratón sobre ella */
}

.buttons {
    position: absolute;
    top: 45%;
    left: 5%;
    width: 90%;
    display: flex;
    justify-content: space-between;
}

.buttons button {
    display: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff5;
    color: #fff;
    border: none;
    font-family: monospace;
    font-weight: bold;
}

.dots {
    position: absolute;
    bottom: 20px;
    color: #EA5B0C;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.dots li {
    list-style: none;
    width: 10px;
    height: 10px;
    background-color:#EA5B0C;
    margin: 20px;
    border-radius: 20px;
    transition: 1s;
}

.dots li.active {
    width: 30px;
}

.myslider {
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 50, 0.99); /* Azul casi negro */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.myslider .overlay {
    transition: background-color 0.3s; /* Agrega transición para el cambio de color */
}


.myslider img {
    filter: brightness(0.5); /* Reducir el brillo al 50% */
}



@media screen and (max-width: 800px) {
    .txt {
        position: absolute;
        top: 50%; /* Alinear verticalmente al centro */
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        color: white;
        width: 90%;
        max-width: 400px;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

@media screen and (max-width: 379px) {
    .txt {
        position: absolute;
        top: 70%; /* Ajustar la posición vertical para que aparezca más abajo */
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        color: white;
        width: 90%;
        max-width: 400px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}
