/* ============================================
   RAÍCES & ALMA — HERBOLARIO ARTESANAL
   style.css — Estilos principales
   ============================================ */

/* ---- Variables ---- */
:root {
  --green-deep:   #2d4a1e;
  --green-mid:    #4a6741;
  --green-main:   #6b8f4e;
  --green-light:  #a8c88a;
  --green-pale:   #d4e8c2;
  --cream:        #f8f4ed;
  --cream-dark:   #ede7db;
  --gold:         #c9a84c;
  --gold-light:   #e8d08a;
  --text-dark:    #1a2e0f;
  --text-mid:     #3d5230;
  --text-light:   #7a8f6a;
  --white:        #ffffff;
  --shadow:       0 8px 40px rgba(45,74,30,0.12);
  --shadow-lg:    0 20px 60px rgba(45,74,30,0.18);
  --radius:       16px;
  --radius-sm:    8px;
  --ff-display:   'Cormorant Garamond', Georgia, serif;
  --ff-body:      'Jost', sans-serif;
  --transition:   0.35s cubic-bezier(0.4,0,0.2,1);
  --nav-h:        72px; /* altura de navbar */
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: var(--ff-body);
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--ff-display); line-height: 1.15; }
h1 { font-size: clamp(3rem, 7vw, 6rem); font-weight: 300; }
h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 300; }
h3 { font-size: 1.4rem; font-weight: 400; }
em { font-style: italic; color: var(--green-main); }
p { font-weight: 300; line-height: 1.75; color: var(--text-mid); }

.section-label {
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-main);
  margin-bottom: 1rem;
  display: block;
}
.section-label.center { text-align: center; }
.center { text-align: center; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* ============================================
   NAVBAR — DESKTOP (≥ 1025px)
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.2rem 2.5rem;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.navbar.scrolled {
  background: rgba(248,244,237,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 30px rgba(45,74,30,0.08);
  padding: 0.8rem 2.5rem;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo-link { display: inline-flex; }
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-svg { width: 44px; height: 44px; flex-shrink: 0; }
.logo-text {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--green-deep);
  white-space: nowrap;
}
.logo-text em { font-style: italic; color: var(--green-main); }

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--green-main);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Elements only for mobile panel — hidden on desktop */
.nav-mobile-header,
.nav-mobile-footer,
.nav-close {
  display: none;
}

/* ============================================
   HAMBURGER BUTTON
   Visible en tablet (≤ 1024px) y móvil (≤ 640px)
   ============================================ */
.menu-toggle {
  display: none;           /* oculto por defecto en desktop */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(107,143,78,0.10);
  border: 1.5px solid rgba(107,143,78,0.25);
  z-index: 201;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}
.menu-toggle:hover {
  background: rgba(107,143,78,0.18);
  border-color: var(--green-main);
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--green-deep);
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.25s ease, width 0.25s ease;
  transform-origin: center;
}
/* Hamburger → X */
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   OVERLAY OSCURO (tablet + móvil)
   ============================================ */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,35,12,0.55);
  backdrop-filter: blur(3px);
  z-index: 198;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   PANEL LATERAL — TABLET (768px – 1024px)
   ============================================ */
@media (max-width: 1024px) {

  /* Mostrar hamburguesa */
  .menu-toggle { display: flex; }

  /* Mostrar overlay */
  .nav-overlay { display: block; }

  /* Panel lateral derecho */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;        /* dynamic viewport height */
    width: min(340px, 85vw);
    background: var(--cream);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 0;
    gap: 0;
    transform: translateX(110%);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    box-shadow: -12px 0 60px rgba(0,0,0,0.18);
    z-index: 199;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .nav-links.open { transform: translateX(0); }

  /* Cabecera del panel */
  .nav-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 1.8rem;
    border-bottom: 1px solid var(--cream-dark);
    background: var(--cream);
    position: sticky;
    top: 0;
    z-index: 2;
  }
  .nav-mobile-header .logo-text { font-size: 1.25rem; }
  .nav-mobile-header .logo-svg { width: 36px; height: 36px; }

  /* Botón cerrar */
  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--cream-dark);
    color: var(--green-deep);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background var(--transition);
    flex-shrink: 0;
  }
  .nav-close:hover { background: var(--green-pale); }

  /* Items de navegación */
  .nav-links > li {
    border-bottom: 1px solid rgba(107,143,78,0.1);
  }
  .nav-links > li > a {
    display: flex;
    align-items: center;
    padding: 1.1rem 1.8rem;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-dark);
    transition: background var(--transition), color var(--transition), padding var(--transition);
  }
  .nav-links > li > a::before {
    content: '';
    display: inline-block;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--green-main);
    margin-right: 0.9rem;
    opacity: 0;
    transition: opacity var(--transition);
    flex-shrink: 0;
  }
  .nav-links > li > a:hover {
    background: rgba(107,143,78,0.07);
    color: var(--green-deep);
    padding-left: 2.1rem;
  }
  .nav-links > li > a:hover::before { opacity: 1; }
  .nav-links > li > a.active {
    color: var(--green-main);
    background: rgba(107,143,78,0.06);
    font-weight: 500;
  }
  .nav-links > li > a.active::before { opacity: 1; }
  /* Quitar subrayado en panel */
  .nav-links a::after { display: none; }

  /* Footer del panel con WhatsApp */
  .nav-mobile-footer {
    display: block;
    padding: 1.5rem 1.8rem;
    margin-top: auto;
    border-top: 1px solid var(--cream-dark);
  }
  .nav-whatsapp-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.4rem;
    background: #25d366;
    color: var(--white);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    width: 100%;
    justify-content: center;
    transition: background var(--transition), transform var(--transition);
  }
  .nav-whatsapp-link:hover { background: #1db954; transform: scale(1.02); }
}

