*{
    box-sizing: border-box;
}

h1{font-size: 3.5em;}

h2{font-size: 2.7em;}

h3{font-size: 2em;}

p{font-size: 1.25em;}

ul{list-style: none;}

html{
    scroll-behavior: smooth;
}

body{
    margin: 0;
}

button{
    font-size: 0.9em;
    font-weight: bold;
    padding: 10px 10px;
    border-radius: 10px;
    background-color: rgb(59, 39, 235);
    color: white;
    cursor: pointer;
}

button a{
    font-size: 1.5em;
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 10px;
    background-color: rgb(59, 39, 235);
    color: white;
    cursor: pointer;
    text-decoration: none;
}

button:hover{
    background-color: rgb(151, 148, 176);
}

button a:hover{
    background-color: rgb(151, 148, 176);
}

.contenedor{
    max-width: 1400px;
    margin: auto;
}

/* MOVILE NAV */

header {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0.5rem;
    background-color: #ececec;
}

.logo {
    height: 6em;
    width: 18em;
    
}

.nav-list {
    list-style-type: none;
    display: flex;
    gap: 2rem;
}

.nav-list li a {
    text-decoration: none;
    color: #1c1c1c;
    font-size: 23px;
    font-family: 'Source Sans 3', sans-serif;
    transition: 0.7s;
    font-weight: bold;
}

.nav-list li a:hover{
    color: #3F71EA;
}

.abrir-menu,
.cerrar-menu {
    display: none;
}

body{
    width: 100%;
}

@media screen and (max-width: 1025px) {
    .abrir-menu,
    .cerrar-menu {
        display: block;
        border: 0;
        font-size: 1.25rem;
        background-color: transparent;
        cursor: pointer;
    }

    .abrir-menu {
        color: #1c1c1c;
    }

    .cerrar-menu {
        color: #ececec;
    }

    .nav {
        opacity: 0;
        visibility: hidden;
        display: flex;
        flex-direction: column;
        align-items: end;
        gap: 1rem;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        background-color: #1c1c1c;
        padding: 2rem;
        box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .5);
        z-index: 1000;
    }

    .nav.visible {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: end;
    }

    .nav-list li a {
        color: #ecececec;
    }
}

/* header{
    background-color: rgb(245, 245, 245);
}

header .logo{
    margin: 0;
    padding: 25px 30px;
    font-weight: bold;
    height: 5.625em;
    width: 15em;
}

header .contenedor{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

header .nav-list{
    display: none;
    flex-direction: column;
    text-align: center;
    padding-bottom: 25px;
    top: 0;
    right: 0;
}



.contenedor i{
    padding-right: 20px;
    font-size: 30px;
}

header .nav-list a{
    padding: 5px 12px;
    text-decoration: none;
    font-weight: bold;
    color: black;
}

.contenedor2 {
    width: 100%;
    position: absolute;
    background-color: rgb(245, 245, 245);
    height: 0px;

}

 header .contenedor2 .nav-list2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background-color: white;
}

header .contenedor2 .nav-list2 a{
    padding: 10px 20px;
    font-size: 20px;
}

header .nav-list a:hover{
    color: rgb(59, 39, 235);
}
 */


/* PORTADA */

#portada{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    height: 90vh;
    background-image: url("Portada/img_portada.jpeg");
    color: white;
    background-repeat: no-repeat;
    background-size: cover;
} 

#portada h1{
    font-size: 40px;
}

/* MISIÓN Y VISIÓN */

#Conócenos .contenedor{
    text-align: center;
    padding: 20px 12px;
}

#Conócenos h2{
    color: black;
    font-family: 'Source Sans 3', sans-serif;
    text-align: center;
}

#Conócenos .contenedor h3{
    text-align: center;
    font-size: 25px;
    font-family: 'Source Sans 3', sans-serif;

}

.contenedor-vision{
    padding-top: 40px;
}

.contenedor-gma img{
    width: 100%;
}

.contenedor-gma p{
    text-align: justify;
}

.mision-vision p{
    text-align: justify;
}

.contenedor-mision img{
    width: 100%;
}

.contenedor-vision img{
    width: 100%;
}

#Conócenos hr{
    width: 95%;
}

/* SERVICIOS */ 

#Servicios{
    background-color: hsl(0, 0%, 95%);
    text-align: center;
}

#Servicios .contenedor{
    padding: 30px 12px;
}

#Servicios .secciones{
   background-position: center center;
   background-size: cover;
   padding: 50px 0px;
   margin: 30px;
   border-radius: 15px;
   color: white;
   font-family: 'Source Sans 3', sans-serif;

}

#Servicios .contenedor h2{
    color: black;     
    font-family: 'Source Sans 3', sans-serif;
 
}

.secciones:first-child{
    background-image: url(Servicios/Electricidad/1.jpeg);
}

.secciones:nth-child(2){
    background-image: url(Servicios/Gasfitería/1.jpg);
}

.secciones:nth-child(3){
    background-image: url(Servicios/Metalmecánica/1.avif);
}

