/* ============================= */
/*           HEADER             */
/* ============================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: #126365;
}
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: #126365;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  z-index: 999;
}


.header.scrolled {
  background-color: #126365;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Contenedor de los logos */
.logo-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Primer logo (izquierda) */
.logo img {
  height: 120px;       /* Altura mayor para que se vean grandes */
  max-width: 300px;    /* Aumentado para que luzca más largo */
  object-fit: contain; /* Mantiene proporción sin deformar */
}

/* Segundo logo (a la derecha del primero) */
.logo-second img {
  height: 120px;
  max-width: 300px;
  object-fit: contain;
}



.header img {
  height: 50px;
  object-fit: contain;
}

/* ============================= */
/*             NAV              */
/* ============================= */
nav {
  display: flex;
  flex-grow: 1;
  justify-content: center;
}

nav ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
  justify-content: center;
}

nav ul li {
  margin-left: 20px;
  display: inline-block;
}

nav ul li a {
  color: rgb(253, 253, 253);
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  padding: 10px;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

nav ul li a:hover {
  color: #000000;
  border-bottom: 2px solid #126365;
}

.header.scrolled .menu ul li a {
  color: #126365;
}


/* Submenú */
.submenu {
  position: relative; /* importante para posicionar el submenú */
}

.submenu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1C6C6C;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-top: 5px;
  padding: 10px 0;
  min-width: 180px;
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

.submenu:hover .sub-menu,
.submenu:focus-within .sub-menu {
  display: block;
  opacity: 1;
  visibility: visible;
}

.sub-menu li {
  display: block;
  padding: 8px 20px;
}

.sub-menu li a {
  font-size: 16px;
  color: #e0f2f1; /* un color claro para contraste con fondo */
  text-decoration: none;
  display: block;
  transition: background-color 0.2s ease, color 0.2s ease;
  border-radius: 4px;
}

.sub-menu li a:hover,
.sub-menu li a:focus {
  background-color: #126365; /* color principal sólido */
  color: #fff;
}



 
body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  background-color: #ffffff;
}
.products {
  margin-top: 110px; /* ajusta si la barra es más alta */
}


/* ============================= */
/*         HERO / SLIDER        */
/* ============================= */
.hero {
  position: relative;
  overflow: hidden;
  height: 80vh;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 30px;
}

