/* ─── Design tokens ─── */
:root {
  --bg: #fffaf4;
  --bg-2: #f5ede2;
  --card: rgba(255, 255, 255, 0.76);
  --text: #1a0f0e;
  --muted: #5c3d38;
  --wine: #6b1818;
  --red: #a82424;
  --gold: #bf9b52;
  --gold-light: rgba(201, 165, 106, 0.12);
  --line: rgba(107, 24, 24, 0.10);
  --shadow: 0 20px 50px rgba(94, 33, 29, 0.08), 0 4px 12px rgba(94, 33, 29, 0.04);
  --shadow-hover: 0 30px 60px rgba(94, 33, 29, 0.14), 0 8px 20px rgba(94, 33, 29, 0.06);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1200px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(201, 165, 106, 0.14), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(178, 43, 43, 0.10), transparent 35%),
    radial-gradient(circle at 50% 60%, rgba(201, 165, 106, 0.06), transparent 40%),
    linear-gradient(180deg, #fffdf9 0%, var(--bg) 50%, #fff9f2 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Page loader ─── */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
.page-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { width: 200px; animation: loader-pulse 1.2s var(--ease) infinite alternate; }
@keyframes loader-pulse {
  from { opacity: 0.4; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* ─── Scroll progress ─── */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--wine), var(--gold));
  z-index: 100; border-radius: 0 2px 2px 0;
}

/* ─── Layout ─── */
.container { width: min(calc(100% - 48px), var(--container)); margin: 0 auto; }
.section { padding: 96px 0; }
.page-shell { overflow: hidden; }

/* ─── Section dividers ─── */
.section-divider { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 2; }
.section-divider svg { display: block; width: 100%; height: 60px; }

/* ─── Skip link ─── */
.skip-link {
  position: absolute; left: 16px; top: -56px; z-index: 100;
  padding: 12px 16px; border-radius: 12px;
  background: #fff; color: var(--wine);
  border: 1px solid var(--line); font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ─── Header ─── */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  background: rgba(255, 250, 244, 0.78);
  border-bottom: 1px solid rgba(127, 29, 29, 0.06);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.header-scrolled { background: rgba(255, 250, 244, 0.92); box-shadow: 0 4px 20px rgba(94, 33, 29, 0.06); }
.header-scrolled .nav-wrap { min-height: 64px; }
.header-scrolled .brand-logo { width: 220px; }

.nav-wrap {
  min-height: 80px; display: flex; align-items: center; gap: 22px;
  transition: min-height 0.35s var(--ease);
}
.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo { width: 260px; height: auto; display: block; transition: width 0.35s var(--ease); }
.footer-logo { width: 240px; }

/* ─── Navigation ─── */
.nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.nav a {
  position: relative; font-size: 0.92rem; color: var(--muted);
  font-weight: 600; padding: 8px 16px; border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav a::after {
  content: ''; position: absolute; bottom: 2px; left: 50%;
  width: 0; height: 2.5px;
  background: linear-gradient(90deg, var(--gold), var(--wine));
  border-radius: 999px;
  transition: width 0.3s var(--ease-spring), left 0.3s var(--ease-spring);
}
.nav a:hover { color: var(--wine); background: rgba(127, 29, 29, 0.04); }
.nav a:hover::after, .nav a.is-active::after { width: 20px; left: calc(50% - 10px); }
.nav a.is-active { color: var(--wine); font-weight: 700; }

/* ─── Focus states ─── */
.nav a:focus-visible, .btn:focus-visible, .menu-toggle:focus-visible,
.skip-link:focus-visible, .floating-whatsapp:focus-visible,
.contact-form input:focus-visible, .contact-form textarea:focus-visible {
  outline: 3px solid rgba(201, 165, 106, 0.85); outline-offset: 3px;
}

/* ─── Menu toggle ─── */
.menu-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: 14px;
  background: #fff; padding: 10px; cursor: pointer;
  transition: background 0.2s var(--ease);
}
.menu-toggle:hover { background: rgba(127, 29, 29, 0.04); }
.menu-toggle span {
  display: block; height: 2px; margin: 5px 0; border-radius: 999px;
  background: var(--wine); transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Buttons ─── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; border-radius: 999px; padding: 16px 28px;
  font-weight: 700; font-size: 0.95rem; border: none; cursor: pointer; overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background 0.28s var(--ease), color 0.28s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn svg { flex-shrink: 0; }

.btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--wine), var(--red));
  box-shadow: 0 12px 28px rgba(127, 29, 29, 0.22);
}
.btn-primary:hover { box-shadow: 0 18px 40px rgba(127, 29, 29, 0.32); }

