.servicios {
  margin-top: 8vw;
  margin-bottom: 5vw;
}

.service {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}


.section-title {
  margin-top: 2vw;
  text-align: center;
  font-size: 2rem;
  font-family: 'system-ui, -apple-system, BlinkMacSystemFont, ' Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, ' Open Sans', ' Helvetica Neue', sans-serif';
  color: #325278;
  /* Azul marino */
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 5vw;
  height: 3px;
  background: #ff7043;
  /* Naranja */
  margin: 10px auto;
}

.service h3 {
  margin: 0;
  margin-top: 2vw;
  text-align: center;
  font-size: 2rem;
  font-family: 'system-ui, -apple-system, BlinkMacSystemFont, ' Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, ' Open Sans', ' Helvetica Neue', sans-serif';
  color: #325278;

  position: relative;
}

/* Diseño del grid */
.proyectos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.proyecto {
  position: relative;
  flex: 1 1 calc(25% - 10px);
  max-width: calc(25% - 10px);
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.proyecto:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Imagen de cada proyecto */
.proyecto img {
  width: 100%;
  max-height: 14rem;
  display: block;
  border-radius: 8px;
}



/* ---------------------------------------------------- Modal Overlay ---------------------------------------------------- */

.modal {
  display: none;
  /* Oculto por defecto */
  position: fixed;
  /* Ocupa toda la pantalla */
  z-index: 1000;
  /* Encima del sitio */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #325278e3;
  /* Fondo oscuro semitransparente */
  justify-content: center;
  align-items: center;
  overflow: hidden;
  /* Elimina cualquier desplazamiento */
  margin: 0;
  /*Asegura que no haya margenes */
  padding: 0;
  /* Asegura que no haya padding */
  box-sizing: border-box;
  /* Para evitar tamaños extraños */
}

/* Imagen dentro del Modal */
.modal-content {
  max-width: 50%;
  /* Ocupa el 60% del ancho */
  max-height: 80%;
  /* Asegura que no exceda el alto visible */
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease;
  /* Animacion de entrada */
  display: block;
  /* Evita comportamientos inline */
  margin-top: 7vw;
  /* Centra la imagen */
  padding: 0;
  object-fit: contain
    /* Escala sin deformar */
  ;
}

/* Botón de Cierre */
.close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #2600ff;
  /* Cambia al color naranja en hover */
}

/* Animación de entrada */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}


@media (min-width:1200px) and (max-width:1350px) {
  .servicios {
    margin-top: 10vw;
    margin-bottom: 5vw;
  }
  
  .service {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }
  
  
  .section-title {
    margin-top: 2vw;
    text-align: center;
    font-size: 2rem;
    font-family: 'system-ui, -apple-system, BlinkMacSystemFont, ' Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, ' Open Sans', ' Helvetica Neue', sans-serif';
    color: #325278;
    /* Azul marino */
    position: relative;
  }
  
  .section-title::after {
    content: '';
    display: block;
    width: 5vw;
    height: 3px;
    background: #ff7043;
    /* Naranja */
    margin: 10px auto;
  }
  
  .service h3 {
    margin: 0;
    margin-top: 2vw;
    text-align: center;
    font-size: 2rem;
    font-family: 'system-ui, -apple-system, BlinkMacSystemFont, ' Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, ' Open Sans', ' Helvetica Neue', sans-serif';
    color: #325278;
  
    position: relative;
  }
  
  /* Diseño del grid */
  .proyectos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  
  .proyecto {
    position: relative;
    flex: 1 1 calc(25% - 10px);
    max-width: calc(25% - 10px);
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .proyecto:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  }
  
  /* Imagen de cada proyecto */
  .proyecto img {
    width: 100%;
    height: 12rem;
    display: block;
    border-radius: 8px;
  }
  
  
  
  /* ---------------------------------------------------- Modal Overlay ---------------------------------------------------- */
  
  .modal {
    display: none;
    /* Oculto por defecto */
    position: fixed;
    /* Ocupa toda la pantalla */
    z-index: 1000;
    /* Encima del sitio */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #325278e3;
    /* Fondo oscuro semitransparente */
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Elimina cualquier desplazamiento */
    margin: 0;
    /*Asegura que no haya margenes */
    padding: 0;
    /* Asegura que no haya padding */
    box-sizing: border-box;
    /* Para evitar tamaños extraños */
  }
  
  /* Imagen dentro del Modal */
  .modal-content {
    max-width: 40%;
    /* Ocupa el 60% del ancho */
    max-height: 80%;
    /* Asegura que no exceda el alto visible */
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
    /* Animacion de entrada */
    display: block;
    /* Evita comportamientos inline */
    margin-top: 7vw;
    /* Centra la imagen */
    padding: 0;
    object-fit: contain
      /* Escala sin deformar */
    ;
  }
  
  /* Botón de Cierre */
  .close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .close:hover {
    color: #2600ff;
    /* Cambia al color naranja en hover */
  }
  
  /* Animación de entrada */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: scale(0.8);
    }
  
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
}