/* ============================================
   PANEL LATERAL — MÓVIL (≤ 640px)
   ============================================ */
@media (max-width: 640px) {
  .navbar { padding: 0.9rem 1.2rem; }
  .navbar.scrolled { padding: 0.65rem 1.2rem; }

  .menu-toggle {
    width: 40px; height: 40px;
    padding: 7px;
  }

  .nav-links {
    width: min(300px, 88vw);
  }
  .nav-links > li > a { font-size: 1rem; padding: 1rem 1.5rem; }
  .nav-links > li > a:hover { padding-left: 1.8rem; }
  .nav-mobile-header { padding: 1.2rem 1.5rem; }
  .nav-mobile-footer { padding: 1.2rem 1.5rem; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-img { object-position: center 30%; filter: saturate(0.9); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(45,74,30,0.65) 0%, rgba(45,74,30,0.3) 50%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: var(--white); padding: 2rem;
}
.hero-label {
  font-size: 0.82rem; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--green-pale); margin-bottom: 1.5rem;
}
.hero-title { color: var(--white); margin-bottom: 1.5rem; text-shadow: 0 2px 30px rgba(0,0,0,0.2); }
.hero-title em { color: var(--gold-light); }
.hero-desc { font-size: 1.1rem; color: rgba(255,255,255,0.88); margin-bottom: 3rem; line-height: 1.8; }
.btn-hero {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 2.5rem; background: var(--white); color: var(--green-deep);
  font-family: var(--ff-body); font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.08em; border-radius: 50px; transition: var(--transition);
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}
.btn-hero:hover { background: var(--green-pale); transform: translateY(-2px); box-shadow: 0 8px 40px rgba(0,0,0,0.2); }
.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  color: rgba(255,255,255,0.7); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================
   STRIP (ticker)
   ============================================ */
.strip { background: var(--green-deep); color: var(--green-pale); overflow: hidden; padding: 0.85rem 0; white-space: nowrap; }
.strip-inner {
  display: inline-flex; gap: 3rem;
  animation: ticker 30s linear infinite;
  font-size: 0.82rem; font-weight: 400; letter-spacing: 0.06em;
}
.strip-inner span { flex-shrink: 0; }

/* ============================================
   ABOUT
   ============================================ */
.about { display: grid; grid-template-columns: 1fr 1fr; min-height: 600px; overflow: hidden; }
.about-img-wrap { position: relative; overflow: hidden; }
.about-img-wrap img { height: 100%; min-height: 500px; transition: transform 0.8s ease; }
.about-img-wrap:hover img { transform: scale(1.04); }
.about-badge {
  position: absolute; bottom: 2.5rem; right: -1.5rem;
  background: var(--green-deep); color: var(--white);
  padding: 1.2rem 2rem; border-radius: var(--radius) 0 0 var(--radius);
  text-align: center; box-shadow: var(--shadow);
}
.badge-num {
  display: block; font-family: var(--ff-display);
  font-size: 2.5rem; font-weight: 600; color: var(--gold-light); line-height: 1;
}
.badge-txt { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4; color: var(--green-pale); }
.about-text {
  background: var(--cream-dark); padding: 6rem 5rem;
  display: flex; flex-direction: column; justify-content: center; gap: 1.5rem;
}
.about-text h2 { margin-bottom: 0.5rem; }
.btn-outline {
  display: inline-flex; align-items: center; padding: 0.85rem 2rem;
  border: 1.5px solid var(--green-main); color: var(--green-main); border-radius: 50px;
  font-size: 0.88rem; font-weight: 500; letter-spacing: 0.06em;
  transition: var(--transition); align-self: flex-start; margin-top: 0.5rem;
}
.btn-outline:hover { background: var(--green-main); color: var(--white); }

/* ============================================
   CATEGORIES
   ============================================ */
.categories { padding: 6rem 2rem; background: var(--white); }
.categories h2 { margin-bottom: 3.5rem; }
.cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}
.cat-card {
  background: var(--c, #d4e8c2);
  border-radius: var(--radius); padding: 2.5rem 2rem;
  text-align: center; transition: var(--transition); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  text-decoration: none; color: inherit;
}
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.cat-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.cat-card h3 { font-size: 1.25rem; margin-bottom: 0.3rem; color: var(--green-deep); }
.cat-card p { font-size: 0.88rem; color: var(--text-mid); }
.cat-cta {
  display: inline-block; margin-top: 1rem;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em;
  color: var(--green-deep); opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
  transform: translateY(4px);
}
.cat-card:hover .cat-cta { opacity: 1; transform: translateY(0); }

/* ============================================
   PRODUCTS
   ============================================ */
.products { padding: 6rem 2rem; background: var(--cream); }
.products h2 { margin-bottom: 3.5rem; }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; }
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 20px rgba(45,74,30,0.07); transition: var(--transition);
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.product-img-wrap img { transition: transform 0.6s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.07); }
.product-tag {
  position: absolute; top: 0.9rem; left: 0.9rem;
  background: var(--green-deep); color: var(--white);
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem; border-radius: 30px;
}
.product-tag.new { background: var(--gold); color: var(--white); }
.product-body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.product-cat { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-main); }
.product-body h3 { font-size: 1.15rem; color: var(--text-dark); line-height: 1.3; }
.product-body p { font-size: 0.85rem; line-height: 1.55; color: var(--text-light); flex: 1; }
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--cream-dark);
}
.price { font-family: var(--ff-display); font-size: 1.4rem; font-weight: 600; color: var(--green-deep); }
.btn-cart {
  padding: 0.5rem 1.1rem; background: var(--green-pale); color: var(--green-deep);
  border-radius: 30px; font-size: 0.82rem; font-weight: 500; transition: var(--transition);
}
.btn-cart:hover { background: var(--green-main); color: var(--white); transform: scale(1.04); }
.btn-cart.adding { background: var(--green-main); color: var(--white); transform: scale(0.96); }

