/* ==========================================================
   VITA RAÍZ — Styles
   ========================================================== */

/* ===== 1. DESIGN TOKENS ===== */
:root {
  /* --- Greens --- */
  --verde-profundo: #0F4A35;
  --verde-bosque: #073B2A;
  --verde-medio: #1F6B4A;
  --verde-salvia: #AFC8B4;
  --verde-fondo: #DDE8DD;

  /* --- Creams --- */
  --crema: #F7F0E4;
  --marfil: #FFF9EF;
  --beige: #E8DCC8;
  --arena: #D7C6A5;

  /* --- Golds --- */
  --dorado: #B89045;
  --dorado-oscuro: #8A6A2F;
  --dorado-claro: #D9BE7E;

  /* --- Text --- */
  --texto: #143C2D;
  --texto-sec: #5E6B5F;

  /* --- Glass --- */
  --glass-white: rgba(255,255,255,0.42);
  --glass-white-solid: rgba(255,255,255,0.58);
  --glass-verde: rgba(15,74,53,0.78);
  --glass-verde-dark: rgba(7,59,42,0.90);
  --glass-dorado: rgba(184,144,69,0.38);
  --glass-border: rgba(255,255,255,0.46);
  --shadow-soft: 0 20px 45px rgba(15,74,53,0.16);
  --shadow-deep: 0 22px 50px rgba(7,59,42,0.28);

  /* --- Radius --- */
  --radius-lg: 28px;
  --radius-md: 24px;
  --radius-sm: 20px;
  --radius-pill: 999px;

  /* --- Fonts --- */
  --font-title: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ===== 2. RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(
      rgba(247, 240, 228, 0.12),
      rgba(247, 240, 228, 0.12)
    ),
    url("../assets/backgrounds/Fondo.webp") center top / cover no-repeat;
  will-change: transform;
  z-index: -2;
  pointer-events: none;
}

body {
  font-family: var(--font-body);
  color: var(--texto);
  background: transparent;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ===== 3. TYPOGRAPHY ===== */
h1, h2, h3 { font-family: var(--font-title); color: var(--verde-profundo); line-height: 1.1; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--dorado);
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(24px, 4vw, 38px);
  color: var(--verde-profundo);
  margin-top: 8px;
}

/* ===== 4. UTILITIES ===== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 3px solid rgba(184, 144, 69, 0.72);
  outline-offset: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(184, 144, 69, 0.72);
  outline-offset: 4px;
}

body.menu-open {
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--verde-profundo), var(--verde-medio));
  color: var(--marfil);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(15,74,53,0.25);
  transition: transform 0.3s, box-shadow 0.3s;
}
.btn-primary:hover { transform: scale(1.02); box-shadow: 0 14px 30px rgba(15,74,53,0.32); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(255,255,255,0.42);
  border: 1px solid var(--dorado);
  color: var(--dorado-oscuro);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.3s, background 0.3s;
}
.btn-secondary:hover { transform: scale(1.02); background: rgba(255,255,255,0.6); }

.glass-card {
  background: var(--glass-white);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* Body background decorations */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
body::before {
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,249,239,0.14), transparent 72%);
}
body::after {
  bottom: 200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(175,200,180,0.12), transparent 72%);
}

main { position: relative; z-index: 1; }

/* ===== 5. TOP BAR ===== */
.top-bar {
  background: var(--verde-bosque);
  color: var(--dorado-claro);
  font-size: 13px;
  padding: 8px 0;
  position: relative;
  z-index: 100;
}
.top-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-bar-item svg { width: 16px; height: 16px; fill: var(--dorado-claro); flex-shrink: 0; }

/* ===== 6. HEADER ===== */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 90;
  padding: 0 24px;
  margin-top: 12px;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 72px;
  background: rgba(255,255,255,0.42);
  backdrop-filter: blur(26px) saturate(1.08);
  -webkit-backdrop-filter: blur(26px) saturate(1.08);
  border: 1px solid rgba(255,255,255,0.50);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 40px rgba(7,59,42,0.14);
}

/* Logo */
.header-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

/* Nav */
.header-nav { display: flex; gap: 28px; }
.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--texto);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--verde-profundo);
  transition: width 0.3s;
}
.header-nav a:hover { color: var(--verde-profundo); }
.header-nav a:hover::after { width: 100%; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-icon-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.3s;
  position: relative;
}
.header-icon-btn:hover { background: rgba(15,74,53,0.08); }
.header-icon-btn svg { width: 22px; height: 22px; stroke: var(--texto); fill: none; stroke-width: 1.8; }

#cartBtn {
  position: fixed !important;
  top: auto;
  bottom: 96px !important;
  right: 24px !important;
  z-index: 120;
  width: 52px;
  height: 52px;
  background: rgba(255,249,239,0.92);
  border: 1px solid rgba(184,144,69,0.35);
  box-shadow: 0 14px 34px rgba(7,59,42,0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  touch-action: none;
}
#cartBtn:hover {
  background: var(--marfil);
  transform: scale(1.04);
}
#cartBtn.is-dragging {
  cursor: grabbing;
  transform: scale(1.04);
  transition: none;
}
#cartBtn svg {
  width: 24px;
  height: 24px;
}

