/* Reset de estilos para eliminar márgenes y padding por defecto */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Estilo básico para el cuerpo del documento */
  body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
     color: #333;
    margin: 0;
 
    padding: 0;
  }
  
  /* Contenedor principal */
  .container {
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
  }
  
  /* Encabezados */
  h1, h2, h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
  }
  
  /* Estilo para enlaces */
  a {
    color: #007bff;
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  /* Estilo para botones */
  .btn {
    display: inline-block;
    background:;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
  }
  
  .btn:hover {
   
  }
  
  /* Estilo para la barra de navegación */
  .navbar {
    background-color: #333;
    overflow: hidden;
  }
  
  .navbar a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
  }
  
  .navbar a:hover {
    background-color: #ddd;
    color: black;
  }

h2{
    font-size: 50px;
    font-weight: 200;
}

.seccion{
    padding-top: 120px;
    padding-bottom: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.texto {
    color: #2b2c28;
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 300;
    max-width: 700px;
    
}

.vision{
    background-color: #eff4fb;
}


.footer {
    background-color: #566d8f;
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Alinea verticalmente al centro */
    flex-wrap: wrap; /* Permite que los elementos se envuelvan cuando no hay suficiente espacio */
    justify-content: space-between; /* Distribuye los elementos uniformemente con espacio entre ellos */
  }

  .footer-section {
    text-align:  ;
  }

  .footer-section h3 {
    margin-bottom: 10px;
  }

  .footer-section ul {
    list-style-type: none;
    padding: 0;
  }

  .footer-section ul li {
    margin-bottom: 5px;
  }
.footer-section h1{
    font-weight: 400;
    border: none;
}

.footer-section ul li a{
    color: rgba(255, 255, 255, 0.5);
}

.txt-servicios-bg {
    color:  white;
}

.section-services{
    background-image: linear-gradient(rgba(86, 109, 143, 0.8), rgba(86, 109, 143, 0.8)),url('building-construction.jpg');
    background-size: auto, cover;
 
    background-color: #566d8f;
  
    background-position: 50% 50%;
}


/*MENU*/

nav{
    position: fixed;
    z-index: 99;
    width: 100%;
    
    background: white;
    border-bottom: 1px solid #b0b0b0;
  }
  nav .wrapper{
    position: relative;
    max-width: 1300px;
    padding: 0px 30px;
    height: 90px;
    line-height: 70px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .wrapper .logo a{
    color: #f2f2f2;
    font-size: 30px;
    font-weight: 600;
    text-decoration: none;
  }
  .wrapper .nav-links{
    display: inline-flex;
  }
  .nav-links li{
    list-style: none;
  }
  .nav-links li a{
    color: #397897;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    padding: 9px 15px;
    border-radius: 5px;
    font-weight: 400;
    letter-spacing: 0.5px;
  }

  .activo{
    border-bottom: 2px solid #397897;
  }
  
  .nav-links li a:hover{
    background: #6799b2;
    color: white;
  }
  .nav-links .mobile-item{
    display: none;
  }
  .nav-links .drop-menu{
    position: absolute;
    background: white;
    width: 235px;
    line-height: 45px;
    top: 85px;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
  }
  .nav-links li:hover .drop-menu,
  .nav-links li:hover .mega-box{
    transition: all 0.3s ease;
    top: 70px;
    opacity: 1;
    visibility: visible;
  }
  .drop-menu li a{
    width: 100%;
    display: block;
    padding: 0 0 0 15px;
    font-weight: 400;
    border-radius: 0px;
  }
  .mega-box{
    position: absolute;
    left: 0;
    width: 100%;
    padding: 0 30px;
    top: 85px;
    opacity: 0;
    visibility: hidden;
  }
  .mega-box .content{
    background: #242526;
    padding: 25px 20px;
    display: flex;
    width: 100%;
    justify-content: space-between;
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
  }
  .mega-box .content .row{
    width: calc(25% - 30px);
    line-height: 45px;
  }
  .content .row img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .content .row header{
    color: #f2f2f2;
    font-size: 20px;
    font-weight: 500;
  }
  .content .row .mega-links{
    margin-left: -40px;
    border-left: 1px solid rgba(255,255,255,0.09);
  }
  .row .mega-links li{
    padding: 0 20px;
  }
  .row .mega-links li a{
    padding: 0px;
    padding: 0 20px;
    color: #d9d9d9;
    font-size: 17px;
    display: block;
  }
  .row .mega-links li a:hover{
    color: #f2f2f2;
  }
  .wrapper .btn{
    color: black;
    font-size: 20px;
    cursor: pointer;
    display: none;
  }
  .wrapper .btn.close-btn{
    position: absolute;
    right: 30px;
    top: 10px;
  }
  
  @media screen and (max-width: 1150px) {
    .wrapper .btn{
      display: block;
    }
    .wrapper .nav-links{
      position: fixed;
      height: 100vh;
      width: 100%;
      max-width: 350px;
      top: 0;
      left: -100%;
      background: white;
      display: block;
      padding: 50px 10px;
      line-height: 50px;
      overflow-y: auto;
      box-shadow: 0px 15px 15px rgba(0,0,0,0.18);
      transition: all 0.3s ease;
    }
    /* custom scroll bar */
    ::-webkit-scrollbar {
      width: 10px;
    }
    ::-webkit-scrollbar-track {
      background: #242526;
    }
    ::-webkit-scrollbar-thumb {
      background: #3A3B3C;
    }
    #menu-btn:checked ~ .nav-links{
      left: 0%;
    }
    #menu-btn:checked ~ .btn.menu-btn{
      display: none;
    }
    #close-btn:checked ~ .btn.menu-btn{
      display: block;
    }
    .nav-links li{
      margin: 15px 10px;
    }
    .nav-links li a{
      padding: 0 20px;
      display: block;
      font-size: 20px;
    }
    .nav-links .drop-menu{
      position: static;
      opacity: 1;
      top: 65px;
      visibility: visible;
      padding-left: 20px;
      width: 100%;
      max-height: 0px;
      overflow: hidden;
      box-shadow: none;
      transition: all 0.3s ease;
    }
    #showDrop:checked ~ .drop-menu,
    #showMega:checked ~ .mega-box{
      max-height: 100%;
    }
    .nav-links .desktop-item{
      display: none;
    }
    .nav-links .mobile-item{
      display: block;
      color: #397897;
      font-size: 20px;
      font-weight: 300;
      padding-left: 20px;
      cursor: pointer;
      border-radius: 5px;
      transition: all 0.3s ease;
      font-family: 'Roboto', sans-serif;
    }
    .nav-links .mobile-item:hover{
      background: white;
    }
    .drop-menu li{
      margin: 0;
    }
    .drop-menu li a{
      border-radius: 5px;
      font-size: 18px;
    }
    .mega-box{
      position: static;
      top: 65px;
      opacity: 1;
      visibility: visible;
      padding: 0 20px;
      max-height: 0px;
      overflow: hidden;
      transition: all 0.3s ease;
    }
    .mega-box .content{
      box-shadow: none;
      flex-direction: column;
      padding: 20px 20px 0 20px;
    }
    .mega-box .content .row{
      width: 100%;
      margin-bottom: 15px;
      border-top: 1px solid rgba(255,255,255,0.08);
    }
    .mega-box .content .row:nth-child(1),
    .mega-box .content .row:nth-child(2){
      border-top: 0px;
    }
    .content .row .mega-links{
      border-left: 0px;
      padding-left: 15px;
    }
    .row .mega-links li{
      margin: 0;
    }
    .content .row header{
      font-size: 19px;
    }
  }
  nav input{
    display: none;
  }
  
  .body-text{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    padding: 0 30px;
  }
  .body-text div{
    font-size: 45px;
    font-weight: 600;
  }
 
  @media screen and (max-width: 768px) {
    .logo a img{
      width: 200px !important;
      margin-left: -10px;
      transition: none; /* Deshabilita las transiciones que afectan el tamaño */
      margin-top: 30px !important;
      
    }
    .menu-btn{
        margin-top: 15px;
    }
    .perfil-texto{
        text-align: center;
        margin-top: -30px;
    }
    .texto{
        padding-left: 15px;
        padding-right: 15px;
        text-align: center;
    }
    .text-proyectos{
        font-size: 40px !important;
    }
    .perfil-texto{
        font-size: 50px;
        border: none;
    }
    .nav-links{

    }

}

