:root{
    --color-blanco: #fff;
    --color-negro: #000;
    --color-amarillo: #edff6c;
    --color-rojo-error: red;
    --color-rojo-bubble: #d44234;
    --color-azulon-bubble: #396688;
    --color-azul-celeste-bubble: #66b1bd;
    --color-amarillo-bubble: #e29b25;
}

body{
    font-size: 10px;
    font-family: 'Avenir-Medium',Arial, Helvetica, sans-serif;
    background-color: var(--color-blanco);
}

.wrap {
    max-width: 1480px;
    width: 94%;
    margin: 0 auto;
}

header{
    width: 100%;
    height: 794px;
    background-color: var(--color-negro);
    padding: 9px 140px 0;
    box-sizing: border-box;
    color: var(--color-blanco);
    position: relative;
}

header nav{
    display: flex;
    justify-content: space-between;
}



header nav ul{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    width: 800px;
}

header nav li{
    display: inline-block;
    margin-top: 44px;
    font-size: 18px;
    text-align: right;
}

header nav li a{
    color: var(--color-blanco);
    text-decoration: none;
    font-family: 'Avenir-Black';
}

header .content{
    display: flex;
}

header a#menu_mob {
    display: none;
    position: absolute;
    top: 28px;
    right: 20px;
}

header a#menu_mob > div {
    width: 28px;
    height: 3px;
    background-color: var(--color-blanco);
    margin-bottom: 5px;
    transition-duration: 0.5s;
    opacity: 1;
}

header a#menu_mob > div:last-child {
    margin-bottom: 0;
}

header a#menu_mob.close > div:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

header a#menu_mob.close > div:nth-child(2) {
    opacity: 0;
}

header a#menu_mob.close > div:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -5px);
}

h1{
    font-family: 'Avenir-Black';
    font-size: 74px;
    margin: 110px 0 50px;
}

header .content div > p a{
    font-size: 24px;
    color: var(--color-blanco);
    text-decoration: none;
}

header #cabeza{
    width: 680px;
    margin-left: auto;
    position: absolute;
    /*margin-right: 100px;*/
    left: 50%
}

header #cabeza > div{
    position: relative;
}

header #cabeza div.infoico{
    width: 30px;
    height: 30px;
    border: 2px solid var(--color-blanco);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;    
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background-color: var(--color-negro);
    z-index: 100;
}

.parpadea {
    animation-name: parpadeo;
    animation-duration: 4s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
  
    -webkit-animation-name:parpadeo;
    -webkit-animation-duration: 4s;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
}
  
@-moz-keyframes parpadeo{  
    0% { opacity: 1.0; }
    50% { opacity: 0.0; }
    100% { opacity: 1.0; }
}
  
@-webkit-keyframes parpadeo {  
    0% { opacity: 1.0; }
    50% { opacity: 0.0; }
     100% { opacity: 1.0; }
}
  
@keyframes parpadeo {  
    0% { opacity: 1.0; }
     50% { opacity: 0.0; }
    100% { opacity: 1.0; }
}

header #cabeza div.infoico:hover{
    animation-iteration-count: 0;
}



header #cabeza .active div.infoico{
    animation-iteration-count: 0;
}


header #cabeza div.infoico::before{
    content: '+';
    transition: 750ms;
}

header #cabeza div.infoico:hover::before{
    transform: rotate(360deg);
}



header #cabeza div.bubble1{
    pointer-events: none;
    position: absolute;
    left: -190px;
    top: -22px;
    width: 340px;
    height: 342px;
    font-size: 14px;
}

header #cabeza div.bubble2{
    pointer-events: none;
    position: absolute;
    left: calc(50% + 217px);
    top: 50px;
    width: 332px;
    height: 342px;
    font-size: 14px;
}

header #cabeza div.bubble3{
    pointer-events: none;
    position: absolute;
    left: -200px;
    top: 335px;
    width: 347px;
    height: 311px;
    font-size: 14px;
}

header #cabeza div.bubble4{
    pointer-events: none;
    position: absolute;
    left: calc(50% + 217px);
    top: 405px;
    width: 337px;
    height: 258px;
    font-size: 14px;
}


header #cabeza div.bubble .info{
    padding: 34px 0px 0 42px;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: 750ms;
    background-image: url(../img/sombra_cabeza.png);
}

