.slider{
    position:relative;
    width:100%;
    margin-top: 100px;
    margin-bottom: 60px;
    height: 600px;
}

.myslider{
    height: 600px;
    display: none;
    overflow: hidden;
}

.prev, .next{
    position: absolute;
    top: 50%;
    transform: translate(0,-50%);
    font-size: 50px;
    padding: 15px;
    cursor: pointer;
    color: #fff;
    transition: 0.1s;
    user-select: none;
}

.prev:hover, .next:hover{
    color: #002856;
}

.next{
    right: 0;
}

.dotsbox{
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    bottom: 40px;
    cursor: pointer;
}

.dot{
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 3px solid #fff;
    border-radius: 50%;
    margin: 0 10px;
    cursor: pointer;
}

.active, .dot:hover{
    border-color: #3498db;

}

.fade{
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
}

@-webkit-keyframes fade {
    from{opacity:0.8}
    to{opacity: 1}
}

@keyframes fade {
    from{opacity:0.8}
    to{opacity: 1}
}

.txt{
    position:absolute;
    color: black;
    letter-spacing: 2px;
    line-height: 35px;
    top: 40%;
    left: 15%;
    -webkit-animation-name: posi;
    -webkit-animation-duration: 2s;
    animation-name: posi;
    animation-duration: 2s;
    z-index:1;
}


@-webkit-keyframes posi {
    from{left: 25%}
    to{opacity: 15%}
}

@keyframes posi {
    from{left: 25%}
    to{opacity: 15%}
}

.txt h1{
    color: #002856;
    font-weight: bold;
    font-size: 70px;
    margin-bottom: 20px;
    letter-spacing: 1px;

}

.txt p{
    font-weight: bolder; /* Cambia el peso de la fuente a negrita */
    font-size: 25px;
    color: black;
}

.myslider img {
    width: 100%;
    height: 100%;
    transform-origin: center center;
    transition: transform 5s; /* Transición para suavizar el efecto de zoom */
    -webkit-animation-name: zoomin;
    -webkit-animation-duration: 5s;
    animation-name: zoomin;
    animation-duration: 8s;
    object-fit: cover;
    opacity: 0.8; /* Establece la opacidad de la imagen */
}


.myslider:hover .img {
    transform: scale(0); /* Aplica un zoom del 150% a la imagen cuando el mouse está sobre el slider */
}

@-webkit-keyframes zoomin {
    from {transform: scale(1,1);}
    to {transform: scale(1.1,1.1);} /* Ajustar el nivel de zoom deseado */
}

@keyframes zoomin {
    from {transform: scale(1,1);}
    to {transform: scale(1.1,1.1);} /* Ajustar el nivel de zoom deseado */
}


@media screen and (max-width: 800px){
    .myslider{
        height: 600px;
    }
    .txt{
        line-height: 25px;
        top:50%;
        left:50%;
        transform: translate(-50%,50%);
        -webkit-animation-name: posi2;
        -webkit-animation-duration: 2s;
        animation-name: posi2;
        animation-duration: 2s;
    }

    @-webkit-keyframes posi2 {
        from {top:35%}
        to {top:50%}
    }
    @keyframes posi2 {
        from {top:35%}
        to {top:50%}
    }
    .txt h1{
        font-size:40px;
    }
    
    .txt p{
        font-size:13px;
    }
}


@media screen and (max-width: 520px){
    .myslider{
        height: 600px;
    }
    .txt h1{
        font-size:  30px;
    }
    .sign{
        margin-right: 20px;
    }
    .sign a{
        font-size: 12px;
    }

}