@media only screen and (max-width: 1800px) {

    header{
        height: 726px;
    }

    header #cabeza{
        transform: scale(0.8);
        margin-right: 0;
    }
}

@media only screen and (max-width: 1570px) {
    header{
        padding: 9px 55px 0;
        height: 608px;
    }

    header #cabeza{
        transform: scale(0.7);
        right: 100px;
        margin-top: -85px;
    }

    h1{
        font-size: 55px;
    }

    header .content div > p a {
        font-size: 20px;
    }

}

@media only screen and (max-width: 1279px) {
    
    header{
        padding: 9px 30px 0;
        height: 575px;
    }

    header .content div > p a{
        font-size: 18px;
    }

    header .content > div:nth-child(1){
        width: min-content;
    }

    header #cabeza{
        transform: scale(0.6);
        right: 50px;
        left: initial;
        margin-top: -85px;
    }

}

@media only screen and (max-width: 1024px) {

    header nav{
        flex-direction: column;
    }

    header nav ul{
        display: flex;
        flex-direction: column;
    }

    header nav ul.hidden{
        display: none;
    }

    header nav li{
        display: block;
        text-align: left;
        margin: 0;
        border-bottom: 1px solid var(--color-blanco);
        padding: 20px 10px;
    }

    header nav li:nth-child(1){
        border-top: 1px solid var(--color-blanco);
    }

    header a#menu_mob{
        display: block;
    }

    /*section#formulas article#sal div{
        background-size: auto 330px;
    }*/
}

