* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
  }
  
  
  html {
    font-size: 18px;
  }

/*INDEX*/

header {
    background: white;
    color: #fff;
    padding: 1rem 0;
    position: relative;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition: top 0.3s ease-in-out;
    z-index: 800;
   }
  
  header .MenuNavegacion {
    display: flex;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    font-size: 1rem;
  }
  
  header img {
    margin-left: 5rem;
    width: 13%;
    height: 14%;
  }
  
  .iconwats {
    height: 65%;
    width: 4.3%;
    position: absolute;
    right: 3%;
    top: 140%;
    user-select: all; 
    cursor: pointer;
  }
  
  .abrir-menu,
  .cerrar-menu {
      display: none;
  }
  
#empresamenu {
  margin-left: 38rem;
}

  nav ul {
    margin-top: 2.6%;
    font-family: "Montserrat", sans-serif;
    list-style: none;
    display: flex;
    justify-content: center;
    /* Centramos el contenido horizontalmente */
    align-items: center;
    /* Centramos el contenido verticalmente */
    
  }
  
  nav ul li {
    margin-left: 1rem; /* 30px / 18px = 1.6666666667rem */
  }
  
  .boton-redondeado {
    background-color: white;
    border: 2px solid #95c11f;
    border-radius: 10rem; /* 20px / 18px = 1.1111111111rem */
    color: #95c11f;
    padding: .8rem 1.1111111111rem; /* 15px / 18px = 0.8333333333rem, 20px / 18px = 1.1111111111rem */
    cursor: pointer;
    text-decoration: none;
    margin-left: 1rem; /* 30px / 18px = 1.6666666667rem */
    font-size: 1rem;
    margin-top: 0rem; /* 25px / 18px = 1.3888888889rem */
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
  }  

  nav ul li a {
    display: inline-block; /* Necesario para que transform funcione correctamente */
    transition: transform 0.3s ease; /* Suaviza el efecto */  
    font-weight: 500;
    color: #49403B;
    text-decoration: none;
  }
  
  nav ul li a:hover {
    transform: scale(1.05);
  }
  .boton-redondeado:hover {
    background-color: #95c11f;
    color: white;
  }
  
  nav ul li .num {
    letter-spacing: -0.0833333333rem; /* -1.5px / 18px = -0.0833333333rem */
    font-weight: 500;
    color: #49403B;
    text-decoration: none;
  }
  nav ul li a:hover {
    transform: scale(1.05);
  }
  /*INDEX*/

  /*Imagen Principal*/

  .imagenprincipal{
    display: inline-block;
    width: 100%;
    margin-top: 6.91rem;
    position: relative;
  }

  .imagenprincipal img{
    max-width: 100%;
  height: auto; /* Es crucial para mantener la proporción y no deformar la imagen */
  display: block;
  }