.cart-count {
  position: absolute;
  top: 2px; right: 2px;
  width: 18px; height: 18px;
  background: var(--verde-profundo);
  color: var(--marfil);
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.cart-count.hidden { display: none; }

.btn-header-wa {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--verde-profundo), var(--verde-medio));
  color: var(--marfil);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  box-shadow: 0 10px 25px rgba(15,74,53,0.25);
  transition: transform 0.3s;
}
.btn-header-wa svg { width: 18px; height: 18px; fill: var(--marfil); }
.btn-header-wa:hover { transform: scale(1.03); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; width: 28px; padding: 4px 0; }
.hamburger span {
  display: block; height: 2px; width: 100%;
  background: var(--texto);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(7,59,42,0.92);
  backdrop-filter: blur(12px);
  z-index: 85;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  font-size: 22px;
  color: var(--marfil);
  font-weight: 500;
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--dorado-claro); }

/* ===== 7. HERO ===== */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
  background: linear-gradient(
    120deg,
    rgba(247,240,228,0.28),
    rgba(221,232,221,0.16),
    rgba(255,249,239,0.24)
  );
  min-height: 600px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-glass {
  background: var(--glass-white);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 48px 40px;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}
.hero-badge svg { width: 18px; height: 18px; fill: var(--dorado); }
.hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  color: var(--verde-profundo);
  margin-bottom: 18px;
}
.hero-subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: var(--texto);
  margin-bottom: 28px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero animated brand mark */
.hero-logo-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.hero-logo-stage::before,
.hero-logo-stage::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-logo-stage::before {
  width: min(76vw, 520px);
  height: min(76vw, 520px);
  background:
    radial-gradient(circle at 50% 46%, rgba(255,249,239,0.72) 0 24%, rgba(175,200,180,0.24) 42%, transparent 69%),
    radial-gradient(circle at 58% 60%, rgba(217,190,126,0.22), transparent 52%);
  animation: logoAura 8s ease-in-out infinite;
}

.hero-logo-stage::after {
  width: min(58vw, 380px);
  height: min(58vw, 380px);
  border: 1px solid rgba(184,144,69,0.22);
  box-shadow: inset 0 0 60px rgba(255,255,255,0.42);
  animation: logoRingPulse 7s ease-in-out infinite;
}

.hero-logo-orbit {
  position: relative;
  width: min(78vw, 460px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoDrift 7.5s ease-in-out infinite;
}

.hero-logo-core {
  position: relative;
  z-index: 2;
  width: min(46vw, 255px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,249,239,0.56);
  border: 1px solid rgba(255,255,255,0.64);
  box-shadow:
    0 28px 70px rgba(7,59,42,0.18),
    inset 0 0 28px rgba(255,255,255,0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-logo-core img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(7,59,42,0.18));
  animation: logoBreath 5.8s ease-in-out infinite;
}

.orbit-line {
  position: absolute;
  z-index: 1;
  width: 72%;
  height: 72%;
  border: 1px solid rgba(15,74,53,0.18);
  border-radius: 50%;
  transform: rotate(-14deg) scaleX(1.18);
}

.orbit-line-one {
  animation: orbitTurn 18s linear infinite;
}

.orbit-line-two {
  width: 58%;
  height: 58%;
  border-color: rgba(184,144,69,0.22);
  transform: rotate(22deg) scaleX(1.26);
  animation: orbitTurnReverse 24s linear infinite;
}

.orbit-dot {
  position: absolute;
  z-index: 3;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dorado);
  box-shadow: 0 0 18px rgba(184,144,69,0.5);
  opacity: 0.78;
}

.orbit-dot-one {
  top: 19%;
  right: 25%;
  animation: logoDotFloat 6.2s ease-in-out infinite;
}

.orbit-dot-two {
  left: 22%;
  bottom: 24%;
  width: 6px;
  height: 6px;
  background: var(--verde-medio);
  box-shadow: 0 0 18px rgba(31,107,74,0.42);
  animation: logoDotFloat 7.4s ease-in-out infinite reverse;
}

