/* =========================================================
   GAMARRA S.A.C. — Estilos
   Paleta bodega: borgoña, dorado, crema, carbón + verde viña
   ========================================================= */
:root {
  --wine: #6B1E2E;
  --wine-dark: #4A1320;
  --wine-light: #8C2E42;
  --gold: #C9A24D;
  --gold-light: #E3C77F;
  --cream: #F7EFE3;
  --cream-2: #EFE3D0;
  --coal: #1A1416;
  --coal-2: #2A2023;
  --vine: #4E6B3A;
  --vine-light: #7A9A5A;
  --text: #2B2124;
  --muted: #6E6064;
  --white: #fff;
  --wa: #25D366;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(26, 20, 22, .45);
  --ff-title: "Playfair Display", Georgia, serif;
  --ff-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 70px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--ff-body); color: var(--text); background: var(--cream);
  line-height: 1.65; font-size: 16px; overflow-x: hidden; overflow-x: clip;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--ff-title); line-height: 1.15; margin: 0 0 .5em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.section { padding: 80px 0; position: relative; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-title { font-size: clamp(1.9rem, 5vw, 2.8rem); color: var(--wine); }
.section-lead { color: var(--muted); margin: 0; }
.section-head.light .section-title { color: var(--cream); }
.section-head.light .section-lead { color: rgba(247, 239, 227, .8); }
.eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-light); font-weight: 600; margin: 0 0 .8em;
}
.eyebrow.dark { color: var(--vine); }
.eyebrow.dark::before, .eyebrow.dark::after { content: "—"; margin: 0 .5em; color: var(--gold); }