.secciones:nth-child(4){
    background-image: url(Servicios/1.jpg);
}

.secciones:nth-child(5){
    background-image: url(Servicios/Pintura/1.jpeg);
}

/* CLIENTES */

.contenedor h2{
    color: black;      
    font-family: 'Source Sans 3', sans-serif;

}

#clientes .contenedor{
    text-align: center;
}

#clientes div img{
    margin: 20px;
}

/* FOOTER */ 

.footer-distributed {
    background-color: #2d2a30;
    box-sizing: border-box;
    width: 100%;
    text-align: left;
    font: bold 16px sans-serif;
    padding: 50px 50px 60px 50px;
    margin-top: 80px;
}

.footer-distributed .footer-left, .footer-distributed .footer-center, .footer-distributed .footer-right {
    display: inline-block;
    vertical-align: top;
}

/* Footer left */

.footer-distributed .footer-left {
    width: 30%;
}

.footer-distributed h3 {
    color: #ffffff;
    font-size: clamp(20px, 80%, 36px);    
    margin: 0;
    font-family: 'Oswald', sans-serif;

}

.footer-distributed h3 span {
    color: #ffffff;
}

/* Footer links */

.footer-distributed .footer-links {
    color: #ffffff;
    margin: 20px 0 12px;
}

.footer-distributed .footer-links a {
    display: inline-block;
    line-height: 1.8;
    text-decoration: none;
    color: inherit;
}

.footer-distributed .footer-company-name {
    color: #8f9296;
    font-size: 14px;
    font-weight: normal;
    margin: 0;
}

/* Footer Center */

@media (max-height:820px) {
    footer {
        position: static;
    }
    
}

.footer-distributed .footer-center {
    width: 35%;
}

.footer-distributed .footer-center i {
    background-color: #33383b;
    color: #ffffff;
    font-size: 25px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    text-align: center;
    line-height: 42px;
    margin: 10px 15px;
    vertical-align: middle;
}

.footer-distributed .footer-center i.fa-envelope {
    font-size: 17px;
    line-height: 38px;
}

.footer-distributed .footer-center p {
    display: inline-block;
    color: #ffffff;
    vertical-align: middle;
    margin: 0;
}

.footer-distributed .footer-center p span {
    display: block;
    font-weight: normal;
    font-size: 14px;
    line-height: 2;
}

.footer-distributed .footer-center p a {
    color: #e0ac1c;
    text-decoration: none;
    font-size: 0.9rem;
}



/* Footer Right */

.footer-distributed .footer-right {
    width: 30%;
}

.footer-distributed .footer-company-about {
    line-height: 20px;
    color: #92999f;
    font-size: 13px;
    font-weight: normal;
    margin: 0;
}

