/* reset */
*{
padding: 0px;
margin: 0px;
box-sizing: border-box;
font-family: var(--PrimaryFontFamily);
}
html, #grid{
scroll-behavior: smooth;
}

/* vars */
:root{
--primaryColor: #00296b;
--primaryColorB: #00509D;
--secundaryColor: #ce5f14;
--secundaryColorC: #F5841F;
--color-esqueleto:#EFF3F5;
--white:#ffff;
--PrimaryFontFamily:'Poppins', sans-serif;
}

/* bottoms */
#btn a{
text-decoration: none;
color: #fff;
}
/* Styles */
.btnPrimary{
border-radius: 5px;
background-color: var(--secundaryColor);
color: #fff;
border: none;
padding: 12px;
}
.btnPrimary:hover{
border-radius: 0px;
transition: 1s ease all;
background-color: var(--primaryColorB);
cursor: pointer;
}
/* buttom secundary */
.btnSecundary{
border-radius: 5px;
background-color: var(--primaryColorB);
color: #fff;
border: none;
padding: 12px;
}
.btnSecundary:hover{
border-radius: 0px;
transition: 1s ease all;
background-color: var(--primaryColor);
cursor: pointer;
}

/* Bottom buttom sroll top */
.scrollTop{
position: fixed;
bottom: 30px;
right: 30px;
padding: 10px;
background-color: var(--primaryColor);
border-radius: 3px;
cursor: pointer;
transition: all 0.5s ease 0s;
}
.scrollTop:hover{
background-color: var(--primaryColorB);
transition: 1s;
}

/* nav */
.main-header {
height: max-content;
display: flex;
justify-content: space-between;
align-items: center;
background-color: var(--white);
}
.menuLogo{
height: 32px;
width: auto;
margin: 0 auto;
}
.main-nav {
position: fixed;
top: 0;
left: 0;
height: 100vh;
width: 100%;
margin-left: -100%;
transition: all 0.2s linear;
z-index: 100;
background-color: rgba(0, 0, 0, 0.7);
}
.main-nav.show {
margin-left: 0;
}
.nav-links {
display: flex;
flex-direction: column;
width: 70%;
height: 100%;
align-items: center;
justify-content: flex-start;
}
.link-item {
margin-top: 2rem;
color: #444444;
text-decoration: none;
font-weight: bold;
position: relative;
}
.button-menu {
z-index: 200;
width: 40px;
height: 40px;
border: none;
display: flex;
background: none;
flex-direction: column; /* Pondrá un span debajo del otro*/
align-items: center;
justify-content: center;
cursor: pointer;
}

/* 
Dibujamos una línea recta por cada span creando el tipico menu hamburguesa
*/
.button-menu span {
width: 37px;
height: 4px;
margin-bottom: 5px;
position: relative;
background: #444444;
border-radius: 3px;
transform-origin: 4px 0px;
transition: all 0.2s linear;
}

/* 
con los span dibujamos un icono de cerrar 
para mostrar cuándo la navegación este abierta 
*/
.button-menu.close span {
opacity: 1;
transform: rotate(45deg) translate(0px, 0px);
background: #ffffff;
}
.button-menu.close span:nth-child(2) {
transform: rotate(-45deg) translate(-8px, 5px);
}
.button-menu.close span:nth-child(3) {
display: none;
}
.main-header {
height: 50px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 0.4rem;
}
.main-nav {
position: fixed;
top: 0;
left: 0;
height: 100vh;
width: 100%;
margin-left: -100%;
transition: all 0.2s linear;
background-color: rgba(0, 0, 0, 0.7);
z-index: 100;
}
.main-nav.show {
margin-left: 0;
}
.nav-links {
background-color: var(--color-esqueleto);
display: flex;
flex-direction: column;
width: 70%;
height: 100%;
align-items: center;
justify-content: flex-start;
}
.link-item {
margin-top: 2rem;
color: var(--primaryColor);
text-decoration: none;
font-weight: bold;
position: relative;
}
.link-item::after {
position: absolute;
content: "";
color: var(--primaryColor);
background-color: #F37520;
bottom: -5px;
left: 0;
width: 0%;
height: 3px;
transition: 0.3s ease all;
}
.link-item:hover::after {
width: 100%;
}
.button-menu {
z-index: 200;
width: 40px;
height: 40px;
border: none;
display: flex;
background: none;
flex-direction: column;
align-items: center;
justify-content: center;
cursor: pointer;
}
.button-menu span {
width: 37px;
height: 4px;
margin-bottom: 5px;
position: relative;
background:var(--secundaryColor);
border-radius: 3px;
transform-origin: 4px 0px;
transition: all 0.2s linear;
}
.button-menu.close span {
opacity: 1;
transform: rotate(45deg) translate(0px, 0px);
background: #ffffff;
}
.button-menu.close span:nth-child(2) {
transform: rotate(-45deg) translate(-8px, 5px);
}
.button-menu.close span:nth-child(3) {
display: none;
}

