/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
}

/* CABECERA PRINCIPAL */
.main-header {
  box-shadow: 0 2px 5px rgba(134, 30, 30, 0.1);
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background-color: #fff;;
  flex-wrap: wrap;
  gap: 10px;
    height: auto;
     border-bottom: 2px solid #ccc;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-box img {
  height: 100px; /* Aumenta este valor según lo que necesites */
  width: auto;  /* Mantiene la proporción del logo */
}

/* Texto al lado del logo */
.logo-text h1 {
  margin: 0;
  font-size: 24px;
  color: #1e3c72; /* Azul oscuro */
  font-weight: bold;
  line-height: 1.2;
}

.logo-text .highlight {
  color: #888; /* Plomo claro */
}

.logo-text p {
  margin: 0;
  font-size: 14px;
  color: #555;
  font-weight: 500;
  letter-spacing: 0.5px;
}


.contact-info {
  text-align: right;
  font-size: 0.9rem;
  color: #333;
}

.contact-info i {
  color: #0e2536;
  margin-right: 6px;
}

/* NAV BAR */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5%;
  background-color: #00508a;
  color: white;
  position: relative;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-menu li a {
  color: white;
  text-decoration: none;
  font-weight: 300;
  transition: all 0.3s ease;
}

.nav-menu li a:hover {
  color: #f0c040;
}

.redes {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.redes a {
  color: white;
  background-color: #ffffff33;
  border-radius: 50%;
  padding: 6px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.redes a:hover {
  background-color: #f0c040;
  color: #0e2536;
}

/* CARRUSEL */
.carousel {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 400px; /* ajusta según lo que quieras */
}

.carousel-slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.5s ease-in-out;
  opacity: 0;
  z-index: 1;
}

.carousel-slide.active {
  display: block;
  opacity: 1;
  z-index: 2;
}

.carousel-slides img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: none;
  transition: opacity 0.5s ease-in-out;
}

.carousel-slides img.active {
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(14, 37, 54, 0.7);
  color: white;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  padding: 10px 15px;
  z-index: 10;
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255,255,255,0.6);
  border-radius: 50%;
  cursor: pointer;
}

.carousel-dots .dot.active {
  background-color: #f0c040;
}

/* SECCIÓN NOSOTROS */
.seccion-nosotros {
  padding: 60px 20px;
  text-align: center;
  background-color: #ffffff;
}

.seccion-nosotros .contenedor {
  max-width: 900px;
  margin: 0 auto;
}

.seccion-nosotros h2 {
  font-size: 2.5rem;
  color: #003366;
  margin-bottom: 20px;
}

.seccion-nosotros p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
}

/* SECCIÓN SERVICIOS */
.servicios {
  padding: 60px 20px;
  background-color: #f4f8fb;
  text-align: center;
}

.servicios h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #003366;
}

