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

:root {
  --green-900: #0f1f0f;
  --green-800: #1a3a1a;
  --green-700: #2d5a2d;
  --green-600: #3a7a3a;
  --green-500: #1a7a1a;
  --green-100: #e8f5e9;
  --gold: #b8860b;
  --gold-light: #fef9ef;
  --blue-700: #1a4b8c;
  --blue-100: #eef4fb;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #868e96;
  --gray-700: #555;
  --gray-800: #343a40;
  --gray-900: #1a1a1a;
  --white: #fff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--gray-700);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: .9rem; font-weight: 600;
  padding: 11px 28px; border-radius: var(--radius-sm);
  border: none; cursor: pointer; transition: all .25s ease;
}
.btn-primary { background: var(--green-700); color: var(--white); box-shadow: 0 2px 8px rgba(45,90,45,.25); }
.btn-primary:hover { background: var(--green-600); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(45,90,45,.35); }
.btn-outline { background: transparent; border: 2px solid var(--green-700); color: var(--green-700); }
.btn-outline:hover { background: var(--green-100); border-color: var(--green-600); }
.btn-whatsapp { background: #25D366; color: var(--white); box-shadow: 0 2px 8px rgba(37,211,102,.3); }
.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(37,211,102,.4); }
.btn-sm { padding: 8px 20px; font-size: .82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

.section-title {
  font-size: 2rem; font-weight: 800; letter-spacing: -.5px;
  margin-bottom: 8px; color: var(--gray-900);
}
.section-subtitle {
  font-size: 1rem; color: var(--gray-600); margin-bottom: 40px;
  max-width: 560px;
}
.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: 64px; background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.topbar-inner {
  max-width: 1120px; 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: 12px;
  font-weight: 700; font-size: 1.05rem; color: var(--green-800);
}
.brand-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--green-800); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
}
.topbar-nav { display: flex; align-items: center; gap: 28px; }
.topbar-nav a {
  font-size: .88rem; font-weight: 500; color: var(--gray-600);
  transition: color .2s; position: relative;
}
.topbar-nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--green-700); border-radius: 2px;
  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.15rem; cursor: pointer; color: var(--gray-700);
  padding: 6px;
}
.cart-count {
  position: absolute; top: -2px; right: -4px;
  background: var(--green-600); color: var(--white);
  font-size: .62rem; font-weight: 700; min-width: 18px; height: 18px;
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px; box-shadow: 0 2px 4px rgba(0,0,0,.15);
}
.topbar-toggle { display: none; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--gray-700); }

.hero {
  min-height: 85vh; display: flex; align-items: center;
  position: relative; overflow: hidden; margin-top: 64px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(26,58,26,.92) 0%, rgba(45,90,45,.7) 40%, rgba(58,122,58,.3) 100%),
    url('../assets/images/capa.jpg') center/cover no-repeat;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 80%, rgba(255,255,255,.06) 0%, transparent 50%);
}
.hero-content {
  position: relative; max-width: 600px; color: var(--white);
  padding: 80px 0; z-index: 1;
}
.hero-tag {
  display: inline-block; padding: 6px 18px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 24px; font-size: .8rem; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 20px; font-weight: 600;
}
.hero h1 {
  font-size: 3.2rem; font-weight: 800; letter-spacing: -1px;
  line-height: 1.1; margin-bottom: 16px; color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.hero p {
  font-size: 1.1rem; opacity: .85; margin-bottom: 32px;
  max-width: 480px; line-height: 1.7;
  text-shadow: 0 1px 10px rgba(0,0,0,.15);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.about { padding: 100px 0; background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-placeholder {
  width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-md);
  background: var(--gray-100); display: flex; align-items: center; justify-content: center;
  color: var(--gray-500); font-size: .9rem; overflow: hidden;
}
.about-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; color: var(--gray-900); }
.about p { color: var(--gray-600); margin-bottom: 16px; font-size: 1rem; line-height: 1.8; }

.features { padding: 100px 0; background: var(--gray-50); }
.features-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin-top: 0; }
.feature-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 36px 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.fc-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--gray-900); }
.feature-card p { font-size: .88rem; color: var(--gray-600); line-height: 1.7; }

.highlights { padding: 100px 0; background: var(--white); }
.product-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin-top: 0; }
.product-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-img {
  width: 100%; aspect-ratio: 1; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-body { padding: 20px; }
.product-body h3 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; color: var(--gray-900); }
.product-body p { font-size: .82rem; color: var(--gray-600); margin-bottom: 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 1.15rem; font-weight: 800; color: var(--green-700); }

.contact { padding: 100px 0; background: var(--green-800); color: var(--white); position: relative; }
.contact::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--green-600), var(--gold));
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.contact > .container > .contact-grid > div:first-child > p { opacity: .75; margin-bottom: 24px; font-size: 1rem; line-height: 1.7; }
.contact-item { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: .92rem; opacity: .85; }
.contact-item i { width: 20px; text-align: center; opacity: .7; }
.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,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; transition: all .2s;
}
.contact-social a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); transform: translateY(-2px); }

.footer {
  padding: 32px 0; background: var(--green-900); color: var(--gray-500);
  text-align: center; font-size: .85rem; border-top: 1px solid rgba(255,255,255,.05);
}
.footer p { margin-bottom: 4px; }

.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(--white); z-index: 2001; transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,.1);
}
.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-info { flex: 1; }
.cart-item-info h4 { font-size: .88rem; font-weight: 600; color: var(--gray-900); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── FLOATING WHATSAPP ── */
.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 ── */
.toast-container {
  position: fixed; top: 80px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--white); 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; }
}

/* ── AOS CUSTOM ── */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

@media (max-width: 480px) {
  .float-wa { width: 48px; height: 48px; font-size: 1.3rem; bottom: 16px; right: 16px; }
  .toast-container { right: 16px; left: 16px; }
  .toast { max-width: 100%; }
}
.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(--white);
  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; }

@media (max-width: 768px) {
  .topbar-nav { display: none; }
  .topbar-nav.open { display: flex; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: var(--white); padding: 20px 24px; border-bottom: 1px solid var(--gray-200); gap: 20px; box-shadow: var(--shadow-md); }
  .topbar-toggle { display: block; }
  .hero h1 { font-size: 2.2rem; }
  .hero { min-height: 70vh; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .features-grid, .product-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .cart-sidebar { width: 100%; }
  .section-title { font-size: 1.6rem; }
  .about, .features, .highlights, .contact { padding: 64px 0; }
}

@media (max-width: 480px) {
  .features-grid, .product-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .container { padding: 0 20px; }
  .hero { min-height: 60vh; }
  .about, .features, .highlights, .contact { padding: 48px 0; }
  .hero-content { padding: 60px 0; }
}