/* Scroll arrow */
.scroll-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin: 32px auto 0;
  border-radius: 50%;
  background: var(--glass-white);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  animation: float 2.5s ease-in-out infinite;
}
.scroll-arrow svg { width: 20px; height: 20px; stroke: var(--verde-profundo); fill: none; stroke-width: 2; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes logoAura {
  0%, 100% { opacity: 0.72; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes logoRingPulse {
  0%, 100% { opacity: 0.34; transform: scale(0.96); }
  50% { opacity: 0.62; transform: scale(1.05); }
}

@keyframes logoDrift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

@keyframes logoBreath {
  0%, 100% { transform: scale(0.96); opacity: 0.92; }
  45% { transform: scale(1.02); opacity: 1; }
}

@keyframes orbitTurn {
  from { transform: rotate(-14deg) scaleX(1.18); }
  to { transform: rotate(346deg) scaleX(1.18); }
}

@keyframes orbitTurnReverse {
  from { transform: rotate(22deg) scaleX(1.26); }
  to { transform: rotate(-338deg) scaleX(1.26); }
}

@keyframes logoDotFloat {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.58; }
  50% { transform: translate3d(8px, -10px, 0); opacity: 0.92; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-stage::before,
  .hero-logo-stage::after,
  .hero-logo-orbit,
  .hero-logo-core img,
  .orbit-line,
  .orbit-dot {
    animation: none;
  }
}

/* ===== 8. CATEGORIES ===== */
.categories {
  padding: 60px 0 40px;
}
.categories-grid {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s;
  min-width: 100px;
}
.category-card svg {
  width: 28px;
  height: 28px;
  stroke: var(--verde-profundo);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.category-card span {
  font-size: 13px;
  font-weight: 500;
  color: var(--texto);
}
.category-card:hover {
  box-shadow: 0 10px 30px rgba(15,74,53,0.15);
  transform: translateY(-3px);
}
.category-card.active {
  background: linear-gradient(135deg, var(--verde-profundo), var(--verde-medio));
  border-color: transparent;
}
.category-card.active svg { stroke: var(--marfil); }
.category-card.active span { color: var(--marfil); }

.product-card-small .product-type {
  font-size: 11px;
  font-weight: 600;
  color: var(--dorado-oscuro);
  line-height: 1.45;
  margin-bottom: 6px;
  height: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-small .product-desc {
  font-size: 12px;
  color: var(--texto-sec);
  line-height: 1.45;
  margin-bottom: 10px;
  height: 35px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-small .product-price.out-of-stock,
.product-modal-body .modal-price.out-of-stock {
  color: #8a4b3d;
}
.product-card-small .product-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.product-card-small .btn-add-cart-sm {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, var(--verde-profundo), var(--verde-medio));
  color: var(--marfil);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform 0.3s, box-shadow 0.3s;
  min-height: 36px;
}
.product-card-small .btn-add-cart-sm:hover { transform: scale(1.02); }
.product-card-small .btn-add-cart-sm[disabled],
#modalAddCart[disabled] {
  background: linear-gradient(135deg, #b8c0b8, #d6ddd6);
  color: #5c665c;
  cursor: not-allowed;
  box-shadow: none;
}
.product-card-small .btn-add-cart-sm[disabled]:hover,
#modalAddCart[disabled]:hover {
  transform: none;
}
.product-card-small .btn-add-cart-sm.added {
  background: var(--verde-salvia);
  color: var(--verde-bosque);
  box-shadow: 0 0 0 6px rgba(175,200,180,0.28);
  animation: addedPulse 0.8s ease;
}
.product-card-small .btn-wa-consult {
  width: 100%;
  padding: 9px;
  background: transparent;
  border: 1px solid var(--beige);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--texto-sec);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background 0.3s;
  text-align: center;
  min-height: 34px;
}
.product-card-small .btn-wa-consult:hover { background: rgba(255,255,255,0.5); }

/* ===== 9. CATALOG ===== */
.catalog { padding: 60px 0 80px; }
.catalog-header {
  text-align: center;
  margin-bottom: 32px;
}
.catalog-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: flex-start;
}

/* Sidebar */
.catalog-sidebar {
  background: var(--glass-white);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  position: sticky;
  top: 100px;
}
.catalog-sidebar h3 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--texto-sec);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.sidebar-cat {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--texto);
  text-align: left;
  transition: all 0.3s;
  margin-bottom: 4px;
}
.sidebar-cat:hover { background: rgba(15,74,53,0.06); }
.sidebar-cat.active {
  background: linear-gradient(135deg, var(--verde-profundo), var(--verde-medio));
  color: var(--marfil);
}

/* Catalog top controls */
.catalog-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.catalog-search {
  flex: 1;
  position: relative;
  min-width: 220px;
}
.catalog-search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background: var(--glass-white-solid);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: var(--texto);
  outline: none;
  transition: border-color 0.3s;
}
.catalog-search input:focus { border-color: var(--verde-salvia); }
.catalog-search svg {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  stroke: var(--texto-sec); fill: none; stroke-width: 1.8;
}
.catalog-sort select {
  padding: 12px 20px;
  background: var(--glass-white-solid);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: var(--texto);
  outline: none;
  cursor: pointer;
}
.catalog-toggle-stock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--glass-white-solid);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--texto);
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
}
.catalog-toggle-stock:hover {
  border-color: rgba(15,74,53,0.2);
  background: rgba(255,255,255,0.9);
}
.catalog-toggle-stock.active {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15,74,53,0.25);
  color: var(--texto);
  box-shadow: 0 4px 12px rgba(15,74,53,0.08);
}
.switch-track {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  background-color: #cbd5e1;
  border-radius: 9999px;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}