.btn-secondary {
  border: 1.5px solid var(--line); background: rgba(255, 255, 255, 0.62); color: var(--wine);
}
.btn-secondary:hover { background: rgba(127, 29, 29, 0.04); border-color: rgba(127, 29, 29, 0.22); }

.btn-sm { padding: 12px 20px; font-size: 0.9rem; }
.header-cta svg { flex-shrink: 0; }

/* ─── Typography ─── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--wine); font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.25em; text-transform: uppercase;
}
.eyebrow::before {
  content: ''; width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent); border-radius: 999px;
}

h1, h2, h3 { font-family: 'Cormorant Garamond', serif; line-height: 0.95; margin: 0; }
h1 { font-size: clamp(3rem, 6vw, 6rem); letter-spacing: -0.04em; margin-top: 18px; line-height: 0.9; }
h2 { font-size: clamp(2.2rem, 4vw, 4.2rem); letter-spacing: -0.035em; line-height: 0.94; }
h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1; }
p { color: var(--muted); line-height: 1.8; margin: 0; }

.chip {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: 6px 12px; background: rgba(201, 165, 106, 0.14);
  border: 1px solid rgba(201, 165, 106, 0.25); color: #6d4d1f;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}

/* ─── Section headings ─── */
.section-heading { max-width: 680px; margin-bottom: 40px; }
.section-heading.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-heading p { margin-top: 14px; }

/* ═══════════════════════════════════════
   1. HERO
   ═══════════════════════════════════════ */
.hero {
  padding-top: 64px; padding-bottom: 100px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 80%; height: 120%;
  background: radial-gradient(ellipse, rgba(201, 165, 106, 0.10) 0%, transparent 70%);
  animation: hero-ambient 8s var(--ease) infinite alternate;
  pointer-events: none;
}
@keyframes hero-ambient {
  from { transform: translate(0, 0) scale(1); opacity: 0.6; }
  to   { transform: translate(-5%, 5%) scale(1.1); opacity: 1; }
}

.hero-title::after {
  content: ''; display: block; width: 120px; height: 4px;
  margin-top: 16px; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--wine));
}

.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center; position: relative; z-index: 1;
}

.hero-copy > p { margin-top: 20px; max-width: 48ch; font-size: 1.08rem; }
.hero-copy > .btn { margin-top: 32px; }

.hero-visual { display: grid; }
.hero-img {
  width: 100%; height: 480px; object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hover);
  transition: transform 0.6s var(--ease);
}
.hero-visual:hover .hero-img { transform: scale(1.02); }

/* ═══════════════════════════════════════
   2. ABOUT + STATS
   ═══════════════════════════════════════ */
.about { position: relative; }

.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; margin-bottom: 64px;
}

.stat-card {
  border-radius: var(--radius-lg); padding: 28px 24px;
  text-align: center;
  border: 1px solid rgba(107, 24, 24, 0.10);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(201, 165, 106, 0.3); }
.stat-card strong {
  display: block; font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem; line-height: 1; color: var(--wine); font-weight: 700;
}
.stat-card small {
  display: block; font-size: 0.82rem; font-weight: 700;
  color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px;
}
.stat-card span { display: block; margin-top: 10px; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }

.about-content {
  max-width: 720px; margin: 0 auto 56px;
  text-align: center;
}
.about-content .section-heading { margin-left: auto; margin-right: auto; }

.diff-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}

.diff-card {
  border-radius: var(--radius-lg); padding: 32px 28px;
  border: 1px solid rgba(107, 24, 24, 0.10);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.diff-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(201, 165, 106, 0.3); }

