/* General Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  line-height: 1.6;
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1em;
}

/* Header */
header {
  background-color: #004b8d;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header img {
  max-width: 120px;
  height: auto;
}

.nav-menu {
  display: flex;
  gap: 2.5em;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-size: 1.5em;
}

.nav-menu a:hover {
  color: #3aad35;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5em;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: url('https://blogger.googleusercontent.com/img/a/AVvXsEgL5rWcEGkpsSvoM6SibktQGenSApVHfvm1_Hq4hRUPNiaZ3rGM-cJ9MHB_RCtkDjGbS5rihcLQMLIazJ_n2kTf5tbTC0gelDHLUpUImSeIGHR_haPjDneADJhCgCCPZvTPtmYT_Lp8AK833sfQrTfCZqrQmzCq5d-x0mNd26U77-tAg4-MwAxAZWwzSA=s16000') center/cover no-repeat; /* Ruta de la imagen */
  position: relative; /* Necesario para el pseudo-elemento */
  color: rgba(255, 255, 255, 0.9); /* Color del texto */
  text-align: center;
  height: 100vh; /* Ocupa toda la altura de la pantalla */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 1em;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Oscurece la imagen */
  z-index: 0; /* Asegura que el pseudo-elemento esté detrás del contenido */
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 0.5em;
  z-index: 1; /* Asegura que el texto esté por encima del fondo */
  position: relative;
}

.hero p {
  font-size: 1.5em;
  max-width: 800px;
  line-height: 1.6;
  margin: 0 auto;
  z-index: 1; /* Asegura que el texto esté por encima del fondo */
  position: relative;
}

/* Media Queries para el Hero */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2em;
  }

  .hero p {
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5em;
  }

  .hero p {
    font-size: 1em;
  }
}
/* Section */
.section {
  padding: 2em 1em;
}

.section h2 {
  text-align: center;
  color: #004b8d;
  margin-bottom: 1em;
}

/* Nosotros Section */
.nosotros-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  align-items: center;
  justify-content: space-between;
  padding: 2em 1em;
  margin-top: 5em;
  margin-bottom: 5em;
}

.nosotros-image {
  flex: 1 1 50rem;
  max-width: 50rem;
  max-height: 25rem;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  order: 2;
}

.nosotros-content {
  flex: 1 1 400px;
  text-align: left;
  order: 1;
}

.nosotros-content h2 {
  font-size: 2em;
  margin-bottom: 1em;
}

.nosotros-content p {
  font-size: 1,8em;
  color: #555;
  line-height: 1.6;
}

/* Media Queries para Nosotros */
@media (max-width: 768px) {
  .nosotros-container {
    flex-direction: column;
    text-align: center;
  }
  .nosotros-image {
    order: 1;
    max-width: 300px; /* Limita el ancho máximo de la imagen */
    max-height: 250px; /* Limita la altura máxima de la imagen */
  }
  .nosotros-image,
  .nosotros-content {
    order: 0;
  }

  .nosotros-content {
    text-align: center;
  }
}

/* Certificaciones Section */
#certificaciones {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3em 1em;
  background: url('../images/certificaciones.jpg') center/cover no-repeat; /* Fondo restaurado */
  color: #fff;
  position: relative;
}

#certificaciones::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Oscurece el fondo */
  z-index: 0;
}

.cert-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1; /* Asegura que el contenido esté por encima del fondo */
}

.cert-images {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.cert-image {
  width: 100%;
  max-width: 300px; /* Limita el ancho máximo de las imágenes */
  height: auto; /* Mantiene la proporción de las imágenes */
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.cert-content {
  flex: 1 1 50%; /* Ocupa el 50% del ancho */
  text-align: left;
}

.cert-content h2 {
  font-size: 2em;
  margin-bottom: 1em;
  color: #fff;
}

.cert-content p {
  font-size: 1.2em;
  color: #ddd;
  line-height: 1.6;
}

/* Media Queries para Certificaciones */
@media (max-width: 768px) {
  .cert-container {
    flex-direction: column; /* Cambia a diseño en columna en pantallas pequeñas */
    text-align: center;
  }

  .cert-content {
    text-align: center;
  }
  .cert-image{
    display: none; /* Oculta las imágenes en pantallas pequeñas */
  }
}
/* Sección de clientes */
#clientes-page {
  text-align: center;
  padding: 2em 1em 0 1em;
  background: none;
  z-index: 10;
}

#clientes-page h2 {
  font-size: 2em;
  margin-bottom: 0.5em;
  color: #004b8d;
}

#clientes-page p {
  font-size: 1.2em;
  margin-bottom: 1.5em;
  color: #555;
}


.logos-clientes {
  display: flex;
  gap: 1em;
  overflow-x: auto; /* Habilita el desplazamiento horizontal */
  white-space: nowrap; /* Evita que los elementos se envuelvan */
  scroll-behavior: smooth; /* Desplazamiento suave */
  padding: 1em;
  flex: 1; /* Permite que el carrusel ocupe el espacio disponible */
}