.servicio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.servicio {
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.servicio-img {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.servicio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.servicio h3 {
  color: #00508a;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.servicio p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* ¿POR QUÉ ELEGIRNOS? */
.por-que-elegirnos {
  background-color: #f9fbfd;
  padding: 60px 20px;
  text-align: center;
}

.por-que-elegirnos h2 {
  font-size: 2rem;
  color: #003366;
  margin-bottom: 30px;
}

.ventajas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.ventaja {
  background: linear-gradient(145deg, #f8fafc, #e0e7ef);
  border-radius: 16px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.ventaja:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.ventaja .icono {
  font-size: 2.8rem;
  color: #00508a;
  margin-bottom: 10px;
}

.ventaja h3 {
  font-size: 1.3rem;
  color: #003f6b;
  margin-bottom: 10px;
}

.ventaja .descripcion {
  display: none;
  font-size: 0.95rem;
  color: #444;
  margin-top: 5px;
  line-height: 1.5;
  text-align: left;
  background: #ffffff;
  padding: 10px 15px;
  border-radius: 10px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.ventaja.activa .descripcion {
  display: block;
}

/* CLIENTES */
.clientes {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
}

.clientes h2 {
  font-size: 2rem;
  color: #003366;
  margin-bottom: 30px;
}

.logos-clientes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.logos-clientes img {
  max-height: 60px;
  object-fit: contain;
  opacity: 0.8;
  transition: transform 0.3s ease;
}

.logos-clientes img:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* CONTACTO */
.contacto {
  padding: 60px 20px;
  background-color: #f4f8fb;
  text-align: center;
}

.contacto h2 {
  font-size: 2rem;
  color: #003366;
  margin-bottom: 20px;
}

#formulario-contacto {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 15px;
}

#formulario-contacto input,
#formulario-contacto textarea {
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
}

#formulario-contacto textarea {
  resize: vertical;
  min-height: 100px;
}

#formulario-contacto button {
  background-color: #00508a;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
}

#formulario-contacto button:hover {
  background-color: #003f6b;
}

.info-extra {
  margin-top: 30px;
  color: #333;
  font-size: 0.95rem;
}

.info-extra i {
  color: #00508a;
  margin-right: 8px;
}

/* FOOTER */
.footer {
  background-color: #003f6b;
  color: white;
  padding: 20px 5%;
  text-align: center;
}

.footer-contenido {
  max-width: 1200px;
  margin: 0 auto;
}

.footer .redes {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.footer .redes a {
  background-color: #ffffff33;
  color: white;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.footer .redes a:hover {
  background-color: #f0c040;
  color: #003366;
}

/* RESPONSIVE NAV */
@media (max-width: 768px) {
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
    background-color: #00508a;
    padding-bottom: 20px;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 5%;
    top: 15px;
    z-index: 1001;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #003f6b;
    border-radius: 0 0 12px 12px;
    padding: 20px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
    margin: 5px 0;
  }

  .nav-menu li a {
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    padding: 8px 12px;
    display: block;
    transition: background 0.3s;
  }

  .nav-menu li a:hover {
    background-color: #004c7a;
    border-radius: 8px;
  }

  .redes {
    margin-top: 15px;
    width: 100%;
    justify-content: center;
    gap: 15px;
    font-size: 1.2rem;
  }

  .redes a {
    background-color: #ffffff33;
    color: white;
    padding: 10px;
    width: 40px;
    height: 40px;
  }

  .redes span {
    display: none;
  }
  .logo-text h1 {
    font-size: 20px;
  }

  .logo-text p {
    font-size: 13px;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Mostrar descripción al hacer clic */
.servicio .servicio-descripcion {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: all 0.4s ease;
  margin-top: 15px;
}

.servicio.activo .servicio-descripcion {
  max-height: 500px;
  opacity: 1;
  transform: scaleY(1);
}

/* Estilo botón Ver Más */
.btn-ver-mas {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #00508a, #0073c7);
  color: white;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-ver-mas:hover {
  background: linear-gradient(135deg, #003f6b, #00508a);
  transform: scale(1.05);
}
.slider-clientes {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 30px 0;
  background-color: #ffffff;
}

.logos-slider {
  display: flex;
  gap: 60px;
  animation: scroll-logos 30s linear infinite;
  align-items: center;
}

.logos-slider img {
  height: 80px; /* Más grande */
  max-height: 100px;
  object-fit: contain;
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.logos-slider img:hover {
  transform: scale(1.1);
  opacity: 1;
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.logos-clientes {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 60px;
  padding: 50px 20px;
}

.logos-clientes img {
  height: 200px; /* ← Aumenta el alto de los logos */
  max-width: 300px; /* ← Máximo ancho para mantener proporción */
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.95;
}

.logos-clientes img:hover {
  transform: scale(1.12);
  opacity: 1;
}
.carousel-logos {
  overflow: hidden;
  width: 100%;
  background-color: #ffffff;
  padding: 40px 0;
}

.logo-track {
  display: flex;
  width: max-content;
  animation: scroll-logos 30s linear infinite;
  gap: 80px;
  align-items: center;
}

.logo-track img {
  height: 120px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-track img:hover {
  transform: scale(1.1);
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Sección Nosotros */
.seccion-nosotros {
  background-color: #f9f9f9;
  padding: 60px 20px;
  font-family: 'Poppins', sans-serif;
}

.contenedor-nosotros {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.titulo-nosotros {
  font-size: 2.5rem;
  color: #1b1b1b;
  margin-bottom: 40px;
}

.bloques-nosotros {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.bloque {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.bloque h3 {
  color: #006494;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.bloque i {
  margin-right: 8px;
}

.bloque p {
  color: #444;
  line-height: 1.6;
}

.subtitulo {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #1b1b1b;
}

/* Ventajas */
.ventajas-nosotros {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  text-align: center;
}

.ventaja {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.ventaja:hover {
  transform: translateY(-5px);
}

.ventaja i {
  font-size: 2.2rem;
  color: #006494;
  margin-bottom: 10px;
}

.ventaja h4 {
  font-size: 1.1rem;
  color: #1b1b1b;
  margin-bottom: 8px;
}

.ventaja p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}
/* Sección Servicios */
.seccion-servicios {
  background-color: #ffffff;
  padding: 60px 20px;
  font-family: 'Poppins', sans-serif;
}

.contenedor-servicios {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.titulo-servicios {
  font-size: 2.5rem;
  color: #1b1b1b;
  margin-bottom: 10px;
}

.descripcion-servicios {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 40px;
}

.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.tarjeta-servicio {
  background-color: #f9f9f9;
  padding: 30px 20px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.tarjeta-servicio:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.tarjeta-servicio i {
  font-size: 2.8rem;
  color: #006494;
  margin-bottom: 15px;
}

.tarjeta-servicio h3 {
  color: #1b1b1b;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.tarjeta-servicio p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.btn-servicio {
  display: inline-block;
  padding: 10px 20px;
  background-color: #006494;
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn-servicio:hover {
  background-color: #004a6e;
}

/* Modales */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  overflow: auto;
  animation: fadeIn 0.4s ease;
}

.modal-contenido {
  background-color: #fff;
  margin: 80px auto;
  padding: 30px;
  border-radius: 16px;
  max-width: 600px;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  animation: slideUp 0.4s ease;
}

.modal-contenido h3 {
  margin-bottom: 15px;
  color: #006494;
}

.modal-contenido img {
  width: 100%;
  height: auto;
  max-height: 300px;
  border-radius: 12px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.modal-contenido p {
  color: #444;
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.6;
}

.btn-cotizar {
  background-color: #006494;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-cotizar:hover {
  background-color: #004a6e;
}

.cerrar {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
/* CONTACTO */
.seccion-contacto {
  background-color: #f2f7fa;
  padding: 60px 20px;
  font-family: 'Poppins', sans-serif;
}

.contenedor-contacto {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.seccion-contacto h2 {
  font-size: 2.2rem;
  color: #1b1b1b;
  margin-bottom: 10px;
}

.descripcion-contacto {
  font-size: 1rem;
  color: #555;
  margin-bottom: 30px;
}

form {
  background-color: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.campo-formulario {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  background-color: #f1f5f9;
  border-radius: 30px;
  padding: 10px 15px;
}

.campo-formulario i {
  margin-right: 10px;
  color: #006494;
  font-size: 1.1rem;
}

.campo-formulario input,
.campo-formulario textarea {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 1rem;
  color: #333;
  outline: none;
  resize: none;
}

.btn-enviar {
  background-color: #006494;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.btn-enviar:hover {
  background-color: #004a6e;
}

.mensaje-envio {
  margin-top: 15px;
  font-size: 0.95rem;
  color: green;
}

.info-extra-contacto {
  margin-top: 30px;
  color: #444;
  font-size: 0.95rem;
}

.info-extra-contacto i {
  margin-right: 8px;
  color: #006494;
}
