/* -------------------- RESET -------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  background-color: #f9f9f9;
  color: #333;
}

main {
  flex: 1;
}

/* -------------------- NAVBAR -------------------- */
.navbar {
  background-color: #ffffff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  position: relative;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Menú de navegación */
.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 14px;
}

.nav-links a:hover {
  color: #0077cc;
}

/* --- Responsive Navbar --- */
@media (max-width: 768px) {
    .navbar {
      padding: 2rem 0.5rem;
    }
    
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%; 
    height: 100vh;
    width: 250px; /* ancho del menú */
    background-color: #fff;
    flex-direction: column;
    align-items: flex-start; 
    padding: 5rem 1.5rem;
    gap: 1.5rem;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000; /* para que esté encima */
    display: flex !important; /* para que siempre sea flex */
  }

  .nav-links.active {
    right: 0; /* visible, deslizado a la derecha */
  }

  .menu-toggle {
    display: block;
    position: fixed; 
    top: 1rem;
    right: 1.5rem;
    z-index: 1100;
  }
}

/* -------------------- HERO -------------------- */
.hero {
  position: relative;
  height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.hero-texto {
  position: relative;
  z-index: 1;
  padding-top: 0vh;
}

.hero-texto h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.hero-texto p {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}

@media (max-width: 768px) {
  .hero {
    height: 50vh;
  }

  .hero-texto h1 {
    font-size: 2.5rem;
  }

  .hero-texto p {
    font-size: 1.2rem;
  }
}

/* -------------------- BOTONES -------------------- */
.btn-container {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-hero,
.btn-manual {
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
}

.btn-hero {
  background-color: #0077cc;
  color: white;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-hero:hover {
  background-color: #005fa3;
}


.btn-manual {
  background-color: transparent;
  color: #0077cc;
  border: 2px solid #0077cc;
}

.btn-manual:hover {
  background-color: #0077cc;
  color: white;
}

/* -------------------- PRODUCTOS -------------------- */
#productos {
  padding: 40px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

#productos h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

#productos p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.producto {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.producto:hover {
  transform: translateY(-5px);
}

.producto img {
  width: 100%;
  border-radius: 8px;
  height: 250px;
  object-fit: cover;
}

.producto h3 {
  margin: 15px 0 10px;
}

.producto p {
  color: #666;
  margin-bottom: 15px;
}

.btn-promocion {
  background-color: #0077cc;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 100px;
  margin-bottom: 5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn-promocion:hover {
  background-color: #005fa3;
}

/* -------------------- BENEFICIOS -------------------- */
#Beneficios {
  padding: 0px 20px 150px;
  background-color: #f9f9f9;
  text-align: center;
}

#Beneficios h2 {
  font-size: 2rem; 
  font-weight: 700;
  margin-bottom: 40px;
  color: #333;
}

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 10px;
}

.beneficio {
  background-color: white; 
  border-radius: 8px;
  padding: 30px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 0px solid #e0e0e0; 
}

.beneficio:hover {
  transform: translateY(-5px);
}

.beneficio h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.beneficio p {
  font-size: 1.2rem;
  color: #666;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .beneficios-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------- FOOTER -------------------- */
footer {
  background-color: #222;
  color: #eee;
  padding: 20px 10px;
  text-align: center;
}

.footer-enlaces {
  list-style: none;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-enlaces li {
  margin: 5px 0;
}

.footer-enlaces a {
  color: #eee;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-enlaces a:hover {
  color: #0077cc;
}

.contacto-footer {
  margin-top: 10px;
  font-weight: bold;
  color: #bbb;
}

@media (max-width: 768px) {
  body {
    font-size: 14px; /* tamaño base */
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  p, a, li {
    font-size: 1rem;
  }

}