/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-color: #f8f9fa;
  --bg-color-soft: #F3F7E6;
  --bg-color-white: white;
  --text-color: #333;
  --text-color-light: #666;
  --primary-green: #A2C739;
  --dark-green: #5E722A;
  --card-shadow: rgba(0,0,0,0.08);
  --card-shadow-hover: rgba(0,0,0,0.12);
  --border-color: #ddd;
  --input-bg: #f9fcf4;
}

body.dark-mode {
  --bg-color: #253013; /* Dark Green background */
  --bg-color-soft: #31401A; /* Darker green for soft sections */
  --bg-color-white: #3A4D20; /* Darker green for cards/navbar */
  --text-color: #e1e1e1;
  --text-color-light: #a0a0a0;
  --dark-green: #b8d45a;
  --card-shadow: rgba(0,0,0,0.2);
  --card-shadow-hover: rgba(0,0,0,0.3);
  --border-color: #4f642d; /* A border that fits the new theme */
  --input-bg: #31401A; /* Match soft background */
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden; /* Previene el desbordamiento horizontal */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Slider */
.hero-slider {
  position: relative;
  width: 100%;
  height: 90vh;
  max-height: 900px; /* Altura máxima en PC */
  overflow: hidden;
  margin-top: 215px; /* Approximate height of initial large navbar */
  background-color: #253013; /* Fondo oscuro para evitar flash blanco en transiciones */
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  animation: kenBurnsZoom 20s infinite alternate;
}

.hero-image.active {
  opacity: 1;
  z-index: 1;
}

/* Staggered animation delays for a more dynamic feel */
.hero-image:nth-child(2) { animation-delay: -5s; }
.hero-image:nth-child(3) { animation-delay: -10s; }
.hero-image:nth-child(4) { animation-delay: -15s; }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-arrow:hover {
  background-color: rgba(0, 0, 0, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.prev-arrow { left: 2rem; }
.next-arrow { right: 2rem; }

.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.1);
}

.dot.active {
  background-color: white;
  transform: scale(1.2);
}

/* Stats & Features Section */
.stats-features {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.stats-features::before { /* Adding some fun shapes */
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 45%;
  transform: rotate(45deg);
  animation: move-shape 30s infinite linear alternate;
}

.stats-features::after {
  content: '';
  position: absolute;
  bottom: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.07);
  border-radius: 40%;
  transform: rotate(-30deg);
  animation: move-shape 35s infinite linear alternate;
  animation-delay: -5s;
}

.scrolling-text-bg {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%) rotate(-4deg); /* Further reduced angle to lift the left side */
  z-index: 1;
  display: flex;
  white-space: nowrap;
  pointer-events: none;
  animation: scroll-bg-text 180s linear infinite;
}

.scrolling-text-bg span {
  font-size: 3.5rem; /* Reduced font size */
  font-weight: 700;
  color: rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
  padding: 0 2rem;
}

