/* General */
body {
  font-family: 'Arial', sans-serif;
  background-color: #F4F4F9;
  color: #221D23;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  width: 98%;
  position: fixed;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  background-color: transparent;
}

.navbar.scrolled {
  background-color: #004D40;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 98%;
}

.logo {
  font-family: "Allerta Stencil", sans-serif;
  font-size: 1.5rem;
  color: #F4F4F9;
  font-weight: bold;
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.navbar a {
  color: #F4F4F9;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #FF9800;
}

/* Responsive Navbar */
.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: #F4F4F9;
  cursor: pointer;
}

@media (max-width: 768px) {
  /* Ocultar los enlaces de la navbar en pantallas pequeñas */
  .navbar-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #004D40;
    padding: 15px;
    gap: 10px;
    border-radius: 0 0 8px 8px;
  }

  /* Mostrar el menú al hacer clic en el ícono */
  .navbar-links.show {
    display: flex;
  }

  /* Mostrar el botón del menú en pantallas pequeñas */
  .menu-toggle {
    display: block;
  }
}



/* Hero Section with Parallax */
.hero {
  position: relative;
  height: 100vh;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #F4F4F9;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.4) 30%, rgba(0, 0, 0, 0.8) 100%);
  opacity: 0.6; /* Ajusta la opacidad para oscurecer más o menos */
  z-index: 1;
}

.hero h1 {
  font-family: "Allerta Stencil", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 80px;
  position: relative;
  z-index: 2; /* Asegura que el texto esté por encima de la capa de viñeta */
}

.hero p {
  font-family: "Allerta Stencil", sans-serif;
  font-weight: 400;
  font-style: normal;
  position: relative;
  font-size: 20px;
  z-index: 2; /* Asegura que el texto esté por encima de la capa de viñeta */
}

/* Sections */
main {
  padding: 100px 20px;
}

section {
  margin-bottom: 40px;
  padding: 20px;
  border-radius: 8px;
  background-color: #F4F4F9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

section h2 {
  color: #004D40;
  text-align: center;
  margin-bottom: 20px;
}

section p,
section ul {
  color: #221D23;
  margin-bottom: 10px;
}

/* Sección de ¿Qué hacemos? */
.about-section {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #F4F4F9;
}

.about-content {
  max-width: 800px;
}

.about-content h2 {
  font-size: 2rem;
  color: #004D40;
  margin-bottom: 20px;
}

.about-content p {
  font-size: 1rem;
  color: #221D23;
  margin-bottom: 20px;
  line-height: 1.6;
}

.app-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.app-buttons a {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: #221D23;
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.app-buttons a:hover {
  background-color: #004D40;
  color: #F4F4F9;
}

/* Responsivo */
@media (max-width: 768px) {
  .about-content h2 {
    font-size: 1.5rem;
  }

  .about-content p {
    font-size: 0.9rem;
  }

  .app-buttons a {
    font-size: 0.8rem;
    padding: 8px 15px;
  }
}

/* Sección de Como funciona */
.how-it-works-section {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #F4F4F9;
}

.how-it-works-content {
  max-width: 800px;
}

.how-it-works-content h2 {
  font-size: 2rem;
  color: #004D40;
  margin-bottom: 20px;
}

.how-it-works-content p {
  font-size: 1rem;
  color: #221D23;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Responsivo */
@media (max-width: 768px) {
  .about-content h2 {
    font-size: 1.5rem;
  }

  .about-content p {
    font-size: 0.9rem;
  }

  .app-buttons a {
    font-size: 0.8rem;
    padding: 8px 15px;
  }
}

.how-it-works-content .footer {
  font-size: 30px;
  font-family: "Allerta Stencil", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.how-it-works-content .footer strong{
  color: #004D40;
}


/* Contenedor de imágenes para efecto superpuesto */
.image-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 40px;
  display: flex;
  justify-content: left;
}

/* Primera imagen (de mayor tamaño) */
.img-1 {
  width: 70%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Segunda imagen (más pequeña y superpuesta) */
.img-2 {
  width: 40%;
  position: absolute;
  top: 20px;
  right: -20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/* Grid Layout for Cards (Values, Products, Advantages) */
.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
}

.grid-item {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.grid-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.grid-item h3 {
  color: #004D40;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.grid-item p {
  color: #221D23;
  font-size: 1rem;
}

.grid-item a {
  color: #FF9800;
  font-weight: bold;
  text-decoration: none;
  display: block;
  margin-top: 10px;
}

.grid-item a:hover {
  text-decoration: underline;
}

/* Responsividad para la sección de productos */
#products .grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Ajuste automático */
  gap: 20px;
  padding: 20px;
}

#products img {
  width: 100%; /* Que la imagen se ajuste al contenedor */
  height: auto;
  border-radius: 8px; /* Bordes redondeados para mejorar apariencia */
}

#products .grid-item {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center; /* Centrar contenido */
}

#products h3 {
  color: #004D40;
  margin: 10px 0;
  font-size: 1.2rem;
}

#products p {
  color: #221D23;
  font-size: 1rem;
  margin: 5px 0;
}

#products a {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: #FF9800;
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

#products a:hover {
  background-color: #004D40;
  color: #F4F4F9;
}

#products .ver-mas-center {
  display: block;
  text-align: center;
  font-size: 1.2rem;
  background-color: #004D40;
  color: #F4F4F9;
  padding: 10px 20px;
  margin-top: 20px;
  border-radius: 8px;
}

#products .ver-mas-center:hover {
  background-color: #012d25;
  color: #FF9800;
}



/* Contact Section */
#contact {
  background-color: #004D40;
  color: #F4F4F9;
  padding: 30px;
  text-align: center;
}

#contact h2 {
  color: #FF9800;
}

#contact p {
  color: #F4F4F9;
}

/* Footer */
footer {
  background-color: #004D40;
  color: #F4F4F9;
  text-align: center;
  padding: 20px;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}