@media screen and (max-width: 1300px){
  .nav-links{
      width: auto;
      margin-left: ;
  }
  .wrapper{
    padding-right: 0px !important;
  }
  .nav-links{
    padding-right: 0px !important;

  }
  .two{
    display: none;
  }
  
}

@media screen and (max-width: 900px){
  .yutu{
    width: auto;
  }
  
}
 

 /* Estilos generales para el contenedor */
.container {
  display: flex;  
  flex-wrap: wrap;  
  gap: 20px; 
  justify-content: center;  
}

/* Estilos para cada tarjeta */
.card {
  width: 300px;  
  border: 1px solid #ccc;  
  border-radius: 8px;  
  overflow: hidden;  
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  
  transition: transform 0.3s ease; 
  padding: 10px;
  background-color: white;
}

.card:hover {
  transform: translateY(-5px); /* Efecto de elevación al hacer hover */
}

/* Estilos para la imagen dentro de cada tarjeta */
.card img {
  width: 100%; /* Ancho completo dentro de la tarjeta */
  height: auto; /* Altura automática según el ancho */
  display: block; /* Asegura que la imagen se comporte como bloque */
  border-top-left-radius: 8px; /* Borde redondeado superior izquierdo */
  border-top-right-radius: 8px; /* Borde redondeado superior derecho */
  padding: 20px;
}