.switch-handle {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.catalog-toggle-stock.active .switch-track {
  background: linear-gradient(135deg, var(--verde-profundo), var(--verde-medio));
}
.catalog-toggle-stock.active .switch-handle {
  transform: translateX(16px);
}

/* Catalog grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.product-card-small {
  min-height: 372px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-sm);
  overflow: clip;
  content-visibility: auto;
  contain-intrinsic-size: auto 372px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s, box-shadow 0.35s;
}
.product-card-small:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15,74,53,0.16);
}
.product-card-small .product-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: var(--verde-fondo);
  cursor: pointer;
  padding: 0;
}
.product-card-small .product-info {
  padding: 10px;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}
.product-card-small .product-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 2px;
  height: 32px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-small .product-cat {
  font-size: 11px;
  color: var(--texto-sec);
  margin-bottom: 5px;
  height: 17px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.product-card-small .product-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--verde-profundo);
  margin-bottom: 8px;
  margin-top: 0;
  height: 22px;
}

.product-card-small .product-actions {
  flex-shrink: 0;
  min-height: 78px;
  justify-content: flex-end;
}
.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--texto-sec);
  font-size: 16px;
}

/* ===== 11. TRUST BANNER ===== */
.trust-banner {
  margin: 0 24px;
  padding: 48px 44px;
  background: linear-gradient(135deg, rgba(7,59,42,0.95), rgba(15,74,53,0.86));
  border: 1px solid rgba(217,190,126,0.35);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.trust-banner-text h2 {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--marfil);
  margin-bottom: 10px;
}
.trust-banner-text p {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  max-width: 550px;
  line-height: 1.7;
}
.trust-banner .btn-trust {
  padding: 14px 32px;
  background: rgba(255,255,255,0.12);
  border: 1px solid var(--dorado-claro);
  color: var(--marfil);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  transition: background 0.3s, transform 0.3s;
  flex-shrink: 0;
}
.trust-banner .btn-trust:hover { background: rgba(255,255,255,0.2); transform: scale(1.02); }

/* ===== 12. BENEFITS ===== */
.benefits { padding: 60px 0; }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.benefit-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.3s;
}
.benefit-card:hover { transform: translateY(-4px); }
.benefit-icon {
  width: 48px; height: 48px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,74,53,0.08);
  border-radius: 50%;
}
.benefit-icon svg { width: 24px; height: 24px; stroke: var(--verde-profundo); fill: none; stroke-width: 1.6; }
.benefit-card h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 8px;
}
.benefit-card p {
  font-size: 13px;
  color: var(--texto-sec);
  line-height: 1.6;
}

/* ===== 13. ABOUT US ===== */
.about-us { padding: 40px 0 60px; }
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.about-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: center;
  transition: transform 0.3s;
}
.about-card:hover { transform: translateY(-4px); }
.about-card .about-icon {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,74,53,0.08);
  border-radius: 50%;
}
.about-card .about-icon svg { width: 26px; height: 26px; stroke: var(--verde-profundo); fill: none; stroke-width: 1.6; }
.about-card p {
  font-size: 15px;
  color: var(--texto);
  line-height: 1.7;
  font-style: italic;
}

/* ===== 14. CTA FINAL ===== */
.cta-final {
  margin: 20px 24px 60px;
  padding: 40px 48px;
  background: linear-gradient(135deg, rgba(7,59,42,0.95), rgba(15,74,53,0.88));
  border: 1px solid rgba(217,190,126,0.35);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.cta-products {
  display: flex;
  gap: -12px;
  flex-shrink: 0;
}
.cta-products img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.cta-products img + img { margin-left: -16px; }
.cta-text { flex: 1; }
.cta-text h2 {
  font-size: clamp(20px, 3vw, 28px);
  color: var(--marfil);
  margin-bottom: 8px;
}
.cta-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}
.cta-final .btn-cta {
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--dorado), var(--dorado-claro));
  color: var(--verde-bosque);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 14px 30px rgba(184,144,69,0.28);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.cta-final .btn-cta:hover { transform: scale(1.03); }

/* ===== 15. FOOTER ===== */
.site-footer {
  background: linear-gradient(135deg, var(--verde-bosque), var(--verde-profundo));
  color: var(--marfil);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand img {
  height: 56px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 340px;
}
.footer-wa {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px;
  color: var(--dorado-claro);
  margin-bottom: 6px;
}
.footer-wa svg { width: 18px; height: 18px; fill: var(--dorado-claro); }
.footer-wa-note { font-size: 12px; color: rgba(255,255,255,0.5); }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dorado-claro);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  padding: 4px 0;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--marfil); }
.footer-social a {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0;
}
.footer-social svg { width: 20px; height: 20px; fill: rgba(255,255,255,0.75); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
}
.footer-legal p {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  margin-bottom: 6px;
}

