body {
  font-family: 'Lato', sans-serif !important;
  margin: 0;
  padding: 0;
  background-color: #fff;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-top: 30px;
}

header {
  background-color: #fff;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
}

.logo-link {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.logo {
  width: 5cm;
  height: 0,7cm;
}

.banner {
  background-color: #08a1ff;
  color: #0d1440;
  padding: 20px;
  text-align: center;
  position: relative;
}

.banner h1 {
  margin: 0;
}

.navbar-top {
  background: linear-gradient(to right, #22225f, #2eb2a7);
  color: white;
  display: flex;
  justify-content: flex-end; /* Alinea todos los elementos hacia la derecha */
  align-items: center;       /* Alinea verticalmente los elementos en el centro */
  padding: 10px 10px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar-top .flags {
  display: flex;
  gap: 10px;
  align-items: center; 
  margin-right: 5px;
  margin-top: -5px;
}

.navbar-top .flags img {
  width: 25px;
  height: 15px;
  object-fit: cover;

}

.btn-contacto {
  background: linear-gradient(90deg, #262c5e, #28a694);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 4px;
  margin-top: -9px;
  display: inline-block;
  text-decoration: none;
  transition: background-position 0.4s;
  background-size: 200%;
}

.btn-contacto:hover {
  background-position: right;
  text-decoration: none;
}

@media screen and (max-width: 768px) {
  .btn-contacto {
    margin-top: 10px; /* Ajuste para dispositivos móviles */
  }
}

.btn-contacto:hover {
  background: linear-gradient(to right, #1f244c, #299c87);
  text-decoration: none;
}

.navbar-top .links {
  display: flex;
  gap: 20px;     
  margin-left: auto;         
}

.large-bar {
  font-size: 20px; 
  display: inline-block;
  vertical-align: middle;
  margin: 0;
  margin-top: -3px;
}

.navbar-top .links a {
  color: white;
  text-decoration: none;
  font-size: 15px;
}

.navbar-top .links a:hover {
  text-decoration: underline;
}

/* Estilos responsivos */
  @media (max-width: 768px) {
    .navbar-top {
      flex-direction: column; 
      align-items: center; 
      background: linear-gradient(to bottom, #22225f, #2eb2a7);
    }
  
    .navbar-top .links {
      flex-direction: column; 
      gap: 3px; 
      text-align: center; 
      margin: 0; 
      font-size: 10px; 
      align-items: center;
    }
  
    .navbar-top .flags {
      margin-bottom: 10px; 
    }

    header{
      margin-top: 180px;
    }

    .logo{
      width: 150px;
    }
  }


@media (max-width: 992px) { /* Para tablets */
  .navbar-top {
    padding: 8px; 
    left: 0;
  }

  .navbar-top .flags img {
    width: 30px; 
    height: 20px;
    margin-top: 2px;
  }

  .navbar-top .links a {
    font-size: 14px; 
    text-align: center;
    margin-top: 2px;
  }
}


.content {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;  /* Permite que los elementos se envuelvan en la siguiente línea si no caben */
  text-align: center;
  padding: 1px 20px;
  top: -150;
}

.text {
  padding: 20px;
  margin-bottom: 1px;
  border-radius: 10px;
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.text h2 {
  font-size: 18px;
  line-height: 1.6;
  color: #525050;
}

@keyframes moveUpDown {
  0% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(-10px);
  }
  100% {
      transform: translateY(0);
  }
}


.image-container-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.image-container {
  position: relative;
  width: calc(25% - 20px);
  margin: 10px;
  text-align: center;
}

.image-container img {
  width: 100%;
  height: auto;
  border-radius: 55px;
  border: 5px solid transparent;
  transition: opacity 0.3s ease; /* Transición suave */
}

.image-container:hover img {
  opacity: 0.3; /* Imagen semi-transparente al pasar el cursor */
}

.overlay-text {
  position: absolute;
  width: 90%;
  margin-top: 0 auto;
  top: 50%;
  left: 50%;
  right: 55%;
  bottom: -50px;
  transform: translate(-50%, -50%);
  color: #000000;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  font-size: 16px;
  text-align: center;
  opacity: 0; /* Oculto por defecto */
  transition: opacity 0.3s ease; /* Transición suave */
  padding: 18px;
}

@media screen and (max-width: 768px) {
  .overlay-text {
    font-size: 11.5px; /* Tamaño de fuente más pequeño */
    padding: 8px; /* Menos espacio interior */
    bottom: 5%; /* Ajuste de posición vertical para pantallas más pequeñas */
    width: 90%; /* Ancho más amplio para pantallas más pequeñas */
  }
}

@media screen and (max-width: 480px) {
  #overlay-text {
    width: 90%; /* Ajuste para pantallas pequeñas */
    bottom: 5%; /* Ajuste de posición */
    font-size: 14px; /* Tamaño de fuente más pequeño */
    padding: 8px; /* Menos espacio interior */
  }
}

/* Media query para tablets y dispositivos con pantalla más grande */
@media screen and (min-width: 481px) and (max-width: 1024px) {
  #overlay-text {
    width: 70%; /* Ajuste para tablets */
    bottom: 8%; /* Ajuste de posición */
    font-size: 16px; /* Tamaño de fuente */
    padding: 12px; /* Espacio interior mayor */
  }
}

/* Media query para pantallas de escritorio y dispositivos más grandes */
@media screen and (min-width: 1025px) {
  #overlay-text {
    width: 50%; /* Ancho reducido para pantallas grandes */
    bottom: 12%; /* Ajuste de posición */
    font-size: 18px; /* Tamaño de fuente mayor */
    padding: 15px; /* Espacio interior mayor */
  }
}


#Bench{
  bottom: -50px;
}

#Fast{
  bottom: -100px;
}

#Sector{
  bottom: -50px;
}

#IPSEC{
  bottom: -20px;
}

.image-container:hover .overlay-text {
  opacity: 1; /* Visible al pasar el cursor */
}

.image-description {
  font-size: 25px; /* Tamaño de fuente más grande */
  color: #0d1440; /* Color del texto */
  margin-top: 20px; /* Espacio superior */
}

.chat-container-whats {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #1d3557;
  color: white;
  padding: 10px;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px; /* Espacio entre el mensaje y el botón */
  z-index: 1000; /* Asegura que esté por encima de otros elementos */
}

.chat-container-whats p {
  margin: 0;
  display: none; /* Ocultar el mensaje por defecto */
  background-color: #1d3557; /* Fondo del mensaje para que sea legible */
  padding: 10px; /* Padding del mensaje para mejorar la legibilidad */
  border-radius: 10px; /* Bordes redondeados para el mensaje */
}

.chat-container-whats:hover p {
  display: block; /* Mostrar el mensaje cuando pasa el cursor sobre el contenedor */
}

.whatsapp-button {
  background-color: #25D366;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center; /* Centrar contenido */
  z-index: 1001; /* Asegura que el botón esté encima del mensaje */
}

.whatsapp-button img {
  width: 70px; /* Ajustar tamaño de la imagen */
  height: 36px; /* Ajustar tamaño de la imagen */
}

@media (max-width: 1200px) {
  .image-container {
    width: calc(33.33% - 20px);
  }
}

@media (max-width: 768px) {
  .image-description {
    font-size: 20px;
  }

  .image-container {
    width: calc(50% - 20px);
  }

  header .logo-link{
    bottom: -100px;
    width: 80px;
    left: -10px;
  }
}

@media (max-width: 576px){
  header {
    flex-direction: column;
    text-align: center;
  }
  
  #Bench{
    bottom: -100px;
  }

  #Fast{
    bottom: -130px;
  }
}
