*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

body{
    font-family: 'Arial', sans-serif;
    background: #dfdddd;
}
/*-menu*/
header{
    width: 100%;
    height: 80px;
    background: #ffffff;
    border-bottom: 4px solid #4a7cbc;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
}

.container-header{
    width: 100%;
    max-width: 1220px;
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: auto;
}

.container-logo img {
    width: 60px;
    margin: 10px 200px;
}

.menu{
    position: absolute;
    right: 10px;
    margin-top: 20px;
}

.menu ul{
    display: flex;
}

.menu ul li a {
    color: #5e5d5e;
}

.menu > ul li{
    list-style: none;
    font-size: 15px;
    font-weight: bold;
    color: #868686;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-top: 4px solid transparent;
    cursor: pointer;
    transition: border 300ms;
    position: relative;
}

.menu > ul > li:hover{
    border: 1px solid transparent;
    border-top: 4px solid #4a7cbc;
}

.menu ul li label,
.menu ul li span{
    color: #868686;
}

.menu ul li span{
    font-size: 14px;
    position: relative;
}

.menu ul li label{
    font-size: 22px;
    position: relative;
    top: -6px;
}

.menu ul li ul{
    width: 220px;
    position: absolute;
    top: 50px;
    left: 0;
    flex-direction: column;
    border: 1px solid #b9b9b9;
    background: white;
    border-bottom: 3px solid #4a7cbc;;
    padding: 10px;
}

.menu ul li ul li{
    padding: 12px 20px;
    border-bottom: 1px solid #b9b9b9;
    font-weight: 100;
    font-size: 14px;
    position: relative;
}

.menu ul li ul li:hover{
    background: #FAFAFA;
}

.menu ul li ul li ul{
    position: absolute;
    left: 207px;
    top: 0;
}

.icon-menu{
    display: none;
}

main{
    width: 100%;
    max-width: 1220px;
    margin: auto;
    position: relative;
    top: 100px;
}

/*------------------------------------ slider Principal-----------------------------------------------------*/
ul, ol{
    list-style: none;
}

.slideshow{
    width: 100%;
    position: relative;
}

.slider li, ul{
    width: 100%;
}

.slider li img{
    width: 100%;
    margin-top: 80px;
}

