@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  --green-900: #1a2e1a;
  --green-800: #2d4a2d;
  --green-700: #4a6b3a;
  --green-600: #5a7d4a;
  --green-500: #6b8f5a;
  --green-100: #e8ede0;
  --gold: #b8860b;
  --gold-light: #fbf5e6;
  --brown: #5a3e2b;
  --brown-light: #8b6f50;
  --cherry: #8b2f3a;
  --cream: #F7F2E8;
  --cream-dark: #ede4d6;
  --gray-100: #f0ece4;
  --gray-200: #e0d8cf;
  --gray-300: #d0c8bc;
  --gray-400: #b8aea0;
  --gray-500: #9a8e80;
  --gray-600: #6b5f50;
  --gray-700: #4a4035;
  --gray-800: #2e2820;
  --gray-900: #1a1610;
  --shadow-sm: 0 1px 3px rgba(90,62,43,.06);
  --shadow-md: 0 4px 16px rgba(90,62,43,.08);
  --shadow-lg: 0 8px 32px rgba(90,62,43,.1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.03'/%3E%3C/svg%3E");
  color: var(--gray-700);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  font-weight: 300;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: .85rem; font-weight: 500;
  padding: 10px 26px; border-radius: 30px;
  border: none; cursor: pointer; transition: all .25s ease;
  letter-spacing: .3px;
}
.btn-primary { background: var(--green-700); color: var(--cream); }
.btn-primary:hover { background: var(--green-800); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1.5px solid var(--green-700); color: var(--green-700); }
.btn-outline:hover { background: var(--green-100); }
.btn-whatsapp { background: #25D366; color: var(--cream); }
.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-2px); }
.btn-sm { padding: 7px 20px; font-size: .8rem; }
.btn-lg { padding: 12px 32px; font-size: .95rem; }

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem; font-weight: 700; letter-spacing: -.3px;
  margin-bottom: 8px; color: var(--gray-800);
}
.section-subtitle {
  font-size: .92rem; color: var(--gray-500); margin-bottom: 40px;
  max-width: 480px; font-weight: 400;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 70px; background: rgba(247,242,232,.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.topbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700; font-size: 1.05rem; color: var(--green-800);
}
.topbar-nav { display: flex; align-items: center; gap: 32px; }
.topbar-nav a {
  font-size: .85rem; font-weight: 400; color: var(--gray-500);
  transition: color .2s; position: relative; letter-spacing: .3px;
}
.topbar-nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--green-700); border-radius: 1px;
  transform: scaleX(0); transition: transform .2s;
}
.topbar-nav a:hover { color: var(--green-700); }
.topbar-nav a:hover::after { transform: scaleX(1); }
.cart-badge {
  position: relative; background: none; border: none;
  font-size: 1.1rem; cursor: pointer; color: var(--gray-600);
  padding: 6px; transition: color .2s;
}
.cart-badge:hover { color: var(--green-700); }
.cart-count {
  position: absolute; top: -2px; right: -4px;
  background: var(--green-600); color: var(--cream);
  font-size: .6rem; font-weight: 600; min-width: 17px; height: 17px;
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.topbar-toggle { display: none; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--gray-600); }

.hero {
  margin-top: 70px; position: relative; overflow: hidden;
}
.hero-line {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3; height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 70%);
}
.hero-banner {
  width: 100%; min-height: 300px;
  background: url('../assets/images/capa4.png') center/cover no-repeat;
}
.hero-overlay {
  position: absolute; top: 0; left: 0; width: 38%; height: 100%;
  background: linear-gradient(90deg, rgba(26,46,26,.55) 0%, rgba(26,46,26,.15) 80%, transparent 100%);
  z-index: 1;
}
.hero-side {
  position: absolute; top: 0; left: 0; width: 38%; height: 100%;
  z-index: 2; display: flex; align-items: center; padding: 0 0 0 24px;
}
.hero-side .hero-content { max-width: 340px; }
.hero-side .hero-tag {
  display: inline-block; padding: 4px 14px;
  background: rgba(247,242,232,.2); color: var(--cream);
  border-radius: 20px; font-size: .65rem; letter-spacing: .5px;
  text-transform: uppercase; margin-bottom: 12px; font-weight: 500;
  backdrop-filter: blur(4px);
}
.hero-side h1 {
  font-family: var(--font-serif);
  font-size: 1.4rem; font-weight: 700; letter-spacing: -.3px;
  line-height: 1.2; margin-bottom: 10px; color: var(--cream);
  text-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.hero-side p {
  font-size: .82rem; margin-bottom: 16px;
  line-height: 1.6; color: rgba(255,255,255,.7);
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.categories { padding: 60px 0; }
.categories-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px;
}
.cat-card {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 3/4; display: flex; align-items: flex-end;
  cursor: pointer; transition: transform .3s;
  border: none; padding: 0; text-align: left; font-family: var(--font);
  width: 100%;
}
.cat-card:hover { transform: translateY(-4px); }
.cat-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 30%, rgba(26,46,26,.7));
}
.cat-card-info {
  position: relative; z-index: 1; padding: 14px; color: var(--cream); width: 100%;
}
.cat-card-info .cat-icon { font-size: 1.3rem; display: block; margin-bottom: 4px; }
.cat-card-info h3 { font-size: .75rem; font-weight: 600; line-height: 1.2; letter-spacing: .3px; }