header #cabeza div.bubble1 .info{
    background-image: url(../img/bubble_rojo.png);
}

header #cabeza div.bubble2 .info{
    background-image: url(../img/bubble_azulcielo.png);
}

header #cabeza div.bubble3 .info{
    background-image: url(../img/bubble_azulon.png);
}

header #cabeza div.bubble4 .info{
    background-image: url(../img/bublle_amarilla.png);
}

header #cabeza div.bubble.active .info{
    opacity: 1;
}

header #cabeza div.bubble .line{
    overflow: hidden;
    transition: width 500ms;
    transform-origin: top left;
    position: absolute;
    width: 0;
}

header #cabeza div.bubble .line div{
    content: '';
    width: 100px;
    height: 100px;
    position: absolute;
    top: 0;
    left: 0px;
    box-sizing: border-box;
}

header #cabeza div.bubble.bubble1 .line{
    height: 74px;
    top: 53px;
    left: 238px;
}

header #cabeza div.bubble.bubble1.active .line{
    width: 165px;
}

header #cabeza div.bubble.bubble1 .line div{
    width: 165px;
    height: 74px;
}

header #cabeza div.bubble.bubble1 .line div::before{
    content: '';
    width: 165px;
    height: 2px;
    border-top: 2px solid var(--color-blanco);
    position: absolute;
    top: 0px;
    left: 0;
}

header #cabeza div.bubble.bubble2 .line{
    height: 2px;
    top: 54px;
    left: -90px;
}

header #cabeza div.bubble.bubble2.active .line{
    width: 135px;
}

header #cabeza div.bubble.bubble2 .line div{
    width: 135px;
    height: 2px;
}

header #cabeza div.bubble.bubble2 .line div::before{
    content: '';
    width: 135px;
    height: 2px;
    border-top: 2px solid var(--color-blanco);
    position: absolute;
    top: 0px;
    left: 0;
}


header #cabeza div.bubble.bubble3 .line{
    height: 210px;
    top: -151px;
    left: 319px;
}

header #cabeza div.bubble.bubble3.active .line{
    width: 60px;
}

header #cabeza div.bubble.bubble3 .line div{
    width: 60px;
    height: 210px;
}

header #cabeza div.bubble.bubble3 .line div::before{
    content: '';
    width: 60px;
    height: 210px;
    border-right: 2px solid var(--color-blanco);
    border-bottom: 2px solid var(--color-blanco);
    position: absolute;
    top: 0px;
    right: 4px;
    box-sizing: border-box;
}

header #cabeza div.bubble.bubble4 .line{
    height: 200px;
    top: -150px;
    left: -60px;
}

header #cabeza div.bubble.bubble4.active .line{
    width: 105px;
}

header #cabeza div.bubble.bubble4 .line div{
    width: 105px;
    height: 200px;
}

header #cabeza div.bubble.bubble4 .line div::before{
    content: '';
    width: 105px;
    height: 200px;
    border-left: 2px solid var(--color-blanco);
    border-bottom: 2px solid var(--color-blanco);
    position: absolute;
    top: 0px;
    left: 0px;
    box-sizing: border-box;
}

header #cabeza div.bubble label {
    font-family: 'Avenir-Black';
    font-size: 42px;
    line-height: 36px;
    position: relative;
}

header #cabeza div.bubble ul {
    margin: 10px 0 0 50px;
    font-size: 20px;
    line-height: 30px;
}

header #cabeza div.bubble ul li{
    position: relative;
}

header #cabeza div.bubble ul li::before {
    content: '+';
    position: absolute;
    top: 0px;
    left: -20px;
    font-size: 17px;
}

header #cabeza .cab1{
    background-image: url(../img/cab1.png);
    background-repeat: no-repeat;
    background-position: 51%;
    background-size: 100%;
    height: 55px;
    width: 100%;
    cursor: pointer;
    animation: float 4.8s ease-in-out infinite;
    width: 196px;
    margin: 0 calc(51% - 98px) 18px;
}

header #cabeza .cab1.active{
    background-image: url(../img/cabeza-rodaja1-x2.png);

}

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