/* ============================================
   BENEFITS
   ============================================ */
.benefits { display: grid; grid-template-columns: 1fr 1fr; min-height: 650px; }
.benefits-left { overflow: hidden; }
.benefits-left img { height: 100%; min-height: 500px; object-position: center; }
.benefits-right {
  background: var(--green-deep); padding: 6rem 5rem;
  display: flex; flex-direction: column; justify-content: center; gap: 0;
}
.benefits-right .section-label { color: var(--green-light); }
.benefits-right h2 { color: var(--white); margin-bottom: 2.5rem; }
.benefits-right h2 em { color: var(--gold-light); }
.benefit-item {
  display: flex; gap: 1.2rem; align-items: flex-start;
  padding: 1.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.benefit-item:last-child { border-bottom: none; }
.benefit-icon { font-size: 1.8rem; flex-shrink: 0; margin-top: 0.1rem; }
.benefit-item h4 { font-family: var(--ff-display); font-size: 1.15rem; font-weight: 400; color: var(--white); margin-bottom: 0.3rem; }
.benefit-item p { font-size: 0.88rem; color: rgba(255,255,255,0.65); line-height: 1.6; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials { padding: 6rem 2rem; background: var(--cream-dark); }
.testimonials h2 { margin-bottom: 3.5rem; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1100px; margin: 0 auto; }
.testi-card { background: var(--white); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); transition: var(--transition); }
.testi-card.featured { background: var(--green-deep); box-shadow: 0 24px 64px rgba(45,74,30,0.32); }
.testi-card:hover { transform: translateY(-6px); }
.testi-card.featured:hover { transform: translateY(-6px); }
.stars { color: var(--gold); font-size: 1rem; letter-spacing: 2px; margin-bottom: 1.2rem; }
.testi-card p { font-size: 0.92rem; line-height: 1.75; font-style: italic; margin-bottom: 1.5rem; }
.testi-card.featured p { color: rgba(255,255,255,0.85); }
.testi-author { display: flex; align-items: center; gap: 0.9rem; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green-pale); display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 500; color: var(--green-deep); flex-shrink: 0;
}
.testi-card.featured .testi-avatar { background: rgba(255,255,255,0.15); color: var(--white); }
.testi-author strong { display: block; font-size: 0.9rem; color: var(--text-dark); }
.testi-card.featured .testi-author strong { color: var(--white); }
.testi-author span { font-size: 0.78rem; color: var(--text-light); }
.testi-card.featured .testi-author span { color: rgba(255,255,255,0.55); }