.diff-icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 16px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(107, 24, 24, 0.06), rgba(201, 165, 106, 0.16));
  color: var(--wine);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease-spring);
}
.diff-card:hover .diff-icon {
  background: linear-gradient(135deg, var(--wine), var(--red));
  color: #fff; transform: scale(1.08);
}

.diff-card h3 { margin-bottom: 8px; }
.diff-card p { font-size: 0.92rem; }

/* ═══════════════════════════════════════
   3. PRODUCTS — Category Cards + Panel
   ═══════════════════════════════════════ */
.products { position: relative; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}

.category-card {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 2px solid rgba(107, 24, 24, 0.08);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(201, 165, 106, 0.3);
}
.category-card.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(191, 155, 82, 0.18), var(--shadow-hover);
  transform: translateY(-4px);
}
.category-card.is-active .category-toggle {
  color: var(--gold);
}
.category-card.is-active .category-toggle svg {
  transform: rotate(180deg);
}

.category-header {
  display: block; width: 100%; border: none; background: none;
  padding: 0; cursor: pointer; text-align: left;
  font: inherit; color: inherit;
}
.category-card--no-products .category-header { cursor: default; }

.category-img-wrap { overflow: hidden; }
.category-img-wrap img {
  width: 100%; height: 240px; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.category-card:hover .category-img-wrap img { transform: scale(1.05); }

.category-info {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.category-info h3 {
  font-size: 1.5rem; color: var(--text);
}

.category-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--wine); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.02em; white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.category-toggle svg {
  transition: transform 0.35s var(--ease-spring);
}

/* ─── Product Panel (below grid) ─── */
.product-panel {
  margin-top: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(107, 24, 24, 0.10);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-hover);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  overflow: hidden;
  animation: panelSlideIn 0.4s var(--ease-out) both;
}
.product-panel[hidden] { display: none; }

@keyframes panelSlideIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.product-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid rgba(107, 24, 24, 0.08);
}
.product-panel-title {
  font-size: 1.6rem; color: var(--wine);
  display: flex; align-items: center; gap: 12px;
}
.product-panel-title::before {
  content: ''; width: 4px; height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--wine));
}

.product-panel-close {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 18px;
  border: 1.5px solid rgba(107, 24, 24, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted); font-weight: 700; font-size: 0.82rem;
  cursor: pointer; font-family: inherit;
  transition: all 0.25s var(--ease);
}
.product-panel-close:hover {
  background: rgba(107, 24, 24, 0.06);
  border-color: rgba(107, 24, 24, 0.22);
  color: var(--wine);
}

.product-panel-body {
  padding: 24px 28px 28px;
}

.product-group {
  display: none;
}
.product-group.is-visible {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  animation: productsFadeIn 0.35s var(--ease-out) both;
}