/* ===== 16. WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 25px rgba(37,211,102,0.4);
  z-index: 80;
  transition: transform 0.3s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 30px; height: 30px; fill: white; }

/* ===== 17. CART DRAWER ===== */
.cart-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(7,59,42,0.4);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.cart-overlay.active { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 16px; right: 16px; bottom: 16px;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  background: rgba(247,240,228,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: -10px 0 40px rgba(7,59,42,0.2);
  z-index: 96;
  transform: translateX(calc(100% + 24px));
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.cart-drawer.active { transform: translateX(0); }

.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--beige);
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(247,240,228,0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.cart-drawer-header h2 {
  font-size: 22px;
  color: var(--verde-profundo);
}
.cart-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.3s;
}
.cart-close:hover { background: rgba(15,74,53,0.08); }
.cart-close svg { width: 22px; height: 22px; stroke: var(--texto); fill: none; stroke-width: 2; }

.cart-items {
  flex: none;
  padding: 16px 24px;
  overflow: visible;
}

.cart-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--texto-sec);
}
.cart-empty p { margin-bottom: 16px; font-size: 15px; }

.cart-item {
  display: flex; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.cart-item img {
  width: 64px; height: 64px;
  object-fit: contain;
  background: var(--verde-fondo);
  border-radius: 12px;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 600; color: var(--texto); margin-bottom: 2px; }
.cart-item-price { font-size: 13px; color: var(--texto-sec); margin-bottom: 8px; }
.cart-item-qty {
  display: flex; align-items: center; gap: 8px;
}
.cart-item-qty button {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(15,74,53,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600;
  color: var(--texto);
  transition: background 0.3s;
}
.cart-item-qty button:hover { background: rgba(15,74,53,0.15); }
.cart-item-qty button:active { transform: scale(0.94); }
.cart-item-qty span { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-remove {
  font-size: 12px;
  color: #c0392b;
  margin-left: auto;
  align-self: flex-start;
  padding: 4px;
}

.cart-summary {
  padding: 20px 24px;
  border-top: 1px solid var(--beige);
}
.cart-summary-row {
  display: flex; justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
}
.cart-summary-row.total { font-size: 18px; font-weight: 700; color: var(--verde-profundo); }
.cart-summary-note { font-size: 12px; color: var(--texto-sec); margin-top: 8px; }

/* Cart form */
.cart-form { padding: 0 24px 24px; }
.cart-form h3 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--texto);
}
.cart-form input,
.cart-form textarea {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 10px;
  background: var(--glass-white-solid);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  font-size: 14px;
  color: var(--texto);
  outline: none;
  transition: border-color 0.3s;
}
.cart-form input:focus,
.cart-form textarea:focus { border-color: var(--verde-salvia); }
.cart-form textarea { resize: vertical; min-height: 60px; }
.cart-form .form-error {
  font-size: 12px;
  color: #c0392b;
  margin-bottom: 10px;
  display: none;
}
.cart-form .form-error.visible { display: block; }

.btn-checkout {
  width: calc(100% - 48px);
  padding: 16px;
  background: linear-gradient(135deg, var(--verde-profundo), var(--verde-medio));
  color: var(--marfil);
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 10px 25px rgba(15,74,53,0.25);
  transition: transform 0.3s;
  margin: 8px 24px 24px;
  position: sticky;
  bottom: 16px;
  z-index: 2;
}
.btn-checkout:hover { transform: scale(1.02); }

/* Product modal */
.product-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(7,59,42,0.5);
  z-index: 97;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.product-modal-overlay.active { display: flex; }
.product-modal {
  background: var(--crema);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-deep);
  position: relative;
  overscroll-behavior: contain;
}
.product-modal-img {
  width: 100%;
  height: min(58vh, 520px);
  object-fit: contain !important;
  object-position: center;
  background: linear-gradient(135deg, rgba(221,232,221,0.9), rgba(255,249,239,0.76));
  padding: 18px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.product-modal-body { padding: 32px; }
.product-modal-body h2 {
  font-size: 24px;
  margin-bottom: 8px;
}
.product-modal-body .modal-cat {
  font-size: 13px;
  color: var(--dorado);
  font-weight: 600;
  margin-bottom: 6px;
}
.product-modal-body .modal-type {
  font-size: 13px;
  color: var(--texto-sec);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 16px;
}
.product-modal-body .modal-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--texto-sec);
  margin-bottom: 20px;
  white-space: pre-line;
}
.product-modal-body .modal-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--verde-profundo);
  margin-bottom: 20px;
}
.product-modal-close {
  position: sticky;
  top: 16px;
  z-index: 4;
  margin: 16px 16px -56px auto;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15,74,53,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(7,59,42,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.product-modal-close svg { width: 20px; height: 20px; stroke: var(--texto); fill: none; stroke-width: 2; }

/* ===== 18. ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cart bump animation */
@keyframes cartBump {
  0% { transform: scale(1); }
  30% { transform: scale(1.3); }
  50% { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.cart-bump {
  animation: cartBump 0.45s ease-out;
}

.cart-flyer {
  position: fixed;
  z-index: 150;
  width: 68px;
  height: 68px;
  object-fit: contain;
  padding: 7px;
  border-radius: 18px;
  background: rgba(255,249,239,0.94);
  border: 1px solid rgba(184,144,69,0.38);
  box-shadow: 0 18px 40px rgba(7,59,42,0.25);
  pointer-events: none;
  animation: flyToCart 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.cart-toast {
  position: fixed;
  top: 104px;
  right: 28px;
  z-index: 151;
  padding: 12px 18px;
  color: var(--marfil);
  background: linear-gradient(135deg, var(--verde-profundo), var(--verde-medio));
  border: 1px solid rgba(217,190,126,0.42);
  border-radius: var(--radius-pill);
  box-shadow: 0 14px 34px rgba(7,59,42,0.26);
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
  animation: toastPop 1.4s ease forwards;
}

@keyframes flyToCart {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.74) rotate(-6deg);
  }
  18% {
    opacity: 1;
    transform: translate3d(0, -24px, 0) scale(1.08) rotate(2deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--fly-x), var(--fly-y), 0) scale(0.32) rotate(12deg);
  }
}

@keyframes toastPop {
  0% { opacity: 0; transform: translateY(-8px) scale(0.96); }
  16%, 78% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-10px) scale(0.98); }
}

