/* ============================================
   DECOBEA — Premium Japandi Design System
   Tejidos artesanales & decoración para el hogar
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Japandi Palette */
  --bg-cream: #FAF8F5;
  --bg-warm: #F3EDE7;
  --bg-sand: #EFECE6;
  --bg-linen: #E8E2DA;

  --primary: #C68B6E;
  --primary-dark: #A87058;
  --primary-light: #DCA98E;
  --accent-gold: #D2B48C;
  --accent-sage: #8B9D83;
  --accent-sage-light: #A8B8A0;
  --accent-terracotta: #C2785C;

  --text-dark: #2B2D2F;
  --text-body: #4A4A4A;
  --text-muted: #8A8580;
  --text-light: #B5AFA8;

  --white: #FFFFFF;
  --black: #1A1A1A;
  --overlay: rgba(27, 27, 27, 0.55);
  --glass-bg: rgba(250, 248, 245, 0.82);
  --glass-border: rgba(255, 255, 255, 0.35);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
  --shadow-float: 0 12px 40px rgba(198, 139, 110, 0.18);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-base: 0.35s var(--ease-out);
  --transition-slow: 0.5s var(--ease-out);
  --transition-hero: 0.7s var(--ease-out);

  /* Layout */
  --container-max: 1280px;
  --header-h: 72px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

ul, ol {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.section-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  max-width: 560px;
  margin: 0 auto;
}

.accent-line {
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold));
  border-radius: 2px;
  margin: var(--space-md) auto var(--space-lg);
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  transition: all var(--transition-base);
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.header.scrolled::before {
  opacity: 1;
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
  z-index: 2;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo img {
  height: 80px;
  width: auto;
  transition: transform var(--transition-base);
}

.logo:hover img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold));
  border-radius: 2px;
  transition: width var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.cart-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-warm);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: all var(--transition-fast);
}

.cart-toggle:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-float);
}

.cart-toggle i {
  font-size: 1.1rem;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-terracotta);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform var(--transition-fast);
}

.cart-badge.show {
  transform: scale(1);
  animation: badgePop 0.4s var(--ease-spring);
}

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 20s ease-in-out infinite alternate;
}

.hero-slide:nth-child(2) img { animation-delay: -6s; }
.hero-slide:nth-child(3) img { animation-delay: -12s; }

@keyframes kenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(27, 27, 27, 0.2) 0%,
    rgba(27, 27, 27, 0.45) 50%,
    rgba(27, 27, 27, 0.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 var(--space-xl);
}

.hero-content h1 {
  color: var(--white);
  font-weight: 700;
  font-size: clamp(2.8rem, 6vw, 5rem);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 1s var(--ease-out) 0.3s forwards;
}

.hero-content .hero-tagline {
  color: rgba(255,255,255,0.9);
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2xl);
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 1s var(--ease-out) 0.6s forwards;
}

.hero-cta-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 1s var(--ease-out) 0.9s forwards;
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Hero navigation dots */
.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-dot.active {
  background: var(--white);
  border-color: var(--white);
  transform: scale(1.2);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%);
  transition: transform var(--transition-base);
}

