.slider{
    width: 1500px;
    max-width: 100vw;
    height: 770px;
    margin: auto;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: grid;
    place-items: center;
}
.slider .list1{
    position: absolute;
    width: max-content;
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    transition: 2s;
}
.slider .list1 img{
    width: 1500px;
    max-width: 100vw;
    /*height: 100%;*/
    object-fit: cover;
}
.slider .buttons{
    position: absolute;
    top: 45%;
    left: 5%;
    width: 90%;
    display: flex;
    justify-content: space-between;
}
.slider .buttons button{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff5;
    color: #fff;
    border: none;
    font-family: monospace;
    font-weight: bold;
}
.slider .dots{
    position: absolute;
    bottom: 10px;
    left: 0;
    color: #fff;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}
.slider .dots li{
    list-style: none;
    width: 10px;
    height: 10px;
    background-color: #fff;
    margin: 10px;
    border-radius: 20px;
    transition: 0.5s;
}
.slider .dots li.active{
    width: 30px;
}
@media screen and (max-width: 768px){
    .slider{
        height: 400px;
    }
}

.slider .container1{
    text-align: center;
    color: #fff;
    position: absolute;
    z-index: 2;
    
    font-style:normal;
    line-height: 1.5rem;
    margin-bottom: 25px;
    font-family: "Wix Madefor Display", sans-serif;
    font-optical-sizing: auto;
    
}

.div1{
    margin-bottom: 35px;
    font-size: 2rem;
}
.div2{
    margin-bottom: 4rem;
    font-size: 3.5rem;
    font-weight: bold;
}
.btn1 {
    background-color: #fff; /* Fondo transparente */
    color: #1e3f5b; /* Color del texto */
    padding: 10px 45px; /* Espaciado interno */
    font-size: 16px; /* Tamaño de fuente */
    border: 2px solid #fff; /* Borde blanco de 2px */
    border-radius: 25px; /* Bordes redondeados */
    cursor: pointer; /* Cambia el cursor al pasar sobre el botón */
    text-decoration: none;
}

/* Estilo para cambiar el color del texto y del borde al pasar el mouse sobre el botón */
.btn1:hover {
    background-color: #122536;
    color: #fff; /* Cambia el color del texto */
    border-color: #122536; /* Cambia el color del borde */
    transition: 0.2s;
}
.svg1{
    margin-left: 8px;
    fill: #122536;
}
.btn1:hover .svg1{
    fill: #fff;
    transition: 1s;
    transform: translateY(3px);
}

.btn1:hover .svg1::after {
    content: ""; /* Pseudo-elemento para la animación de retorno */
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    animation: returnUp 0.3s ease 0.3s forwards; /* Animación de retorno */
}

/* Definición de la animación de retorno */
@keyframes returnUp {
    to {
        transform: translateY(0); /* Vuelve a la posición original */
    }
}