@keyframes addedPulse {
  0% { transform: scale(1); }
  42% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* ===== 19. RESPONSIVE — TABLET (≤ 900px) ===== */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-logo-stage { min-height: 300px; margin-top: 20px; }

  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 16px;
  }
  .catalog-sidebar h3 { width: 100%; margin-bottom: 8px; }
  .sidebar-cat { width: auto; padding: 8px 16px; margin-bottom: 0; }

  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }

  .trust-banner { flex-direction: column; text-align: center; }
  .trust-banner-text p { max-width: 100%; }

  .cta-final { flex-direction: column; text-align: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== 20. RESPONSIVE — MOBILE (≤ 600px) ===== */
@media (max-width: 600px) {
  /* Header */
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .btn-header-wa span { display: none; }
  .btn-header-wa { padding: 10px; }
  .header-inner { padding: 0 16px; height: 60px; }

  /* Hero */
  .hero { padding: 32px 0 32px; min-height: auto; }
  .hero-glass { padding: 22px 20px; }
  .hero-title { font-size: 28px; letter-spacing: -0.5px; }
  .hero-subtitle { font-size: 14px; margin-bottom: 20px; }
  .hero-logo-stage { display: flex; min-height: 250px; margin-top: 10px; }
  .hero-logo-orbit { width: min(84vw, 300px); }
  .hero-logo-core { width: min(48vw, 170px); }
  .orbit-dot-one { top: 17%; right: 23%; }
  .orbit-dot-two { left: 20%; bottom: 22%; }

  /* Categories */
  .categories-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .category-card { flex-shrink: 0; min-width: 85px; padding: 14px 16px; }

  /* Catalog */
  .catalog-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .catalog-controls { flex-direction: column; }
  .product-card-small .product-img { height: 122px; padding: 0; object-fit: cover; }
  .product-card-small { min-height: 362px; }
  .product-card-small .product-info { padding: 9px; }
  .product-card-small .product-name {
    height: 32px;
    font-size: 11px;
    line-height: 1.35;
  }
  .product-card-small .product-cat {
    height: 15px;
    font-size: 10px;
    margin-bottom: 4px;
  }
  .product-card-small .product-type { display: none; }
  .product-card-small .product-desc {
    height: 17px;
    font-size: 10px;
    line-height: 1.35;
    -webkit-line-clamp: 1;
    margin-bottom: 6px;
  }
  .product-card-small .product-price {
    height: 18px;
    font-size: 13px;
    margin-bottom: 6px;
  }
  .product-card-small .btn-add-cart-sm {
    min-height: 32px;
    padding: 8px;
    font-size: 11px;
  }
  .product-card-small .btn-wa-consult {
    min-height: 32px;
    padding: 8px;
    font-size: 11px;
  }
  .product-card-small .product-actions {
    min-height: 72px;
  }

  /* Benefits */
  .benefits-grid { grid-template-columns: 1fr; }

  /* CTA */
  .cta-products { display: none; }
  .cta-final { padding: 28px 24px; }
  .cta-final .btn-cta { width: 100%; justify-content: center; }

  .catalog-controls {
    align-items: stretch;
  }
  .catalog-search,
  .catalog-toggle-stock,
  .catalog-sort {
    width: 100%;
  }
  .catalog-sort select,
  .catalog-toggle-stock {
    width: 100%;
  }

  /* Cart */
  #cartBtn {
    right: 16px !important;
    bottom: 92px !important;
    width: 50px;
    height: 50px;
  }
  .cart-drawer {
    top: auto;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: min(86dvh, 760px);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transform: translateY(100%);
  }
  .cart-drawer.active { transform: translateY(0); }
  .cart-toast {
    top: auto;
    right: 16px;
    bottom: 92px;
  }

  /* Top bar */
  .top-bar .container { gap: 12px; font-size: 11px; }

  /* Trust banner */
  .trust-banner { margin: 0 16px; padding: 32px 24px; }
}