/*------------------------ servicios cards----------------------------*/
.container{
    margin-top: 100px;
    width: 100%;
    max-width: 1200px;
    height: 430px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 900px;
  }
  
  .container .card{
    background-color: white;
    width: 330px;
    height: 400px;
    border-radius: 40px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin: 20px;
    text-align: center;
    transition: all 0.25s;
  }
  
  .container .card:hover{
    transform: translateY(-15px);
    box-shadow: 0 12px 16px rgba(0, 0, 0, 0.2);
  }
  
  .container .card img{
    width: 330px;
    height: 220px;
  }
  
  
  .container .card h4{
    font-weight: 600;
  }
  
  .container .card p{
    margin-top: 5px;
    padding: 0 1rem;
    font-size: 16px;
    font-weight: 300;
  }
  
  /*** ESTILOS BOTÓN SLIDE CLOSE ***/
  .ov-btn-slide-close {
    margin-top: 20px;
    background: #fff; 
    color: #4a7cbc; 
    border: 2px solid #4a7cbc; 
    padding: 5px 30px;
    border-radius: 10px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: inline-block;
  }
  .ov-btn-slide-close:before, .ov-btn-slide-close:after {
    content: "";
    z-index: -1;
    position: absolute;
    width: 50%;
    height: 100%;
    top: 0;
    left: -50%;
    background-color: #4a7cbc; 
    -webkit-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
  }
  .ov-btn-slide-close:after {
    left: 100%;
  }
  .ov-btn-slide-close:hover {
    color: #fff; 
  }
  .ov-btn-slide-close:hover:before {
    left: 0;
  }
  .ov-btn-slide-close:hover:after {
    left: 50%;
  }
  /*------------------- detalle hover-----------------------------*/
  .container-det{
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0px;
  visibility: hidden;
  opacity: 0;
  transition: all 600ms;
  z-index: 100;
  }
  
  .container-det:target{
  background: rgba(0,0,0,0.8);
  visibility: visible;
  opacity: 1;
  }
  
  .container-det:target .popup{
  top:50%;
  left: 50%;
  transform: rotate(0deg) translate(-50%, -50%);
  visibility: visible;
  }
  
  .popup{
  width: 100%;
  max-width: 800px;
  height: 500px;
  position: relative;
  display: flex;
  background: white;
  visibility: hidden;
  top: -80%;
  left: -80%;
  transform: rotate(90deg) translate(-150% , 230%);
  transition: all 600ms;
  }
  
  .img1{
  width: 50%;
  background-image: url(../img/servicios/cctv.jpg);
  background-size: cover;
  background-position: center;
  }
  
  .img2{
  width: 50%;
  background-image: url(../img/servicios/datacenter.jpg);
  background-size: cover;
  background-position: center;
  }
  
  .img3{
  width: 50%;
  background-image: url(../img/servicios/reparacion.jpg);
  background-size: cover;
  background-position: center;
  }
  
  .img4{
  width: 50%;
  background-image: url(../img/servicios/websites.jpg);
  background-size: cover;
  background-position: center;
  }
  
  .img5{
  width: 50%;
  background-image: url(../img/servicios/venta-renta.jpg);
  background-size: cover;
  background-position: center;
  }
  
  .img6{
  width: 50%;
  background-image: url(../img/servicios/licenciamiento.jpg);
  background-size: cover;
  background-position: center;
  }

  .img7{
    width: 50%;
    background-image: url(../img/servicios/venta.jpg);
    background-size: cover;
    background-position: center;
    }
  
  
  .context{
  width: 60%;
  padding: 50px;
  overflow-y: auto;
  }
  
  .context h1{
  font-size: 30px;
  }
  
  .context p{
  margin-top: 20px;
  font-size: 16px;
  line-height: 150%;
  }
  
  .btn-close-popup{
  width: 50px;
  height: 50px;
  position: absolute;
  right: -20px;
  top: -20px;
  padding: 20px;
  background: #4a7cbc;
  color: white;
  border-radius: 50%;
  line-height: 10px;
  }
  
  /*** ESTILOS BOTÓN GROW ELLIPSE ***/
  .botom{
  margin-top: 50px;
  text-align: center;
  }
  
  .ov-btn-grow-ellipse {
  
  background: #fff; 
  color: #4a7cbc; 
  border: 2px solid #4a7cbc; 
  padding: 10px 80px;
  border-radius: 20px; 
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: inline-block;
  }
  
  .ov-btn-grow-ellipse:hover {
  color: #fff;
  }
  
  .ov-btn-grow-ellipse::after {
  content: "";
  background: #4a7cbc; 
  position: absolute;
  z-index: -1;
  padding: 10px 80px;
  display: block;
  border-radius: 50%;
  left: -50%;
  right: -50%;
  top: -150%;
  bottom: -150%;
  transform: scale(0, 0);
  transition: all 0.4s ease;
  }
  
  .ov-btn-grow-ellipse:hover::after {
  transition: all 0.6s ease-out;
  transform: scale(1, 1);
  }

/*---------------------------------------footer-----------------------------------------*/
footer{
    width: 100%;
    padding: 50px 0px;
    background-image: url(../img/background-footer.svg);
    background-size: cover;
}

.container__footer{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    margin-top: 100px;
}

.box__footer{
    display: flex;
    flex-direction: column;
    padding: 40px;
}

.box__footer .logo img{
    width: 300px;
    height: auto;
}

