@import url("root.css");
html {
    font-size: 62.5%; /* 1 rem = 10px */ 
}
*, *:before, *:after{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: var(--fuente);
    font-size: 1.6rem;
    line-height: 1.5;
    min-height: 100vh;
}

/*Globales*/

.contenedor{
    max-width: 120rem;
    width: 90%;
    margin: 50px auto; 
    min-height: calc(100vh - 250px); 
}

/*h1, h2, h3, h4 {
    font-family: var(--fuente);
    line-height: 1.2;
}
h1{
    font-size: 4.8rem;
}
h2{
    font-size: 4rem;
}
h3{
    font-size: 3.2rem;
}
h4{
    font-size: 2.8rem;
}
img{
    max-width: 100%;
} 
*/

/* HEADER*/
header {
    z-index: 999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    padding: 20px 80px;
    height: 80px;
    align-items: center;
    
    justify-content: space-around;
    transition:  0.5s;
    
}

header.down{
    background: var(--color1);
    box-shadow:  1px 9px 20px -5px rgba(0, 0, 0, 0.59);
    padding: 15px 80px; 
}

header .logo{
    position: relative;
    color: var(--color3);
    font-weight: bold;
    font-size: 2em;
    letter-spacing: 2px;
    transition: 0.7ms;
    text-decoration: none;
}

header .brand img{
    height: 75px;
    width: 100px;
    transition: 0.3s;

}

header .brand img:hover{
    background-color:var(--color2);
    border-radius: 5px;
}

header .menu {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center
}


header .menu ul{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

header .menu ul li{
    list-style: none;
}

.link.scroll{
    color: var(--color3)
}

header .menu a{
    text-transform: uppercase;
    font-size: 16px;
    border-radius: 20px;
    margin: 0 30px;
    text-decoration: none;
    color: var(--color1);
    -webkit-text-stroke: 0.2px var(--color5);
    letter-spacing: 2px;
    font-weight: 500;
    transition: 0.3s;
    padding: 7px 12px;
    transition-property: color, background;
}

header .menu a:hover{
    color: var(--color1);
    background-color: var(--color3);

}

header .btn{
    color: var(--color3);
    font-size: 25px;
    cursor: pointer;
    display: none;
}

/*Section main*/

.titulo{
    background-image: url("/img/mejores-fondos-de-pantalla.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    height: 20vh;
    justify-content: right;
    margin-bottom: none;
    border-bottom: 4px solid var(--color3);
}

.titulo h1{
    color: var(--blanco);
    padding-top: 6%;
    text-transform: uppercase;
    color: var(--blanco);
    text-align: right;
    
}

.service{
    width: 100%;
    height: fit-content;
    align-items: center;
    border-bottom: 3px solid var(--color3);
}

.service h2{
    color: var(--blanco);
    text-shadow:2px 2px 4px var(--color5);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 2em;
}

.service p{
    display: flex;
    margin-top: 1%;
    color: var(--blanco);
    padding: 1.5%;
    font-size: 1.2em;
    text-align: justify;
    width: 35%;
    background-color: rgba(0, 0, 0, 0.449);
}


.service input{
    color: var(--blanco);
    border-radius: 5px;
    border: none;
    font-size: 1em;
    width: 270px;
    height: 30px;
    margin: 2.5%;
    margin-bottom: 10%;
    cursor: pointer;
    transition: 0.3s;
    background-color: var(--color3);
}

.service input:hover{
    border: 1px solid var(--color3);
    background-color: var(--color1);
    color: var(--color3);
}

.content{
    opacity: 0;
    padding-left: 5%;
    width: 100%;
    height: 100%;
    padding-top: 7% ;
    background-color: rgba(0, 0, 0, 0.5);
}

.service .content#right{
    padding-left: 50%;
    padding-bottom: 7%; 
}

.service .content#right p{
    width: 80%;
    height: fit-content;
}

.content.visible{
    opacity: 1;
    animation: fadeInRight;
    animation-duration: 1s;
}

.content#right.visible{
    opacity: 1;
    animation: fadeInLeft;
    animation-duration: 1s;

}

