/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Prueba Nav Bar */
header {
  position: sticky !important;
  top: 0;
  z-index: 1000;
}

/* Prueba Nav Bar */
/* Tipografía */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

@media (min-width: 769px) {
  body {
    padding-top: 70px; /* ajusta según la altura real de tu navbar */
  }
}

section {
  scroll-margin-top: 35px; /* mismo alto del navbar */
}
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  backdrop-filter: blur(25px);
  background-color: rgba(255, 255, 255, 0.7); /* blanco transparente */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* opcional */
  z-index: 1000;
}

/* NAVBAR */
header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  /*background-color: #fff;*/
  border-bottom: 1px solid #ddd;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-menu li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.logo img {
  height: 80px;
}

/* --- ESTILOS RESPONSIVE PARA NAVBAR --- */
.menu-toggle {
  display: none;
}

.titulo-nombre {
  display: none;
}

@media (max-width: 768px) {
  @media (max-width: 460px) {
    nav.navbar {
      justify-content: space-between !important;
    }

    .logo img {
      height: 55px !important;
    }

    .titulo-nombre {
      display: block !important;
      font-size: 0.75rem !important;
      font-weight: bold !important;
      max-width: 140px !important;
      text-align: center !important;
    }
  }

  .titulo-nombre {
    display: block;
    font-size: 1rem;
    font-weight: bold;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
  }

  .nav-menu,
  .nav-social {
    transform: scaleX(0);
    transform-origin: right;
    opacity: 0;
    transition: transform 0.25s ease-in-out, opacity 0.2s ease;
    flex-direction: column;
    background-color: #fff;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    border-top: 1px solid #ddd;
    padding: 1rem 0;
  }

  .nav-menu li {
    text-align: center;
    padding: 0.5rem 0;
  }

  /* Ocultar redes sociales en vista móvil */
  .nav-social {
    display: none !important;
  }

  .navbar.active #nav-menu {
    transform: scaleX(1);
    opacity: 1;
  }

  nav.navbar {
    flex-wrap: wrap;
    position: relative;
    justify-content: space-around;
  }
}

/* BODY */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

/* MAIN */
main {
  padding: 2rem;
}

.contenido-central {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.contenido-central h1,
.contenido-central h2,
.contenido-central p {
  margin-bottom: 1rem;
}

/* Bienvenida********/
.hero {
  color: #0a0a0a;
  text-align: center;
  padding: 100px 20px;
  padding-bottom: 32px;
}

.hero-content {
  margin: 24px 0;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 20px;
  opacity: 0.9;
  padding: 0 15%;

  @media (max-width: 768px) {
    padding: 0 20px;
  }
}

.slider-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;

  @media (min-width: 900px) {
    height: 500px;
  }
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  animation: fade 1s ease-in-out;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/* Bienvenida */
.bienvenida {
  background-color: #fff;
  text-align: center;
  padding: 60px 20%;
  margin: 0 20px;
  border-radius: 10px;

  @media (max-width: 768px) {
    padding: 60px 20px;
    margin: 0 10px;
  }
}

.bienvenida h2 {
  font-size: 32px;
  font-weight: bold;
  color: #1a202c;
  margin-bottom: 20px;
}

.bienvenida p {
  font-size: 18px;
  color: #555;
  line-height: 1.6;
}

/* Iconos */
.iconos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.icono {
  text-align: center;
  max-width: 250px;
}

.icono img {
  width: 80px;
  margin-bottom: 20px;
}

.icono h3 {
  font-size: 20px;
  color: #222;
  margin-bottom: 10px;
}

.icono p {
  font-size: 16px;
  color: #666;
}

/* Sección Quiénes Somos */
.about {
  padding: 80px 16px;
  background: #fff;
  margin: 0 20px;
  border-radius: 10px;
}

.about .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap; /* Responsive */
}

.about-image img {
  max-width: 500px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.about-content {
  flex: 1;
  padding: 0 8px;
}

.about-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 15px;
}

.btn-about {
  display: inline-block;
  background: #f4b400;
  color: #fff;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease, transform 0.2s;
}

.btn-about:hover {
  background: #e09c00;
  transform: translateY(-2px);
}

/*Video institucional*/
.video-institucional {
  padding: 2rem;
  background-color: #f8f8f8;
}

.video-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.texto {
  flex: 1 1 300px;
}

.video-frame {
  flex: 1 1 500px;
}