@media (min-width:992px) and (max-width:1200px) {
  .servicios {
    margin-top: 12vw;
    margin-bottom: 5vw;
  }
  
  .service {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }
  
  
  .section-title {
    margin-top: 2vw;
    text-align: center;
    font-size: 1.8rem;
    font-family: 'system-ui, -apple-system, BlinkMacSystemFont, ' Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, ' Open Sans', ' Helvetica Neue', sans-serif';
    color: #325278;
    /* Azul marino */
    position: relative;
  }
  
  .section-title::after {
    content: '';
    display: block;
    width: 5vw;
    height: 3px;
    background: #ff7043;
    /* Naranja */
    margin: 10px auto;
  }
  
  .service h3 {
    margin: 0;
    margin-top: 2vw;
    text-align: center;
    font-size: 2rem;
    font-family: 'system-ui, -apple-system, BlinkMacSystemFont, ' Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, ' Open Sans', ' Helvetica Neue', sans-serif';
    color: #325278;
  
    position: relative;
  }
  
  /* Diseño del grid */
  .proyectos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  
  .proyecto {
    position: relative;
    flex: 1 1 calc(25% - 10px);
    max-width: calc(25% - 10px);
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .proyecto:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  }
  
  /* Imagen de cada proyecto */
  .proyecto img {
    width: 100%;
    height: 100vh;
    display: block;
    border-radius: 8px;
  }
  
  
  
  /* ---------------------------------------------------- Modal Overlay ---------------------------------------------------- */
  
  .modal {
    display: none;
    /* Oculto por defecto */
    position: fixed;
    /* Ocupa toda la pantalla */
    z-index: 1000;
    /* Encima del sitio */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #325278e3;
    /* Fondo oscuro semitransparente */
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Elimina cualquier desplazamiento */
    margin: 0;
    /*Asegura que no haya margenes */
    padding: 0;
    /* Asegura que no haya padding */
    box-sizing: border-box;
    /* Para evitar tamaños extraños */
  }
  
  /* Imagen dentro del Modal */
  .modal-content {
    max-width: 50%;
    /* Ocupa el 60% del ancho */
    max-height: 80%;
    /* Asegura que no exceda el alto visible */
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
    /* Animacion de entrada */
    display: block;
    /* Evita comportamientos inline */
    margin-top: 7vw;
    /* Centra la imagen */
    padding: 0;
    object-fit: contain
      /* Escala sin deformar */
    ;
  }
  
  /* Botón de Cierre */
  .close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .close:hover {
    color: #2600ff;
    /* Cambia al color naranja en hover */
  }
  
  /* Animación de entrada */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: scale(0.8);
    }
  
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
}

