* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h2{
    font-size: 2.8rem;
    color: red;
    font-family: 'Times New Roman';
    text-align: center;
    margin: auto;
    
}

body {
    font-family: 'open sans';
}

.contenedor {
    padding: 60px 0;
    width: 90%;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
}

.titulo {
    color: #246350;
    font-size: 30px;
    text-align: center;
    margin-bottom: 60px;
}

.titulo-quienes
{
    color: #246350;
    font-size: 30px;
    text-align: center;
    margin: 0 2rem;
}

/* Header */

header {
    width: 100%;
    height: 600px;
    background: #3a3839;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, hsla(330, 1%, 28%, 0.459), hsla(320, 2%, 24%, 0.664)), url(img/portada.jpg);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, hsla(340, 4%, 15%, 0.459), hsla(315, 7%, 12%, 0.664)), url(img/portada.jpg);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

nav{
    text-align: right;
    padding: 30px 50px 0 0;
}

nav > a{
    color:#fff;
    font-weight: 300;
    text-decoration: none;
    margin-right: 10px;
}

nav > a:hover{
    text-decoration: underline;
}

header .textos-header{
    display: flex;
    height: 430px;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.textos-header h1{
    font-size: 50px;
    color:#fff;
}

.textos-header h2{
    font-size: 30px;
    font-weight: 900;
    color:#fff;  
}

/*.wave{
    position: absolute;
    bottom: 0;
    width: 100%;
}

/* About us */

main .sobre-nosotros{
    padding: 30px 0 60px 0;
}
.contenedor-sobre-nosotros{
    display: flex;
    justify-content: space-evenly;

}
.contsob{
    align-items: center;
    display: flex;
    justify-content: center;
    
  
}

@media screen and (max-width:900px){

    .contsob{
        display: block;

        max-width: fit-content;
        
    }

    .imagen-about-us{
        margin: 0;
        max-width: fit-content;
    }
}


.imagen-about-us{
    width: 20%;
    text-align: center;
   
}

.sobre-nosotros .contenido-textos{
    width: 48%;
}

.contenido-textos h3{
    margin-bottom: 15px;
}

.contenido-textos h3 span{
    background: #4d0686;
    color: #fff;
    border-radius: 50%;
    display: inline-block;
    text-align: justify;
    width: 30px;
    height: 30px;
    padding: 2px;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, .5);
    margin-right: 5px;
    
}

.contenido-textos p{
    padding: 0px 0px 30px 15px;
    font-weight: 300;
    text-align: justify;
    color: black;
    font-size: 20px;
}
.conten-textos p{
    font-weight: 300;
    text-align: justify;
    color: black;
    font-size: 20px;
}

/*  Our team */

.about-services{
    background: #f2f2f2;
    padding-bottom: 30px;
}

.servicio-cont{
    display:flex;
    justify-content: space-between;
    align-items: center;
}

.servicio-ind{
    width: 28%;
    text-align: center;
}

.servicio-ind img{
    width: 90%;
}

.servicio-ind h3{
    margin: 10px 0;
}

.servicio-ind p{
    font-weight: 300;
    text-align: justify;
}

/* footer */

footer{
    background: #414141;
    padding: 60px 0 30px 0;
    margin: auto;
    overflow: hidden;
}

.contenedor-footer{
    
    display: flex;
    width: 90%;
    justify-content: space-evenly;
    margin: auto;
    padding-bottom: 50px;                                                                                                                                       
    border-bottom: 1px solid #ccc;
}

.content-foo{
    text-align: center;
}

.content-foo h4{
    color: #fff;
    border-bottom: 3px solid #5620d3;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.content-foo p{
    color: #ccc;
}

.titulo-final{
    text-align: center;
    font-size: 24px;
    margin: 20px 0 0 0;
    color: #9e9797;
}

.slider{
    width: 100%;
    margin: auto;
    overflow: hidden;
    border: 2px solid gray ;
    
}
.slider ul{
    display: flex;
    padding: 0;
    width: 300%;

    animation: cambio 20s infinite alternate;
    animation-timing-function: ease-in;   
}
.slider li{
    width: 100%;
    list-style: none;
}
.slider img{
    width: 100%;
}
.Promos{
    width: 100%;
    margin: auto;
}
.Promos img{
    width: 100%;
}
.cont-btn{
    margin: auto;
    align-items: center;
    text-align: center;
    margin: 1rem;
}

.btnpromo{
    margin: auto;
    font-size: 2rem;
    font-weight: 700;
    color: #FFF;
     text-decoration: none;
     background-color: cornflowerblue;
     padding: 0 1rem;
     border-radius: 5px;
     text-align: center;
     align-items: center;
     
}

@keyframes cambio{
    0%{margin-left: 0;}
    30%{margin-left: 0;}

    35%{margin-left: -100%;}
    65%{margin-left: -100%;}

    70%{margin-left: -200%;}
    100%{margin-left: -200%;}

}

@media screen and (max-width:900px){
    header{
        background-position: center;
    }

    .contenedor-sobre-nosotros{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .sobre-nosotros .contenido-textos{
        width: 90%;
    }

    .imagen-about-us{
        width: 90%;
    }

    /* Galeria */

    .imagen-port{
        width: 44%;
    }

    /* Clientes */

    .cards{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .cards .card{
        width: 90%;
    }

    .cards .card:first-child{
        margin-bottom: 30px;
    }

    /* servicios */

    .servicio-cont{
        justify-content: center;
        flex-direction: column;
    }

    .servicio-ind{
        width: 100%;
        text-align: center;
    }

    .servicio-ind:nth-child(1), .servicio-ind:nth-child(2){
        margin-bottom: 60px;
    }

    .servicio-ind img{
        width: 90%;
    }
}

@media screen and (max-width:500px){
    nav{
        text-align: center;
        padding: 30px 0 0 0;
    }

    nav > a{
        margin-right: 5px;
    }

    .textos-header h1{
        font-size: 35px;
    }

    .textos-header h2{
        font-size: 20px;
    }

    /* ABOUT US */

    .imagen-about-us{
        margin-bottom: 60px;
        width: 99%;
    }

    .sobre-nosotros .contenido-textos{
        width: 95%;
    }

    /* Galeria */

    .imagen-port{
        width: 95%;
    }

    /* Clients */

    .cards .card{
        height: 450px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cards .card img{
        width: 90px;
        height: 90px;
    }

    /* Footer */

    .contenedor-footer{
        flex-direction: column;
        border: none;
    }

    .content-foo{
        margin-bottom: 20px;
        text-align: center;
    }

    .content-foo h4{
        border: none;
    }

    .content-foo p{
        color: #ccc;
        border-bottom: 1px solid #f2f2f2;
        padding-bottom: 20px;
    }

    .titulo-final{
        font-size: 20px;
    }

}


/*redes*/
.redes{
    height: 200px;
}
.redes h2{
    font-family: gabriola;
    text-align: center;
    font-weight: bold;

    font-size: 30px;
    font-weight: 300;
    color:#fff;
}
.sociales{
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.sociales li{
    display: inline-block;   
}

.sociales a{
    padding: 10px;
}

.float{
	position:fixed;
	width:60px;
	height:60px;
	bottom:40px;
	right:40px;
	background-color:#25d366;
	color:#FFF;
	border-radius:50px;
	text-align:center;
    font-size:30px;
	box-shadow: 2px 2px 3px #999;
    z-index:100;
}
.float:hover {
	text-decoration: none;
	color: #25d366;
  background-color:#fff;
}

.my-float{
	margin-top:16px;
}

/*cctv*/
/*h3{
    text-align: center;
    color: brown;
    font-size: 30px;
    margin-bottom:15px ;
    padding-bottom: 1.5;
}*/

.cam {
    text-align: justify;
    font-size: 20px;
    color: black;
    padding-left: 2px;
    margin-bottom: 50px;
}



.grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    border: 2px solid gray;
  }
  
  .d-none{
    display: none;
  }
  
  .p-relative{
    position: relative;
  }
  
  .grid .item-grid .p-relative{
    height: 70%;
  }
  
  .grid .item-grid .p-relative > div:first-child{
    height: 100%;
  }
  
  .grid .item-grid .p-relative > div > img{
    width: 100%;
    height: 100%;
    display: block;
  }
  
  .grid .p-relative > div:first-child::before{
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
    transition: background-color 1s ease-in-out;
    z-index: 1;
  }
  
  .grid .p-relative > div:first-child:hover::before{
    background-color: rgba(0,0,0,0.4);
  }
  
  .grid .p-relative > div:first-child:hover + .content-icon,.content-icon:hover{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 7%;
    right: 5%;
    font-size: 17px;
    width: 35px;
    height: 35px;
    border-radius: 30%;
    z-index: 100;
  }
  
  .content-icon i{
    display: block;
  }

  .grid .item-grid > a{
    display: block;
    padding-top: 15px;
    font-weight: 700;
    padding-left: 20px;
    height: 15%;
  }
  .container{
    padding: 20px 9%;
    
  }
  @media only screen and (max-width: 1286px){
    .container, header{
      padding: 20px 2% 90px;
    }
  }
  
  @media only screen and (max-width: 769px){
    .grid{
      grid-template-columns: repeat(2, 1fr);
      grid-template-rows: repeat(2, 1fr);
    }
  
    nav > div:nth-child(3){
      display: none;
    }
  }
  
  @media only screen and (max-width: 536px){
    .grid{
      grid-template-columns: 1fr;
      grid-template-rows: 1fr;
    }
  }
  
  nav > a{
    color:#fff;
    font-weight: 600;
    text-decoration: none;
    margin-right: 10px;
  }