/* bannerWelcome */
.hero {
width: 100%;
height: 100vh;
min-height: 600px;
max-height: 800px;
position: relative;
display: grid;
color: #fff;
place-content: center;
}
.hero::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: linear-gradient(180deg, #0000008c 0%, #0000008c 100%), url('../img/headera.jpg');
background-size: cover;
clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 95%, 0 80%);
z-index: -1;
}    

/* Eelements from  banner */
.bannerWelcome{
display: grid;
grid-template-columns: repeat(2,45%);
place-items: center;
padding: 5%;
gap: 5%;
}
.contentForm{
display: grid;
grid-template-columns: 1fr;
}
.form{
display: grid;
grid-template-columns: 1fr;
row-gap: 10px;
background-color: #00296b;
padding: 30px;
border-radius: 8px;
text-align: center;
}
.form input, textarea{
border-radius: 5px;
padding: 12px;
}
.form input, textarea:hover{
border: none;
resize: none;
outline: none;
}
                    
/* secciones del body  */
#grid{
padding: 5%;
}

/* acerdca de */
.acercaDe{
text-align: justify;
padding:5%;
}
.acercaDe p > strong{
color: #ce5f14;
}
.tables{
display: flex;
justify-content: space-evenly;
padding: 5%;
flex-wrap: wrap;
}
.cards{
background-color: var(--primaryColor);
width: 200px;
height: 100px;
text-align: center;
align-items: center;
justify-content: center;
display: flex;
color: #fff;
}
.cards:nth-child(2){
background-color: var(--primaryColorB);
}
.cards:hover{
background-color: var(--primaryColorB);
transition: 1s;
opacity: .8;
}
.acercaDe h4{
text-align: center;
}
/* albanileria */
.albañileria{
color: #ffffff;
background-image: linear-gradient(180deg, #0000008c 0%, #0000008c 100%), url('../img/obrero2.jpg');
background-position: center;
padding: 5% 8%; 
height: max-content;
display: grid;
grid-template-columns: 1fr 1fr;
justify-content: space-between;
align-items: center;
}
.albañileria h3{
text-decoration: underline var(--secundaryColor);
}
/* cards */
.cardContent{
display: grid;
grid-template-columns: 1fr;
place-items: start;  
width: 100%;
height: max-content;
border-radius: 8px;
text-align: start;
align-content: flex-end;
justify-items: end;
}
.miniCard{
width: 300px;
height: 100px;
padding: 5%;
color: #ffffff;
background-color: var(--primaryColorB);
}
.miniCard:hover{
background-color: var(--secundaryColor);
transition: 1s;
}
.titleCard{
display: grid;
grid-template-columns: 20% 80%;
column-gap: 1px;
}
.miniCard:nth-child(2){
background-color: var(--primaryColor);
}

/* aguaService */
.aguaService{
display: grid;
grid-template-columns: 1fr;
column-gap: 10px;
place-items: start;
background-color: var(--primaryColor);
color: var(--color-esqueleto);
height: max-content;
}
.textAgua{
text-align: justify;
padding: 20px;
}
.textAgua p{
margin-top: 12px ;
}
/* Modal */ /*Efecto*/
.modalmask {
position: fixed;
font-family: Arial, sans-serif;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(0,0,0,0.8);
z-index: 99999;
opacity:0;
-webkit-transition: opacity 400ms ease-in;
-moz-transition: opacity 400ms ease-in;
transition: opacity 400ms ease-in;
pointer-events: none;
}
.modalmask:target {
opacity:1;
pointer-events: auto;
}
/*Formato de la ventana*/
.modalbox{
width: 70%;
position: relative;
padding: 20px 40px;
background: var(--color-esqueleto);
color: var(--primaryColor);
border-radius:3px;
-webkit-transition: all 500ms ease-in;
-moz-transition: all 500ms ease-in;
transition: all 500ms ease-in;
}
.modalbox h2{
text-align: start;
color: var(--primaryColor);
padding: 10px;
}
.modalbox p{
text-align: justify;
padding: 15px;
font-size: 12px;
}
.modalbox button a{
color: var(--color-esqueleto);
text-decoration: none;
}
/*Movimientos*/
.movedown {
margin: 0 auto;
}
.rotate {
margin: 10% auto;
-webkit-transform: scale(-5,-5);
transform: scale(-5,-5);
}
.resize {
margin: 10% auto;
width:0;
height:0;
}
.modalmask:target .movedown{       
margin:10% auto;
}
.modalmask:target .rotate{     
transform: rotate(360deg) scale(1,1);
-webkit-transform: rotate(360deg) scale(1,1);
}
.modalmask:target .resize{
width:400px;
height:200px;
}
/*Boton de cerrar*/
.close {
background: #606061;
color: #FFFFFF;
line-height: 25px;
position: absolute;
right: 1px;
text-align: center;
top: 1px;
width: 24px;
text-decoration: none;
font-weight: bold;
border-radius:3px;
}
.close:hover {
background: var(--secundaryColor);
color: var(--color-esqueleto);
}
.btnModal a{
text-decoration: none;
color: var(--color-esqueleto);
}

/* seccion de energia */
.energiaService{
padding: 20px;
}
.textEnergia{
text-align: justify;
}
.textEnergia h1{
text-align: center;
color: var(--primaryColor);
}
.textEnergia hr{
width: 60%;
margin: 0 auto;
}
.content-cards{
width: max-content;
display: flex;
flex-wrap: wrap;
margin: 0 auto;
}
.content-cards li{ 
list-style: none;
display: flex;
background-color: var(--primaryColor);
color: #ffffff;
width: 250px;
padding: 20px;
margin: 0 auto;
}
.content-cards li:nth-child(2){
background-color: var(--secundaryColor);
}
.content-cards li:hover{
opacity: .5;
cursor: pointer;
}
.content-cards li p{
padding-left: 11px;
}

/* seccion slider  */
.contenedor{
width: 100%;
overflow: hidden;
margin-top: 30px;
}
.slider-contenedor{
width: 100%;
display: flex;
}
.contenido-slider{
width: 100%;
height: 600px;
display: flex;
justify-content: start;
align-items: center;
flex-shrink: 0;
color: #ffffff;
padding: 100px;
}
.contenido-slider div{
width: max-content;
height: max-content;
}
.contenido-slider:nth-child(1){
background: linear-gradient(180deg, #0000008c 0%, #0000008c 100%), url(../img/slider1.jpg);
}
.contenido-slider:nth-child(2){
background: linear-gradient(180deg, #0000008c 0%, #0000008c 100%), url(../img/slider2.jpg);
}
.contenido-slider:nth-child(3){
background: linear-gradient(180deg, #0000008c 0%, #0000008c 100%), url(../img/slider3.jpg);
}
.contenido-slider:nth-child(4){
background: linear-gradient(180deg, #0000008c 0%, #0000008c 100%), url(../img/slider4.jpg);
}
.contenido-slider h2{
font-weight: 300;
text-align: start;
line-height: 30px;
}
.contenido-slider a{
color: #fff;
background: var(--primaryColor);
width: max-content;
display: block;
padding: 15px 20px;
text-align: center;
border-radius: 3px;
margin-top: 20px;
text-decoration: none;
}
.contenido-slider a:hover{
cursor: pointer;
background-color: var(--secundaryColor);
transition: 1s;
}

/* seccion soldador y metalurgia */
.metalesService{
padding: 40px 80px;
background-color: var(--color-esqueleto);
display: flex;
flex-wrap: wrap-reverse;
box-shadow: 1px 1px  10px #34343486;
justify-content: space-between;
}
.textMetales{
width: 70%;
}
.contentImgG{
width: 30%;
display: grid;
align-items: center;
justify-content: end;
}
.contentImgSolador img{
width: 200px;
}

/* seccciion estructuras metalicas*/
.estructurasMetalica{
padding: 40px;
display: grid;
place-content: center;
box-shadow: 1px 1px  10px #34343486;
background-color: var(--color-esqueleto);
}

/* seccion impermeable */
.impermiabilizacion{
background: linear-gradient(180deg, #0000008c 0%, #0000008c 100%), url(../img/impermiabilizacion.jpg);
height: 450px;
display: grid;
padding: 0px 40px;
place-items: center;
box-shadow: 1px 1px  10px #34343486;
}
.textImpermiable{
color: #ffff;
}
.grid-img{
display: grid;
grid-template-columns: repeat(3,1fr);
gap: 5px;
place-content: center;
padding: 50px;
}
.imgGrid{
min-height:300px;
min-width: 300px;
}
.imgGrid:hover{
opacity: .5;
transition: .7s;
}
.imgGrid:nth-child(1){
background-image: url(../img/obrasciviles1.jpg);
}
.imgGrid:nth-child(2){
background-image: url(../img/obrasciviles2.jpg);
}
.imgGrid:nth-child(3){
background-image: url(../img/obrasciviles3.jpg);
}
.imgGrid:nth-child(4){
background-image: url(../img/obrasciviles4.jpg);
}
.imgGrid:nth-child(5){
background-image: url(../img/obrasciviles5.jpg);
}
.imgGrid:nth-child(6){
background-image: url(../img/obrasciviles6.jpg);
}
.textEstructuras{
text-align: justify;
}
.sectionEnd{
background-color: var(--color-esqueleto);
color: var(--primaryColor);
box-shadow: 1px 1px  10px #34343486;
}
.textEnd{
text-align: center;
padding: 40px;
}
.textEnd hr{
opacity: .5;
}
.textEnd p{
text-align: justify;
}

/* banner final */
.bannerTextEnd{
padding: 40px;
display: grid;
place-items: center;
background: linear-gradient(180deg, #0000008c 0%, #0000008c 100%), url(../img/bannerEnd.jpg) center;
box-shadow: 1px 1px  10px #34343486;
color: #ffff;
height: 450px;
}

/* footer */
footer{
width: 100%;
padding: 50px 0px;
background-image: url(../img/background-footer.svg);
background-size: cover;
/*background-color: #d0f0f8;
-webkit-mask-image: url("../Images/background-footer.svg");
mask-image: url("../Images/background-footer.svg");
-webkit-mask-size: cover;
mask-size: cover;*/
}
.container__footer{
display: flex;
flex-wrap: wrap;
justify-content: space-between;
max-width: 1200px;
margin: auto;
margin-top: 100px;
padding: 50px;
}
.contetnLocation{
width: 300px;
}
.box__footer{
display: flex;
flex-direction: column;
flex-wrap: wrap;
align-items: center;
}
.logo img{
width: 180px;
}
.terms{
max-width: 350px;
margin-top: 20px;
text-align: justify;
font-size: large;
}
.contact form{
display: grid;
grid-template-columns: 1fr;
row-gap: 10px;
}
.contact form input{
padding: 12px;
outline: none;
}
.links{
display: flex;
justify-content: space-evenly;
}
.links a{
text-decoration: none;
color: #343434;
}
.links a:hover{
color: var(--primaryColor);
}
.directContact{
width: max-content;
margin: 0 auto;
}
.directContact .one{
cursor: pointer;
}
.box__footer h2{
margin-bottom: 30px;
color: #343434;
font-weight: 700;
}
.box__copyright{
max-width: 1200px;
margin: auto;
text-align: center;
padding: 0px 40px;
}
.box__copyright p{
margin-top: 20px;
color: #7a7a7a;
}
.box__copyright hr{
border: none;
height: 1px;
background-color: #7a7a7a;
}

        /* seccion responsiva */
        @media (min-width:900px){
           /* menu */
           .button-menu {
            display: none;
          }
          .main-logo {
            flex-basis: 30%;
          }      
          .main-nav {
            position: static;
            margin-left: 0;
            flex-basis: 70%;
            height: 100%;
          }
          .nav-links {
            width: 100%;
            flex-direction: row;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-end;
            background-color: var(--white);
          }
          .link-item {
            display: inline-block;
            margin-top: 0;
            margin-right: 2rem;
            color: var(--primaryColor);
          }

        }

        /* seccion responsiva */
        @media (max-width:900px) {
          /* hero */
          .hero{
            height: 200vh;
            align-content: flex-start;
          }
            .bannerWelcome{
              grid-template-columns: 1fr;
            }

          /*albañileria*/
          .albañileria{
            height: 600px;
            grid-template-columns: 1fr;
            text-align: center;
          }
          .miniCard{
            height: 120px;
            padding: 10px;
          }
          .miniCard h6{
            font-size: 18px;
          }
          .titleCard {
            grid-template-columns: 20% 1fr;
          }
          .titleCard i{
            padding-top: 5px;
            padding-left: 7px;
          }
          
            /*modal*/
          .modalbox{
            width: 96%;
          }

          /* energia */
          .content-cards{
            width: 250px;
          }

          /* slider */
          .slider-contenedor{
            height: max-content;
          }
          .contenido-slider{
            width: 100%;
            padding: 0px 20px;
            align-content: center;
          }

          /* estructuras metalicas */
          .metalesService{
            padding: 5px;
            flex-direction: column-reverse;
            justify-content: space-around;
            align-items: center;
            height: 600px;
          }
          .textMetales h1{
            text-align: center;
          }

          /* banner final */
          .bannerTextEnd{
            padding: 10px;
            font-size: 15px;
            text-align: center;
          }

          /* grid de imagenes complementarias */
          .grid-img{
            display: none;
          }

          /* formulario */
          .contetnLocation, .contact form{
            margin-top: 20px;
          }
        }