/* Estilos para el contenido de cada tarjeta */
.card-content {
  padding: 20px; /* Espaciado interno */
}

.card-content h3 {
  color: #566d8f;
  font-size: 1.2em; /* Tamaño del título */
  margin-bottom: 10px; /* Margen inferior */
}

.card-content p {
  font-size: 1em; /* Tamaño del texto */
  color: #666; /* Color del texto */
  margin-bottom: 0; /* Elimina el margen inferior del párrafo */
}


.text-proyectos{
  font-weight: 400 !important;
  font-family: 'Roboto', sans-serif;
}

.txt-servicios-bg{
  max-width: 1200px;
}



/*TARJETAS*/
.contenedor-tarjetas {
  display: flex;
  justify-content: center;
  gap: 20px; /* Espacio entre las tarjetas */
  padding: 20px;
  box-sizing: border-box;
  margin-top: 80px;
}

.tarjeta {
  width: 400px; /* Ancho inicial de las tarjetas */
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
}

.tarjeta img {
  width: 80%;
  height: 380px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.tarjeta h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #566d8f;
}

.tarjeta p {
  font-family: 'Roboto', sans-serif;
   
  color: black;
  text-align: left;
  height: 200px;
  color: #2b2c28;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    font-style: italic;

 
}

@media (max-width: 768px) {
  .contenedor-tarjetas {
    flex-direction: column; /* Cambia a una disposición de columna en pantallas pequeñas */
    align-items: center; /* Centra las tarjetas verticalmente */
  }

  .tarjeta {
    width: 100%; /* Ocupa todo el ancho disponible */
    max-width: 400px; /* Ancho máximo para evitar que la tarjeta sea demasiado ancha */
  }
  .mg-top{
    margin-top: 80px;
  }
}

.boton {
  display: inline-block;
  padding: 10px 20px;
  background-color: #65bec2;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: 600;
}

.boton:hover {
  background-color: #4fa8ab; /* Cambia el color de fondo al pasar el ratón */
}

.tarjeta img{
  z-index: 100 !important;
  margin-top: -80px;
}

.floating_btn {
  position: fixed;
  bottom: 30px;
  right: 8px;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}