/* ============================================
   CONTACT
   ============================================ */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0; min-height: 700px; }
.contact-left { background: var(--green-pale); padding: 6rem 5rem; display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; }
.contact-left h2 { margin-bottom: 0; }
.contact-left > p { margin-bottom: 1rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 0.5rem; }
.ci-item { display: flex; gap: 1rem; align-items: flex-start; }
.ci-icon { font-size: 1.3rem; margin-top: 0.1rem; flex-shrink: 0; }
.ci-item strong { display: block; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 0.2rem; }
.ci-item p { font-size: 0.92rem; margin: 0; }
.contact-right { background: var(--white); padding: 6rem 5rem; display: flex; flex-direction: column; justify-content: center; }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-deep); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.9rem 1.1rem;
  border: 1.5px solid var(--cream-dark); border-radius: var(--radius-sm);
  font-family: var(--ff-body); font-size: 0.92rem; color: var(--text-dark);
  background: var(--cream); transition: border-color var(--transition), box-shadow var(--transition);
  outline: none; resize: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-main);
  box-shadow: 0 0 0 3px rgba(107,143,78,0.12);
  background: var(--white);
}
.btn-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  padding: 1rem 2.5rem; background: var(--green-deep); color: var(--white);
  border-radius: 50px; font-family: var(--ff-body); font-size: 0.92rem; font-weight: 500;
  letter-spacing: 0.06em; transition: var(--transition); align-self: flex-start; cursor: pointer; border: none;
}
.btn-submit:hover { background: var(--green-main); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(45,74,30,0.25); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.form-response { margin-top: 1.5rem; padding: 2rem; border-radius: var(--radius); text-align: center; animation: bounceIn 0.5s ease; }
.form-response.success { background: linear-gradient(135deg, #d4f4d4, #e8f8e8); border: 2px solid #6bc76b; }
.form-response.error { background: linear-gradient(135deg, #f4d4d4, #f8e8e8); border: 2px solid #c76b6b; }
.response-emoji { font-size: 3rem; margin-bottom: 0.75rem; display: block; }
.response-title { font-family: var(--ff-display); font-size: 1.6rem; font-weight: 400; color: var(--green-deep); margin-bottom: 0.5rem; display: block; }
.response-text { font-size: 0.92rem; color: var(--text-mid); line-height: 1.7; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--text-dark); color: var(--white); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 4rem; padding: 5rem 4rem 4rem; max-width: 1280px; margin: 0 auto; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.88rem; margin-top: 1.2rem; line-height: 1.7; }
.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-links a { font-size: 1.3rem; transition: transform var(--transition); }
.social-links a:hover { transform: scale(1.2); }
.footer-col h4 { font-family: var(--ff-body); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-light); margin-bottom: 1.5rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col ul a { font-size: 0.88rem; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-col ul a:hover { color: var(--white); }
.footer-col > p { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 1.2rem; }
.newsletter-form { display: flex; border: 1px solid rgba(255,255,255,0.15); border-radius: 50px; overflow: hidden; }
.newsletter-form input { flex: 1; padding: 0.75rem 1.2rem; background: transparent; border: none; color: var(--white); font-family: var(--ff-body); font-size: 0.85rem; outline: none; }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form button { padding: 0.75rem 1.2rem; background: var(--green-main); color: var(--white); font-size: 1rem; transition: background var(--transition); }
.newsletter-form button:hover { background: var(--green-light); color: var(--green-deep); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.5rem 4rem; max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: rgba(255,255,255,0.35); }

/* ============================================
   FLOATING BUTTONS
   ============================================ */
.whatsapp-btn {
  position: fixed; bottom: 2rem; left: 2rem; z-index: 90;
  display: flex; align-items: center; gap: 0.6rem;
  background: #25d366; color: var(--white);
  padding: 0.9rem 1.4rem 0.9rem 1.1rem;
  border-radius: 50px; box-shadow: 0 4px 25px rgba(37,211,102,0.4);
  font-size: 0.88rem; font-weight: 500; transition: var(--transition);
  animation: floatPulse 3s ease-in-out infinite;
}
.whatsapp-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.whatsapp-btn:hover { transform: scale(1.07); box-shadow: 0 8px 35px rgba(37,211,102,0.5); }
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 90;
  width: 50px; height: 50px; background: var(--green-deep); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: var(--transition);
  opacity: 0; pointer-events: none; transform: translateY(12px); visibility: hidden;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); visibility: visible; }
.scroll-top:hover { background: var(--green-main); transform: translateY(-2px); }
.scroll-top svg { width: 20px; height: 20px; }
.cart-toast {
  position: fixed; bottom: 5.5rem; right: 2rem; z-index: 200;
  background: var(--green-deep); color: var(--white);
  padding: 0.85rem 1.5rem; border-radius: 50px; font-size: 0.88rem; font-weight: 500;
  box-shadow: var(--shadow); transform: translateY(calc(100% + 4rem));
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1); pointer-events: none;
}
.cart-toast.show { transform: translateY(0); }

/* ============================================
   GALERÍA — estilos compartidos entre páginas
   ============================================ */
.gallery-hero {
  position: relative; height: 52vh; min-height: 360px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.gallery-hero-img { position: absolute; inset: 0; filter: saturate(0.85); }
.gallery-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,35,12,0.85) 0%, rgba(20,35,12,0.35) 60%, transparent 100%);
}
.gallery-hero-content {
  position: relative; z-index: 2;
  padding: 3rem 4rem; color: var(--white);
}
.gallery-breadcrumb {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 0.75rem;
}
.gallery-breadcrumb a { color: var(--green-light); transition: color var(--transition); }
.gallery-breadcrumb a:hover { color: var(--white); }
.gallery-hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 300;
  color: var(--white); margin-bottom: 0.5rem;
}
.gallery-hero-content p { color: rgba(255,255,255,0.75); font-size: 1rem; max-width: 550px; }