header #cabeza .cab2{
    background-image: url(../img/cab2.png);
    background-repeat: no-repeat;
    background-position: 44%;
    background-size: 100%;
    height: 58px;
    width: 100%;
    cursor: pointer;
    animation: float 5.3s ease-in-out infinite;
    width: 234px;
    margin: 0 calc(44% - 117px) 10px;
}

header #cabeza .cab2.active{
    background-image: url(../img/cabeza-rodaja2-x2.png);
}

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

header #cabeza .cab3{
    background-image: url(../img/cab3.png);
    background-repeat: no-repeat;
    background-position: 51%;
    background-size: 100%;
    height: 61px;
    width: 100%;
    cursor: pointer;
    animation: float 4.5s ease-in-out infinite;
    width: 260px;
    margin: 0 calc(51% - 130px) 10px;
    z-index: 100;
}

header #cabeza .cab3.active{
    background-image: url(../img/cabeza-rodaja3-x2.png);
}

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

header #cabeza .cab4{
    background-image: url(../img/cab4.png);
    background-repeat: no-repeat;
    background-position: 46%;
    background-size: 100%;
    height: 135px;
    width: 100%;
    position: relative;
    z-index: 0;
    cursor: pointer;
    animation: float 5s ease-in-out infinite;
    z-index: 1;
    width: 262px;
    margin: 0 calc(47% - 131px);
}

header #cabeza .cab4.active{
    background-image: url(../img/cabeza-rodaja4-x2.png);
}

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

header #cabeza .cab5{
    background-image: url(../img/cab5.png);
    background-repeat: no-repeat;
    background-position: center;
    height: 385px;
    width: 100%;
    margin-top: -60px;
}

  
@keyframes float {  
    0% { transform: translateY(0px); }
    50% { transform: translateY(10px); }
    100% { transform: translateY(0px); }
}

h2{
    background: var(--color-negro);
    color: var(--color-blanco);
    padding: 20px 35px 10px 13px;
    width: fit-content;
    font-size: 55px;
}

h2 .autocomplete-text{
    width: fit-content;
    display: inline-block;
}

h2 .cursor{
    animation-name: parpadeo;
    animation-duration: 400ms;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
  
    -webkit-animation-name:parpadeo;
    -webkit-animation-duration: 400ms;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
}

@-moz-keyframes parpadeo{  
    0% { opacity: 1.0; }
    50% { opacity: 0.0; }
    100% { opacity: 1.0; }
}
  
@-webkit-keyframes parpadeo {  
    0% { opacity: 1.0; }
    50% { opacity: 0.0; }
     100% { opacity: 1.0; }
}
  
@keyframes parpadeo {  
    0% { opacity: 1.0; }
     50% { opacity: 0.0; }
    100% { opacity: 1.0; }
}

h3{
    font-size: 55px;
    margin-bottom: 40px;
    font-family: 'Avenir-Black';
}

h3 br{
    display: none;
}

section{
    margin-top: 110px;
    font-size: 16px;
}

section#clientes{
    width: 100%;
    height: 85px;
    background-color: var(--color-amarillo);
    margin: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

section#clientes ul{
    position: absolute;
    width: 3100px;
    height: 100%;
    margin: 0;
    line-height: 40px;
    font-size: 18px;
    text-align: center;
    -moz-transform: translateX(100vw);
    -webkit-transform: translateX(100vw);
    transform: translateX(100vw);
    -moz-animation: mover 150s linear infinite;
    -webkit-animation: mover 150s linear infinite;
    animation: mover 150s linear infinite;
}


section#clientes ul{
    /*width: 15360px;
    gap: 130px;*/
    display: flex;
    align-items: center;
    gap: 70px;
    width: 11456px;
}

/* Move it (define the animation) */
@keyframes mover {
    0%   { 
            -moz-transform: translateX(100vw); /* Firefox bug fix */
            -webkit-transform: translateX(100vw); /* Firefox bug fix */
            transform: translateX(100vw);          
    }
    100% { 
            -moz-transform: translateX(-100%); /* Firefox bug fix */
            -webkit-transform: translateX(-100%); /* Firefox bug fix */
            transform: translateX(-100%);     
    }  
}

section#clientes li{
    display: flex;
    align-items: center;
}

section#clientes img{
    max-width: 110px;
}

section#formulas{
    margin-top: 45px;
}

section#formulas .wrap{
    max-width: 1000px;
}