.logos-clientes img {
  flex-shrink: 0; /* Evita que los logos se reduzcan */
  max-width: 150px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logos-clientes img:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
.slider-container {
  width: 100%;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  position: relative;
  height: 200px;
  z-index: 1;
}

.slider-track {
  display: flex;
  gap: 20px;
  animation: slide-left 20s linear infinite;
  will-change: transform;
}


.slider-track img,
.logos-clientes img,
.client-box img {
  max-width: 100%;
  max-height: 200px;    /* Ajusta según la altura de tu slider */
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain; /* Mantiene la proporción y evita recortes */
  background: transparent;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
  .client-box {
    width: 80px;
    height: 50px;
    margin-right: 10px;
  }
  .client-box img {
    max-height: 40px;
  }
  /* Asegura que no haya posiciones absolutas que causen superposición */
  .slider-track, .client-box {
    position: relative !important;
  }
}

#servicios h2 {
  font-size: 2.5em;
}
/* Cards - Servicios */
.services {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
  padding: 2em 0;
}

.card {
  flex: 1 1 calc(33.333% - 2em);
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5em;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.card img {
  max-width: 100px;
  height: auto;
  margin-bottom: 1em;
}

.card h3 {
  font-size: 1.2em;
  color: #3aad35;
  margin-bottom: 0.5em;
}

.card p {
  font-size: 1em;
  color: #555;
  line-height: 1.5;
}

/* Media Queries */
@media (max-width: 768px) {
  .card {
    flex: 1 1 calc(50% - 2em);
  }

  .slider-controls button {
    width: 30px;
    height: 30px;
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .card {
    flex: 1 1 100%;
  }

  .card img {
    max-width: 80px;
  }

  .card h3 {
    font-size: 1em;
  }

  .card p {
    font-size: 0.9em;
  }
}

/* Footer */
footer {
  background: #004b8d;
  color: white;
  text-align: center;
  padding: 1em;
}

/* WhatsApp Button */
.float-wa {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  cursor: pointer;
}

.float-wa:hover {
  background-color: #128c7e;
}
/* Sección de clientes */
#clientespagina {
  text-align: center;
  padding: 2em 1em;
}

#clientespagina h2 {
  font-size: 2em;
  margin-bottom: 0.5em;
}

#clientespagina p {
  font-size: 1.2em;
  margin-bottom: 1.5em;
  color: #555;
}

/* Grid de clientes */
.clientes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Ajusta el número de columnas automáticamente */
  gap: 1.5em; /* Espaciado entre los logos */
  justify-items: center; /* Centra los logos horizontalmente */
  align-items: center; /* Centra los logos verticalmente */
}

.clientes-grid img {
  max-width: 100%; /* Asegura que los logos no excedan el tamaño del contenedor */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clientes-grid img:hover {
  transform: scale(1.1); /* Efecto de zoom al pasar el mouse */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}


/* Ajuste para alinear imágenes a la izquierda y texto a la derecha en la sección de certificaciones */
#certificaciones .cert-container {
  flex-direction: row;
}

#certificaciones .cert-image {
  order: 1;
}

#certificaciones .cert-content {
  order: 2;
}
.cert-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2em;
}

.cert-images {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.cert-image {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.cert-content {
  flex: 1 1 400px;
  text-align: left;
}
/* Sección de contacto */
#contacto {
  padding: 3em 1em;
  background-color: #f9f9f9;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

.contact-info {
  flex: 1 1 400px;
  text-align: left;
}

.contact-info h2 {
  font-size: 2em;
  color: #004b8d;
  margin-bottom: 1em;
}

.contact-info p {
  font-size: 1.2em;
  color: #555;
  margin-bottom: 1.5em;
  line-height: 1.6;
}

.contact-info ul {
  list-style: none;
  padding: 0;
}

.contact-info ul li {
  font-size: 1em;
  color: #333;
  margin-bottom: 0.5em;
}

.contact-form {
  flex: 1 1 400px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.contact-form label {
  font-size: 1em;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8em;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
}

.contact-form button {
  padding: 0.8em;
  background-color: #004b8d;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #3aad35;
}

/* Media Queries para Contacto */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    text-align: center;
  }
  .contact-info {
    text-align: center;
        font-size: 0.5em;
  }

  .contact-form {
    text-align: center;
  }
  .contact-info h2 {
    font-size: 0.4em;
  }

  .contact-info p {
    font-size: 0.1em;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.1em;
  }

  .contact-form button {
    font-size: 0.1em;
  }
}

@media (max-width: 480px) {
  .contact-info h2 {
    font-size: 0.4em;
  }

  .contact-info p {
    font-size: 0.1em;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.1em;
  }

  .contact-form button {
    font-size: 0.1em;
  }
}
/* Mostrar el menú desplegable en pantallas pequeñas */
@media (max-width: 768px) {
  .menu-toggle {
    display: block; /* Muestra el botón de menú en pantallas pequeñas */
    background: none;
    border: none;
    color: white;
    font-size: 1.8em;
    cursor: pointer;
  }

  .nav-menu {
    display: none; /* Oculta el menú por defecto en pantallas pequeñas */
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #004b8d;
    padding: 0.5em;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    font-size: 1em;
  }

  .nav-menu.active {
    display: flex; /* Muestra el menú cuando está activo */
  }

  .nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5em 0;
    text-align: center;
  }

  .nav-menu a:hover {
    color: #3aad35;
  }
}
/* Animación de aparición */
.section,
.card,
.cert-container,
#servicios h2,
#clientes-page,
#clientespagina,
footer {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.4,0,.2,1);
}

.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
@media (max-width: 768px) {
  .section,
  .card,
  .cert-container,
  #servicios h2,
  #clientes-page,
  #clientespagina,
  footer {
    opacity: 1 !important;
    transform: none !important;
  }
}