.box__copyright .mediospago img{
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.box__copyright .mediospago .mediospago2{
    width: 120px;
    height: 60px;
    object-fit: cover;
}

.box__footer .terms{
    max-width: 350px;
    margin-top: 20px;
    font-weight: 500;
    color: #9b9a9b;
    font-size: 18px;
}

.box__footer h2{
    margin-bottom: 10px;
    color: #4a7cbc;
    font-weight: 700;
}

.box__footer h3{
    size: 10px;
    margin-bottom: 10px;
    color: #616161;
    font-weight: 700;
}

.box__footer p{
    margin-bottom: 10px;
    color: #9b9a9b;
    font-weight: 700;
}

.box__copyright h2{
    margin-bottom: 5px;
    color: #4a7cbc;
    font-weight: 700;
}

.box__footer a{
    margin-top: 10px;
    color: #9b9a9b;
    font-weight: 600;
}

.box__footer a:hover{
    opacity: 0.8;
}

.box__footer a .fab{
    font-size: 20px;
}

.box__copyright{
    max-width: 1200px;
    margin: auto;
    text-align: center;
    padding: 0px 40px;
}

.box__copyright p{
    margin-top: 20px;
    color: #9b9a9b;
}

.box__copyright hr{
    border: none;
    height: 1px;
    background-color: #9b9a9b;
}


@media all and (max-width: 900px){
    header{
        height: 60px;
    }
    
    .container-logo img {
        width: 45px;
        margin: 5px 20px;
    }
    
    .icon-menu{
        display: block;
        position: absolute;
        right: 20px;
        top: 10px;
        font-size: 30px;
    }
    
    body{
        transition: all 300ms;
    }
    
    .body2{
        transform: translateX(-300px);
    }

    .menu{
        width: 300px;
        height: 100vh;
        position: fixed;
        top: 0px;
        right: -300px;
        background: #4a7cbc;
        margin-top: 0px;
        overflow-y: scroll;
    }

    .menu ul li a {
        color: #ffffff;
    }
    
    .menu ul li span {
        color: #ffffff;
    }

    .menu ul {
        flex-direction: column;
    }
    
    .menu ul li{
        padding: 10px 20px;
    }
    
    .menu ul li ul{
        top: 0;
        border-bottom: 1px solid transparent;
        background: #2D2F30;
    }
    
    .menu ul li:hover{
        border: 1px solid transparent;
        border-top: 4px solid transparent;
    }
    
    .menu ul li ul{
        width: 100%;
        position: relative;
        border: none;
        padding: 2px; 
    }
    
    .menu ul li ul li{
        border-bottom: 1px solid #414141;
    }
    
    .menu ul li ul li:hover{
        background: #363636; 
    }
    
    .menu ul li ul li ul{
        width: 100%;
        position: relative;
        left: 0px;
        top: 6px;
    }

    .slider li img{
        width: 100%;
        margin-top: 60px;
    }

    .container{
        margin-bottom: 1300px;
      }
}
@media all and (max-width: 780px){
    
    header{
        height: 60px;
    }
    
    .container-logo img {
        width: 45px;
        margin: 5px 20px;
    }
    
    .icon-menu{
        display: block;
        position: absolute;
        right: 20px;
        top: 10px;
        font-size: 30px;
    }
    
    body{
        transition: all 300ms;
    }
    
    .body2{
        transform: translateX(-300px);
    }

    .menu{
        width: 300px;
        height: 100vh;
        position: fixed;
        top: 0px;
        right: -300px;
        background: #4a7cbc;
        margin-top: 0px;
        overflow-y: scroll;
    }

    .menu ul li a {
        color: #ffffff;
    }
    
    .menu ul li span {
        color: #ffffff;
    }

    .menu ul {
        flex-direction: column;
    }
    
    .menu ul li{
        padding: 10px 20px;
    }
    
    .menu ul li ul{
        top: 0;
        border-bottom: 1px solid transparent;
        background: #2D2F30;
    }
    
    .menu ul li:hover{
        border: 1px solid transparent;
        border-top: 4px solid transparent;
    }
    
    .menu ul li ul{
        width: 100%;
        position: relative;
        border: none;
        padding: 2px; 
    }
    
    .menu ul li ul li{
        border-bottom: 1px solid #414141;
    }
    
    .menu ul li ul li:hover{
        background: #363636; 
    }
    
    .menu ul li ul li ul{
        width: 100%;
        position: relative;
        left: 0px;
        top: 6px;
    }

    .slider li img{
        width: 100%;
        margin-top: 60px;
    }

    .container{
        margin-bottom: 1300px;
    }

/**************/
.container-det{
    width: 100%;
}

.popup{
    width: 90%;
    }
    
    .ov-btn-grow-ellipse {
  
        padding: 10px 20px;
        }
}

@media all and (max-width: 490px){
    header{
        width: 100%;
    }
    
    .container{
        margin-bottom: 2200px;
        margin-left: 0px;
    }

/**************/
.container-det{
    width: 100%;
}

.popup{
    width: 90%;
    }

    
    .container{
        margin-bottom: 2700px;
      }

}

@media screen and (max-width: 380px){
    
body{
    margin-right: -200px;
}
.container{
    margin-bottom: 2700px;
  }
}