@media (min-width:768px) and (max-width:992px) {
  .servicios {
    margin-top: 15vw;
    margin-bottom: 5vw;
  }
  
  .service {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }
  
  
  .section-title {
    margin-top: 2vw;
    text-align: center;
    font-size: 1.5rem;
    font-family: 'system-ui, -apple-system, BlinkMacSystemFont, ' Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, ' Open Sans', ' Helvetica Neue', sans-serif';
    color: #325278;
    /* Azul marino */
    position: relative;
  }
  
  .section-title::after {
    content: '';
    display: block;
    width: 8vw;
    height: 3px;
    background: #ff7043;
    /* Naranja */
    margin: 10px auto;
  }
  
  .service h3 {
    margin: 0;
    margin-top: 2vw;
    text-align: center;
    font-size: 2rem;
    font-family: 'system-ui, -apple-system, BlinkMacSystemFont, ' Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, ' Open Sans', ' Helvetica Neue', sans-serif';
    color: #325278;
  
    position: relative;
  }
  
  /* Diseño del grid */
  .proyectos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  
  .proyecto {
    position: relative;
    flex: 1 1 calc(25% - 10px);
    max-width: calc(25% - 10px);
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .proyecto:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  }
  
  /* Imagen de cada proyecto */
  .proyecto img {
    width: 100%;
    height: 9rem;
    display: block;
    border-radius: 8px;
  }
  
  
  
  /* ---------------------------------------------------- Modal Overlay ---------------------------------------------------- */
  
  .modal {
    display: none;
    /* Oculto por defecto */
    position: fixed;
    /* Ocupa toda la pantalla */
    z-index: 1000;
    /* Encima del sitio */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #325278e3;
    /* Fondo oscuro semitransparente */
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Elimina cualquier desplazamiento */
    margin: 0;
    /*Asegura que no haya margenes */
    padding: 0;
    /* Asegura que no haya padding */
    box-sizing: border-box;
    /* Para evitar tamaños extraños */
  }
  
  /* Imagen dentro del Modal */
  .modal-content {
    max-width: 50%;
    /* Ocupa el 60% del ancho */
    max-height: 80%;
    /* Asegura que no exceda el alto visible */
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
    /* Animacion de entrada */
    display: block;
    /* Evita comportamientos inline */
    margin-top: 7vw;
    /* Centra la imagen */
    padding: 0;
    object-fit: contain
      /* Escala sin deformar */
    ;
  }
  
  /* Botón de Cierre */
  .close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .close:hover {
    color: #2600ff;
    /* Cambia al color naranja en hover */
  }
  
  /* Animación de entrada */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: scale(0.8);
    }
  
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
}

@media (min-width:450px) and (max-width:768px) {
  
  .servicios {
    margin-top: 16vw;
    margin-bottom: 5vw;
  }
  
  .service {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }
  
  
  .section-title {
    margin-top: 2vw;
    text-align: center;
    font-size: 1.2rem;
    font-family: 'system-ui, -apple-system, BlinkMacSystemFont, ' Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, ' Open Sans', ' Helvetica Neue', sans-serif';
    color: #325278;
    /* Azul marino */
    position: relative;
  }
  
  .section-title::after {
    content: '';
    display: block;
    width: 10vw;
    height: 2px;
    background: #ff7043;
    /* Naranja */
    margin: 10px auto;
  }
  
  .service h3 {
    margin: 0;
    margin-top: 2vw;
    text-align: center;
    font-size: 2rem;
    font-family: 'system-ui, -apple-system, BlinkMacSystemFont, ' Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, ' Open Sans', ' Helvetica Neue', sans-serif';
    color: #325278;
    position: relative;
  }
  
  /* Diseño del grid */
  .proyectos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  
  .proyecto {
    position: relative;
    flex: 1 1 calc(25% - 10px);
    max-width: calc(30% - 10px);
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .proyecto:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  }
  
  /* Imagen de cada proyecto */
  .proyecto img {
    width: 100%;
    height: 7.5rem;
    display: block;
    border-radius: 8px;
  }
  
  /* ---------------------------------------------------- Modal Overlay ---------------------------------------------------- */
  
  .modal {
    display: none;
    /* Oculto por defecto */
    position: fixed;
    /* Ocupa toda la pantalla */
    z-index: 1000;
    /* Encima del sitio */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #325278e3;
    /* Fondo oscuro semitransparente */
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Elimina cualquier desplazamiento */
    margin: 0;
    /*Asegura que no haya margenes */
    padding: 0;
    /* Asegura que no haya padding */
    box-sizing: border-box;
    /* Para evitar tamaños extraños */
  }
  
  /* Imagen dentro del Modal */
  .modal-content {
    max-width: 50%;
    /* Ocupa el 60% del ancho */
    max-height: 80%;
    /* Asegura que no exceda el alto visible */
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
    /* Animacion de entrada */
    display: block;
    /* Evita comportamientos inline */
    margin-top: 7vw;
    /* Centra la imagen */
    padding: 0;
    object-fit: contain
      /* Escala sin deformar */
    ;
  }
  
  /* Botón de Cierre */
  .close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .close:hover {
    color: #2600ff;
    /* Cambia al color naranja en hover */
  }
  
  /* Animación de entrada */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: scale(0.8);
    }
  
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
}

