@media (max-width: 1000px) {
    /*---------------------------------header---------------------------------*/
    .navScrolled{
        min-height: 7vw;
        justify-content: space-between;
    }
    ul{
        justify-content: space-evenly;
    }

    .header .logo{
        width: 25vw;
        transform: translate(-6vw, 10vw);
    }

    .header .logoScrolled{
        width: 17vw !important;
        transform: translate(-2vw, 2vw);
        margin-left: 2vw;
    }

    .header a{
        font-size: 16px;
    }
    /*---------------------------------home---------------------------------*/
    .home__container:first-child {
        margin: 8vh 0 2vh 0;
    }

    .container__h1 {
        font-size: 6.25vw;
    }

    .container__p {
        font-size: 1.2rem;
    }

    .container__a {
        font-size: 1.75rem;
        padding: .8rem 3rem .3rem 3rem;
        border-radius: 17px;
    }

    /*---------------------------------somos---------------------------------*/
    .somos {
        width: 88%;
        padding: 4vw 6vw;
    }

    .somos__p:first-child {
        font-size: 2rem;
    }

    .somos__p:last-child {
        font-size: 1.5rem;
    }

    /*---------------------------------sucursales---------------------------------*/

    .sucursales__card {
        width: 100%;
        margin: 0;
        text-align: center;
        overflow: hidden;
        justify-content: space-around;
        margin-bottom: 50px;
    }

    .sucursales__card--img {
        height: 50vw;
        filter: grayscale(1) contrast(1.2);
        transition: 1s;
    }

    .sucursales__card--logo {
        width: 10%;
        margin: 0 45%;

    }

    .sucursales__card--h2 {
        width: 60%;
        margin: 0 20%;
        font-size: 4vw;
    }

    .sucursales__card--h2 .numFont {
        font-size: 3vw;
        -webkit-text-stroke-width: .5vw;
    }

    .card__info {
        position: relative;
        top: -4vw;
        display: flex;
        flex-wrap: wrap;
    }

    .container__pa,
    .sucursales__card--p {
        width: 100%;
    }

    .sucursales__card--p {
        font-size: 3vw;
        line-height: 4vw;
    }

    .container__pa .sucursales__card--p {
        width: 100%;
    }

    .sucursales__card--a {
        font-size: 3vw;
        padding: 1vw 1.8vw .6vw 1.8vw;
        border-radius: 1vw;
        transition: .3s;
        width: 100%;
    }

    /*---------------------------------footer---------------------------------*/
    .gridContainer {
        padding: 5vw 0 0 4vw;
        gap: 0;
        grid-template-columns: 30vw 1fr 30vw;

        grid-template-rows: repeat(2, 10vw) repeat(2, 90px) 70px;
    }

    .visita__cursor {
        height: 0;
        width: 7vw;
        float: right;
        transform: translate(-10%, -10vw);
    }

    .encuentranos {
        font-size: 1.5rem;
    }

    .segurito__p {
        padding: 20px;
        border-radius: 30px 30px 0px 30px;
        font-size: 1.1rem;
        -webkit-text-stroke: 1px black;
        transform: none;
    }



    .visita__p:last-child {
        color: white;
        font-size: 1.4rem;
        margin: auto 0 0 0;
    }

    .segurito__social {
        grid-column: 1/3;
        grid-row: 4/5;
        display: flex;
        justify-content: space-evenly;
        width: 80%;
        margin: auto;
    }

    .segurito__social a {
        width: 70px;
        text-align: center;
        height: 70px;
        border-radius: 50%;
        margin: auto;
        line-height: 85px;
        font-size: 45px;
    }

    .segurito__img {
        grid-column: 3/4;
        grid-row: 1/6;
        height: 95%;
        justify-self: end;
    }
}

