/* ============================= */
/*       RESET GENERAL          */
/* ============================= */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  line-height: 1;
  color: #000;
}

/* ============================= */
/*           HEADER             */
/* ============================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: #1C6C6C;
}

.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: transparent;
  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);
}

.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: white;
  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: #ffffff;
}

/* Submenú */
.submenu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: transparent;
  margin-top: 2px;
}

.submenu:hover .sub-menu {
  display: block;
}

.sub-menu li {
  display: block;
  padding: 5px 0;
}

.sub-menu li a {
  font-size: 16px;
  color: #333;
  text-decoration: none;
}

.sub-menu li a:hover {
  color: #007bff;
}

/* ============================= */
/*         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;
}

/* Botones slider */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
}

.slider-btn img {
  width: 30px;
  height: auto;
  object-fit: contain;
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

/* ============================= */
/*           SECTIONS           */
/* ============================= */
.about,
.products,
.contact {
  padding: 50px 0;
}

.about-box {
  background-color: #1C6C6C;
  color: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}



 


    /* 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: 22px;
  height: auto;
}

/* Menú pantalla completa */
.overlay-menu {
  height: 100%;
  width: 100%;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  background-color:#16686A;
  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;
  }
}


/* Formulario */
/* Fondo general de la sección */
.formulario-contacto {
  background-color: #5293c4; /* Azul pastel */
  padding: 3rem 2rem;
  color: white;
  font-family: 'Lato', sans-serif;
}

/* Título centrado */
.centrado-texto {
  text-align: center;
  margin-bottom: 2rem;
}

.centrado-texto h2 {
  font-size: 1.8rem;
  font-weight: bold;
}

.centrado-texto p {
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Estructura del formulario */
.formulario {
  max-width: 1000px;
  margin: 0 auto;
}

/* Fila de inputs */
.fila {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Campos de entrada */
.formulario input,
.formulario textarea {
  flex: 1;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 10px;
  background-color: #a0c4e3;
  color: white;
  font-size: 1rem;
  min-width: 0;
}

.formulario textarea {
  resize: vertical;
  min-height: 100px;
}

/* Placeholder con contraste bajo */
.formulario input::placeholder,
.formulario textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Botón de envío */
.btn-enviar {
  background-color: #004b84;
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  display: block;
  margin: 1rem auto 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-enviar:hover {
  background-color: #00365e;
}



.banner-img {
  width: 120%;
  max-width: 1380px;
  height: auto;
  aspect-ratio: 1380 / 400;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}
.advertisement-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 1rem;
}


.logo-container {
  display: flex;
  align-items: center;
  gap: 15px; /* Espacio entre logos */
}

.logo img,
.logo-second img {
  height: 40px;
  width: auto;
}

@media (max-width: 600px) {
  .logo-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo img,
  .logo-second img {
    height: 30px;
  }
}


/* Redes sociales en footer */
.footer-social img {
  width: 32px;
  height: auto;
}
@media (max-width: 768px) {
  .product-card img {
    max-height: 150px;
  }

  .hero-image {
    max-height: 250px;
  }

  .about-img,
  .banner-img {
    max-width: 100%;
  }

  .footer-social img {
    width: 24px;
  }
}


/* ==== RESPONSIVE DESIGN PARA DISPOSITIVOS PEQUEÑOS ==== */
@media (max-width: 768px) {

  /* HEADER más delgado y logos a la izquierda */
 .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;
  }

  /* FORMULARIO: 2 en 2 campos */
  .formulario {
    width: 90%;
    margin: auto;
  }

  .formulario .fila {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .formulario .fila input,
  .formulario .fila textarea {
    flex: 1 1 calc(50% - 10px);
    min-width: 140px;
    padding: 10px;
    font-size: 14px;
  }

  .formulario .fila textarea {
    flex: 1 1 100%;
    resize: vertical;
  }

  .btn-enviar {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    font-size: 16px;
  }

  /* MAPA responsivo */
  iframe {
    width: 100% !important;
    height: 300px;
  }

  /* FOOTER responsivo */
  .footer-lyfsa {
    padding: 20px 15px;
    text-align: center;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-logo img {
    height: 50px;
    margin-bottom: 10px;
  }

  .footer-columns {
    flex-direction: column;
    gap: 15px;
  }

  .footer-column h3 {
    margin-bottom: 5px;
    font-size: 16px;
  }

  .footer-column p {
    font-size: 14px;
  }

  .footer-social {
    margin: 15px 0;
  }

  .footer-social a img {
    width: 30px;
    margin: 0 5px;
  }

  .footer-rights {
    font-size: 13px;
    margin-top: 10px;
  }
}


.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 */
}


@media screen and (max-width: 768px) {
  /* HEADER */
  .header {
    padding: 10px 15px;
    flex-direction: row;
    align-items: center;
    background-color: transparent;
  }

  .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;
  }

  /* FORMULARIO */
  .formulario {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .formulario .fila {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .formulario input,
  .formulario textarea {
    width: 100%;
    font-size: 16px;
  }

  .btn-enviar {
    width: 100%;
    padding: 12px;
    font-size: 16px;
  }

  .centrado-texto h2 {
    font-size: 20px;
    text-align: center;
  }

  .centrado-texto p {
    font-size: 14px;
    text-align: center;
    padding: 0 10px;
  }

 

  /* FOOTER */
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .footer-columns {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .footer-column {
    margin: 0 auto;
  }

  .footer-logo img {
    height: 50px;
  }

  .footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
  }

  .footer-social img {
    height: 30px;
    width: 30px;
  }

  .footer-rights {
    margin-top: 15px;
    font-size: 12px;
  }
}








/* Estilo para el contenedor del mapa */
.mapa-contenedor {
  display: flex;
  justify-content: center;
  margin: 2rem auto;
  max-width: 100%;
  overflow: hidden;
}

/* Estilo del mapa en computadoras */
.mapa-lyfsa {
  width: 1350px;
  height: 450px;
  border: 0;
}

/* Modo responsivo para tablets y móviles */
@media screen and (max-width: 1399px) {
  .mapa-lyfsa {
    width: 100%;
    height: 300px;
  }
}




    /* ============================= */
    /*           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;
}

/* 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: 30px;
  right: 30px;
  z-index: 1001;
  cursor: pointer;
}

.menu-toggle .menu-icon {
  width: 25px;
  height: auto;
}