/* ---------- Botones ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.7em; border-radius: 999px; border: 2px solid transparent; font-weight: 600; font-size: .95rem;
  text-decoration: none; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, #A8822F); color: var(--coal); box-shadow: 0 10px 24px -10px rgba(201, 162, 77, .9); }
.btn-whatsapp { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .8); }
.btn-whatsapp:hover { background: #1fbd5a; }
.btn-outline-light { border-color: rgba(247, 239, 227, .5); color: var(--cream); background: transparent; }
.btn-outline-light:hover { background: rgba(247, 239, 227, .1); }
.btn-wine { background: var(--wine); color: var(--cream); }
.btn-wine:hover { background: var(--wine-light); }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; color: var(--gold-light); text-decoration: underline; margin-top: .6rem; font-size: .88rem; }
.ripple-wave {
  position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, .55);
  animation: ripple .65s linear; pointer-events: none;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999; background: radial-gradient(circle at center, var(--coal-2), var(--coal));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  transition: opacity .6s, visibility .6s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.glass .wine { fill: var(--wine-light); transform: translateY(90px); animation: fill 1.6s var(--ease) forwards; }
.glass .wave { fill: var(--wine-light); transform: translateY(90px); animation: fillWave 1.6s var(--ease) forwards, wave 1.2s linear infinite; }
@keyframes fill { to { transform: translateY(34px); } }
@keyframes fillWave { to { transform: translate(0, 28px); } }
@keyframes wave { from { translate: 0 0; } to { translate: -50px 0; } }
.preloader-text { font-family: var(--ff-title); color: var(--cream); letter-spacing: .3em; font-size: 1.1rem; margin: 0; }
.preloader-text span { color: var(--gold); }

/* ---------- Verificación de edad ---------- */
.age-gate {
  position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(26, 20, 22, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fadeIn .4s;
}
.age-gate[hidden] { display: none; }
.age-card {
  width: 100%; max-width: 440px; text-align: center; color: var(--cream); padding: 40px 24px 26px; border-radius: 24px;
  background: linear-gradient(160deg, var(--wine) 0%, var(--wine-dark) 60%, var(--coal) 100%);
  border: 1px solid rgba(201, 162, 77, .45); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7);
  animation: popIn .5s var(--ease);
}
.age-icon { font-size: 2.8rem; animation: float 3s ease-in-out infinite; }
.age-brand { letter-spacing: .3em; color: var(--gold); font-size: .78rem; margin: .4rem 0 1rem; }
.age-card h2 { font-size: 1.8rem; }
.age-sub { color: rgba(247, 239, 227, .8); font-size: .92rem; }
.age-actions { display: flex; gap: 12px; justify-content: center; margin: 1.4rem 0 1rem; flex-wrap: wrap; }
.age-actions .btn { flex: 1 1 120px; }
.age-denied { background: rgba(0, 0, 0, .3); border: 1px solid rgba(201, 162, 77, .4); border-radius: 12px; padding: 12px; animation: fadeIn .3s; }
.age-denied p { margin: 0; font-size: .92rem; }
.legal-mini { font-size: .68rem; letter-spacing: .08em; color: var(--gold-light); margin: 1.2rem 0 0; font-weight: 600; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.9) translateY(20px); } }
@keyframes float { 50% { transform: translateY(-8px) rotate(-6deg); } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500; height: var(--header-h);
  transition: background .35s, box-shadow .35s, height .35s;
}
.header.scrolled { background: rgba(26, 20, 22, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 8px 30px -12px rgba(0, 0, 0, .6); --header-h: 62px; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.logo-mark {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--gold);
  background: radial-gradient(circle at 30% 25%, var(--wine-light), var(--wine-dark)); border: 1.5px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 77, .15);
}
.logo-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.logo-name {
  font-family: var(--ff-title); font-weight: 700; font-size: 1.22rem; letter-spacing: .05em; white-space: nowrap;
  background: linear-gradient(180deg, #F1DCA0 0%, var(--gold) 55%, #A8822F 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo-name b { font-weight: 500; font-size: .78em; letter-spacing: .08em; }
.logo-text small { font-family: var(--ff-body); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(247, 239, 227, .75); font-weight: 400; margin-top: 5px; white-space: nowrap; }
@media (max-width: 359px) { .logo-text small { display: none; } }
.nav { display: none; }
.nav a { text-decoration: none; color: var(--cream); font-size: .9rem; font-weight: 500; position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(201, 162, 77, .6);
  background: rgba(107, 30, 46, .6); color: var(--cream); display: grid; place-items: center; transition: transform .2s;
}
.cart-btn:hover { transform: scale(1.06); }
.cart-btn.bump { animation: bump .5s; }
@keyframes bump { 30% { transform: scale(1.25); } 60% { transform: scale(.92); } }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--gold); color: var(--coal); font-size: .72rem; font-weight: 700; display: grid; place-items: center;
}
.burger { width: 44px; height: 44px; border: 0; background: transparent; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; }
.burger span { height: 2px; background: var(--cream); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 959px) {
  .nav {
    display: flex; flex-direction: column; position: fixed; top: 0; right: 0; height: 100dvh; width: min(300px, 82vw);
    padding: 90px 28px 28px; gap: 18px; background: linear-gradient(180deg, var(--wine-dark), var(--coal));
    transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s; z-index: -1; box-shadow: -20px 0 40px rgba(0, 0, 0, .4);
  }
  .nav.open { transform: none; visibility: visible; }
  .nav-backdrop { position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh; z-index: -2; background: rgba(15, 10, 12, .6); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .nav-backdrop.open { opacity: 1; visibility: visible; }
  .nav a { font-size: 1.1rem; font-family: var(--ff-title); }
}
@media (min-width: 960px) {
  .nav { display: flex; gap: 26px; }
  .nav-backdrop { display: none; }
  .burger { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: var(--cream); padding: calc(var(--header-h) + 30px) 0 90px; }
.hero-bg { position: absolute; inset: -12% 0; background-size: cover; background-position: center 35%; will-change: transform; transform: scale(1.08); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26, 20, 22, .55) 0%, rgba(26, 20, 22, .72) 50%, rgba(26, 20, 22, .95) 100%),
              radial-gradient(ellipse at 20% 30%, rgba(107, 30, 46, .55), transparent 60%);
}
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.2rem, 8vw, 4.4rem); font-weight: 800; max-width: 860px; text-shadow: 0 4px 24px rgba(0, 0, 0, .4); }
.hero h1 em { color: var(--gold-light); font-style: italic; font-weight: 500; display: block; }
.hero-sub { font-size: clamp(1rem, 2.6vw, 1.2rem); max-width: 600px; color: rgba(247, 239, 227, .9); margin: 0 0 1.8rem; }
.hero-sub strong { color: var(--gold-light); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-ctas .btn { flex: 1 1 200px; max-width: 260px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 2.6rem; max-width: 560px; }
.hero-stats div { border-left: 2px solid var(--gold); padding-left: 12px; }
.hero-stats strong { font-family: var(--ff-title); font-size: clamp(1.6rem, 5vw, 2.3rem); color: var(--gold-light); display: block; line-height: 1.1; }
.hero-stats span { font-size: .76rem; color: rgba(247, 239, 227, .75); line-height: 1.3; display: block; }
.scroll-down { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(247, 239, 227, .6); border-radius: 14px; z-index: 2; }
.scroll-down span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: var(--gold); border-radius: 2px; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Barra de confianza ---------- */
.trust { background: var(--coal); color: var(--cream); padding: 26px 0; border-top: 1px solid rgba(201, 162, 77, .3); border-bottom: 1px solid rgba(201, 162, 77, .3); }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 10px; }
.trust-item { display: flex; align-items: center; gap: 10px; }
.trust-item:last-child { grid-column: 1 / -1; justify-content: center; }
.trust-ico {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem;
  background: rgba(107, 30, 46, .7); border: 1px solid var(--gold); animation: pulseIco 3s ease-in-out infinite;
}
.trust-item:nth-child(2) .trust-ico { animation-delay: .4s; }
.trust-item:nth-child(3) .trust-ico { animation-delay: .8s; }
.trust-item:nth-child(4) .trust-ico { animation-delay: 1.2s; }
.trust-item:nth-child(5) .trust-ico { animation-delay: 1.6s; }
@keyframes pulseIco { 0%, 100% { transform: translateY(0); box-shadow: 0 0 0 0 rgba(201, 162, 77, .5); } 50% { transform: translateY(-4px); box-shadow: 0 0 0 8px rgba(201, 162, 77, 0); } }
.trust-item p { margin: 0; font-size: .86rem; font-weight: 500; line-height: 1.3; }
@media (min-width: 760px) {
  .trust-grid { grid-template-columns: repeat(5, 1fr); }
  .trust-item:last-child { grid-column: auto; justify-content: flex-start; }
}