.features { padding: 80px 0; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.feature-card {
  background: rgba(247,242,232,.5); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 32px 24px;
  transition: transform .25s ease;
}
.feature-card:hover { transform: translateY(-4px); }
.fc-icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 18px;
}
.feature-card h3 { font-size: .95rem; font-weight: 600; margin-bottom: 8px; color: var(--gray-800); }
.feature-card p { font-size: .85rem; color: var(--gray-500); line-height: 1.7; font-weight: 300; }

.highlights { padding: 80px 0; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.product-card {
  background: rgba(247,242,232,.5); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); overflow: hidden;
  transition: transform .3s ease;
}
.product-card:hover { transform: translateY(-6px); }
.product-img {
  width: 100%; aspect-ratio: 1; background: rgba(224,216,207,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.25,.46,.45,.94); }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-body { padding: 18px; }
.product-body h3 { font-size: .9rem; font-weight: 600; margin-bottom: 6px; color: var(--gray-800); }
.product-body p { font-size: .8rem; color: var(--gray-500); margin-bottom: 10px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 300; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 1.05rem; font-weight: 700; color: var(--green-700); }

.contact { padding: 80px 0; background: var(--green-900); color: var(--cream); position: relative; }
.contact::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--green-500), var(--gold));
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact h2 { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.contact > .container > .contact-grid > div:first-child > p { opacity: .65; margin-bottom: 24px; font-size: .92rem; line-height: 1.8; font-weight: 300; }
.contact-item { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: .92rem; opacity: .8; }
.contact-item i { width: 20px; text-align: center; opacity: .6; }
.contact-social { display: flex; gap: 12px; margin-top: 20px; }
.contact-social a {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; transition: all .2s;
}
.contact-social a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }

.footer {
  padding: 28px 0; background: var(--cream-dark); color: var(--gray-500);
  text-align: center; font-size: .8rem; border-top: 1px solid var(--gray-200);
}
.footer p { margin-bottom: 2px; }
.footer a { color: var(--gray-500); transition: color .2s; }
.footer a:hover { color: var(--green-700); }

.cart-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.45); z-index: 2000; display: none;
  backdrop-filter: blur(4px);
}
.cart-sidebar {
  position: fixed; top: 0; right: 0; bottom: 0; width: 400px;
  background: var(--cream); z-index: 2001; transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column;
  border-left: 1px solid var(--gray-200);
}
.cart-sidebar.open { transform: translateX(0); }
.cart-sidebar.open + .cart-overlay { display: block; }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 24px 16px; border-bottom: 1px solid var(--gray-200);
}
.cart-header h3 { font-size: 1.1rem; color: var(--gray-900); }
.cart-close { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--gray-500); transition: color .2s; }
.cart-close:hover { color: var(--gray-900); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty { text-align: center; color: var(--gray-400); padding: 60px 0; }
.cart-empty i { display: block; font-size: 2.5rem; margin-bottom: 16px; color: var(--gray-300); }
.cart-item {
  display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--gray-100);
}
.cart-item-img {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  background: var(--gray-100); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: .88rem; font-weight: 600; color: var(--gray-900); }
.cart-item-info p { font-size: .8rem; color: var(--gray-500); }
.cart-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart-qty button {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--gray-300); background: var(--cream);
  cursor: pointer; font-size: .8rem; display: flex; align-items: center; justify-content: center;
  transition: all .2s; color: var(--gray-700);
}
.cart-qty button:hover { border-color: var(--green-600); color: var(--green-700); }
.cart-qty span { font-size: .85rem; font-weight: 600; min-width: 24px; text-align: center; color: var(--gray-900); }
.cart-item-total { font-size: .88rem; font-weight: 700; color: var(--green-700); white-space: nowrap; }
.cart-footer { padding: 16px 24px 24px; border-top: 1px solid var(--gray-200); }
.cart-total { display: flex; justify-content: space-between; font-size: 1rem; font-weight: 700; margin-bottom: 14px; color: var(--gray-900); }
.cart-subtotal { font-size: .82rem; color: var(--gray-500); text-align: center; margin-bottom: 14px; }