body.dark-mode .stats-features {
  /* Mejora de contraste para dark mode */
  background: linear-gradient(135deg, #253013 0%, #31401A 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.stat-item {
  font-size: 3.5rem;
  font-weight: 700;
  animation: soft-float 5s ease-in-out infinite;
}

.stat-item:nth-child(2) { animation-delay: -1.3s; }
.stat-item:nth-child(3) { animation-delay: -2.6s; }

.stat-number {
  display: inline;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.feature-bubble {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.feature-bubble:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.2);
}

.feature-bubble-icon {
  background: white;
  color: var(--dark-green);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.feature-bubble-icon svg {
  width: 32px;
  height: 32px;
}

.feature-bubble h3 {
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Navbar */
.navbar {
  display: grid;
  grid-template-areas:
    "logo logo logo"
    "links links links";
  align-items: center;
  padding: 1rem 2rem;
  background: var(--bg-color-white);
  box-shadow: 0 2px 10px var(--card-shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  display: grid;
  grid-template-areas: "logo links controls";
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0.5rem 2rem;
}

.navbar.scrolled .logo-container {
  grid-column: 1 / 2; /* Place logo in the first column */
  justify-self: start; /* Align to the left */
  margin-bottom: 0;
  margin-left: 1rem; /* Espacio adicional desde el borde */
}

.navbar.scrolled .logo-container img {
  height: 70px; /* A suitable smaller size for scrolled nav */
}

.navbar.scrolled .nav-links {
  grid-area: links;
  justify-self: center; /* Center them within the column */
}

.nav-right-controls {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  z-index: 2;
  display: flex;
  align-items: center;
}

.navbar.scrolled .nav-right-controls {
  position: static;
  grid-area: controls;
  justify-self: end;
}

.theme-toggle-btn.mobile {
  display: none; /* Oculto en desktop */
}

.mobile-menu-toggle {
  display: none; /* Oculto en desktop */
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
}

.mobile-menu-header {
  display: none; /* Oculto en desktop */
}

.nav-links.active .mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.lang-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 20px; /* Bordes redondeados */
  width: auto; /* Ancho automático */
  min-width: 40px; /* Ancho mínimo para consistencia */
  height: 40px;
  padding: 0 12px; /* Espaciado interno */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  color: var(--primary-green);
  font-weight: 600; /* Texto en negrita */
  margin-right: 0.5rem; /* Espacio entre botones */
}
.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  color: var(--primary-green);
}

.nav-right-controls .lang-toggle-btn {
  display: flex; /* Asegurarse de que siempre sea visible */
}

.logo-container {
  grid-area: logo;
  justify-self: center;
  margin-bottom: 1rem;
}

.logo-container img {
  height: 138px;
  transition: height 0.3s ease;
}

.nav-links {
  grid-area: links;
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-green);
}

.theme-toggle-btn .moon-icon { display: none; }
body.dark-mode .theme-toggle-btn .sun-icon { display: none; }
body.dark-mode .theme-toggle-btn .moon-icon { display: block; }

body.dark-mode .about {
  background: var(--bg-color-soft);
}

/* About Us */
.about {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
  color: var(--text-color);
  background: linear-gradient(135deg, #f3f7e6, #e9efe0, #dce6c8);
  background-size: 400% 400%;
  animation: vibrant-flow 15s ease infinite;
}

.about .container {
  max-width: 1600px;
  position: relative;
  z-index: 2;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 5rem;
}

.about-image-column {
  position: relative;
}

.about-main-image {
  width: 100%;
  height: 100%;
  max-height: 600px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 15px 40px var(--card-shadow-hover);
  position: relative; /* Para que esté por encima del logo */
  z-index: 2;
}

.about-logo-bg-green {
  position: absolute;
  bottom: -60px;
  left: -55px;   /* Desplazado un poco más a la izquierda */
  width: 125px;
  height: 165px;
  background-color: var(--primary-green);
  border-radius: 25px;
  z-index: 3; /* Detrás del logo blanco, sobre la imagen principal */
  animation: soft-float 5s ease-in-out infinite;
  animation-delay: 0.15s; /* Pequeño desfase en la animación */
}

.about-logo-overlay {
  position: absolute;
  bottom: -50px; /* Ajustado para la nueva forma */
  left: -35px;   /* Ajustado para la nueva forma */
  width: 140px;  /* Ancho del rectángulo */
  height: 180px; /* Alto del rectángulo */
  background-color: white;
  border-radius: 25px; /* Bordes redondeados */
  border: 15px solid white; /* Borde interno más delgado para dar espacio */
  box-sizing: border-box; /* Asegura que el borde esté dentro del tamaño total */
  object-fit: contain; /* Asegura que el logo se ajuste sin cortarse */
  z-index: 4; /* Capa superior, sobre el rectángulo verde */
  animation: soft-float 5s ease-in-out infinite;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15); /* Sombra sutil para el sello */
}

.about-text-column h2 {
  font-size: 3rem;
  color: var(--dark-green);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.about-story {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 3rem;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.feature-icon {
  flex-shrink: 0;
  background-color: var(--primary-green);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-text h3 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.feature-text p {
  color: var(--text-color-light);
  line-height: 1.7;
}

/* Services */
.services {
  padding: 8rem 0;
  background-image: linear-gradient(45deg, #A2C739, #8EB02B);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 1;
  
  --s: 120px; /* size of the hexagon */
  --c: rgba(255,255,255,0.08); /* color of the lines */
  
  background:
    linear-gradient(30deg, transparent 49.5%, var(--c) 49.5%, var(--c) 50.5%, transparent 50.5%),
    linear-gradient(-30deg, transparent 49.5%, var(--c) 49.5%, var(--c) 50.5%, transparent 50.5%),
    linear-gradient(90deg, transparent 49.5%, var(--c) 49.5%, var(--c) 50.5%, transparent 50.5%);
  background-size: calc(var(--s) * 1.732) var(--s); /* 1.732 is sqrt(3) */
  animation: move-honeycomb 40s linear infinite;
}

.services .container {
  max-width: 1600px;
}

.services-content {
    position: relative;
    z-index: 2;
}

@keyframes move-honeycomb {
  100% { transform: translateX(calc(var(--s) * 1.732)); }
}

.services h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  color: white; /* White text for better contrast on vibrant bg */
  text-transform: uppercase;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.service-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--card-shadow);
  transition: transform 0.3s ease;
  background: var(--bg-color-white);
  border: 1px solid var(--border-color);
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card img {
  width: 100%;
  height: 375px; /* Increased height by 50% */
  object-fit: cover;
}

.service-card h3 {
  padding: 1rem;
  text-align: center;
  color: var(--primary-green);
  font-weight: 600;
}

.service-card p {
  padding: 0 1rem 1.5rem 1rem;
  text-align: center;
  color: var(--text-color-light);
  font-size: 0.9rem;
}

/* Promotions */
.promotions {
  padding: 6rem 0;
  background-color: var(--bg-color-white);
}

.promotions .container {
  max-width: 1600px; /* Hacemos este contenedor más ancho */
}

.promotions h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  text-transform: uppercase;
  color: var(--primary-green);
}
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.promo-card {
  background: var(--bg-color-white);
  position: relative; /* Para posicionar la etiqueta */
  border-radius: 15px;
  overflow: visible; /* Permitir que la etiqueta sobresalga */
  box-shadow: 0 4px 12px var(--card-shadow);
  text-align: center;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.promo-card:hover {
  animation-play-state: paused; /* Pausa la animación al pasar el ratón */
  transform: translateY(-10px) scale(1.05); /* Un poco más grande en hover para destacar */
  box-shadow: 0 10px 25px var(--card-shadow-hover);
}
.promo-card img {
  width: 100%;
  height: auto; /* Permite que la imagen determine su propia altura para no cortarse */
  display: block;
  border-radius: 15px; /* Mantener las esquinas redondeadas de la imagen */
}
.promo-card h3 {
  font-size: 1.5rem;
  padding: 1.5rem 1rem 0.5rem;
  color: var(--primary-green);
}
.promo-card p {
  padding: 0 1.5rem 2rem;
  color: var(--text-color-light);
  font-size: 0.95rem;
}
.promo-tag {
  position: absolute;
  top: -1.2rem; /* Mover la etiqueta para que cuelgue por encima */
  right: 0;
  background-color: var(--primary-green);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  z-index: 2;
  animation: tag-float 3s infinite ease-in-out;
  border: 2px solid white;
}

/* Featured Products */
.featured-products {
  padding: 6rem 0;
  background-color: var(--bg-color-soft);
  position: relative;
  overflow: hidden;
}
.featured-products h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  text-transform: uppercase;
  color: var(--primary-green);
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.featured-text, .featured-image {
  background: var(--bg-color-white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--card-shadow);
  transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}
.featured-text:hover, .featured-image:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px var(--card-shadow-hover);
}
.featured-text {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.featured-text h3 {
  font-size: 2rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
}
.featured-text p {
  color: var(--text-color-light);
  font-size: 1rem;
}
.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.deco-image-wrapper {
  position: absolute;
  z-index: 2; /* Sobre el fondo animado, debajo del contenido */
}

.deco-wrapper-1 { /* Vegetales */
  top: 5%;
  left: 5%;
}

.deco-wrapper-2 { /* Frutas */
  bottom: 5%;
  right: 5%;
}

.deco-image {
  transition: transform 0.4s ease-in-out;
  display: block;
  cursor: pointer; /* Indica que se puede interactuar */
}

.deco-image-1 { /* Vegetales */
  width: 280px;
  transform: rotate(-15deg);
}

.deco-image-2 { /* Frutas */
  width: 300px;
  transform: rotate(15deg);
}

/* Efecto al pasar el ratón sobre la sección entera */
.deco-image-1:hover {
  transform: rotate(-5deg) scale(1.1);
}
.deco-image-2:hover {
  transform: rotate(5deg) scale(1.1);
}

.featured-products .container {
    max-width: 1600px;
    position: relative;
    z-index: 3; /* Sobre los adornos */
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    animation: move-shape 20s infinite linear;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    left: -150px;
    animation-duration: 25s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    bottom: -200px;
    right: -200px;
    animation-duration: 20s;
    animation-delay: -10s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    bottom: 50%;
    right: 40%;
    animation-duration: 30s;
    animation-delay: -5s;
}

/* Ticker Tape */
/* (No changes here, just keeping it for context) */


/* Ticker Tape */
.ticker-tape {
  background-color: #A2C739; /* Requested Primary Green */
  color: white;
  padding: 1.2rem 0; /* Reduced padding to make it thinner */
  overflow: hidden;
  white-space: nowrap;
}
.ticker-content {
  display: flex;
  animation: scroll-text 40s linear infinite;
}
.ticker-content span {
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0 2.5rem;
  flex-shrink: 0; /* Evita que los spans se encojan */
}
/* Testimonials */
.testimonials {
  padding: 6rem 0;
  background: var(--bg-color-soft);
  position: relative;
  overflow: hidden;
}

.testimonials .container {
  position: relative;
  z-index: 2;
}
.testimonials .container {
  max-width: 1600px;
}

.testimonials-content {
  /* This is now just a wrapper */
}

.testimonial-slider-wrapper {
  position: relative;
}

.testimonial-slider-wrapper h2 {
  font-size: 2.8rem;
  color: var(--primary-green);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  text-align: center;
}

.testimonial-logo {
  display: block;
  margin: 0 auto 1rem auto; /* Reduced margin */
  height: 81px;
  opacity: 0.8;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  color: #FFC107; /* Color amarillo para las estrellas */
  justify-content: center; /* Centrar las estrellas */
}

.testimonial-rating svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.testimonial-slider {
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
}

.testimonial-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 2rem;
}

.testimonial-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 2rem;
  background-color: var(--bg-color-white);
  border-radius: 15px;
  position: relative;
  box-shadow: 0 10px 25px var(--card-shadow);
}

.testimonial-slide .quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-color-light);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 40px;
}