/* ---------- Nosotros ---------- */
.about { background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%236B1E2E' fill-opacity='.04'%3E%3Ccircle cx='60' cy='50' r='6'/%3E%3Ccircle cx='52' cy='62' r='6'/%3E%3Ccircle cx='68' cy='62' r='6'/%3E%3Ccircle cx='60' cy='74' r='6'/%3E%3C/g%3E%3C/svg%3E"); }
.about-grid { display: grid; gap: 48px; align-items: center; }
.about-media { position: relative; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 6px solid var(--white); aspect-ratio: 4 / 3.4; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; right: -6px; bottom: -22px; background: var(--wine); color: var(--cream); padding: 14px 18px; border-radius: 16px;
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); border: 1px solid var(--gold);
}
.about-badge strong { font-family: var(--ff-title); font-size: 1.9rem; color: var(--gold-light); }
.about-badge span { font-size: .78rem; line-height: 1.2; }
.about-text p { color: #4b3e42; }
.quote {
  margin: 1.6rem 0; padding: 1.2rem 1.4rem 1.2rem 3.2rem; position: relative; border-radius: 14px;
  background: linear-gradient(135deg, var(--wine), var(--wine-dark)); color: var(--cream);
  font-family: var(--ff-title); font-style: italic; font-size: 1.3rem; line-height: 1.4; box-shadow: var(--shadow);
}
.quote-mark { position: absolute; left: 14px; top: -4px; font-size: 4rem; color: var(--gold); line-height: 1; }
.about-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--vine); font-weight: 500; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1.05fr; } }