section#formulas h3{
    font-size: 33px;
    font-family: 'Avenir-Light';
    text-align: center;
}

section#formulas > div > div{
    display: flex;
}

section#formulas article{
    width: 50%;
    position: relative;
}

section#formulas article#azucar{
    display: flex;
    flex-direction: row-reverse;
}

section#formulas h4{
    font-size: 20px;

}

section#formulas h4 strong{
    background-color: var(--color-negro);
    color: var(--color-blanco);
    font-family: 'Avenir-Black';
}

section#formulas article h4 span{
    font-size: 95px;
    font-family: 'DidotItalic';
}

section#formulas article div{
    background-repeat: no-repeat;
}

section#formulas article#sal div{
    background-image: url(../img/sombra_sal.png);
    background-position: left bottom;
    background-size: auto 80%;
    margin-top: 100px;
}

section#formulas article#azucar div{
    background-image: url(../img/sombre_azucar.png);
    background-position: left center;
    background-size: 100% auto;
    max-width: 325px;
    width: 100%;
    margin-top: 100px;
}

section#formulas article p{
    margin-top: 10px;
    margin-left: 10px;
    font-size: 35px;
    line-height: 50px;
    font-family: 'Avenir-Light';
}

section#formulas article#sal p{
    margin-top: 30px
}

section#formulas article p span{
    font-family: 'Avenir-Black';
}

section#formulas article#sal img{
    position: absolute;
    top: 50px;
    right: 0;
    width: 170px;
}

section#formulas article#azucar img{
    position: absolute;
    top: 0;
    left: -30px;
    width: 250px;
}

section#formulas article#sal img:hover{
    transform: rotate(0);
    animation: agitarSal 250ms linear infinite;
}

section#formulas article#azucar img:hover{
    transform: rotate(0);
    animation: agitarAzucar 250ms linear infinite;
}
  
@keyframes agitarSal{  
    0% { transform: rotate(0); }
    50% { transform: rotate(-3deg); }
    100% { transform: rotate(0); }
}
  
@keyframes agitarAzucar{  
    0% { transform: rotate(0); }
    50% { transform: rotate(1deg); }
    100% { transform: rotate(0); }
}

section#proyectos .wrap{
    max-width: 1000px;
}

section#proyectos div#descriptionProy{
    grid-column: 1 / 4;
    height: 500px;
    margin-top: -40px;
    position: relative;
}

section#proyectos div#descriptionProy > div{
    display: flex;
    gap: 42px;
    background-color: var(--color-amarillo);
    height: 100%;
    padding: 40px 20px 20px 50px ;
    box-sizing: border-box;
}

section#proyectos div#descriptionProy > div > span{
    display: none;
}

section#proyectos div#descriptionProy div#text{
    display: inline-block;
    vertical-align: top;
    width: calc(33% - 55px);
    box-sizing: border-box;
    font-size: 18px;
    line-height: 28px;
    font-family: 'Avenir-Light';
    overflow-y: auto;
    position: relative;
}

section#proyectos div#descriptionProy h4{
    margin-top: 30px;
    font-weight: bold;
    margin-bottom: 15px;
    font-family: 'Avenir-Black';
}

section#proyectos div#descriptionProy p{
    margin-bottom: 20px;
}

section#proyectos div#descriptionProy div#text a{
    margin-top: 60px;
    text-decoration: none;
    font-family: 'Avenir-Black';
    display: block;
    color: var(--color-negro);
}

section#proyectos div#descriptionProy div#text a.hidden{
    display: none;
}

section#proyectos div#descriptionProy div#imagenes{
    position: relative;
    overflow: hidden;
    width: 66%;
    height: 100%;
}

section#proyectos div#descriptionProy div.carrousel{
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

section#proyectos div#descriptionProy div.carrousel ul{
    top: 0;
    left: 0;
    position: absolute;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: start;
    transition: 1s;
    transform: translateX(0);
}

section#proyectos div#descriptionProy div.carrousel ul li img, section#proyectos div#descriptionProy div.carrousel ul li video{
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

section#proyectos div#descriptionProy .arrow_prev {
    position: absolute;
    top: calc(50% - 12px);
    left: 15px;
}

section#proyectos div#descriptionProy .arrow_next {
    position: absolute;
    top: calc(50% - 12px);
    right: 15px;
}