.hero-carousel {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-slider,
.hero-images {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-images {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-image.active {
  opacity: 1;
  z-index: 2;
}



    /* ============================= */
    /*           FOOTER             */
    /* ============================= */
    footer {
      background: #1C6C6C;
      color: #fff;
      text-align: center;
      padding: 0.5em 0;
      margin-top: 30px;
    }

    .footer-lyfsa {
      background-color: #16686A;
      color: white;
      font-family: 'Segoe UI', sans-serif;
    }

    .footer-container {
      padding: 20px 20px 20px;
      max-width: 2000px;
      margin: 0 auto;
      text-align: center;
    }

    .footer-logo img {
      width: 50px;
      margin-bottom: 20px;
    }

    .footer-columns {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 40px;
      margin-bottom: 20px;
    }

    .footer-column {
      flex: 1 1 200px;
      min-width: 200px;
    }

    .footer-column h3 {
      margin-bottom: 10px;
      font-size: 16px;
      font-weight: bold;
    }

    .footer-column p {
      margin: 5px 0;
    }

    .footer-social {
      margin-top: 20px;
    }

    .footer-social a {
      margin: 0 10px;
      display: inline-block;
    }

    .footer-social img {
      width: 20px;
      height: 20px;
    }

    .footer-rights {
      background-color: #0A4B4C;
      padding: 10px 0;
      font-size: 14px;
      text-align: center;
    }

    .footer-lyfsa {
  font-size: 12px;
  background-color: #16686A;
  color: white;
  font-family: 'Segoe UI', sans-serif;
}

.footer-column h3 {
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: bold;
}

.footer-column p {
  font-size: 12px;
  margin: 5px 0;
}

.footer-rights {
  background-color: #0A4B4C;
  padding: 10px 0;
  font-size: 11px;
  text-align: center;
}
.titulo-recuadro {
  max-width: 800px; /* o 600px para hacerlo más angosto */
  margin: 0 auto;   /* centra el recuadro */
  text-align: center;
  padding: 10px;
}


.titulo-recuadro h2 {
  color: #126365;
  font-size: 1rem; /* Más pequeño */
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
}



 .galeria-constantes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px; /* Espacio entre imágenes */
  margin-top: 30px;
}

.galeria-constantes img {
  max-width: 300px; /* Puedes ajustar el tamaño */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.galeria-constantes img:hover {
  transform: scale(1.05);
}


/* === Lightbox (ver imagen grande) === */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.lightbox-img {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover {
  color: #ccc;
}

/*cajas///////////////*/
.info-cajas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 40px 20px;
}

.info-caja {
  background-color: #f4f4f4;
  padding: 20px;
  border-radius: 12px;
  width: 250px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.info-caja:hover {
  transform: translateY(-5px);
}

.info-caja h3 {
  margin-top: 0;
  color: #1C6C6C;
}

.info-caja p {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}
.intro-biozoo, .especialistas {
  background-color: #f5f7fb;
  padding: 40px 20px;
  border-radius: 8px;
  margin: 20px auto;
}

.volver {
  display: inline-block;
  margin-top: 20px; /* Bajamos el botón */
  margin-bottom: 20px;
  color: teal;
  font-weight: bold;
  text-decoration: none;
}
.volver:hover {
  text-decoration: underline;
}

h2 {
  font-size: 2rem; /* Puedes ajustar el tamaño aquí */
  margin-top: 20px;
  margin-bottom: 10px;
  color: #333;
}
body {
      font-family: 'Lato', sans-serif;
      margin: 0;
      padding: 0;
    }
    .advertisement-content h2 {
      color: #126365;
    }
    .advertisement-content p {
      color: white;
    }
    .advertisement-button {
      display: inline-block;
      padding: 12px 30px;
      font-size: 16px;
    }
    @media screen and (max-width: 768px) {
      .about-container, .advertisement-container, .product-types {
        flex-direction: column;
        text-align: center;
      }
      .about-container img, .advertisement-container img {
        width: 100%;
        height: auto;
      }
      .about-content, .advertisement-content {
        padding: 20px;
      }
      .product-card {
        width: 100%;
        margin-bottom: 20px;
      }
      .product-types {
        flex-direction: column;
      }
    }
     /* Botón del menú en esquina superior derecha */
.menu-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  cursor: pointer;
}

.menu-toggle .menu-icon {
  width: 32px;
  height: auto;
}

/* Menú pantalla completa */
.overlay-menu {
  height: 100%;
  width: 100%;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  background-color: #1C6C6C;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.overlay-menu .close-btn {
  position: absolute;
  top: 100px; /* Más abajo que el borde superior */
  right: 30px;
  font-size: 36px;
  color: white;
  cursor: pointer;
}


.overlay-content {
  text-align: center;
  color: white;
}

.overlay-content a {
  display: block;
  margin: 20px 0;
  font-size: 22px;
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.overlay-content a:hover {
  color: #ffcc00;
}

.overlay-logo {
  width: 150px;
  margin-bottom: 30px;
}


/* Oculta menú tradicional en móviles */
@media (max-width: 768px) {
  nav.menu {
    display: none;
  }
}



.logo-container {
  display: flex;
  align-items: center;
  gap: 15px; /* Espacio entre logos */
}

.logo img,
.logo-second img {
  height: 40px;
  width: auto;
}
@media (max-width: 768px) {
  /* Header */
  .header {
    padding: 10px 15px;
    height: auto;
    flex-direction: row;
    align-items: center;
    background-color: rgba(82, 147, 196, 0.7);
  }
  .logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .logo img,
  .logo-second img {
    height: 40px;
    max-width: 100px;
  }
  .menu-toggle {
    display: block;
    position: absolute;
    right: 45px;
    top: 15px;
  }

  /* Sección Misión, Valores y Visión - responsive */
  .mvv-container {
    flex-direction: column !important;
    gap: 20px !important;
    margin-top: 40px !important;
  }
  .mvv-box {
    max-width: 100% !important;
    border-left: none !important;
    border-right: none !important;
    padding: 0 !important;
  }
  .mvv-box h3 {
    font-size: 1.5rem !important;
  }
  .mvv-box p {
    font-size: 1rem !important;
    line-height: 1.4 !important;
  }
}


.submenu-items a {
  font-size: 0.85rem;  /* Letra más pequeña */
  margin-right: 8px;   /* Espacio pequeño entre enlaces */
  padding: 2px 4px;    /* Algo de espacio interno para que no estén pegados */
  white-space: nowrap; /* Que no se rompan en varias líneas */
}

/* Logo principal */
.logo img {
  height: 50px;
  max-width: 150px;
  width: auto;
  object-fit: contain;
}

/* Segundo logo */
.logo-second img {
  height: 80px;
  max-width: 250px;
  width: auto;
  object-fit: contain;
}


.menu-toggle {
  position: fixed;
  top: 40px;
  right: 30px;
  z-index: 1001;
  cursor: pointer;
}

.menu-toggle .menu-icon {
  width: 25px;
  height: auto;
}