.imagenprincipal h1{
  position: absolute;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  top: 31rem;
  left: 15.5rem;
  color: white;
  max-width: 70%;
  text-align: center;
  font-weight: 800;
  font-size: 4.077777777rem;
}

  .resumen{
    display: flex; /* Activa flexbox para el contenedor */
    padding: 2.2rem 0rem 4rem 0rem;
    justify-content: center; /* Centra horizontalmente los elementos hijos */
    align-items: center; /* Centra verticalmente los elementos hijos */
  }

  .resumenprincipal{
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  text-align: center;
  font-size: 1.4444rem;
  line-height: 2rem;
  max-width: 50%; /* Establece un ancho máximo para evitar que el texto se alargue demasiado */
  margin-left: auto; /* Centra horizontalmente el bloque de texto dentro del contenedor si es más angosto que max-width */
  margin-right: auto;
  }

  /*Imagen Principal*/

  /*Servicios*/

  .servicios{
    display: flex; /* Activa flexbox para el contenedor */
    background-color: #fbf6f6;
    width: 100%; /* Cada bloque ocupará un tercio del ancho total */
    min-height: 46.2rem;
    position: relative;
  }

  .servicios h2{
    color: #49403B;
    font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  text-align: center;
  font-size: 1.2rem;
  position: absolute;
  left: 4.5rem;
  top: 5rem;
  }

  .wrapper {
    max-width: 92%;
    padding: 1.111rem 0.556rem;
    margin: 10rem 3.333rem 1.944rem;
    overflow: hidden;
   }
   .wrapper .card {
    background: #49403B;
    display: flex;
    height: auto;
    flex-direction: column;
    border-radius: 0.667rem;
    box-shadow: 0 0.556rem 0.556rem rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    cursor: pointer;
   }

   .wrapper .card:hover {
    transform: scale(1.05);
  }
   
   .card .card-image {
    position: relative;
   }
   .card .card-image img {
    width: 100%;
    height: 13.889rem;
    padding: 0.000rem;
    border-radius: 0.667rem 0.667rem 0rem 0rem;
    object-fit: cover;
    aspect-ratio: 16 / 9;
   }
   
   .card .card-content {
    flex: 1;
    display: flex;
    text-align: center;
    flex-direction: column;
    padding: 0.556rem 1.389rem 1.389rem;
   }
   .card .card-content .card-title {
    color: white;
    font-size: 1.222222rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.833rem;
   }
   .card .card-content .card-text {
    color: white;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.111rem;
   }

   .pdf{
    text-align: right;
    margin-right: 5.5rem;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-style: normal; 
    font-size: 0.70055rem;
   }
   
   .pdf a{
    font-style: italic;
    font-weight: bold;
    text-decoration: none;
    color: black;
   }

     /*Razones para elegirnos*/

    .ventajas {
      display: flex;
    }

    .razones{
      display: flex;
      width: 50%;
      height: 31.8rem;
      justify-content: end; /* Centra horizontalmente */
      align-items: center;     /* Centra verticalmente */
    }

    .razones h2{
    color: #93C01F;
    font-size: 4.777rem;
    max-width: 31.5rem;
    margin-right: 4.5rem;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-style: normal; 
    line-height: 4.5rem;
    }

    .razones h2 span{
      color: #49403B;
    }

    .fortalezas{
    display: grid;
    width: 50%;
    height: 31.8rem;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-style: normal; 
    font-size: 0.9705rem;
    grid-template-columns: repeat(2, 1fr); /* ⬅️ Crea 2 columnas de igual tamaño */
    gap: 1rem 1rem;
  }
    .fortalezas p{
      max-width: 70%;
    }

    .fortalezas p:nth-child(1),.fortalezas  p:nth-child(2){
      margin-top: 6rem
    }

       /*Razones para elegirnos*/

       /*EMPRESA*/

.empresa{
  position: relative;
}

.empresa img{
  width: 47.5%;
}

.empresa h1{
  position: absolute;
  top: 5.8rem;
  left: 5.8rem;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-size: 1.2222222rem;
  font-weight: 100;
  color: #FFFFFF;
}

.empresa p{
  position: absolute;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
}

.e1 {
  top: 26rem;
  left: 18.3rem;
  max-width: 19%;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-size: 1.555rem;
  font-weight: 400;
  color: #FFFFFF;
}

.e2 {
  top: 16rem;
  right: 30rem;
  max-width: 22.2%;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: 1rem;
}

p b{
  font-weight: 700;
}

.e3 {
  top: 16rem;
  right: 3rem;
  max-width: 24%;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: 1rem;
}

      /*EMPRESA*/
      /*FASE DE TRABAJO*/

      .procesotrabajo{
        display: flex;
        justify-content: center;
        height: 35.7rem;
        background-color: blue;
        background-color: #FBF6F6; 
        align-items: center;
        position: relative;
    }

    .procesotrabajo h1{
      position: absolute;
      top: 3.6rem;
      left: 7.9rem;
      font-family: "Montserrat", sans-serif;
      font-optical-sizing: auto;
      font-size: 1.222222rem;
      font-weight: 300;
    }
    
    .procesotrabajo .circulo{  
        margin-left: -4.1rem;
    }

    .procesotrabajo .circulo:nth-child(1){
      margin-left: 1rem;
    }
    
    .circulo{
        width: 19rem;
        height: 19rem;
        border: .20rem solid transparent;
        border-color: black;
        border-radius: 50%;
        display: flex;
        position: relative;
        flex-direction: column;
        align-items: start;
        justify-content: center;
        text-align: left;
        gap: .5rem;
        margin-top: 5rem;
        font-family: "Montserrat", sans-serif;
        font-optical-sizing: auto;
    }
    
    .numcirculo{
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        background-color: #F74203;
        width: 3.4rem;
        height: 3.4rem;
        border-radius: 50%;
        font-family: "Montserrat", sans-serif;
        font-optical-sizing: auto;
        font-size: 2.1666rem;
        font-weight: 800;
    }
    
    .circulo:nth-child(1) .numcirculo
    {
        position: absolute;
        left: -.1rem;
        top: 2.8rem;
    }
    
    .circulo:nth-child(2) .numcirculo
    {
        position: absolute;
        left: 1.6rem;
        top: .5rem;

    }
    
    .circulo:nth-child(3) .numcirculo
    {
        position: absolute;
        top: -1.4rem;
        left: 5.6rem;
    }
    
    .circulo:nth-child(4) .numcirculo
    {
        position: absolute;
        top: -1.5rem;
        left: 8.7rem;
    }
    
    .circulo:nth-child(5) .numcirculo
    {
        position: absolute;
        top: .5rem;
        right: 1.6rem;
    }

    .circulo:nth-child(6) .numcirculo
    {
        position: absolute;
        right: -.1rem;
        top: 2.8rem;
    }
     .circulo > * {
        margin: 0; /* Resetea el margen de todos los hijos directos */
      }
    
    .circulo h3{
        max-width: 45%;
        margin-left: 4.8rem;
    }
    
    .circulo p{
        max-width: 54%;
        margin-left: 4.6rem;
    }

      /*FASE DE TRABAJO*/
      /*FOOTER*/