.responsive-video {
  position: relative;
  padding-bottom: 56.25%; /* Relación 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.responsive-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/*Nuestros productos*/

.productos-titulo {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: bold;
  color: #222;
}

.productos-subtitulo {
  text-align: center;
  font-size: 1.8rem;
  margin: 40px 0 20px;
  color: #444;
}

.slick-productos {
  width: 80%;
}

.carrousel-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.slick-prev {
  left: -35px !important;
}

.slick-prev:before,
.slick-next:before {
  color: red !important;
  font-size: 32px !important;

  @media (max-width: 400px) {
    font-size: 24px !important;
  }
}

.producto {
  background: #fff;
  padding: 20px;
  width: 100%;
  margin: 0 10px; /* separación entre tarjetas */
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  box-sizing: border-box;
  min-height: 340px !important;
  min-width: 220px !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  height: 380px !important;

  @media (max-width: 400px) {
    min-width: 200px !important;
  }

  @media (max-width: 600px) {
    height: 350px !important;
  }
}

.producto:hover {
  transform: translateY(-5px);
}

.producto img {
  height: 70%;
  width: 80%;
  object-fit: contain; /* recorta la imagen para llenar el espacio */
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.producto h4 {
  font-size: 1.2rem;
  color: #222;
}

.titulo-modal {
  display: block;
  background-color: #f78585;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  padding: 16px;
  color: white;
  font-size: 1.2em;
}

.swal2-popup {
  box-shadow: rgba(0, 0, 0, 0.35) 5px 5px 25px;
}

.slick-dots {
  position: inherit !important;
  bottom: -10px !important;
}

.producto p {
  font-size: 0.95rem;
  color: #666;
}

/* CONTACTO */
.contacto {
  padding: 60px 20px;
  text-align: center;
}

.contacto-titulo {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #222;
}

.contacto-descripcion {
  font-size: 1rem;
  margin-bottom: 30px;
  color: #555;
}

.contacto-form {
  max-width: 800px;
  margin: 0 auto 40px auto;
  text-align: left;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #f1b800;
  outline: none;
}

.btn-enviar {
  display: block;
  background-color: #f1b800;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin: 0 auto;
  transition: background 0.3s;
}

.btn-enviar:hover {
  background-color: #d9a600;
}

/* MAPA */
.mapa {
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* BOTÓN FLOTANTE WHATSAPP */
.btn-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
  z-index: 999;
}

.btn-whatsapp img {
  width: 30px;
  height: 30px;
  display: block;
}

.btn-whatsapp:hover {
  transform: scale(1.1);
}

/*pagina de quienes somos */
/* Limita el ancho de la sección central */
.nosotros-container {
  width: 60%;
  margin: 0 auto;
  padding: 2rem;
  padding: 2rem;
  font-family: Arial, sans-serif;
  color: #222;
  line-height: 1.6;

  @media (max-width: 768px) {
    width: 90%;
    padding: 1rem;
  }
}

.nosotros-container h1 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
  text-align: left;
}

/* Estilo para la sección misión y visión */
.mision-vision {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.mision-vision .col {
  flex: 1;
}

/* Estilo para imágenes */
.vision-img,
.mision-img {
  max-width: 200px;
  width: 100%;
  height: auto;
  margin: 0 auto 15px auto; /* centra y separa del texto */
  border-radius: 8px;
  display: block;
}

.mision-vision h2 {
  text-align: center;
  margin-bottom: 10px;
}

/*pagina de quienes somos */

/* FOOTER */
footer {
  background-color: #1f2937; /* gris oscuro */
  color: #fff;
  padding: 2rem;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.footer-col {
  flex: 1 1 220px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: #ccc;
  text-decoration: none;
}

.footer-col ul li a:hover {
  color: #f4b400;
}

.footer-logo {
  width: 50px;
  margin-bottom: 1rem;
}

.social-icons a {
  display: inline-block;
  margin-right: 10px;
}

.social-icons img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: filter 0.2s ease;
}

.social-icons img:hover {
  filter: brightness(0.8) invert(1) sepia(1) hue-rotate(30deg);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  color: #aaa;
  font-size: 0.85rem;
}

.footer-bottom hr {
  border: none;
  border-top: 1px solid #444;
  margin-bottom: 1rem;
}

/*pagina nuestro aprote al pais*/
.aporte-container {
  width: 60%;
  margin: 0 auto;
  padding: 2rem;
  font-family: Arial, sans-serif;
  color: #222;
  line-height: 1.6;

  @media (max-width: 768px) {
    width: 90%;
    padding: 1rem;
  }
}

.aporte-container h1 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
  text-align: left;
}

.aporte-section {
  margin-bottom: 2.5rem;
}

.aporte-section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #111;
}

.aporte-section p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #444;
}

.aporte-image {
  margin-top: 1.5rem;
  text-align: center;
}

.aporte-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Botones */
button,
input[type='submit'] {
  background-color: #f4b400;
  border: none;
  color: white;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
}

button:hover,
input[type='submit']:hover {
  background-color: #f3dd9c;
}
