/* =========================
   RESET + TIPOGRAFÍA
========================= */

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 17px;
  letter-spacing: 0.3px;
  background: #ffffff;
}

img {
  max-width: 100%;
  display: block;
}

.ver-mas {
  text-align: center;
  margin-top: 20px;
}

.ver-mas a {
  display: inline-block;
  padding: 8px 25px;
  border: 1px solid #444;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  background: #e5e5e5;
  transition: 0.3s;
}

.ver-mas a:hover {
  background: #2f4f88;
  color: white;
}

/* =========================
   DROPDOWN
========================= */

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: #2f4f88;
  min-width: 220px;
  top: 100%;
  left: 0;
  z-index: 999;
}

/* LINKS */
.dropdown-content a {
  display: block;
  padding: 12px;
  color: white;
  text-decoration: none;
  font-weight: 300;
}

.dropdown-content a:hover {
  background: #3b5fa5;
}

/* MOSTRAR AL PASAR MOUSE */
.dropdown:hover .dropdown-content {
  display: block;
}

/* =========================
   NAVBAR
========================= */

.logo img {
  width: 110px;
  height: auto;
}

.navbar {
  background: #2f4f88;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 5px 40px;
  position: relative;
  z-index: 1000;
}

.navbar nav {
  display: flex;
  gap: 30px;
}

.navbar nav a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1px;
  transition: 0.3s;
}

.navbar nav a:hover {
  opacity: 0.7;
}

.navbar nav a.activo {
  font-weight: bold;
  
}

.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

/* =========================
        MENU MOBILE
========================= */

@media (max-width: 768px) {

  .menu-toggle {
    display: block;
    color: #fff;
    font-size: 48px;
  }

  .navbar nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 60px 20px;
    
    transition: right 0.3s ease;
    z-index: 10000;
  }
  .navbar nav a {
  text-decoration: none;
  color: #333; /* Asegúrate de que las letras sean visibles */
  padding: 15px 20px;
  display: block;
  font-size: 18px;
  }
  .navbar nav a:hover {
  background-color: #f2f2f2;
  }
  .navbar nav.activo {
    right: 0;
  }

  /* OVERLAY */
  .overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 9998;
  }

  .overlay.activo {
    display: block;
  }

  /* DROPDOWN MOBILE */
  .dropdown-content {
    position: static;
    display: none;
  }

  .dropdown.activo .dropdown-content {
    display: block;
  }
}

/* =========================
   SECCIONES
========================= */

.section {
  padding: 25px 60px;
  opacity: 0;
  transform: translateX(-60px);
  animation: aparecer 1s forwards;
}

.content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

.reverse .products {
  margin-left: auto; /* 🔥 empuja hacia la imagen */
  text-align: right;
}

.titulo-derecha {
  text-align: right;
}

.reverse .cards {
  justify-content: flex-end;
}

.reverse .content {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
}

/* Imagen principal */
.main-img {
  width: 420px;
  border-radius: 5px;
}

/* =========================
   PRODUCTOS
========================= */

/* GRID */
.productos {
  padding: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  place-items: center;
}

.products {
  max-width: 700px;
}

.products h2 {
  color: #2f4f88;
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 10px;
}

.products p {
  margin-bottom: 20px;
  color: #444;
  font-size: 17px;
  font-weight: 300;
}

.cards {
  display: flex;
  gap: 20px;
}

/* CARD */
.card {
  border: 1px solid #ccc;
  padding: 15px;
  width: 100%;
  cursor: pointer;
  background: white;
  max-width: 260px;
  box-sizing: border-box;

  transition: 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
}

.card p {
  color: #2f4f88;
  font-weight: 500;
  font-size: 13px;
}

.card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-top: 10px;
}

/* HOVER */
.card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* =========================
   MARCAS (SLIDER)
========================= */

.marcas {
  text-align: center;
  padding: 60px 20px;
  perspective: 1000px;
  overflow: hidden;
}

.marcas h2 {
  color: #2f4f88;
  margin-bottom: 30px;
}

.slider-marcas {
  display: flex;
  justify-content: center;
}

.track {
  position: relative;
  width: 220px;
  height: 180px;
  transform-style: preserve-3d;
  animation: girar 18s linear infinite;
}