/* ---------- Filtros ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 12px; margin-bottom: 18px; justify-content: center; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; padding: .6em 1.2em; border-radius: 999px; border: 1.5px solid var(--wine); background: transparent; color: var(--wine);
  font-weight: 500; font-size: .9rem; transition: all .25s; position: relative; overflow: hidden;
}
.filter:hover { background: rgba(107, 30, 46, .08); }
.filter.active { background: var(--wine); color: var(--cream); box-shadow: 0 8px 18px -8px rgba(107, 30, 46, .8); }

/* ---------- Productos ---------- */
.catalog { background: linear-gradient(180deg, var(--cream), var(--cream-2)); }
.products { display: grid; gap: 22px; grid-template-columns: 1fr; perspective: 1200px; }
@media (min-width: 620px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .products { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px -18px rgba(26, 20, 22, .5);
  display: flex; flex-direction: column; position: relative; transform-style: preserve-3d;
  transition: transform .3s var(--ease), box-shadow .3s; border: 1px solid rgba(201, 162, 77, .25);
}
.card.hide { display: none; }
.card:hover { box-shadow: 0 30px 50px -22px rgba(107, 30, 46, .55); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.07); }
.card-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 48%, transparent 66%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.card:hover .card-media::after { transform: translateX(120%); }
.card-tag {
  position: absolute; top: 12px; left: 12px; background: var(--wine); color: var(--cream); font-size: .72rem; font-weight: 600;
  padding: .35em .9em; border-radius: 999px; border: 1px solid var(--gold); z-index: 1;
}
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-cat { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--vine); font-weight: 600; }
.card h3 { font-size: 1.3rem; color: var(--coal); margin: 0; }
.card-content { font-size: .88rem; color: var(--muted); margin: 0; display: flex; align-items: center; gap: 6px; }
.card-price { font-family: var(--ff-title); font-size: 1.6rem; color: var(--wine); font-weight: 700; margin: 0; }
.card-price small { font-family: var(--ff-body); font-size: .75rem; color: var(--muted); font-weight: 400; }
.card-note { font-size: .78rem; color: var(--vine); margin: -6px 0 0; font-weight: 500; }
.field-label { font-size: .78rem; font-weight: 600; color: var(--coal); margin-bottom: 6px; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1.5px solid var(--cream-2); background: var(--cream); color: var(--text); padding: .38em .85em; border-radius: 999px;
  font-size: .82rem; transition: all .2s;
}
.chip:hover { border-color: var(--gold); }
.chip.active { background: var(--wine); color: var(--cream); border-color: var(--wine); }
.card-actions { display: flex; gap: 10px; align-items: center; margin-top: auto; padding-top: 6px; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--cream-2); border-radius: 999px; overflow: hidden; background: var(--cream); flex: none; }
.qty button { width: 38px; height: 44px; border: 0; background: transparent; font-size: 1.15rem; color: var(--wine); font-weight: 700; }
.qty button:hover { background: rgba(107, 30, 46, .08); }
.qty input { width: 36px; text-align: center; border: 0; background: transparent; font-weight: 600; font-size: 1rem; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.card-actions .btn { flex: 1; padding: .85em 1em; font-size: .88rem; }
.legal-band {
  margin: 40px auto 0; text-align: center; font-weight: 700; font-size: .78rem; letter-spacing: .1em; color: var(--wine);
  border: 1.5px solid var(--wine); padding: .8em 1em; border-radius: 10px; max-width: 560px; background: rgba(255, 255, 255, .5);
}
.legal-band.light { color: var(--gold-light); border-color: var(--gold); background: rgba(0, 0, 0, .2); }

/* ---------- Caja surtida ---------- */
.mix { background: radial-gradient(ellipse at top, var(--wine) 0%, var(--wine-dark) 45%, var(--coal) 100%); color: var(--cream); overflow: hidden; overflow: clip; }
.mix::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -200px; top: -200px;
  background: radial-gradient(circle, rgba(201, 162, 77, .18), transparent 70%);
}
.mix-box { background: rgba(255, 255, 255, .05); border: 1px solid rgba(201, 162, 77, .35); border-radius: 22px; padding: 18px; backdrop-filter: blur(6px); position: relative; }
.mix-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid rgba(201, 162, 77, .2); }
.mix-head img { width: 76px; height: 76px; flex: none; border-radius: 14px; object-fit: cover; object-position: center 30%; border: 2px solid var(--gold); }
.mix-head h3 { font-size: 1.2rem; margin: 0 0 4px; color: var(--gold-light); }
.mix-head p { margin: 0; font-size: .86rem; color: rgba(247, 239, 227, .8); line-height: 1.4; }
.mix-head > div { flex: 1; min-width: 0; }
.mix-count {
  flex: none; align-self: flex-start; padding: .35em .7em; border-radius: 999px; background: rgba(0, 0, 0, .3);
  border: 1px solid var(--gold); color: var(--cream); font-size: .85rem; white-space: nowrap; transition: background .3s;
}
.mix-count strong { color: var(--gold-light); font-size: 1.05rem; }
.mix-count.full { background: var(--vine); }
@media (max-width: 480px) {
  .mix-box { padding: 14px; }
  .mix-head {
    gap: 10px; position: sticky; top: 62px; z-index: 2; margin: -14px -14px 4px; padding: 12px 14px;
    background: #4A1320; border-radius: 22px 22px 0 0; box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .6);
  }
  .mix-head img { width: 60px; height: 60px; }
  .mix-head h3 { font-size: 1.02rem; }
  .mix-head p { font-size: .8rem; }
}
.mix-grid { display: grid; gap: 20px; margin-top: 12px; }
.mix-flavors { display: grid; gap: 10px; }
.mix-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 16px;
  border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .06); transition: background .25s, border-color .25s;
}
.mix-row.has { border-color: var(--gold); background: rgba(201, 162, 77, .12); }
.mix-row span { font-weight: 500; display: flex; align-items: center; gap: 10px; }
.mix-row .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--gold)); box-shadow: 0 0 0 3px rgba(255, 255, 255, .1); }
.mix-row .qty { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .15); }
.mix-row .qty button { color: var(--gold-light); height: 38px; }
.mix-row .qty input { color: var(--cream); }
.mix-summary { background: rgba(0, 0, 0, .28); border-radius: 18px; padding: 20px; text-align: center; border: 1px solid rgba(201, 162, 77, .25); }
.bottle-meter { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; max-width: 240px; margin: 0 auto 14px; }
.bottle-meter i {
  height: 46px; border-radius: 8px 8px 4px 4px; background: rgba(255, 255, 255, .08); position: relative;
  clip-path: polygon(38% 0, 62% 0, 62% 22%, 85% 34%, 85% 100%, 15% 100%, 15% 34%, 38% 22%);
  transition: background .35s;
}
.bottle-meter i.on { background: var(--c, var(--gold)); animation: pop .35s var(--ease); }
@keyframes pop { 50% { transform: scale(1.18); } }
.mix-status { font-weight: 600; font-size: 1.02rem; margin: 0 0 10px; min-height: 2.6em; }
.mix-status.ok { color: var(--gold-light); }
.mix-progress { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-bottom: 14px; }
.mix-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--vine-light), var(--gold)); transition: width .4s var(--ease); }
.mix-price { margin: 0 0 14px; font-size: .9rem; color: rgba(247, 239, 227, .8); }
.mix-price strong { font-family: var(--ff-title); font-size: 1.3rem; color: var(--gold-light); }
@media (min-width: 860px) {
  .mix-box { padding: 28px; }
  .mix-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .mix-flavors { grid-template-columns: 1fr 1fr; }
  .mix-summary { position: sticky; top: 90px; }
}