@keyframes productsFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.product-item {
  text-align: center;
  border-radius: var(--radius-md); overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(107, 24, 24, 0.06);
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.product-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-item img {
  width: 100%; height: 220px; object-fit: cover;
}

.product-item span {
  display: block; padding: 14px 12px;
  font-weight: 700; font-size: 0.88rem;
  color: var(--text);
}

/* ═══════════════════════════════════════
   4. CONTACT
   ═══════════════════════════════════════ */
.contact-grid {
  display: grid; grid-template-columns: 0.95fr 1.05fr;
  gap: 36px; align-items: start;
}

.contact-card, .form-card {
  border-radius: var(--radius-lg); padding: 32px;
  border: 1px solid rgba(107, 24, 24, 0.10);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.contact-list { display: grid; gap: 18px; margin-top: 24px; }
.contact-list div { display: grid; gap: 6px; }
.contact-list span { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-size: 1.02rem; transition: color 0.2s var(--ease); }
.contact-list a:hover { color: var(--wine); }
.contact-list p { font-size: 1.02rem; color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ─── Form with floating labels ─── */
.contact-form { display: grid; gap: 16px; margin-top: 16px; }

.form-field { position: relative; }
.form-field input, .form-field textarea {
  width: 100%; border: 1.5px solid rgba(107, 24, 24, 0.10);
  border-radius: 14px; padding: 22px 16px 10px;
  font: inherit; font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.9); color: var(--text);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.form-field label {
  position: absolute; top: 50%; left: 16px; transform: translateY(-50%);
  font-size: 0.95rem; font-weight: 600; color: var(--muted);
  pointer-events: none; transition: all 0.25s var(--ease);
}
.form-field:has(textarea) label { top: 20px; transform: none; }
.form-field input:focus + label, .form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label, .form-field textarea:not(:placeholder-shown) + label {
  top: 8px; transform: none; font-size: 0.72rem; color: var(--wine);
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 165, 106, 0.15);
}

.contact-form button { justify-self: start; }

/* ─── Map ─── */
.map-wrap {
  margin-top: 24px; border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid rgba(107, 24, 24, 0.10); box-shadow: var(--shadow);
}
.map-wrap iframe { width: 100%; height: 360px; border: 0; }

/* ═══════════════════════════════════════
   5. FOOTER
   ═══════════════════════════════════════ */
.footer { padding: 48px 0 28px; }

.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px; padding-top: 24px; border-top: 1px solid var(--line);
}
.footer-grid strong {
  display: block; margin-bottom: 14px; color: var(--wine);
  font-size: 0.88rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.footer-grid a, .footer-grid p {
  display: block; margin-bottom: 10px; color: var(--muted);
  font-size: 0.93rem; transition: color 0.2s var(--ease);
}
.footer-grid a:hover { color: var(--wine); }
.footer-brand { margin-bottom: 12px; }
.footer p, .footer span { color: var(--muted); }

.footer-bottom {
  display: flex; justify-content: center; gap: 16px;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid rgba(107, 24, 24, 0.06);
  color: var(--muted); font-size: 0.88rem;
}

.footer-dev { margin: 0; font-size: 0.82rem; }
.footer-dev a {
  color: var(--muted); text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-dev a:hover { color: var(--wine); }

/* ─── Floating WhatsApp ─── */
.floating-whatsapp {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 999px;
  color: #fff; background: linear-gradient(135deg, #20b954, #25d366);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.32);
  font-weight: 800; font-size: 0.92rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.floating-whatsapp::before {
  content: ''; position: absolute; inset: -4px; border-radius: 999px;
  background: rgba(37, 211, 102, 0.3); z-index: -1;
  animation: whatsapp-ping 2s var(--ease) infinite;
}
@keyframes whatsapp-ping {
  0%   { transform: scale(1); opacity: 0.6; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}
.floating-whatsapp:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 40px rgba(37, 211, 102, 0.4); }
.floating-whatsapp svg { flex-shrink: 0; }

/* ─── Reveal animation ─── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }

/* ═══════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  animation: lightboxIn 0.3s var(--ease-out) both;
}
.lightbox[hidden] { display: none; }

@keyframes lightboxIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-overlay {
  position: absolute; inset: 0;
  background: rgba(10, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  max-width: 90vw; max-height: 88vh;
  animation: lightboxImgIn 0.35s var(--ease-spring) both;
}

@keyframes lightboxImgIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-img {
  max-width: 100%; max-height: 80vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700; font-size: 1rem;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  transition: all 0.25s var(--ease);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: scale(1.1);
}

.lightbox-close {
  top: 20px; right: 20px;
  width: 48px; height: 48px;
}
.lightbox-prev {
  left: 16px; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
}
.lightbox-next {
  right: 16px; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
}
.lightbox-prev:hover { transform: translateY(-50%) scale(1.1); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.1); }

/* ═══════════════════════════════════════
   SCROLL-TO-TOP
   ═══════════════════════════════════════ */
.scroll-top {
  position: fixed; left: 20px; bottom: 20px; z-index: 60;
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(107, 24, 24, 0.12);
  border-radius: 50%;
  background: rgba(255, 250, 244, 0.85);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  color: var(--wine);
  box-shadow: 0 8px 24px rgba(94, 33, 29, 0.12);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  animation: scrollTopIn 0.35s var(--ease-out) both;
}
.scroll-top[hidden] { display: none; }
.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(94, 33, 29, 0.2);
  background: var(--wine);
  color: #fff;
}

@keyframes scrollTopIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════
   PRODUCT STAGGER + IMAGE FADE-IN
   ═══════════════════════════════════════ */
.product-group.is-visible .product-item {
  animation: productItemIn 0.4s var(--ease-out) both;
}

@keyframes productItemIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Image fade-in on load */
.category-img-wrap img,
.product-item img {
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.category-img-wrap img.is-loaded,
.product-item img.is-loaded {
  opacity: 1;
}

/* ═══════════════════════════════════════
   CATEGORY COUNT BADGE
   ═══════════════════════════════════════ */
.category-count {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(201, 165, 106, 0.14);
  border: 1px solid rgba(201, 165, 106, 0.25);
  color: #6d4d1f;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════ */
.toast-container {
  position: fixed; top: 20px; right: 20px; z-index: 300;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(107, 24, 24, 0.10);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  font-weight: 600; font-size: 0.92rem;
  color: var(--text);
  animation: toastIn 0.4s var(--ease-spring) both;
}
.toast.toast-success {
  border-left: 4px solid #22c55e;
}
.toast.toast-error {
  border-left: 4px solid #ef4444;
}
.toast.is-leaving {
  animation: toastOut 0.3s var(--ease) both;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

/* ─── Form loading state ─── */
.btn.is-loading {
  pointer-events: none; opacity: 0.8;
}
.btn.is-loading::after {
  content: ''; display: inline-block;
  width: 16px; height: 16px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
  margin-left: 8px;
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════
   RESPONSIVE: 1120px
   ═══════════════════════════════════════ */
@media (max-width: 1120px) {
  .hero-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav { gap: 4px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════
   RESPONSIVE: 820px
   ═══════════════════════════════════════ */
@media (max-width: 820px) {
  .section { padding: 72px 0; }
  .nav-wrap { min-height: 72px; }
  .menu-toggle { display: inline-block; }

  .nav {
    position: absolute; top: 100%; left: 16px; right: 16px;
    display: grid; gap: 0; margin: 0; padding: 12px;
    border-radius: 20px; background: rgba(255, 250, 244, 0.97);
    border: 1px solid rgba(127, 29, 29, 0.10);
    box-shadow: var(--shadow-hover);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transform-origin: top;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  }
  .nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }

  .nav a {
    padding: 14px; border-radius: 12px;
    opacity: 0; transform: translateX(-12px);
    transition: opacity 0.25s, transform 0.25s, color 0.2s, background 0.2s;
  }
  .nav.is-open a:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateX(0); }
  .nav.is-open a:nth-child(2) { transition-delay: 0.10s; opacity: 1; transform: translateX(0); }
  .nav.is-open a:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateX(0); }
  .nav a::after { display: none; }
  .nav a:hover { background: rgba(127, 29, 29, 0.06); }
  .header-cta { display: none; }

  .category-grid, .stats-row, .diff-grid, .footer-grid { grid-template-columns: 1fr; }
  .category-img-wrap img { height: 200px; }
  .product-group.is-visible { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .product-item img { height: 180px; }
  .product-panel-header { padding: 16px 20px; }
  .product-panel-body { padding: 16px 20px 22px; }
  .product-panel-title { font-size: 1.3rem; }
  .hero-img { height: 360px; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section-divider svg { height: 40px; }
}

/* ═══════════════════════════════════════
   RESPONSIVE: 520px
   ═══════════════════════════════════════ */
@media (max-width: 520px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  h1 { font-size: 2.8rem; }
  h3 { font-size: 1.5rem; }
  p { font-size: 0.96rem; }
  .btn { padding: 14px 20px; font-size: 0.9rem; }
  .contact-card, .form-card { padding: 22px; }
  .stat-card strong { font-size: 2.2rem; }
  .hero-img { height: 280px; }
  .diff-card { padding: 24px 20px; }

  .floating-whatsapp { right: 14px; bottom: 14px; }
  .floating-whatsapp span { display: none; }
  .floating-whatsapp { padding: 14px; border-radius: 50%; }
  .scroll-top { left: 14px; bottom: 14px; width: 42px; height: 42px; }
  .lightbox-prev { left: 8px; width: 40px; height: 40px; }
  .lightbox-next { right: 8px; width: 40px; height: 40px; }
  .lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .toast-container { left: 14px; right: 14px; top: auto; bottom: 80px; }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
}
