/* ==================== FUENTES Y VARIABLES ==================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap');

:root {
  /* Paleta de Colores (Basada en tu logo) */
  --color-primary: #8a9a5b; /* Verde oliva principal */
  --color-secondary: #5d3a29; /* Marrón oscuro */
  --color-light-green: #a1b06c; /* Verde claro del texto "Tienda natural" */
  
  /* Colores base */
  --color-bg: #fdfdfb;       /* Un fondo casi blanco, muy cálido */
  --color-text: #333;
  --color-white: #ffffff;
  
  /* Tipografía */
  --font-body: 'Poppins', sans-serif;
  --h1-size: 2.5rem;
  --h2-size: 1.75rem;
  --h3-size: 1.25rem;
  --normal-size: 1rem;
  
  /* Márgenes y Sombras */
  --header-height: 4rem;
  --box-shadow: 0 4px 12px rgba(93, 58, 41, 0.1);
  --border-radius: 12px;
}

/* ==================== BASE ==================== */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--normal-size);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==================== CLASES REUTILIZABLES ==================== */
.section {
  padding: 5rem 0 3rem;
}

.section__title {
  font-size: var(--h2-size);
  color: var(--color-secondary);
  text-align: center;
  margin-bottom: 3rem;
}

.container {
  max-width: 1024px;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.button {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  transition: background-color 0.3s, transform 0.3s;
}

.button:hover {
  background-color: #7a8a4f; /* Un verde un poco más oscuro */
  transform: translateY(-3px);
}

/* ==================== HEADER / NAV ==================== */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.7); 
  box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Sombra muy ligera al inicio */
  transition: background-color 0.4s, box-shadow 0.4s;
}

/* Estilo de header al hacer scroll (añadido con JS) */
.header.scrolled {
  background-color: var(--color-white); /* Totalmente blanco al hacer scroll */
  box-shadow: var(--box-shadow); /* Sombra más pronunciada al hacer scroll */
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
}

.nav__logo img {
  width: 35px; /* Ajusta el tamaño de tu logo */
}

.nav__toggle,
.nav__close {
  font-size: 1.8rem;
  color: var(--color-secondary);
  cursor: pointer;
}

/* Estilos para el menú en móvil */
@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%; /* Oculto fuera de la pantalla */
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    padding: 6rem 2rem 4rem;
    transition: right 0.4s ease-in-out;
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.nav__link {
  font-weight: 500;
  color: var(--color-secondary);
  transition: color 0.3s;
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

/* Clase que se añade con JS para mostrar el menú */
.show-menu {
  right: 0;
}

/* ==================== HERO (INICIO) ==================== */
.hero {
  padding-top: var(--header-height);
  height: 100vh; /* Ocupa toda la altura visible */
  display: flex;
  align-items: center;
  background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                    url('../img/bienestar_N.jpg');
  background-size: cover;
  background-position: center;
}

.hero__container {
  text-align: center;
  color: var(--color-white);
}

.hero__title {
  font-size: var(--h1-size);
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero__description {
  font-size: var(--h3-size);
  font-weight: 300;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* ==================== NOSOTROS ==================== */
.about__container {
  display: grid;
  gap: 2rem;
}

.about__data h3 {
  font-size: var(--h3-size);
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.about__data ul {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.about__data li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about__data li i {
  color: var(--color-primary);
  font-size: 1.2rem;
}

.about__img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  object-fit: cover;
}

/* ==================== PRODUCTOS ==================== */
.products__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product__card {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden; 
  transition: transform 0.3s, box-shadow 0.3s;
}

.product__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(93, 58, 41, 0.15);
}

.product__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product__title {
  font-size: var(--h3-size);
  color: var(--color-secondary);
  padding: 1.5rem 1.5rem 0.5rem 1.5rem;
}

.product__description {
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 0.9rem;
}

/* ==================== GALERÍA (Estilo Carrusel) ==================== */
.gallery__container {
  max-width: 800px; /* Ancho máximo del carrusel */
  margin: 0 auto;
}

.gallery__slider {
  position: relative; /* Clave para posicionar los botones */
  width: 100%;
  overflow: hidden; /* Oculta cualquier desbordamiento */
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.gallery__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9; /* Proporción panorámica, 4/3 también funciona */
  object-fit: cover;
  display: block; /* Elimina espacio en blanco inferior */
  
  /* Transición suave cuando la imagen cambia */
  transition: opacity 0.4s ease-in-out;
}

.gallery__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%); /* Centra verticalmente */
  z-index: 10;
  
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  
  font-size: 2.5rem;
  color: var(--color-secondary);
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.gallery__nav-btn:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

/* Posición de los botones */
#prevBtn {
  left: 1rem;
}

#nextBtn {
  right: 1rem;
}

/* ==================== CONTACTO ==================== */
.contact__container {
  display: grid;
  gap: 3rem;
}

.contact__info h3 {
  font-size: var(--h3-font);
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

.contact__info p {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact__info i {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-top: 3px;
}

.contact__map iframe {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  height: 350px;
  width: 100%;
}

/* ==================== FOOTER ==================== */
.footer {
  background-color: var(--color-secondary);
  color: var(--color-bg);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem; /* Aumentamos un poco el espacio */
}

/* NUEVO: Contenedor para copyright y desarrollador */
.footer__credits {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem; /* Espacio entre el copyright y el desarrollador */
}

.footer__copy {
    font-size: 0.9rem;
}

/* NUEVO: Estilos para la sección "Desarrollado por" */
.footer__developer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.footer__developer img {
    height: 50px; /* Ajusta la altura del logo del desarrollador */
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer__social {
  display: flex;
  gap: 1.5rem;
  font-size: 1.5rem;
}

.footer__social a {
  color: var(--color-bg);
  transition: color 0.3s;
}

.footer__social a:hover {
  color: var(--color-primary);
}

/* ==================== BOTÓN WHATSAPP ==================== */
.whatsapp__button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 55px;
  height: 55px;
  background-color: #25D366;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 2.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 50;
  transition: transform 0.3s;
}

.whatsapp__button:hover {
  transform: scale(1.1);
}

/* ==================== MEDIA QUERIES (Responsive) ==================== */

/* Para tablets */
@media screen and (min-width: 768px) {
  :root {
    --h1-size: 4rem;
    --h2-size: 2.25rem;
    --h3-size: 1.5rem;
    --normal-size: 1.1rem;
  }
  
  .container {
    margin-left: 2rem;
    margin-right: 2rem;
  }

  .nav__toggle,
  .nav__close {
    display: none;
  }

  .nav__list {
    flex-direction: row;
    gap: 2.5rem;
  }
  
  .about__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  
  .contact__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* Para desktops grandes */
@media screen and (min-width: 1024px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
  
  .section {
    padding: 6rem 0 4rem;
  }
  
  .footer__container {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }
}