/* ---------- Cómo pedir ---------- */
.steps { background: var(--cream); }
.steps-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: s; position: relative; }
.step {
  background: var(--white); border-radius: var(--radius); padding: 28px 22px 24px; text-align: center; position: relative;
  box-shadow: 0 10px 30px -20px rgba(26, 20, 22, .5); border-top: 4px solid var(--gold); transition: transform .3s var(--ease);
}
.step:hover { transform: translateY(-6px); }
.step-num {
  position: absolute; top: -18px; left: 50%; translate: -50% 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--wine); color: var(--gold-light); display: grid; place-items: center; font-family: var(--ff-title); font-weight: 700;
  box-shadow: 0 0 0 5px var(--cream);
}
.step-ico { font-size: 2.3rem; margin: 6px 0 8px; display: inline-block; }
.step.in .step-ico { animation: stepBounce 1s var(--ease); }
@keyframes stepBounce { 0% { transform: scale(0) rotate(-30deg); } 60% { transform: scale(1.2) rotate(8deg); } 100% { transform: none; } }
.step h3 { font-size: 1.15rem; color: var(--wine); }
.step p { margin: 0; color: var(--muted); font-size: .9rem; }
@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 22px; } }
@media (min-width: 1000px) {
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .steps-grid::before { content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px); }
}

/* ---------- Expoferia ---------- */
.expo { background: linear-gradient(135deg, var(--coal) 0%, #23301c 100%); color: var(--cream); overflow: hidden; }
.expo-grid { display: grid; gap: 40px; align-items: center; text-align: center; }
.expo-logo { position: relative; width: min(320px, 78vw); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.expo-logo img { width: 86%; height: 86%; border-radius: 50%; object-fit: cover; position: relative; z-index: 1; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); }
.expo-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--gold), var(--wine-light), var(--vine-light), var(--gold-light), var(--wine), var(--gold));
  animation: spin 10s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
}
.expo-ring::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed rgba(201, 162, 77, .45); }
@keyframes spin { to { transform: rotate(360deg); } }
.expo .section-title { color: var(--cream); }
.expo-text p { color: rgba(247, 239, 227, .85); }
@media (min-width: 860px) { .expo-grid { grid-template-columns: 1fr 1.2fr; text-align: left; } }