.gallery-section { padding: 5rem 2rem; background: var(--cream); }
.gallery-section .container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* Grid de galería 4×3 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--cream-dark);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s ease, filter 0.55s ease;
}
.gallery-item:hover img { transform: scale(1.07); filter: brightness(0.88); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,35,12,0.7) 0%, transparent 55%);
  opacity: 0; transition: opacity 0.35s ease;
  display: flex; align-items: flex-end; padding: 1rem 1.1rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-caption { color: var(--white); font-size: 0.82rem; font-weight: 400; line-height: 1.4; }
.gallery-zoom-icon {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.9); color: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; opacity: 0; transform: scale(0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item:hover .gallery-zoom-icon { opacity: 1; transform: scale(1); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(10,18,6,0.95); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox-inner {
  position: relative; max-width: 92vw; max-height: 90vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-img {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain; border-radius: var(--radius-sm);
  box-shadow: 0 30px 100px rgba(0,0,0,0.7);
  transform: scale(0.92); transition: transform 0.35s ease;
  width: auto; height: auto;
}
.lightbox.active .lightbox-img { transform: scale(1); }
.lightbox-caption {
  position: absolute; bottom: -2.2rem; left: 0; right: 0;
  text-align: center; color: rgba(255,255,255,0.6); font-size: 0.85rem;
}
.lightbox-close {
  position: fixed; top: 1.5rem; right: 1.8rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: var(--white);
  font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--transition);
  border: 1px solid rgba(255,255,255,0.2);
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev,
.lightbox-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: var(--white);
  font-size: 1.3rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--transition), transform var(--transition);
  border: 1px solid rgba(255,255,255,0.2); z-index: 1000;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover { background: rgba(255,255,255,0.22); transform: translateY(-50%) translateX(-3px); }
.lightbox-next:hover { background: rgba(255,255,255,0.22); transform: translateY(-50%) translateX(3px); }
.lightbox-counter {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.5); font-size: 0.82rem; letter-spacing: 0.1em;
}

/* Back to home button on category pages */
.back-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border: 1.5px solid var(--green-main);
  color: var(--green-main); border-radius: 50px;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.05em;
  transition: var(--transition); margin-bottom: 2rem;
}
.back-btn:hover { background: var(--green-main); color: var(--white); }