section#proyectos div#descriptionProy .arrow_prev.desactivo, section#proyectos div#descriptionProy .arrow_next.desactivo{
    opacity: 0;
}

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


section#proyectos div#linkProy{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 42px;
    margin-top: 80px;
}

section#proyectos div#linkProy a{
    position: relative;
}

section#proyectos div#linkProy a img{
    width: 100%;
}

section#proyectos div#linkProy a div{
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: var(--color-blanco);
    color: var(--color-negro);
    font-size: 35px;
    font-family: 'Avenir-Black';
    text-align: center;
    padding: 20%;
    box-sizing: border-box;
}

section#proyectos div#linkProy a:hover div, section#proyectos div#linkProy a.active div{
    display: flex;
}

section#contacto{
    margin-bottom: 30px;;
}

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

section#contacto > div > div p{
    width: 200px;
    line-height: 30px;
    font-size: 18px;
    font-family: 'Avenir-Light';
}

section#contacto > div form{
    grid-column: 2 / 4;
}

section#contacto > div form input[type="text"]{
    height: 40px;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid var(--color-negro);
    margin-bottom: 10px;
    font-size: 20px;
    outline: none;
    box-sizing: border-box;
}

section#contacto > div form input[type="text"]::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: var(--color-negro);
}
  
section#contacto > div form input[type="text"]:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: var(--color-negro);
}
  
section#contacto > div form input[type="text"]::-ms-input-placeholder { /* Microsoft Edge */
    color: var(--color-negro);
}

section#contacto > div form input[type="text"].error::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: var(--color-rojo-error);
}
  
section#contacto > div form input[type="text"].error:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: var(--color-rojo-error);
}
  
section#contacto > div form input[type="text"].error::-ms-input-placeholder { /* Microsoft Edge */
    color: var(--color-rojo-error);
}

section#contacto > div form .fake-textarea {
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid var(--color-negro);
    margin-bottom: 10px;
    font-size: 20px;
    outline: none;
    line-height: 40px;
}

section#contacto > div form .fake-textarea.error{
    border-bottom: 1px solid var(--color-rojo-error);
    color: var(--color-rojo-error);
}

section#contacto > div form .fake-textarea:empty::before {
    position: absolute;
    content: "Mensaje*";
    color: var(--color-negro);
}

section#contacto > div form .fake-textarea.error::before{
    color: var(--color-rojo-error);
}

section#contacto > div form textarea {
    display: none;
}

section#contacto > div form input[type="text"].error{
    border-bottom: 1px solid var(--color-rojo-error);
    color: var(--color-rojo-error);
}

section#contacto > div form .col1{
    width: 100%;
}

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

section#contacto > div form .col2 input{
    width: 100%;
}

section#contacto > div form .footer{
    display: flex;
    margin-top: 60px;
}

section#contacto > div form .cond{
    display: flex;
    align-items: center;
    font-size: 12px;
    height: 20px;
    vertical-align: top;
}

section#contacto > div form .cond a{
    color: var(--color-negro);
    text-decoration: none;
}

section#contacto > div form .cond.error, section#contacto > div form .cond.error a{
    color: var(--color-rojo-error);
}

section#contacto > div form #enviar_sms{
    background-color: var(--color-negro);
    color: var(--color-blanco);
    padding: 20px 35px;
    text-decoration: none;
    font-size: 15px;
    margin-left: auto;
}

section#contacto > div form #msg_form{
    margin-left: auto;
    display: none;
}

section#ir_arriba{
    text-align: center;
    margin-bottom: 10px;
    position: fixed;
    bottom: 0;
    left: calc(50% - 30px);
    transform: translateY(70px);
    transition: 750ms;
}

section#ir_arriba.active{
    transform: translateY(0px);
}

section#ir_arriba a{
    background-color: var(--color-negro);
    color: var(--color-blanco);
    padding: 12px 20px 0px;
    text-decoration: none;
    font-size: 40px;
}

footer{
    margin-bottom: 20px;
    text-align: center;
    font-size: 16px;
}

footer .wrap{
    border-top: 1px solid var(--color-negro);
    padding-top: 20px;;
}

footer a{
    color: var(--color-negro);
    text-decoration: none;
}