/* ---------- Galería ---------- */
.gallery { background: var(--cream-2); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.g-item { padding: 0; border: 0; border-radius: 14px; overflow: hidden; position: relative; aspect-ratio: 1; background: var(--coal); }
.g-item img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s var(--ease), opacity .4s; }
.g-item::after {
  content: "⤢"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; color: var(--cream);
  background: rgba(107, 30, 46, .55); opacity: 0; transition: opacity .35s;
}
.g-item:hover img { transform: scale(1.08); }
.g-item:hover::after, .g-item:focus-visible::after { opacity: 1; }
.g-item:first-child { grid-column: span 2; aspect-ratio: 2 / 1.3; }
@media (min-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .g-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 8000; background: rgba(15, 10, 12, .94); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; padding: 16px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: 960px; width: 100%; text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 12px; box-shadow: 0 30px 60px rgba(0, 0, 0, .6); transform: scale(.94); transition: transform .35s var(--ease); }
.lightbox.open img { transform: none; }
.lightbox figcaption { color: var(--cream); margin-top: 12px; font-size: .92rem; }
.lb-close, .lb-nav {
  position: absolute; border: 1px solid rgba(201, 162, 77, .5); background: rgba(107, 30, 46, .6); color: var(--cream);
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; display: grid; place-items: center; z-index: 2;
}
.lb-close { top: 16px; right: 16px; font-size: 1.1rem; }
.lb-prev { left: 10px; top: 50%; translate: 0 -50%; font-size: 2rem; }
.lb-next { right: 10px; top: 50%; translate: 0 -50%; font-size: 2rem; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.accordion { display: grid; gap: 12px; }
.acc { background: var(--white); border-radius: 14px; border: 1px solid rgba(201, 162, 77, .3); overflow: hidden; transition: box-shadow .3s; }
.acc[open] { box-shadow: 0 16px 30px -20px rgba(107, 30, 46, .6); border-color: var(--gold); }
.acc summary {
  list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; font-weight: 600; position: relative; color: var(--coal);
  font-family: var(--ff-title); font-size: 1.08rem;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 50%;
  background: var(--cream); color: var(--wine); display: grid; place-items: center; font-family: var(--ff-body); font-size: 1.2rem; transition: transform .3s, background .3s;
}
.acc[open] summary::after { transform: rotate(45deg); background: var(--wine); color: var(--gold-light); }
.acc-body { padding: 0 20px 18px; color: var(--muted); animation: accOpen .35s var(--ease); }
.acc-body p { margin: 0; }
.acc-body a { color: var(--wine); font-weight: 600; }
@keyframes accOpen { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Contacto ---------- */
.contact { background: linear-gradient(160deg, var(--wine) 0%, var(--wine-dark) 70%); color: var(--cream); }
.contact .section-title { color: var(--cream); }
.contact-text p { color: rgba(247, 239, 227, .85); margin-bottom: 1.6rem; }
.contact-grid { display: grid; gap: 36px; align-items: center; }
.contact-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; perspective: 1000px; }
.c-card {
  display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(201, 162, 77, .35); transition: transform .3s var(--ease), background .3s;
}
.c-card:hover { background: rgba(255, 255, 255, .12); }
.c-card > span { font-size: 1.6rem; width: 50px; height: 50px; flex: none; border-radius: 12px; background: rgba(0, 0, 0, .25); display: grid; place-items: center; }
.c-card h3 { font-size: 1rem; margin: 0; color: var(--gold-light); font-family: var(--ff-body); font-weight: 600; }
.c-card p { margin: 0; font-size: .92rem; }
.c-card a { text-decoration: none; }
@media (min-width: 560px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--coal); color: rgba(247, 239, 227, .8); padding: 56px 0 90px; font-size: .9rem; }
.footer-grid { display: grid; gap: 28px; }
.footer-brand { font-family: var(--ff-title); font-size: 1.6rem; color: var(--cream); margin: 0 0 4px; font-weight: 800; letter-spacing: .05em; }
.footer-brand span { color: var(--gold); font-size: 1rem; }
.footer-razon { color: var(--gold-light); margin: 0 0 6px; font-weight: 500; }
.footer-small { font-size: .82rem; color: rgba(247, 239, 227, .6); margin: 4px 0; }
.footer-nav { display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold-light); }
.legal-footer {
  margin: 36px auto 0; max-width: 1180px; width: calc(100% - 32px); background: var(--cream); color: var(--coal); text-align: center;
  font-weight: 800; letter-spacing: .08em; padding: 14px; border-radius: 8px; font-size: clamp(.78rem, 2.4vw, 1rem);
}
.copyright { text-align: center; font-size: .78rem; color: rgba(247, 239, 227, .45); margin: 22px 16px 0; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- Carrito ---------- */
.cart-backdrop { position: fixed; inset: 0; background: rgba(15, 10, 12, .6); z-index: 700; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.cart-backdrop.open { opacity: 1; visibility: visible; }
.cart {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(440px, 100%); background: var(--cream); z-index: 710;
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .45s var(--ease); box-shadow: -20px 0 50px rgba(0, 0, 0, .35);
}
.cart.open { transform: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; background: var(--wine); color: var(--cream); }
.cart-head h2 { margin: 0; font-size: 1.4rem; }
.cart-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(201, 162, 77, .5); background: transparent; color: var(--cream); }
.cart-body { flex: 1; overflow-y: auto; padding: 16px 20px; overscroll-behavior: contain; }
.cart-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; background: var(--white); border-radius: 14px; padding: 10px; animation: slideIn .35s var(--ease); border: 1px solid rgba(201, 162, 77, .2); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } }
.cart-item img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; object-position: center top; }
.cart-item h4 { margin: 0; font-size: .9rem; line-height: 1.25; }
.cart-item .ci-meta { font-size: .76rem; color: var(--muted); margin: 2px 0 6px; line-height: 1.35; }
.cart-item .qty button { width: 30px; height: 30px; font-size: 1rem; }
.cart-item .qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: .9rem; }
.ci-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ci-price { font-weight: 700; color: var(--wine); font-size: .9rem; white-space: nowrap; }
.ci-remove { border: 0; background: none; color: var(--muted); font-size: .76rem; text-decoration: underline; padding: 0; }
.cart-empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.cart-empty div { font-size: 3rem; }
.cart-form { margin-top: 22px; display: grid; gap: 10px; }
.cart-form h3 { font-size: 1.15rem; color: var(--wine); margin: 0; }
.cart-form label { display: grid; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--coal); }
.cart-form label small { font-weight: 400; color: var(--muted); }
.cart-form input {
  width: 100%; padding: .8em .95em; border-radius: 10px; border: 1.5px solid var(--cream-2); background: var(--white);
  font: inherit; font-size: 16px; font-weight: 400; transition: border-color .2s, box-shadow .2s;
}
.cart-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 77, .2); }
.cart-form input.invalid { border-color: #c0392b; }
.form-error { color: #c0392b; font-size: .82rem; margin: 0; font-weight: 500; }
.cart-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--cream-2); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.cart-total strong { font-family: var(--ff-title); font-size: 1.5rem; color: var(--wine); }
.cart-note { font-size: .76rem; color: var(--vine); margin: 0 0 12px; }
@media (max-width: 480px) {
  .cart-head { padding: 14px 16px; }
  .cart-body { padding: 14px 16px; }
  .cart-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .cart-total strong { font-size: 1.3rem; }
  .cart-note { margin-bottom: 10px; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 100px; translate: -50% 20px; background: var(--coal); color: var(--cream);
  padding: 12px 20px; border-radius: 999px; font-size: .9rem; z-index: 9500; opacity: 0; pointer-events: none;
  transition: opacity .3s, translate .3s; border: 1px solid var(--gold); box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 600; width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px -6px rgba(37, 211, 102, .7);
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float { transition: transform .25s, opacity .3s; }
body.menu-open .wa-float { opacity: 0; pointer-events: none; }
@media (max-width: 480px) {
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .wa-float svg { width: 27px; height: 27px; }
}
.wa-float::before, .wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: waPulse 2.2s ease-out infinite; }
.wa-float::after { animation-delay: 1.1s; }
@keyframes waPulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

/* ---------- Animaciones de scroll ---------- */
.reveal, .reveal-left, .reveal-right { opacity: 0; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal { transform: translateY(36px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal.in, .reveal-left.in, .reveal-right.in { opacity: 1; transform: none; }
.tilt { transform-style: preserve-3d; transition: transform .2s ease-out; }
.card { animation: cardIn .6s var(--ease) backwards; animation-delay: var(--d, 0ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) scale(.97); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}