footer {
  display: flex;
  height: 31.5rem;
  background-color: #463B37;
  margin-top: -0.28rem;
  color: #FFFFFF;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-size: 0.944444444444rem;
}

footer a{
  text-decoration: none;
  color: #FFFFFF;
}

.f1 img{
  width: 30.3%;
  height: 9.8%;
}

.f1, .f2 { /* Puedes aplicar los estilos a ambas clases a la vez */
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column; /* <-- ¡Añade esto! */
  justify-content: center; /* Para centrar el contenido horizontalmente */
  align-items: start;   /* Para centrar el contenido verticalmente */
}

.f1 {
  margin-left: 16rem;
}

.f2 {
  margin-left: 32rem;
}


.f1 p{
  display: flex; /* Convierte el párrafo en un contenedor flexible */
  align-items: center; /* Centra la imagen y el texto verticalmente */
  white-space: nowrap;
  text-indent: .5rem;
}

.f1 p img{
  width: 1rem;
  height: 1rem;
}

    /*FOOTER*/


    /* Fondo oscuro del popup */
    .popup, .popup2, .popup3, .popup4, .popup5 {
      display: none; /* oculto por defecto */
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.7);
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }

    /* Caja del popup */
    .popup-content {
      background-color: #49403B;
      border-radius: 0.89rem; /* 16px / 18 */
      max-width: 36.11rem; /* 650px / 18 */
      width: 100%;
      text-align: center;
      position: relative;
      animation: fadeIn 0.3s ease-in-out;
      overflow: hidden;
      box-shadow: 0 0.56rem 1.67rem rgba(0, 0, 0, 0.2); /* 10px y 30px / 18 */
  }

    /* Botón cerrar */

    @keyframes fadeIn {
      from { opacity: 0; transform: scale(0.9); }
      to   { opacity: 1; transform: scale(1); }
    }

  
  .tarjeta-imagen img {
      width: 100%;
      height: 14.15rem;
      display: block; /* Elimina un pequeño espacio que a veces aparece debajo de la imagen */
  }

  /* --- Contenido de Texto --- */
  .tarjeta-contenido {
      padding: 1.2rem 1.2rem;
  }

  /* --- Título Principal --- */
  .tarjeta-contenido h2 {
      color: #ffffff;
      font-size: 1.2222rem;
      font-weight: 700;
      margin: 0 0 1rem 0;
  }

  /* --- Párrafos de Descripción --- */
  .tarjeta-contenido p {
      color: #dcdcdc;
      font-size: 1rem;
      line-height: 1.2;
      margin: 0 0 1.5rem 0;
  }

  /* Ajuste de margen para el último párrafo antes del botón */
  .tarjeta-contenido p:last-of-type {
      margin-bottom: 2rem;
  }

  /* --- Botón de Llamada a la Acción --- */
  .tarjeta-boton {
      display: inline-block;
      background-color: #9ac936; /* Tono verde lima del botón */
      color: #fff; /* Color oscuro del texto del botón */
      border: none;
      border-radius: 50px; /* Bordes completamente redondeados */
      padding: .6rem 2.3rem;
      font-size: 1rem;
      font-weight: 600;
      text-decoration: none;
      cursor: pointer;
      transition: background-color 0.3s ease, transform 0.2s ease;
  }

  .tarjeta-boton:hover {
      background-color: #89b12e; /* Color ligeramente más oscuro al pasar el cursor */
      transform: translateY(-3px); /* Pequeño efecto de elevación */
  }

    :root {
      --desplazamiento-servicios: 120rem;
      --desplazamiento-empresa: 125rem;
      --desplazamiento-proceso: 122rem;
    }