#domotica{ 
    text-align: left;
    background-image:  url("/img/servivicios-img/domotica.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

#iluminacion{
    text-align: left;
    background-image:  url("/img/Proyectos/iluminacion/1BA27650-B7D5-40BC-BBC0-09F2FBB385E4.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;

}

#audio_smart{
    text-align: left;
    background-image:  url("/img/servivicios-img/sistema\ de\ audio\ smart.webp");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}


#cine_casa{
    text-align: left;
    background-image:  url("/img/servivicios-img/cine-en-casa-pantalla-gigante.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

#audio_pro{
    text-align: left ;
    background-image:  url("/img/servivicios-img/sistema\ de\ audio\ pro.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}


#sis_empresa{
    text-align: left;
    background-image:  url("/img/servivicios-img/sistemas\ para\ tu\ empresa.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

#home_network{
    text-align: left;
    background-image:  url("/img/servivicios-img/home-network.webp");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}



/*SECTION FORM*/

.is-invalid{
    color: red;
    font-size: 10px;
    font-weight: bold;
}

.section-two{
    position: relative;
    width: 100%;
    height: fit-content;
    display: grid;
    place-items: center;
    padding: 20px;
    box-shadow:  1px 9px 20px 10px rgba(0, 0, 0, 0.59);  
    background-image: url("/img/pattern3.png");
}

.section-two .contactForm{
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    padding: 5%;
    width: 90%;
    height: fit-content;
    background-color: var(--color1);
    box-shadow: 1px 9px 20px -5px rgba(0, 0, 0, 0.59);
    border-radius: 30px;
}



.section-two .contactForm .form{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 85%;
    height: fit-content;
    margin-left: 10%;
}

.section-two .contactForm .form form{
    width: 100%;
    height: 100%;
}

.section-two .contactForm .form .texto h2{
    color: var(--color5);
    font-size: 1.5em;
    margin-bottom: 10px;

}

.section-two .contactForm .form .texto p{
    color: var(--color2);
    text-align: justify;
    -webkit-text-stroke: 0.6px var(--color5);
    font-size: 1em;
    margin-bottom: 20px;
}

.section-two .contactForm .form form .inputBox{
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.section-two .contactForm .form form .inputBox label{
    color: var(--color5);
    width: 100%;
    text-align: left;
    font-weight: 700;
}

.section-two .contactForm .form form .inputBox input[type="text"],
.section-two .contactForm .form form .inputBox input[type="email"],
.section-two .contactForm .form form .inputBox input[type="tel"],
.section-two .contactForm .form form .inputBox textarea{
    border: none;
    width: 90%;
    height: 10%;
    background: var(--color4);
    padding: 10px;
    border-radius: 15px;
    color: var(--color1);
}

.section-two .contactForm .form form .inputBox input[type="text"]:focus,
.section-two .contactForm .form form .inputBox input[type="email"]:focus,
.section-two .contactForm .form form .inputBox input[type="tel"]:focus,
.section-two .contactForm .form form .inputBox textarea:focus{
    outline: 2px solid var(--color5);
}

.form-termsAndCond [type="checkbox"]{
    display: none;
}
.form-termsAndCond [type="checkbox"]:checked + label::before{
    background-color: var(--color5);
    transition: 0.5s;
    transform: rotate(180deg);
}
.form-termsAndCond{
    margin: 20px;
    margin-top: 0px;
    margin-left: 15px;
    font-size: 12px;
    position: relative;
}
.form-termsAndCond label::before {
    content: "";
    width: 8px;
    height: 8px;
    border: 1px solid var(--color5);
    position: absolute;
    top: 4px;
    left: -14px;
}

.section-two .contactForm .form form  input[type="submit"]{
    background: var(--color3);
    color: var(--color1);
    display: inline-block;
    text-align: center;
    width: 250px;
    padding: 10px;
    border-radius: 15px;
    letter-spacing: 1px;
    border: var(--color5);
    cursor: pointer;
    box-shadow:  1px 9px 20px -5px rgba(0, 0, 0, 0.59);
    transition: 0.3s;
}

.section-two .contactForm .form form  input[type="submit"]:hover{
    background-color: var(--blanco);
    color: var(--color2);
    border: 1px solid var(--color5);
}

.form-termsAndCond a{
    color: inherit;
    text-decoration: none;
    font-weight: 500;

}
.section-two .contactForm .info {
    width: 70%;
    padding: auto;
    height: fit-content;
}

.section-two .contactForm .info .llamanos {
    display: flex;
    justify-content: center;
    margin-top: 5%; 
    margin-bottom: 5%;   
}

.section-two .contactForm .info .numero{
    font-size: 5em;
    font-weight: bold;
    width: 100%;
    color: var(--color3);
 
    
}

.section-two .contactForm .info .social-media{
    font-size: 5em;
    float: left;
    margin-right: 10px;
    color: var(--color3);
    
}

.section-two .contactForm .info .social-media a{
    color: inherit;
    transition: scale(5%) 2s
}

.section-two .contactForm .info .social-media a:hover{
    color: var(--color2);
    ;
}
.footer .grupo-2 .autor{
    font-size: 10px;
    text-align: right;
}

/*Footer*/

.footer{
    width: 100%;
    background-color: var(--color3);
}

.footer .grupo-1{
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-gap: 50px;
    padding: 45px 0px;
}

.footer .grupo-1 .box h5{
    color: var(--color4);
    text-transform: uppercase;
    margin-bottom: 25px;
    font-size: 20px;
}

.footer .grupo-1 .box p{
    margin-bottom: 10px;
    color: var(--color1);
}

.footer .grupo-1 .contacto{
    color: var(--color1);
    display: inline-block;
}

.footer .grupo-1 .contacto ul #icono{
    display: flex;
    margin-top: 1em;
    list-style: none;
    margin-bottom: 1em;
    align-items: center;
    gap: 10px;
}

.footer .grupo-1 .contacto ul #icono li{
    text-decoration: none;
}

.footer .grupo-1 .enlaces {
    margin-top: 1em;
    list-style: none;
    margin-bottom: 1em;
    align-items: center;
    gap: 10px;
    
}

.footer .grupo-1 .enlaces li{
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    font-size: 1em;
}

.footer .grupo-1 .enlaces a{
    text-decoration: none;
    color: var(--color1);
    margin-top: 1em;
    margin-bottom: 1em;
}


.footer .grupo-1 .box .red-social a{
    display: inline-block;
    text-decoration: none;
    width: 45px;
    height: 45px;
    line-height: 45px;
    color: var(--color1);
    margin-right: 10px;
    text-align: center;
    font-size: 2em;
    transition: all 300ms ease;
}

.footer .grupo-1 .box .red-social a:hover{
    color: var(--color4);
}

.footer .grupo-2{
    background-color: var(--color5);
    padding: 15px 10px;
    text-align: center;
    color: var(--color1);
}

.footer .grupo-2 small{
    font-size: 12px;
}

.footer .grupo-2 .autor{
    font-size: 10px;
    text-align: right;
}

/*Breakpoints*/


@media screen and (max-width: 1024px) {
    header, header.down{
        padding: 20px 40px;
    }
    
    header .btn{
        display: block;
    }
    
    header .menu{
        position: fixed;
        background-color: var(--color1);
        min-width: 33px;
        height: 100vh;
        top: 0;
        right: -100%;
        transition: 0.5s;
        transition-property: right;
    }
    
    header .menu ul{
        flex-direction: column;
    }
    
    header .menu.activate{
        right: 0;
    }
    
    header .menu .close-btn{
       position: absolute;
       top:0;
       left: 0;
       margin: 25px; 
    }
    
    header .menu a{
        display: block;
        font-size: 20px;
        margin: 20px;
        padding: 0 15px;
    }
    
    nav, article {
    width: 100%;
    height: auto;
    }
    .titulo{
        height: fit-content;
    }
    .titulo h1{
        padding-top: 10%;
        text-align: center;
    }
    .service .content{
        padding-top: -5%;
        text-align: center;
        justify-content: center;
    }
    .service .content#right{
        padding-left: 0%;
        padding-bottom: 0%;
     
    }
    .service .content p, .content#right p {
        width: 60%;
        height: fit-content;
        margin-left: 20%;
    }

    .service .content#right p{
        width: 60%;
        height: fit-content;
        margin-left: 20%;
    }

    .service input{
        width: 80%;
    }
    .section-two{
    width: 100%;
    height: fit-content;
    }