/* Other categories strip */
.other-cats { padding: 4rem 2rem; background: var(--white); }
.other-cats h3 { font-family: var(--ff-display); font-size: 1.6rem; font-weight: 300; text-align: center; margin-bottom: 2rem; }
.other-cats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; max-width: 1100px; margin: 0 auto; }
.other-cat-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1.5rem 1rem; border-radius: var(--radius-sm);
  background: var(--c, #d4e8c2); text-align: center;
  transition: var(--transition); text-decoration: none; color: inherit;
}
.other-cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.other-cat-card span:first-child { font-size: 2rem; }
.other-cat-card strong { font-family: var(--ff-display); font-size: 1rem; font-weight: 400; color: var(--green-deep); }

/* ============================================
   RESPONSIVE GENERAL
   ============================================ */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .other-cats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about-img-wrap { aspect-ratio: 16/9; }
  .about-img-wrap img { min-height: auto; }
  .about-text { padding: 4rem 3rem; }
  .about-badge { right: 0; border-radius: var(--radius) 0 0 var(--radius); }
  .benefits { grid-template-columns: 1fr; }
  .benefits-left { aspect-ratio: 16/9; }
  .benefits-left img { min-height: auto; }
  .benefits-right { padding: 4rem 3rem; }
  .contact { grid-template-columns: 1fr; }
  .contact-left { padding: 4rem 3rem; }
  .contact-right { padding: 4rem 3rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: 3rem 2rem; }
  .footer-bottom { padding: 1.2rem 2rem; flex-direction: column; gap: 0.5rem; text-align: center; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-hero-content { padding: 2.5rem 2rem; }
  .other-cats-grid { grid-template-columns: repeat(2, 1fr); }

  /* --- Categorías: 1 columna en tablet, igual que productos estrella --- */
  .cat-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 0;
    gap: 1.2rem;
  }

  /* --- Productos: 2 columnas en tablet --- */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }

  /* --- Testimonios: 2 columnas anchas en tablet, sin max-width restrictivo --- */
  .testi-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    gap: 1.5rem;
  }
  /* La tarjeta destacada no escala para evitar overflow horizontal */
  .testi-card.featured { transform: none; }
  .testi-card.featured:hover { transform: translateY(-6px); }
}

@media (max-width: 640px) {
  /* --- Productos: 2 columnas compactas en móvil --- */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  /* Reducir padding interior y tipografías para que quepan en columnas estrechas */
  .product-body { padding: 0.9rem; gap: 0.3rem; }
  .product-body h3 { font-size: 0.95rem; line-height: 1.25; }
  .product-body p { font-size: 0.78rem; line-height: 1.45; }
  .product-cat { font-size: 0.65rem; }
  .product-footer { margin-top: 0.5rem; padding-top: 0.5rem; }
  .price { font-size: 1.15rem; }
  .btn-cart { padding: 0.4rem 0.75rem; font-size: 0.75rem; }
  .product-tag { font-size: 0.62rem; padding: 0.2rem 0.5rem; top: 0.5rem; left: 0.5rem; }

  /* --- Categorías: 1 columna en móvil, igual que productos estrella --- */
  .cat-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 0;
    gap: 0.9rem;
  }
  .cat-card { padding: 1.6rem 1rem; }
  .cat-icon { font-size: 2rem; }
  .cat-card h3 { font-size: 1rem; }
  .cat-card p { font-size: 0.8rem; }

  /* --- Testimonios: 1 columna en móvil, ancho completo --- */
  .testi-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 1.2rem;
  }
  .testi-card.featured { transform: none; }
  .testi-card.featured:hover { transform: translateY(-6px); }

  .form-row { grid-template-columns: 1fr; }
  .about-text { padding: 3rem 1.5rem; }
  .benefits-right { padding: 3rem 1.5rem; }
  .contact-left, .contact-right { padding: 3rem 1.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem; }
  .whatsapp-btn span { display: none; }
  .whatsapp-btn { padding: 0.9rem; border-radius: 50%; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .gallery-section { padding: 3rem 1rem; }
  .other-cats-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

@media (max-width: 400px) {
  /* Pantallas muy pequeñas: productos en 1 columna para evitar overflow */
  .products-grid { grid-template-columns: 1fr; }
  .product-body { padding: 1.1rem; }
  .product-body h3 { font-size: 1.1rem; }
  .product-body p { font-size: 0.85rem; }
  .price { font-size: 1.3rem; }
  .btn-cart { padding: 0.5rem 1rem; font-size: 0.82rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
}