@media (max-width: 400px) {
  .catalog-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   FIX: Botones de producto siempre visibles
   ========================================================== */

.product-card-small {
  overflow: hidden;
}

.product-card-small .product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-small .product-actions {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
  flex-shrink: 0;
  min-height: auto;
  justify-content: flex-start;
}

.product-card-small .btn-add-cart-sm {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100%;
  align-items: center;
  justify-content: center;
}

/* ==========================================================
   FIX: Imagenes de producto con zoom controlado
   ========================================================== */

.product-card-small .product-img {
  width: 100%;
  height: 165px;
  object-fit: contain !important;
  object-position: center;
  background: linear-gradient(135deg, rgba(221,232,221,0.9), rgba(255,249,239,0.7));
  cursor: pointer;
  padding: 6px;
  transform: scale(1.08);
  transition: transform 0.35s ease;
}

.product-card-small:hover .product-img {
  transform: scale(1.12);
}

/* ==========================================================
   FIX: Boton flotante de bolsa / carrito
   ========================================================== */

#cartBtn.cart-float-tab,
.cart-float-tab {
  position: fixed !important;
  right: 24px !important;
  bottom: 96px !important;
  top: auto !important;
  width: 58px !important;
  height: 58px !important;
  z-index: 130 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, var(--verde-profundo), var(--verde-medio)) !important;
  border: 1px solid rgba(217, 190, 126, 0.75) !important;
  border-radius: 50% !important;
  box-shadow: 0 12px 28px rgba(7, 59, 42, 0.28) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  touch-action: auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#cartBtn.cart-float-tab:hover,
.cart-float-tab:hover {
  transform: scale(1.06);
  box-shadow: 0 16px 34px rgba(7, 59, 42, 0.34) !important;
}

#cartBtn.cart-float-tab.is-dragging,
.cart-float-tab.is-dragging {
  cursor: pointer;
  transform: none;
}

#cartBtn.cart-float-tab svg,
.cart-float-tab svg {
  width: 27px !important;
  height: 27px !important;
  display: block !important;
  fill: none !important;
  stroke: var(--marfil) !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

#cartBtn .cart-count,
.cart-float-tab .cart-count {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  width: 21px !important;
  height: 21px !important;
  min-width: 21px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dorado-claro) !important;
  color: var(--verde-bosque) !important;
  border: 2px solid var(--marfil) !important;
  border-radius: 50% !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

#cartBtn .cart-count.hidden,
.cart-float-tab .cart-count.hidden {
  display: none !important;
}

@media (max-width: 600px) {
  .product-card-small .product-img {
    height: 145px;
    padding: 5px;
    transform: scale(1.05);
    object-fit: contain !important;
    object-position: center;
  }

  .product-card-small:hover .product-img {
    transform: scale(1.07);
  }

  #cartBtn.cart-float-tab,
  .cart-float-tab {
    right: 18px !important;
    bottom: 92px !important;
    width: 54px !important;
    height: 54px !important;
  }

  #cartBtn.cart-float-tab svg,
  .cart-float-tab svg {
    width: 25px !important;
    height: 25px !important;
  }

  .product-modal-img {
    height: min(46vh, 360px);
    padding: 12px;
    object-fit: contain !important;
    object-position: center;
  }
}

body::before {
  background: radial-gradient(circle, rgba(255,249,239,0.14), transparent 72%);
}

body::after {
  background: radial-gradient(circle, rgba(175,200,180,0.12), transparent 72%);
}

.hero-glass,
.catalog-sidebar,
.glass-card {
  background: rgba(255,255,255,0.44);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  border: 1px solid rgba(255,255,255,0.48);
}

.category-card,
.product-card-small,
.benefit-card,
.about-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.product-card-small {
  background: rgba(255,255,255,0.46);
  box-shadow: 0 14px 32px rgba(15,74,53,0.10);
}

.product-card-small:hover {
  box-shadow: 0 22px 50px rgba(15,74,53,0.18);
}

.product-card-small .product-img,
.cart-item img {
  background: rgba(221,232,221,0.36);
}

.catalog-search input,
.catalog-sort select,
.cart-form input,
.cart-form textarea {
  background: rgba(255,255,255,0.56);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.50);
}

.catalog-sidebar {
  background: rgba(255,255,255,0.44);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  box-shadow: 0 18px 42px rgba(15,74,53,0.10);
}

.cart-drawer,
.product-modal {
  background: rgba(247,240,228,0.88);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.cart-drawer-header {
  background: rgba(247,240,228,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.trust-banner,
.cta-final {
  background: linear-gradient(
    135deg,
    rgba(7,59,42,0.92),
    rgba(15,74,53,0.82)
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 768px) {
  html::before {
    background:
      linear-gradient(
        rgba(247, 240, 228, 0.16),
        rgba(247, 240, 228, 0.16)
      ),
      url("../assets/backgrounds/Fondo.webp") center top / cover no-repeat;
  }

  .header-inner,
  .hero-glass,
  .catalog-sidebar {
    background: rgba(255,255,255,0.54);
  }

  .product-card-small,
  .category-card,
  .benefit-card,
  .about-card {
    background: rgba(255, 255, 255, 0.92);
  }
}

/* ==========================================================
   HERO — Productos aleatorios destacados
   ========================================================== */

.hero-products-stage {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.hero-products-stage::before {
  content: "";
  position: absolute;
  width: min(74vw, 520px);
  height: min(74vw, 520px);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255,249,239,0.72) 0 28%, rgba(175,200,180,0.24) 52%, transparent 72%),
    radial-gradient(circle at 60% 62%, rgba(217,190,126,0.18), transparent 58%);
  filter: blur(2px);
  z-index: -2;
}

.hero-products-stage::after {
  content: "";
  position: absolute;
  width: min(70vw, 480px);
  height: min(70vw, 480px);
  background:
    radial-gradient(circle at 20% 80%, rgba(175,200,180,0.20), transparent 28%),
    radial-gradient(circle at 82% 26%, rgba(217,190,126,0.14), transparent 24%);
  border-radius: 50%;
  z-index: -3;
}

.hero-products-orbit {
  position: absolute;
  width: min(72vw, 500px);
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: -1;
}

.hero-product-ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(184,144,69,0.24);
  transform: rotate(-12deg) scaleX(1.16);
}

.hero-product-ring.ring-two {
  inset: 18%;
  border-color: rgba(15,74,53,0.16);
  transform: rotate(22deg) scaleX(1.28);
}

.hero-product-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dorado);
  box-shadow: 0 0 18px rgba(184,144,69,0.45);
}

.hero-product-dot.dot-one {
  top: 20%;
  right: 21%;
}

.hero-product-dot.dot-two {
  left: 18%;
  bottom: 28%;
  background: var(--verde-medio);
  box-shadow: 0 0 18px rgba(31,107,74,0.38);
}

.hero-products-composition {
  position: relative;
  width: min(88vw, 560px);
  height: 420px;
}

.hero-product-item {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(255,255,255,0.52);
  border-radius: 26px;
  padding: 14px;
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  box-shadow: 0 22px 48px rgba(7,59,42,0.16);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}

.hero-product-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 30px 64px rgba(7,59,42,0.22);
}