.footer-distributed .footer-company-about span {
    display: block;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-distributed .footer-icons {
    margin-top: 25px;
}

.footer-distributed .footer-icons a {
    display: inline-block;
    width: 35px;
    height: 35px;
    cursor: pointer;
    background-color: #33383b;
    border-radius: 2px;
    font-size: 20px;
    color: #ffffff;
    text-align: center;
    line-height: 35px;
    margin-right: 3px;
    margin-bottom: 5px;
}

.footer-distributed .footer-icons a:hover {
    background-color: #3F71EA;
}

.footer-links a:hover {
    color: #3F71EA;
}

@media (max-width: 820px) {
    .footer-distributed .footer-left, .footer-distributed .footer-center, .footer-distributed .footer-right {
        display: block;
        width: 100%;
        margin-bottom: 40px;
        text-align: center;
    }
    .footer-distributed .footer-center i {
        margin-left: 0;
    }
}

@media (min-width: 1025px){

    /* CABEZAL - MENÚ */

    /* header{
        position: fixed;
        width: 100%;
        box-shadow: 0 4px 5px rgba(0, 0, 0, 0.5);
    }
    
    header .contenedor{
        flex-direction: row;
        justify-content: space-between;
    } 

    header .logo{
        margin: 0;
        padding: 25px 30px;
        font-weight: bold;
        height: 7em;
        width: 17em;
    }

    header .nav-list{
        display: flex;
        flex-direction: row;
        padding-bottom: 0;
        font-size: 20px;
        font-family: 'Source Sans 3', sans-serif;
        
    }

    .contenedor i{
        display: none;
    }

    header a:hover{
        transition: 0.7s;
        scale: 1.2;
    }

    .abrir-menu,
    .cerrar-menu {
    display: none;
    } */

    /* PORTADA*/

    #portada{
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        height: 100vh;
        background-image: url("Portada/img_portada.jpeg");
        color: white;
        background-repeat: no-repeat;
        background-size: cover;
    } 

    #portada h1{
        font-size: 60px;
    }
    
    /* SOBRE - NOSOTROS (MISIÓN-VISIÓN) */ 

    #Conócenos .contenedor{
        display: flex;
        flex-direction: column;
    }

    .mision-vision{
        margin-top: 190px;
        display: flex;
        justify-content: space-around;
        height: 21.875em;
        align-items: center;   
        border-radius: 10px;
    }

    .contenedor-mision{
        width: 600px;
        margin: 15px;
        font-family: 'Source Sans 3', sans-serif;

    }

    .contenedor-mision img{
        height: 450px;
    }

    .contenedor-vision{
        width: 600px;
        margin: 15px;
        font-family: 'Source Sans 3', sans-serif;
        padding-top: 0;
        margin-bottom: 39px;
    }

    #Conócenos hr{
        width: 80%;
    }

    /* SOBRE - NOSOTROS (Descripción) */ 

    .contenedor-gma{
        display: flex;
        justify-content: space-around;
        margin-bottom: 30px;
        align-items: center;
    }

    .contenedor-gma img{
        width: 550px;
        border: solid rgb(255, 255, 255) 2px;
        border-radius: 10px;
        border: solid black 1px;
        margin-left: 60px;
    }

 

    .contenedor-gma p{
        width: 23.125em;
        font-size: 1.25em;
        text-align: justify;
        font-family: 'Source Sans 3', sans-serif;
        margin-right: 60px;
    }

    /* SERVICIOS */

    .servicios_secciones{
        display: flex;
        justify-content: center;
    }

    .servicios_secciones .secciones {
        width: 230px;
    }

    .servicios_secciones .secciones:hover {
        transition: 0.5s;
        scale: 1.2;
    }

  
    .secciones h3{
        -webkit-text-stroke: 2px black;
         color: transparent;
         color: white;
         font-size: 30px;
    }

    /*¨CLIENTES */

    .contenedor .tipos_clientes{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    /* FOOTER */

    .footer-distributed {
        background-color: #2d2a30;
        box-sizing: border-box;
        width: 100%;
        text-align: left;
        font: bold 16px sans-serif;
        padding: 50px 50px 60px 50px;
        margin-top: 80px;
    }
    
    .footer-distributed .footer-left, .footer-distributed .footer-center, .footer-distributed .footer-right {
        display: inline-block;
        vertical-align: top;
    }
    
    /* Footer left */
    
    .footer-distributed .footer-left {
        width: 30%;
    }
    
    .footer-distributed h3 {
        color: #ffffff;
        font: bold 36px sans-serif;
        margin: 0;
    }
    
    .footer-distributed h3 span {
        color: #ffffff;
    }
    
    /* Footer links */
    
    .footer-distributed .footer-links {
        color: #ffffff;
        margin: 20px 0 12px;
    }
    
    .footer-distributed .footer-links a {
        display: inline-block;
        line-height: 1.8;
        text-decoration: none;
        color: inherit;
    }
    
    .footer-distributed .footer-company-name {
        color: #8f9296;
        font-size: 14px;
        font-weight: normal;
        margin: 0;
    }
    
    /* Footer Center */

    @media (max-height:820px) {
        footer {
            position: static;
        }
        
    }
    
    .footer-distributed .footer-center {
        width: 35%;
    }
    
    .footer-distributed .footer-center i {
        background-color: #33383b;
        color: #ffffff;
        font-size: 25px;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        text-align: center;
        line-height: 42px;
        margin: 10px 15px;
        vertical-align: middle;
    }
    
    .footer-distributed .footer-center i.fa-envelope {
        font-size: 17px;
        line-height: 38px;
    }
    
    .footer-distributed .footer-center p {
        display: inline-block;
        color: #ffffff;
        vertical-align: middle;
        margin: 0;
    }
    
    .footer-distributed .footer-center p span {
        display: block;
        font-weight: normal;
        font-size: 14px;
        line-height: 2;
    }
    
    .footer-distributed .footer-center p a {
        color: #e0ac1c;
        text-decoration: none;
     
    }
    
    /* Footer Right */
    
    .footer-distributed .footer-right {
        width: 30%;
    }
    
    .footer-distributed .footer-company-about {
        line-height: 20px;
        color: #92999f;
        font-size: 13px;
        font-weight: normal;
        margin: 0;
    }
    
    .footer-distributed .footer-company-about span {
        display: block;
        color: #ffffff;
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 20px;
    }
    
    .footer-distributed .footer-icons {
        margin-top: 25px;
    }
    
    .footer-distributed .footer-icons a {
        display: inline-block;
        width: 35px;
        height: 35px;
        cursor: pointer;
        background-color: #33383b;
        border-radius: 2px;
        font-size: 20px;
        color: #ffffff;
        text-align: center;
        line-height: 35px;
        margin-right: 3px;
        margin-bottom: 5px;
    }
    
    .footer-distributed .footer-icons a:hover {
        background-color: #3F71EA;
    }
    
    .footer-links a:hover {
        color: #3F71EA;
    }

    @media (max-width: 820px) {
        .footer-distributed .footer-left, .footer-distributed .footer-center, .footer-distributed .footer-right {
            display: block;
            width: 100%;
            margin-bottom: 40px;
            text-align: center;
        }
        .footer-distributed .footer-center i {
            margin-left: 0;
        }
    }
    
}