.track img {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 80px;
  transform-style: preserve-3d;
  transform-origin: center;
  transition: transform 0.5s, filter 0.5s;
  filter: brightness(0.6);
}

/* 4 posiciones (cada 90 grados) */
.track img:nth-child(1) {
  transform: rotateY(0deg) translateZ(180px);
}
.track img:nth-child(2) {
  transform: rotateY(90deg) translateZ(180px);
}
.track img:nth-child(3) {
  transform: rotateY(180deg) translateZ(180px);
}
.track img:nth-child(4) {
  transform: rotateY(270deg) translateZ(180px);
}

/* Tablets */
@media (max-width: 768px) {
  .track {
    width: 180px;
    height: 150px;
  }

  .track img {
    height: 50px;
  }

  .track img:nth-child(1),
  .track img:nth-child(2),
  .track img:nth-child(3),
  .track img:nth-child(4) {
    transform: rotateY(var(--angle)) translateZ(140px);
  }
}

/* Móviles */
@media (max-width: 480px) {
  .track {
    width: 140px;
    height: 120px;
  }

  .track img {
    height: 40px;
  }

  .track img:nth-child(1),
  .track img:nth-child(2),
  .track img:nth-child(3),
  .track img:nth-child(4) {
    transform: rotateY(var(--angle)) translateZ(110px);
  }
}

/* Animación */
@keyframes girar {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}
/* =============================== */

/* exclusivo para productos*/
.slider {
  position: relative;
  width: 100%;
  height: 180px; /* altura fija */
  overflow: hidden;
  
  display: flex;
  gap: 80px;
  align-items: center;
  justify-content: center;
  
}

.slider img {
  height: 60px;
  object-fit: contain;
}

.slider-marcas img {
  height: 60px;
  width: auto;
  object-fit: contain;
}
/* BOTONES < > */
.oculto-btn {
  display: none;
}

/* Animación slider */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50px);
  }
}

/* =========================
   ANIMACIONES
========================= */

@keyframes aparecer {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

  .content {
    flex-direction: column;
    text-align: center;
  }

  .reverse .content {
    flex-direction: column;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }

  .navbar {
    flex-direction: column;
    gap: 15px;
  }

  .main-img {
    width: 100%;
  }
}

/* =========================
   FOOTER
========================= */

.footer {
  background: #2f4f88;
  color: white;
  padding: 60px 80px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 50px;
}

.footer-col {
  flex: 1;
}

/* TITULOS */
.footer h4 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 16px;
}

/* TEXTOS */
.footer p {
  margin: 5px 0;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.4;
  text-align: justify;
}

/* MENU */
.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul li a {
  color: white;
  text-decoration: none;
  font-weight: 300;
  transition: 0.3s;
}

.footer ul li a:hover {
  opacity: 0.7;
}

/* REDES */
.redes {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.redes img {
  width: 25px;
  cursor: pointer;
  transition: 0.3s;
}

.redes img:hover {
  transform: scale(1.2);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .redes {
    justify-content: center;
  }
}

/* =========================
   BANNER
========================= */

.banner {
  position: relative;
  width: 100%;
  height: 700px;   /* más grande */
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; /* empieza desde arriba */
  display: block;
}

.banner h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 40px;
  font-weight: 500;
}

/* =========================
   QUIENES
========================= */

.quienes {
  padding: 60px 80px;
}