.section-two .contactForm{
    width: 90%;
    height: fit-content;
    margin-top: 10px;
    margin-bottom: 10px;
    grid-template-columns: repeat(auto-fit, minmax( 300px, 1fr));
}

.section-two .contactForm .form p{
    width: 70%;
    margin-bottom: -3%;
}

.section-two .contactForm .info .numero{
    margin-top: 0.2em;
    width: 70%;
    margin-bottom: 0.5em;
    font-size: 3.3em;
}  

.footer .grupo-1{
    width: 90%;
    grid-template-columns: repeat(1,1fr);
    grid-gap: 30px;
    padding: 35px 0px;
} 
}
    /*Lapotops y tablets*/
    
    @media only screen and (max-width:768px){
        .titulo h1{
            padding-top: 15%;
            text-align: center;
        }

        .service{
            height: fit-content;
        }
        
        .service .content, .content#right{
            padding-top: 5%;
        }
        .service .content p, .content#rigth p{
            width: 70%;
            height:fit-content;
            margin-left: 15%;
        }
        .section-two{
        height: fit-content;
    }
    .section-two .contactForm{
        margin-top: 10%;
        height: fit-content;
    }
    .section-two .contactForm .info{
        width: 100%;
        height: fit-content;
    }

    .section-two .contactForm .info .numero{
        font-size: 4em;
    }
    }
    /*Celulares*/
    
    @media (max-width:600px){
        .titulo h1{
            padding-top: 25%;
            text-align: center;
        }
        .section-main{
            font-size: 50px;
            line-height: 60px;
        }
        
        .service .content, .content#right{
            padding-top: 10%;
            align-items: center;
            text-align: center;
            justify-content: center;
        }

        .service .content p, .content#right p{
            margin: 0 auto;
            margin-top: 5%;
            margin-bottom: 5%;
            width: 70%;
            font-size: 1em;
        }
 .section-two{
        height: fit-content;
    }

    .section-two .contactForm {
        margin-left: 0px;
        width: 100%;
        height: fit-content;
    }
    .section-two .contactForm .info{
        width: 70%;
        
    }
    .section-two .contactForm .info h2{
        font-size: 1em;
    }

    .section-two .contactForm .info .numero{
        font-size: 2em;
        margin-bottom: 0.5em;

    }
    .section-two .contactForm .info .social-media{
        font-size: 2.5em;
    }
    }

    @media (max-width:375px){

   
        .section-two {
        width: 100%;
        height: fit-content;
    }
    .section-two .contactForm{
        width: 80%;
        height: fit-content;
        margin-top: 20%;
    }

    .section-two .contactForm .form .texto h2{
        font-size: 1.5em;
    }
    .section-two .contactForm .form .texto p{
        width: 70%;
        height: fit-content;
        font-size: 0.8em;
    }
    .section-two .contactForm .form{
        width: 70%;
        
    }
    .section-two .contactForm .info{
        width: 70%;
    }
    .section-two .contactForm .info h2{
        font-size: 1em;
    }
    .section-two .contactForm .info .numero{
        font-size: 1.8em;
    }
   
    .section-two .contactForm .form form .inputBox input[type="text"],
    .section-two .contactForm .form form .inputBox input[type="email"],
    .section-two .contactForm .form form .inputBox input[type="tel"],
    .section-two .contactForm .form form .inputBox textarea{
        width: 70%;
    }

    .section-two .contactForm .form form  input[type="submit"]{
    width: 70%;
    }
    }

    @media (max-width:280px){
        .titulo h1{
            padding-top: 30%;
            font-size: 1em;
            text-align: center;
        }
     .is-invalid{
        width: 70%;
        text-align:justify;
    }
    .section-two{
        width: 100%;
        height: fit-content;
    }
    .section-two .contactForm{
        width: 80%;
        height: fit-content;
        margin: 0 auto;
        padding-top: 15%;
        margin-left: -3px;
    }
    .section-two .contactForm .info{
        width: 70%;
    }
}