.btn:hover::before {
  transform: translateX(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(198, 139, 110, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(198, 139, 110, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--text-dark);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--bg-linen);
}

.btn-outline-dark:hover {
  background: var(--text-dark);
  color: var(--white);
  border-color: var(--text-dark);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.8rem;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- ABOUT SECTION ---------- */
.about {
  padding: var(--space-4xl) 0;
  background: var(--bg-warm);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  opacity: 0.15;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about-image:hover img {
  transform: scale(1.04);
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.about-text {
  padding: var(--space-xl) 0;
}

.about-text .section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.about-text .section-label::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.about-text h2 {
  margin-bottom: var(--space-lg);
}

.about-text p {
  margin-bottom: var(--space-md);
  color: var(--text-body);
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.about-feature {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.about-feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.about-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.about-feature-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.4;
}

/* ---------- CATEGORIES SECTION ---------- */
.categories {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-lg);
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
  transition: all var(--transition-base);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.category-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
}

.category-card:hover .category-card-bg {
  transform: scale(1.1);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(27,27,27,0.75) 100%);
  transition: background var(--transition-base);
}

.category-card:hover .category-card-overlay {
  background: linear-gradient(180deg, transparent 20%, rgba(27,27,27,0.85) 100%);
}

.category-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  z-index: 1;
}

.category-card-content h4 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.category-card-content span {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 400;
}

/* ---------- PRODUCTS SECTION ---------- */
.products {
  padding: var(--space-4xl) 0;
  background: var(--bg-warm);
}

.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.filter-pill {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-body);
  background: var(--bg-cream);
  border: 1.5px solid var(--bg-linen);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.filter-pill:hover {
  border-color: var(--primary-light);
  color: var(--primary-dark);
}

.filter-pill.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-float);
}

.search-box {
  position: relative;
  min-width: 260px;
}

.search-box input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--bg-linen);
  background: var(--bg-cream);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-dark);
  outline: none;
  transition: all var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(198, 139, 110, 0.12);
}

.search-box input::placeholder {
  color: var(--text-light);
}

.search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-xl);
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-sand);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card-image img {
  transform: scale(1.08);
}

.product-card-actions {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateY(0);
}

.product-card-actions button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
  font-size: 0.95rem;
}

.product-card-actions button:hover {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

.product-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: var(--accent-sage);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.product-card-info {
  padding: var(--space-lg);
}

.product-card-category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}

.product-card-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.product-card-name:hover {
  color: var(--primary);
}

.product-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.product-card-add {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-warm);
  color: var(--text-dark);
  font-size: 0.78rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.product-card-add:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-float);
}

/* No results */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
}

.no-results i {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: var(--space-md);
  display: block;
}

.no-results h3 {
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.no-results p {
  color: var(--text-light);
}

/* ---------- CTA / Custom Orders Section ---------- */
.cta-section {
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-card {
  background: linear-gradient(135deg, var(--text-dark), #3A3D40);
  border-radius: var(--radius-xl);
  padding: var(--space-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(198, 139, 110, 0.2) 0%, transparent 60%);
}

.cta-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 157, 131, 0.15) 0%, transparent 60%);
}