.quienes-container {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

/* VIDEO */
.video {
  flex: 1;
}

/* TEXTO */
.info {
  flex: 1.2;

}
.info p {
  margin-bottom: 20px;
  line-height: 1.6;
  font-weight: 300;
  color: #333;
  text-align: justify;
}

/* TITULO PRINCIPAL */
.titulo {
  background: #2f4f88;
  color: white;
  padding: 10px 20px;
  display: inline-block;
  border-radius: 20px;
  font-size: 18px;
}

/* BLOQUES */
.bloque {
  background: #2f4f88;
  color: rgb(255, 255, 255);
  display: inline-block;
  padding: 8px 15px;
  border-radius: 15px;
  margin-top: 20px;
  font-size: 16px;
}

/* LISTA */
.info ul {
  padding-left: 0;
  list-style: none;
}

.info ul li {
  margin: 5px 0;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .quienes-container {
    flex-direction: column;
  }
}

/* =========================
   POLÍTICAS
========================= */

.politicas {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

.politicas-container {
  max-width: 850px;   /* 🔥 controla el ancho tipo documento */
  margin: 0 auto;     /* 🔥 centra TODO el bloque */
  text-align: justify;
}

/* TITULO */
.politicas h1 {
  text-align: center;
  font-size: 34px;
  margin-bottom: 40px;
  color: #3d4f6c;
  font-weight: 700; /* 🔥 esto lo hace ancho/negrita */
}

/* TEXTO */
.politicas p {
  margin-bottom: 20px;
  line-height: 1.6;
  font-weight: 300;
  color: #333;
}

/* LISTA */
.politicas ul {
  margin: 20px 0;
  padding-left: 20px;
}

.politicas ul li {
  margin-bottom: 10px;
}

/* FIRMA */
.firma {
  text-align: center;
  margin-top: 50px;
}

/* =========================
   MODAL - PRODUCTOS
========================= */

.modal-producto {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-producto.activo {
  display: flex;
}

.modal-contenido {
  width: 95%;
  max-width: 900px;        /* ancho tipo e-commerce */
  height: 90vh;
  overflow: hidden;        /* evita desbordes raros */
  background: #ffffff;
  border-radius: 10px;
  padding: 25px;
  position: relative;
  box-sizing: border-box;
  container-type: inline-size;
}

.cerrar-modal {
  position: absolute;
  top: 15px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 36px;
  color: #6b6b6b;
  cursor: pointer;
}

/* GRID PROFESIONAL */
.modal-grid {
  display: grid;
  grid-template-columns: 1fr;   /* mobile primero */
  gap: 25px;
  height: 100%;
  min-height: 0;
}

/* DESKTOP */
@media (min-width: 768px) {
  .modal-grid {
    grid-template-columns: 1.1fr 0.9fr; /* imagen más grande */
    align-items: stretch;
  }
}

/* GALERÍA CONTROLADA */
.modal-galeria {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 100%;   /* controla altura */
}

/* contenedor real de la imagen */
.imagen-wrapper {
  position: relative;
  display: inline-block;
  overflow: hidden;
  cursor: zoom-in;
}

/* imagen */
.imagen-wrapper img {
  display: block;
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  transition: transform 0.2s ease;
  transform-origin: center center;
}

/* flechas SIEMPRE encima */
.modal-flecha {
  z-index: 999;
}

.imagen-wrapper.zoom-activo img {
  transform: scale(4);

}

/* IMAGEN CONTROLADA */
.modal-galeria img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
}

/* FLECHAS */
.modal-flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  border: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 50%;
}

/* posiciones exactas */
.modal-flecha.izq {
  left: 5px;
}

.modal-flecha.der {
  right: 5px;
}

/* INFO */

/* SCROLL SOLO AQUÍ */
.modal-info {
  /* overflow-y: auto; */
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  /* padding-right: 15px; /* opcional, evita que el scroll tape texto */
}

.modal-info h2 {
  font-size: 3cqw;
  /* font-size: 24px;*/
  margin-bottom: 5px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.modal-info .codigo {
  font-size: 14px;
  margin-bottom: 15px;
  flex-shrink: 0;
}

.modal-info .descripcion {
  font-size: 14px;
  line-height: 1.5;
  text-align: justify;
  /*scroll en decripcion */
  overflow-y: auto;
  min-height: 0;
  flex: 1; /* 👈 ocupa el espacio restante */
  padding-right: 15px; 
}

.modal-info .descripcion ul {
  margin: 10px 0;
  padding-left: 20px;
  text-align: left;
}

.modal-info .pdf-link {
  display: inline-block;
  margin-top: 15px;
  font-size: 14px;
  flex-shrink: 0;
}

.card {
  cursor: pointer;
}

/* =========================
   HERO - PORTADA PRODUCTOS
========================= */
    .hero {
      position: relative;
      width: 100%;
      /* height: 800px; */
      height: auto;            /* altura adaptable */
      overflow: hidden;
    }

    .hero img {
      width: 100%;
      height: auto;
      object-fit: contain;
      display: block;
    }

    .hero h1 {
      position: absolute;
      top: 50%;
      left: 80px;
      transform: translateY(-50%);
      color: #2f4f88;
      font-size: 36px;
      font-weight: 700;
    }