.hero-product-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(7,59,42,0.18));
}

.hero-product-label {
  width: 100%;
  margin-top: 8px;
  text-align: center;
  color: var(--texto);
}

.hero-product-label strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--verde-profundo);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-product-label small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--dorado-oscuro);
}

.hero-product-1 {
  width: 220px;
  height: 280px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.hero-product-2 {
  width: 170px;
  height: 220px;
  left: 4%;
  bottom: 34px;
  z-index: 2;
  transform: rotate(-5deg);
}

.hero-product-3 {
  width: 170px;
  height: 220px;
  right: 4%;
  top: 44px;
  z-index: 2;
  transform: rotate(5deg);
}

.hero-product-1:hover {
  transform: translate(-50%, -52%) scale(1.03);
}

.hero-product-2:hover,
.hero-product-3:hover {
  transform: translateY(-8px) scale(1.03);
}

@media (max-width: 900px) {
  .hero-products-stage {
    min-height: 380px;
  }

  .hero-products-composition {
    height: 340px;
  }

  .hero-product-1 {
    width: 180px;
    height: 230px;
  }

  .hero-product-2,
  .hero-product-3 {
    width: 138px;
    height: 185px;
  }
}

@media (max-width: 640px) {
  .hero-products-stage {
    min-height: 320px;
    margin-top: 20px;
  }

  .hero-products-composition {
    width: 100%;
    height: 300px;
  }

  .hero-product-1 {
    width: 160px;
    height: 210px;
  }

  .hero-product-2 {
    width: 124px;
    height: 170px;
    left: 0;
    bottom: 28px;
  }

  .hero-product-3 {
    width: 124px;
    height: 170px;
    right: 0;
    top: 28px;
  }

  .hero-product-label strong {
    font-size: 10px;
  }

  .hero-product-label small {
    font-size: 9px;
  }
}