@media (max-width: 750px) {
    /*---------------------------------header---------------------------------*/

    .navScrolled{
        height: 5vw;
    }
    .container__iconHamburger {
        width: auto;
        flex-grow: 1;
        padding-bottom: 5vw;
    }

    .iconHamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        margin-left: 4vw;
        flex-wrap: wrap;
        width: 7.5vw;
        height: 6vw;
        align-items: center;
    }

    .line {
        width: 100%;
        height: 25%;
        background-color: #1c1d1b;
        border-radius: 2.5px;
        max-height: 3vw;
    }



    .menuOpen1 {
        animation: .3s ease-in forwards;
        animation-name: arriba;
    }

    @keyframes arriba {
        100% {
            width: 0;
            max-height: 0;
        }
    }


    
    .menuOpen2 {
        animation: .3s ease-in forwards;
        animation-name: medio
    }

    @keyframes medio {
        100% {
            transform: rotate(45deg) translate(1vw, 1vw);
            max-height: 1vw;
        }
    }

    .menuOpen3 {

        animation: .3s ease-in forwards;
        animation-name: abajo
    }

    @keyframes abajo {
        100% {
            transform: rotate(-45deg) translate(1vw, -1vw);
            max-height: 1vw;
        }
    }






    .hidden {
        display: none;
    }

    nav {
        flex-wrap: wrap;
    }


    .navScrolled {
        max-height: 30vw;
        padding: 2vw 0 6vw;
    }

    .navScrolled .iconHamburger{
        transform: translateY(2vw);
    }

    .navExpanded {
        height: auto;
        max-height: 90vh;
        backdrop-filter: blur(25px);
        background-color: #fffd;
        box-shadow: 0 0 10px #0003;
    }

    ul {
        width: 100%;
        order: 2;
        
    }

    .header__li {
        width: 80%;
        padding: 2vw 0;
    }

    .header__li:hover {
        scale: 1.1
    }

    .header .logo {
        height: 15vw;
        width: auto;
    }

    .header__li a {
        font-size: 1.2rem;
        display: block;
        width: 100%;
    }

    .header .logoScrolled {
        height: 11vw !important;
        width: auto !important;
        margin: 0vw 2vw 0 0 !important;
    }


}
@media (max-width: 600px) {

    /*---------------------------------home---------------------------------*/

    .home__container:first-child {
        height: 85vmin;
        min-height: 320px;
        background-position: -25px 50%;
        margin-top: 25vw;
    }

    .container__h1 {
        font-size: 9vw;
        width: 70%;
        padding-left: 25vw;
    }

    .container__p {
        padding-left: 17vw;
        width: 63%;
        font-size: 3.8vw;
        margin-bottom: 2rem;
    }

    .container__a {
        font-size: 1.5rem;
        padding: .6rem 2rem .2rem 2rem;
        border-radius: 12px;
    }

    .home__container:last-child p {
        font-size: 4vw;
        height: 10vw;
        padding: 3vw 0vw 1vw 0vw;
        border-radius: 4vw;
    }

    .home__container:last-child .circle {
        width: 14vw;
        height: 14vw;
        background-color: #f8b036;
        border-radius: 50%;
    }

    /*---------------------------------somos---------------------------------*/
    .somos {
        width: 92vw;
        padding: 4vw 4vw;
    }

    .somos__p:first-child {
        font-size: 1.25rem;
        max-width: 100%;
    }

    .somos__p:last-child {
        font-size: 1rem;
        max-width: 100%;
    }

    /*---------------------------------sucursales---------------------------------*/


    .sucursales__h2 {
        font-size: 6.5vw;
        padding: 2.5vw 0 1vw 0;
    }

    .sucursales__card--img {
        height: 50vw;
    }

    .sucursales__card--logo {
        width: 15%;
        margin: 0 42.5%;
        position: relative;
        top: 2vw
    }

    .sucursales__card--h2 {
        width: 78%;
        margin: 0 11%;
        font-size: 1.5rem;
        font-family: ccgb;
        padding: 2.2vw 0 1vw 0;
        border-radius: 12px;
    }

    .sucursales__card--p {
        font-size: 1.2rem;
        line-height: 1.5rem;
    }

    .sucursales__card--a {
        font-size: 1.5rem;
        padding: 3.5vw 5vw 2vw 5vw;
        border-radius: 1vw;
        border-radius: 12px;
    }

    .card__info {
        position: relative;
        top: -9vw;
    }


    /*---------------------------------footer---------------------------------*/
    .gridContainer {
        display: grid;
        margin-bottom: 2vw;
        grid-template-columns: repeat(5, 16vw) 1fr;
        grid-template-rows: repeat(4, 23vw);
    }

    .visita__h2 {
        grid-row: 1/2;
        grid-column: 1/7;
    }

    .visita__h2 h2 {
        font-size: 9vw;
        line-height: 9.5vw;
    }

    .visita__h2--white {
        margin-left: 10vw;
    }

    .visita__cursor {
        transform: translate(-150%, -8vw);
    }

    .visita__p:last-child {
        font-size: 1rem;
        width: 70%;
    }

    .encuentranos {
        grid-column: 1/5;
        grid-row: 2/3;
        font-size: .9rem;
        line-height: 1.3rem;
        opacity: 0;
    }

    .segurito__p {
        grid-column: 1/5;
        grid-row: 2/3;
        padding: 15px;
        border-radius: 25px 25px 0px 25px;
        font-size: 3.6vw;
        transform: translate(0, 0);
        margin-right: 10%;
        justify-self: end;
        align-self: start;
    }

    .segurito__img {
        grid-column: 5/7;
        grid-row: 2/5;
        height: 100%;
    }

    .segurito__social {
        grid-column: 1/5;
        grid-row: 3/4;
        margin: 0;
        justify-content: space-between;
    }

    .segurito__social a {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        margin: auto;
        line-height: 55px;
        font-size: 30px;
    }

    .visita__p:last-child {
        font-size: 4.4vw;
        text-align: center;
        transform: translateY(-1vw);
    }

    .asesoria {
        grid-row: 4/5;
        grid-column: 1/6;
    }
    .copyright{
        padding-bottom: 100px;
    }
}