.cta-card h2 {
  color: var(--white);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.cta-card p {
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
  position: relative;
  z-index: 1;
}

.cta-card .btn {
  position: relative;
  z-index: 1;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand p {
  margin-top: var(--space-md);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ---------- INSTAGRAM FEED ---------- */
.instagram-feed {
  padding: var(--space-4xl) 0;
  background: var(--bg-cream);
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.ig-post {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  display: block;
}

.ig-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.ig-post:hover img {
  transform: scale(1.08);
}

.ig-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 27, 27, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.ig-overlay i {
  color: var(--white);
  font-size: 2rem;
  transform: scale(0.8);
  transition: transform var(--transition-spring);
}

.ig-post:hover .ig-overlay {
  opacity: 1;
}

.ig-post:hover .ig-overlay i {
  transform: scale(1);
}
.footer-socials {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-fast);
}

.footer-socials a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.footer-col ul li {
  margin-bottom: var(--space-sm);
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.footer-logo {
  height: 36px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

/* ---------- CART DRAWER ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg-cream);
  z-index: 2001;
  transition: right var(--transition-hero);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl);
  border-bottom: 1px solid var(--bg-linen);
}

.cart-header h3 {
  font-size: 1.3rem;
}

.cart-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  font-size: 1rem;
  color: var(--text-dark);
}

.cart-close:hover {
  background: var(--primary);
  color: var(--white);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg) var(--space-xl);
}

.cart-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--bg-linen);
  animation: slideInRight 0.3s var(--ease-out);
}

.cart-item-image {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-sand);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--primary-dark);
  font-weight: 600;
  margin: 2px 0;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: 4px;
}

.cart-item-qty button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-warm);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}

.cart-item-qty button:hover {
  background: var(--primary);
  color: var(--white);
}

.cart-item-qty span {
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 24px;
  text-align: center;
}

.cart-item-remove {
  align-self: flex-start;
  color: var(--text-light);
  padding: 4px;
  transition: color var(--transition-fast);
  font-size: 0.85rem;
}

.cart-item-remove:hover {
  color: #e74c3c;
}

.cart-empty {
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
  color: var(--text-muted);
}

.cart-empty i {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: var(--space-md);
  display: block;
}

.cart-empty h4 {
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.cart-footer {
  padding: var(--space-xl);
  border-top: 1px solid var(--bg-linen);
  background: var(--bg-warm);
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.cart-total-label {
  font-weight: 600;
  color: var(--text-dark);
}

.cart-total-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.cart-footer .btn {
  width: 100%;
}

/* ---------- PRODUCT DETAIL MODAL ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.92) translateY(20px);
  transition: transform var(--transition-hero);
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 5;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--primary);
  color: var(--white);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.modal-image {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  background: var(--bg-sand);
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info {
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-info .product-card-category {
  font-size: 0.75rem;
  margin-bottom: var(--space-sm);
}

.modal-info h2 {
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
}

.modal-info .product-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: var(--space-lg);
}

.modal-info .product-description {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.modal-specs {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  padding: var(--space-md);
  background: var(--bg-cream);
  border-radius: var(--radius-md);
}

.modal-spec {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.82rem;
  color: var(--text-body);
}

.modal-spec i {
  color: var(--accent-sage);
  width: 20px;
  text-align: center;
}

.modal-actions {
  display: flex;
  gap: var(--space-md);
}

.modal-actions .btn {
  flex: 1;
}

/* ---------- TOAST NOTIFICATIONS ---------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  background: var(--text-dark);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.4s var(--ease-spring), toastOut 0.3s var(--ease-out) 2.5s forwards;
  max-width: 360px;
  font-size: 0.88rem;
}

.toast i {
  color: #25D366;
  font-size: 1.2rem;
  flex-shrink: 0;
}

@keyframes toastIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}

/* ---------- SCROLL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- KEYFRAMES ---------- */
@keyframes badgePop {
  0%   { transform: scale(0); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

@keyframes slideInRight {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

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

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-fast);
  animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-linen);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about-image img {
    height: 350px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-image {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 320px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-cream);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-2xl);
    transition: left var(--transition-hero);
    z-index: 999;
  }

  .nav-links.open {
    left: 0;
  }

  .nav-links a {
    font-size: 1.3rem;
    text-transform: none;
    letter-spacing: 0;
  }

  .mobile-toggle {
    display: flex;
    z-index: 1001;
  }

  .logo img {
    height: 48px;
    max-width: 180px;
    object-fit: contain;
  }

  #cart-toggle-text {
    display: none;
  }

  .cart-toggle {
    padding: 8px 12px;
  }

  .products-toolbar {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .filter-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-sm);
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .filter-pill {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .search-box {
    width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-md);
  }

  .product-card-info {
    padding: var(--space-md);
  }

  .product-card-name {
    font-size: 1.1rem;
  }

  .product-card-desc {
    /* Muestra la descripción en tablet/móvil */
    display: -webkit-box;
    font-size: 0.85rem;
  }

  .product-card-actions {
    opacity: 1;
    transform: translateY(0);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

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

  .cta-card {
    padding: var(--space-2xl) var(--space-lg);
  }

  .hero-content h1 {
    font-size: clamp(2rem, 7vw, 3.5rem);
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal {
    max-height: 85vh;
    width: 95%;
  }
  
  .modal-image {
    max-height: 250px;
  }
  
  .modal-info {
    padding: var(--space-lg);
  }
  
  .modal-info h2 {
    font-size: 1.4rem;
  }
  
  .modal-info .product-price {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .product-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .product-card-add {
    width: 100%;
    text-align: center;
  }

  .categories-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .category-card {
    aspect-ratio: 1;
  }
}