.testimonial-slide .quote::before {
  content: '“';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 4rem;
  color: var(--primary-green);
  font-family: Georgia, serif;
  opacity: 0.5;
}

.testimonial-slide .author h4 {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 0.2rem;
}

.testimonial-slide .author span {
  font-size: 0.9rem;
  color: var(--text-color-light);
}

.testimonial-nav {
  position: absolute;
  top: 15px;
  right: 0;
  display: flex;
  gap: 1rem;
}

.testimonial-arrow {
  background-color: var(--bg-color-white);
  border: 2px solid var(--border-color);
  color: var(--text-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-arrow:hover {
  background-color: var(--primary-green);
  color: white;
  border-color: var(--primary-green);
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    display: inline-block;
    margin-top: 2rem;
}

.btn-primary {
    background: #333; /* Neutral Dark Gray */
    color: white;
    border-color: #333;
}

.btn-primary:hover {
    background: #A2C739; /* Highlight on hover */
    border-color: #A2C739;
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #333;
}

/* Contact */
.contact {
  background: var(--bg-color-white);
  color: var(--text-color);
  padding: 6rem 0;
}

.contact .container {
  max-width: 1600px;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-info h2 {
  font-size: 2.8rem;
  color: var(--primary-green);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.contact-intro {
  font-size: 1.1rem;
  color: var(--text-color-light);
  margin-bottom: 2rem;
}

.contact-details {
  margin-bottom: 2rem;
  list-style: none;
  padding: 0;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.contact-details li svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--text-color);
}

.contact-map-container {
  width: 100%;
  height: 100%;
  min-height: 450px;
}

.contact-map {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 15px;
  filter: grayscale(1);
  transition: all 0.4s ease;
  box-shadow: 0 8px 20px var(--card-shadow);
}

.contact-map:hover {
  filter: grayscale(0);
  box-shadow: 0 12px 28px var(--card-shadow-hover);
  transform: translateY(-5px);
}

/* Footer */
footer {
  text-align: left;
  padding: 4rem 0 2rem;
  background: #A2C739; /* Fallback color */
  color: white;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 1;
  
  --s: 120px; /* size of the hexagon */
  --c: rgba(255,255,255,0.1); /* color of the lines, slightly more visible */
  
  background:
    linear-gradient(30deg, transparent 49.5%, var(--c) 49.5%, var(--c) 50.5%, transparent 50.5%),
    linear-gradient(-30deg, transparent 49.5%, var(--c) 49.5%, var(--c) 50.5%, transparent 50.5%),
    linear-gradient(90deg, transparent 49.5%, var(--c) 49.5%, var(--c) 50.5%, transparent 50.5%);
  background-size: calc(var(--s) * 1.732) var(--s);
  animation: move-honeycomb 40s linear infinite;
}

.footer-top {
  text-align: center;
  margin-bottom: 3rem;
}

.footer-logo img {
  height: 230px;
}

footer .container {
  position: relative;
  z-index: 2;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 3rem;
}

.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 0.5rem;
  color: white;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: white;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-column ul li a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-column ul li a:hover {
  opacity: 0.8;
}

.footer-column p {
  color: white;
  margin-bottom: 1.5rem;
}

.footer-column svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: white;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icons a {
  background-color: white;
  color: var(--primary-green);
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.social-icons a:hover {
  background-color: var(--dark-green);
  color: white;
  transform: translateY(-3px);
}

.social-icons svg {
  width: 24px;
  height: 24px;
  color: inherit; /* Forzar herencia de color desde el enlace padre (a) */
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  font-size: 0.9rem;
  color: white;
}

.footer-bottom a {
  color: white;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.footer-bottom a:hover {
  opacity: 0.8;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;      background: #A2C739; /* Requested Primary Green */
  color: var(--bg-color-white);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  z-index: 100;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.scroll-to-top:hover {
  background: var(--text-color);
  transform: scale(1.1);
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}
@keyframes soft-float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
  100% { transform: translateY(0px); }
}

@keyframes tag-float {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-5px) rotate(2deg);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scroll-text {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); } /* Bucle perfecto con contenido duplicado */
}
@keyframes scroll-bg-text {
  from { transform: translateX(0) translateY(-50%) rotate(-4deg); }
  to { transform: translateX(-50%) translateY(-50%) rotate(-4deg); }
}
@keyframes move-shape {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(100px, 80px) rotate(90deg);
  }
  50% {
    transform: translate(-50px, -120px) rotate(180deg);
  }
  75% {
    transform: translate(80px, -50px) rotate(270deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}
@keyframes vibrant-flow {
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}
@keyframes kenBurnsZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}
/* Responsive for Testimonials */
@media (max-width: 992px) {
  .testimonial-slider-wrapper h2 {
    text-align: center;
  }
  .testimonial-nav {
    position: static;
    justify-content: center;
    margin-top: 2rem;
  }
}
@media (min-width: 992px) {
  .testimonial-slide {
    min-width: calc((100% - 2rem) / 2);
  }
}

/* --- Responsive Adjustments --- */

/* Tablets and smaller desktops */
@media (max-width: 1200px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .promo-grid, .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets and mobile */
@media (max-width: 992px) {
  h2, .about-text-column h2, .services h2, .promotions h2, .featured-products h2, .testimonial-slider-wrapper h2, .contact-info h2 {
    font-size: 2.2rem;
  }

  .theme-toggle-btn.mobile {
    display: flex; /* Mostrar en móvil */
  }

  .nav-right-controls .theme-toggle-btn:not(.mobile) {
    display: none; /* Ocultar el de desktop en móvil */
  }

  /* --- Mobile Menu --- */
  .mobile-menu-toggle {
    display: block;
    margin-left: 1rem;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .navbar.menu-open .mobile-menu-toggle {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .navbar.menu-open .theme-toggle-btn.mobile {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* Usar viewport width para evitar desbordamiento */
    height: 100vh;
    background-color: var(--bg-color-white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex; /* Ensure it's flex for alignment */
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links.active .mobile-menu-header {
    justify-content: space-between; /* Logo a la izquierda, botón a la derecha */
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
  }
  
  .mobile-menu-close {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-color);
    cursor: pointer;
  }

  .mobile-menu-logo {
    height: 60px;
  }

  .nav-links li {
    width: 100%;
    text-align: left;
  }

  .nav-links a {
    font-size: 1.5rem;
  }
  /* --- End Mobile Menu --- */

  .hero-slider {
    margin-top: 100px; /* Adjust for smaller initial navbar */
    aspect-ratio: 4 / 3;
    height: auto; /* Let aspect-ratio control the height */
  }

  .navbar:not(.scrolled) {
    grid-template-areas: "logo controls";
    grid-template-columns: 1fr auto;
    padding: 0.5rem 1rem;
  }
  .navbar:not(.scrolled) .logo-container {
    display: flex;
    align-items: center;
    justify-self: start;
    margin-bottom: 0;
  }
  .navbar:not(.scrolled) .logo-container img {
    height: 75px; /* Increased size by 25% */
  }
  .navbar:not(.scrolled) .nav-right-controls {
    position: static;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .scrolling-text-bg {
    display: none; /* Hide on mobile to reduce clutter */
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-image-column {
    order: -1; /* Puts image on top */
  }
  .promo-grid, .featured-grid, .service-grid {
    grid-template-columns: 1fr;
  }
  .promo-tag {
    top: -1.6rem; /* Sube la etiqueta un poco más en móvil */
  }
  .contact-wrapper {
    display: block; /* Cambiar a layout de bloque para un apilamiento más simple y robusto */
  }
  .deco-image-wrapper {
    display: none; /* Hide decorative images on mobile */
  }
  .about-logo-bg-green, .about-logo-overlay {
    display: none; /* Hide logo seal on mobile */
  }
  .footer-main {
    grid-template-columns: 1fr;
    text-align: left; /* Alinea el texto a la izquierda para mejor lectura */
  }
  .footer-column h4::after {
    left: 0; /* Alinea el subrayado con el texto */
    transform: none;
  }
  .footer-column ul li {
    justify-content: flex-start; /* Alinea los elementos de la lista a la izquierda */
  }
}

.hero-image-container {
  position: relative;
  width: 100%;
  height: 100%;
}