@media only screen and (max-width: 768px) {

    header{
        height: auto;
        padding: 9px 0 0;
    }

    header nav > a > img{
        width: 200px;
    }

    header .content{
        flex-direction: column;
    }

    header .content > div:nth-child(1){
        width: 100%;
    }

    h1{
        margin: 30px 15px 20px;
        font-size: 40px;
    }

    h3 br{
        display: block;
    }

    header .content div > p a{
        margin: 0 15px;
        font-size: 17px;
    }

    header #cabeza{
        height: auto;
        transform: scale(1);
        width: 100%;
        margin-right: auto;
        margin-top: 20px;
        position: relative;
        right: initial;
    }

    header #cabeza .cab1{
        width: 98px;
        height: 28px;
        background-size: 100%;
        margin: 0 calc(50% - 49px) 9px;
    }

    header #cabeza .cab2{
        width: 117px;
        height: 29px;
        background-size: 100%;
        margin: 0 calc(48% - 57px) 5px;
    }

    header #cabeza .cab3{
        width: 130px;
        height: 30px;
        background-size: 100%;
        margin: 0 calc(49% - 65px) 5px;
    }

    header #cabeza .cab4{
        width: 131px;
        height: 67px;
        background-size: 100%;
        margin: 0 calc(48% - 65px);
    }

    header #cabeza .cab5{
        width: 320px;
        height: 192px;
        background-size: 100%;
        margin: -30px auto;
    }

    header #cabeza div.infoico{
        height: 20px;
        width: 20px;
        font-size: 18px;
        top: 0;
    }

    header #cabeza .cab1 .infoico{
        transform: translateX(-100px);
    }

    header #cabeza .cab2 .infoico{
        transform: translateX(80px);
    }

    header #cabeza .cab3 .infoico{
        transform: translateX(-120px);
    }

    header #cabeza .cab4 .infoico{
        transform: translateX(100px);
    }

    header #cabeza div.bubble{
        display: none;
    }

    header #cabeza div.bubble.active{
        display: block;
    }

    header #cabeza div.bubble label{
        line-height: 51px;
        display: inline-block;
        margin-top: -30px;
        padding: 0 5px;
    }

    header #cabeza div.bubble label span{
        background-color: var(--color-blanco);
    }

    header #cabeza div.bubble{
        position: relative;
        background-color: var(--color-blanco);
        width: 100%;
        left: 0;
        top:-1px;
        padding: 30px 0 20px;
        height: auto;
    }

    header #cabeza div.bubble .info{
        background-image: none;
        width: 90%;
        margin: 0 auto;
        height: auto;
        padding: 0 0 20px 42px;
    }

    header #cabeza div.bubble.bubble1 .line{
        display: none;
    }

    header #cabeza div.bubble.bubble2 .line{
        display: none;
    }

    header #cabeza div.bubble.bubble3 .line{
        display: none;
    }

    header #cabeza div.bubble.bubble4 .line{
        display: none;
    }

    header #cabeza div.bubble1 .info{
        border: 2px solid var(--color-rojo-bubble);
        color: var(--color-rojo-bubble);
    }
    
    header #cabeza div.bubble2 .info{
        border: 2px solid var(--color-azul-celeste-bubble);
        color: var(--color-azul-celeste-bubble);
    }
    
    header #cabeza div.bubble3 .info{
        border: 2px solid var(--color-azulon-bubble);
        color: var(--color-azulon-bubble);
    }
    
    header #cabeza div.bubble4 .info{
        border: 2px solid var(--color-amarillo-bubble);
        color: var(--color-amarillo-bubble);
    }
    
    section#clientes ul{
    	gap: 50px;
    	width: 10190px;
    }

    section#formulas h4{
        font-size: 16px;
    }

    section#formulas article h4 span {
        font-size: 70px;
    }

    section#formulas > div > div{
        flex-direction: column;
        gap: 70px;
    }

    section#formulas article{
        width: 100%;

    }

    section#formulas article#sal{
        text-align: right;
    }

    section#formulas article#sal div{
        margin-top: 50px;
        background-size: 300px auto;
        text-align: left;
    }

    section#formulas article#azucar div {
        margin-top: 60px;
        max-width: 230px;
    }

    /*section#formulas article#azucar{
        flex-direction: column;
    }*/

    section#formulas article p{
        font-size: 25px;
        line-height: 35px;
    }

    section#formulas article#sal img{
        width: 120px;
    }

    section#formulas article#azucar img{
        width: 170px;
        z-index: -1;
        left: -5px;
    }

    section#proyectos div#linkProy{
        grid-template-columns: repeat(1, 1fr);
    }

    section#proyectos div#descriptionProy{
        grid-column: 1 / 1;
    }

    section#proyectos div#descriptionProy > div{
        flex-direction: column;
        padding: 40px 20px 20px 20px;
    }

    section#proyectos div#descriptionProy div#text{
        width: 100%;
        height: 468px;
        padding-bottom: 50px;
    }

    section#proyectos div#descriptionProy div#imagenes{
        width: 100%;
    }

    section#proyectos div#descriptionProy{
        height: auto;
    }

    section#proyectos div#descriptionProy .arrow_prev img, section#proyectos div#descriptionProy .arrow_next img{
        width: 17px;
    }

    section#contacto > div{
        grid-template-columns: repeat(1, 1fr);
    }

    section#contacto > div > div p{
        width: 100%;
        margin-bottom: 30px;
    }

    section#contacto > div form{
        grid-column: 1;
    }

    section#contacto > div form .col2{
        grid-template-columns: repeat(1, 1fr);
        gap: 0
    }

    section#contacto > div form .footer{
        margin-top: 30px;
        flex-direction: column;
    }

    section#contacto > div form #enviar_sms{
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        margin-top: 15px;
    }

    section#proyectos div#descriptionProy::after{
        position: absolute;
        content: '';
        top: 230px;
        left: 0;
        width: 100%;
        height: 50px;
        background: linear-gradient(0deg, rgba(237, 255, 108, 1) 0%, rgba(237, 255, 108, 0) 100%);
        pointer-events: none;
    }

    section#proyectos div#descriptionProy > div > span{
        position: absolute;
        top: 260px;
        right: 10px;
        z-index: 100;
        display: block;
    }

    section#contacto > div form .fake-textarea{
        -webkit-padding-start: 10px;
    }
}

@media only screen and (max-width: 550px) {

    header #cabeza div.bubble .info{
        padding: 0 5px 20px 20px;
    }

    header #cabeza div.bubble ul{
        margin: 10px 0 0 35px;
    }

    header #cabeza div.bubble label{
        font-size: 37px;
        line-height: 46px;
    }

    header #cabeza div.bubble ul{
        font-size: 18px;
    }
}

@media only screen and (max-width: 375px) {

    h2{
        font-size: 44px;
    }
    
    /*header #cabeza {
        height: 292px;
        transform: scale(0.28);
    }

    header #cabeza .cab5 {
        width: 690px;
        margin-left: -173px;
    }*/

    section#formulas article#azucar h4{
        text-align: right;

    }

    section#formulas article#azucar img{
        left: -30px;
    }
}