.float-wa {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: 0 4px 16px rgba(37,211,102,.4);
  cursor: pointer; transition: all .25s ease;
}
.float-wa:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,.5); color: var(--white); }

.toast-container {
  position: fixed; top: 84px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--cream); border-radius: var(--radius-sm);
  padding: 14px 20px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  font-size: .85rem; font-weight: 500; color: var(--gray-900);
  animation: toastIn .3s ease, toastOut .3s ease 2.7s forwards;
  border-left: 4px solid var(--green-600);
  max-width: 320px;
}
.toast i { font-size: 1.1rem; color: var(--green-600); }
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* === Tablets & Small Desktops === */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-side .hero-content { max-width: 260px; }
  .hero-side h1 { font-size: 1.2rem; }
  .features-grid, .product-grid { gap: 16px; }
  .feature-card { padding: 28px 20px; }
  .product-body { padding: 14px; }
}

@media (max-width: 768px) {
  .topbar-nav { display: none; }
  .topbar-nav.open { display: flex; flex-direction: column; position: fixed; top: 70px; left: 0; right: 0; background: var(--cream); padding: 20px 24px; border-bottom: 1px solid var(--gray-200); gap: 24px; }
  .topbar-toggle { display: block; }
  .hero-banner { min-height: 220px; }
  .hero-overlay,
  .hero-side { width: 50%; }
  .hero-side .hero-content { max-width: 100%; }
  .hero-side h1 { font-size: 1.1rem; }
  .hero-side p { font-size: .78rem; margin-bottom: 14px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat-card { aspect-ratio: 4/5; }
  .features-grid, .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cart-sidebar { width: 100%; }
  .section-title { font-size: 1.5rem; }
  .section-subtitle { font-size: .85rem; margin-bottom: 28px; }
  .features, .highlights, .contact { padding: 48px 0; }
  .feature-card { padding: 24px 18px; }
  .product-body { padding: 12px; }
  .product-body h3 { font-size: .82rem; }
  .container { padding: 0 20px; }
}

@media (max-width: 480px) {
  .hero-banner { min-height: 170px; }
  .hero-overlay,
  .hero-side { width: 60%; }
  .hero-side { padding: 0 0 0 14px; }
  .hero-side h1 { font-size: .95rem; }
  .hero-side p { font-size: .7rem; margin-bottom: 10px; line-height: 1.5; }
  .hero-side .hero-tag { font-size: .55rem; padding: 2px 10px; margin-bottom: 8px; }
  .hero-actions { gap: 6px; }
  .hero-actions .btn { padding: 6px 14px; font-size: .7rem; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cat-card { aspect-ratio: 3/4; }
  .cat-card-info { padding: 10px; }
  .cat-card-info h3 { font-size: .7rem; }
  .features-grid, .product-grid { grid-template-columns: 1fr; gap: 12px; }
  .product-card { max-width: 100%; }
  .features, .highlights, .contact { padding: 32px 0; }
  .feature-card { padding: 20px 16px; }
  .section-title { font-size: 1.3rem; }
  .section-subtitle { font-size: .8rem; margin-bottom: 24px; }
  .container { padding: 0 16px; }
  .float-wa { width: 44px; height: 44px; font-size: 1.1rem; bottom: 14px; right: 14px; }
  .toast-container { right: 12px; left: 12px; top: 76px; }
  .toast { max-width: 100%; padding: 12px 16px; font-size: .8rem; }
}

/* === Decorative Elements === */
.deco-leaf {
  position: absolute; opacity: .06; pointer-events: none;
  font-size: 3rem; color: var(--green-700);
  font-family: sans-serif;
}
.deco-leaf-1 { top: 20px; right: 20px; transform: rotate(30deg) scaleX(-1); }
.deco-leaf-2 { bottom: 20px; left: 20px; transform: rotate(-20deg); }
.deco-leaf-3 { top: 40%; left: 10px; transform: rotate(60deg); font-size: 2rem; opacity: .04; }
.deco-leaf-4 { bottom: 30%; right: 10px; transform: rotate(-40deg) scaleX(-1); font-size: 2.2rem; opacity: .04; }

@media (max-width: 768px) {
  .deco-leaf { display: none; }
}
