/* ============================
   ESTILOS GENERALES
=============================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  transition: all 0.3s;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ============================
   HEADER & NAV
=============================== */
.header {
  background: #0b7ebc;
  color: white;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}

.header .logo {
  font-size: 1.8rem;
  font-weight: bold;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-menu li a {
  color: white;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================
   HERO SECTIONS
=============================== */
.hero,
.hero-serv,
.hero-prod,
.hero-blog,
.hero-certificates,
.hero-contacto {
  text-align: center;
  padding: 80px 20px;
  color: white;
  position: relative;
}

.hero { background: linear-gradient(135deg,#0b7ebc,#0dd1b0);}
.hero-serv { background: linear-gradient(135deg, #1a3d7c, #2e64b3);}
.hero-prod { background: linear-gradient(135deg,#ff7e5f,#feb47b);}
.hero-blog { background: linear-gradient(135deg,#6a11cb,#2575fc);}
.hero-certificates { background: linear-gradient(135deg,#11998e,#38ef7d);}
.hero-contacto { background: linear-gradient(135deg,#ff416c,#ff4b2b);}

.hero h1,
.hero-serv h2,
.hero-prod h2,
.hero-blog h2,
.hero-certificates h2,
.hero-contacto h2 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.hero p,
.hero-serv p,
.hero-prod p,
.hero-blog p,
.hero-certificates p,
.hero-contacto p {
  font-size: 1.2rem;
}

/* ============================
   BOTONES
=============================== */
.btn-main,
.btn-whatsapp,
.blog-btn,
.btn-contact {
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  display: inline-block;
  margin: 10px 5px;
  transition: all 0.3s;
  text-align: center;
}

.btn-main {
  background: #ffffff;
  color: #0b7ebc;
}

.btn-main:hover {
  background: #e8e8e8;
}

.btn-whatsapp {
  background: #25D366;
  color: white;
}

.btn-whatsapp:hover {
  background: #1eb954;
}

.blog-btn {
  background: #0b7ebc;
  color: white;
}

.blog-btn:hover {
  background: #0790a0;
}

.btn-contact {
  background: #0b7ebc;
  color: white;
  width: 100%;
}

.btn-contact:hover {
  background: #0790a0;
}

/* ============================
   SECCIONES
=============================== */
.section {
  padding: 60px 0;
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  color: #0b7ebc;
  margin-bottom: 30px;
}

.section p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  color: #555;
}

/* BENEFICIOS / PASOS */
.benefits,
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
  gap: 25px;
  margin-top: 20px;
}

.benefit,
.step {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.benefit:hover,
.step:hover {
  transform: translateY(-5px);
}

.benefit h3,
.step h3 {
  color: #0b7ebc;
  margin-bottom: 12px;
}

/* ============================
   TESTIMONIOS
=============================== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 25px;
}

.testimonial {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-style: italic;
  position: relative;
}

.testimonial::before {
  content: "\f10d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 10px;
  left: 10px;
  color: #0b7ebc;
  font-size: 1.5rem;
}

/* ============================
   PRODUCTOS
=============================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 25px;
  margin-top: 30px;
}

.product-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-card h3 {
  margin: 15px 0 10px;
  color: #0b7ebc;
}

.product-card p {
  padding: 0 10px 15px;
  font-size: 0.95rem;
  color: #555;
}

/* ============================
   CERTIFICACIONES
=============================== */
.certificate-logos,
.certificates-list {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: 25px;
  margin-top: 20px;
}

.certificate-logos img,
.certificate-item img {
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
}

.certificate-item h3 {
  color: #0b7ebc;
  margin: 10px 0 5px;
}

.certificate-item p {
  color: #555;
  font-size: 0.9rem;
}

/* ============================
   BLOG
=============================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 25px;
  margin-top: 30px;
}

.blog-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-info {
  padding: 15px;
}

.blog-info h3 {
  margin-bottom: 10px;
  color: #0b7ebc;
}

.blog-info p {
  font-size: 0.95rem;
  color: #555;
}

/* ============================
   CONTACTO
=============================== */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cotizacion-rapida {
  flex: 1 1 400px;
}

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

.cotizacion-rapida input,
.cotizacion-rapida select {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.cotizacion-rapida .buttons {
  display: flex;
  gap: 10px;
}

.cotizacion-rapida .btn-contact,
.cotizacion-rapida .btn-whatsapp {
  flex: 1;
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
  border: none;
}

/* ============================
   FOOTER
=============================== */
footer {
  background: #0b7ebc;
  color: white;
  text-align: center;
  padding: 25px;
}

footer a {
  color: white;
  text-decoration: none;
  margin: 0 5px;
}

/* ============================
   RESPONSIVE
=============================== */
@media (max-width: 900px) {
  .nav-container { flex-direction: column; gap: 15px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .hero h1,
  .hero-serv h2,
  .hero-prod h2,
  .hero-blog h2,
  .hero-certificates h2,
  .hero-contacto h2 {
    font-size: 2rem;
  }

  .btn-main,
  .btn-whatsapp,
  .blog-btn {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
}

/* CARRUSEL DE CLIENTES */
.clientes-section {
  padding: 50px 0;
  text-align: center;
}

.logos-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 30px;
}

.logos-track {
  display: flex;
  width: calc(200px * 10); /* 5 logos x 2 (duplicados) */
  animation: scroll 20s linear infinite;
}

.logos-track img {
  width: 180px;             /* un poco más pequeño para que respiren */
  height: 100px;            /* altura estable */
  object-fit: contain;      /* evita que se aplasten o deformen */
  padding: 0 30px;          /* separa mejor los logos */
  opacity: 0.9;
  transition: 0.3s;
}


.logos-track img:hover {
  opacity: 1;
  transform: scale(1.05);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/*LISTA DE CERTIFICACIONES*/
  .pdf-menu {
      position: relative;
      display: inline-block;
      margin-top: 10px;
    }

    .pdf-list {
      display: none;
      position: absolute;
      background: #fff;
      border: 1px solid #ddd;
      border-radius: 6px;
      width: 220px;
      z-index: 10;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .pdf-list a {
      display: block;
      padding: 10px;
      text-decoration: none;
      color: #333;
      transition: background 0.3s;
    }

    .pdf-list a:hover {
      background-color: #f2f2f2;
    }

    .pdf-list.show {
      display: block;
    }
/* GALERÍA */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.galeria-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.3s;
}

.galeria-img:hover {
  transform: scale(1.05);
}

/* MODAL */
.modal-galeria {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
}

.modal-contenido {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

.cerrar-modal {
  position: absolute;
  top: 15px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
/* Botón hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: 0.3s;
}

/* Menú colapsable para móviles */
@media (max-width: 500px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    background: #0b7ebc;
  }

  .nav-menu.show {
    display: flex;
  }

  .nav-menu li a {
    padding: 15px;
    width: 100%;
    text-align: center;
  }

  .hamburger {
    display: flex;
  }
}
/* Secciones de productos, pasos, beneficios, blogs y galería */
@media (max-width: 500px) {
  .benefits,
  .steps,
  .product-grid,
  .blog-grid,
  .galeria-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .hero,
  .hero-serv,
  .hero-prod,
  .hero-blog,
  .hero-certificates,
  .hero-contacto {
    padding: 60px 15px;
  }

  .product-card img,
  .blog-card img,
  .galeria-img {
    height: auto;
    aspect-ratio: 16/9;
  }
}
@media (max-width: 500px) {
  .btn-main,
  .btn-whatsapp,
  .blog-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
  }
}
@media (max-width: 500px) {
  .modal-contenido {
    max-width: 95%;
    max-height: 70%;
  }

  .cerrar-modal {
    top: 10px;
    right: 15px;
    font-size: 35px;
  }
}