@media (max-width:450px) {

  
  .servicios {
    margin-top: 16vw;
    margin-bottom: 5vw;
  }
  
  .service {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }
  
  
  .section-title {
    margin-top: 2vw;
    text-align: center;
    font-size: 1rem;
    font-family: 'system-ui, -apple-system, BlinkMacSystemFont, ' Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, ' Open Sans', ' Helvetica Neue', sans-serif';
    color: #325278;
    /* Azul marino */
    position: relative;
  }
  
  .section-title::after {
    content: '';
    display: block;
    width: 10vw;
    height: 2px;
    background: #ff7043;
    /* Naranja */
    margin: 10px auto;
  }
  
  .service h3 {
    margin: 0;
    margin-top: 3vw;
    text-align: center;
    font-size: 2rem;
    font-family: 'system-ui, -apple-system, BlinkMacSystemFont, ' Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, ' Open Sans', ' Helvetica Neue', sans-serif';
    color: #325278;
  
    position: relative;
  }
  
  /* Diseño del grid */
  .proyectos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }
  
  .proyecto {
    position: relative;
    flex: 1 1 calc(25% - 10px);
    max-width: calc(30% - 10px);
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .proyecto:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  }
  
  /* Imagen de cada proyecto */
  .proyecto img {
    width: 100%;
    height: 4.5rem;
    display: block;
    border-radius: 8px;
  }
  
  
  
  /* ---------------------------------------------------- Modal Overlay ---------------------------------------------------- */
  
  .modal {
    display: none;
    /* Oculto por defecto */
    position: fixed;
    /* Ocupa toda la pantalla */
    z-index: 1000;
    /* Encima del sitio */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #325278e3;
    /* Fondo oscuro semitransparente */
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Elimina cualquier desplazamiento */
    margin: 0;
    /*Asegura que no haya margenes */
    padding: 0;
    /* Asegura que no haya padding */
    box-sizing: border-box;
    /* Para evitar tamaños extraños */
  }
  
  /* Imagen dentro del Modal */
  .modal-content {
    max-width: 50%;
    /* Ocupa el 60% del ancho */
    max-height: 80%;
    /* Asegura que no exceda el alto visible */
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
    /* Animacion de entrada */
    display: block;
    /* Evita comportamientos inline */
    margin-top: 7vw;
    /* Centra la imagen */
    padding: 0;
    object-fit: contain
      /* Escala sin deformar */
    ;
  }
  
  /* Botón de Cierre */
  .close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .close:hover {
    color: #2600ff;
    /* Cambia al color naranja en hover */
  }
  
  /* Animación de entrada */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: scale(0.8);
    }
  
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
}