/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #0f0d0a;
  --bg-2:      #17130d;
  --bg-3:      #1e1810;
  --card:      #1c160e;
  --cream:     #f3ecd8;
  --cream-2:   #ddd0ad;
  --cream-mute:#948764;
  --gold:      #d9ae3f;
  --gold-2:    #b8860b;
  --gold-soft: #f0cf7a;
  --line:      rgba(243,236,216,.12);
  --shadow:    0 30px 60px -20px rgba(0,0,0,.6);

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--cream);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 600; }
em { font-style: italic; color: var(--gold); font-weight: 500; }
::selection { background: var(--gold); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--cream); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: 1180px; margin-inline: auto; padding-inline: 1.5rem; }
.section { padding: clamp(4rem, 9vw, 8rem) 0; position: relative; }
.section-dark { background: var(--bg-2); }
.eyebrow {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .18em;
  font-size: .78rem; color: var(--gold); font-weight: 600; margin-bottom: 1rem;
}
.section-title { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 1rem; max-width: 20ch; }
.section-sub { color: var(--cream-2); max-width: 46ch; font-size: 1.05rem; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Defensive: if JS never runs, content must still be visible */
html.no-js .reveal { opacity: 1; transform: none; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .35s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-2));
  color: #1a1206;
  box-shadow: 0 10px 30px -8px rgba(217,174,63,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(217,174,63,.7); }
.btn-ghost {
  border: 1px solid var(--line); color: var(--cream);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-whatsapp {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-2)); color: #1a1206; border: 1px solid rgba(217,174,63,.4);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(217,174,63,.7); }
.btn-lg { padding: 1.1rem 2.1rem; font-size: 1.05rem; }
.icon-wa { width: 20px; height: 20px; fill: currentColor; }
.icon-sm { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 1.6; flex-shrink: 0; }

/* =============================================================
   5. Age gate
   ============================================================= */
.age-gate {
  position: fixed; inset: 0; z-index: 999;
  background: radial-gradient(circle at 50% 20%, #1a140b, #080705 75%);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  transition: opacity .5s var(--ease-out), visibility .5s;
}
.age-gate.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.age-gate-card {
  max-width: 420px; text-align: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
}
.age-gate-logo { width: 130px; margin: 0 auto 1.25rem; }
.age-gate-card h2 { font-size: 1.5rem; margin-bottom: .75rem; }
.age-gate-card p { color: var(--cream-2); font-size: .95rem; margin-bottom: 1.75rem; }
.age-gate-actions { display: flex; flex-direction: column; gap: .75rem; }

/* =============================================================
   6. Nav
   ============================================================= */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.1rem 0;
  transition: background .4s var(--ease-out), padding .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.site-nav.is-scrolled {
  background: rgba(15,13,10,.88);
  backdrop-filter: blur(10px);
  padding: .7rem 0;
  box-shadow: 0 10px 30px -15px rgba(0,0,0,.6);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; }
.nav-logo { height: 46px; width: auto; transition: height .4s var(--ease-out); }
.site-nav.is-scrolled .nav-logo { height: 38px; }
.nav-links { display: none; gap: 2rem; margin-inline: auto; }
.nav-links a { font-weight: 500; font-size: .95rem; color: var(--cream-2); transition: color .25s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta { display: none; margin-left: auto; }
.nav-toggle {
  margin-left: auto; width: 40px; height: 40px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--cream); transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: flex; flex-direction: column; gap: 0; max-height: 0; overflow: hidden;
  background: rgba(15,13,10,.97); backdrop-filter: blur(10px);
  transition: max-height .4s var(--ease-out);
  border-bottom: 1px solid var(--line);
}
.nav-mobile.is-open { max-height: 320px; }
.nav-mobile a { padding: 1rem 1.5rem; border-top: 1px solid var(--line); font-weight: 500; }
.nav-mobile .btn { margin: 1rem 1.5rem; justify-content: center; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none; }
}

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  overflow: hidden; padding-top: 6rem; padding-bottom: 5rem;
  background: radial-gradient(120% 90% at 50% -10%, #241c10 0%, var(--bg) 55%);
}
.hero-mesh {
  position: absolute; inset: -20%; z-index: 0; opacity: .55;
  background:
    radial-gradient(38% 45% at 22% 28%, rgba(217,174,63,.30), transparent 60%),
    radial-gradient(32% 38% at 82% 18%, rgba(184,134,11,.22), transparent 60%),
    radial-gradient(45% 50% at 65% 85%, rgba(217,174,63,.14), transparent 65%);
  animation: meshDrift 22s ease-in-out infinite alternate;
}
@keyframes meshDrift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-2%, 2%, 0) scale(1.08); }
}
.hero-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-bottle {
  position: absolute; right: -4%; top: 50%; transform: translateY(-46%);
  width: min(46vw, 480px); z-index: 1; opacity: .5;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.5));
}
.hero-glass { animation: glassFloat 6s ease-in-out infinite; transform-origin: 340px 300px; }
@keyframes glassFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.kicker { font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 1.25rem; }
.hero-title {
  font-size: clamp(3rem, 8vw, 5.6rem);
  display: flex; flex-direction: column; gap: .1em;
  color: var(--cream);
}
.hero-title em { font-style: italic; font-weight: 500; color: var(--gold-soft); }
.hero-slogan { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.7rem); color: var(--gold); margin: 1rem 0 1rem; }
.hero-sub { color: var(--cream-2); font-size: 1.1rem; max-width: 52ch; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.hero-meta { display: flex; align-items: center; gap: .6rem; color: var(--cream-mute); font-size: .9rem; }
.hero-meta .dot { width: 8px; height: 8px; border-radius: 50%; background: #6fce6a; box-shadow: 0 0 0 0 rgba(111,206,106,.6); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(111,206,106,.55); }
  70% { box-shadow: 0 0 0 8px rgba(111,206,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(111,206,106,0); }
}

.hero-marquee {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  border-top: 1px solid var(--line); background: rgba(15,13,10,.6); backdrop-filter: blur(6px);
  overflow: hidden; padding: .85rem 0;
}
.marquee-track {
  display: flex; gap: 1.2rem; white-space: nowrap; width: max-content;
  animation: marquee 26s linear infinite;
  font-family: var(--serif); font-size: .95rem; letter-spacing: .12em; color: var(--cream-mute);
}
.marquee-track span:nth-child(4n) { color: var(--gold); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =============================================================
   8. Category chips + Product cards
   ============================================================= */
.cat-chips {
  display: flex; flex-wrap: wrap; gap: .6rem; margin: 2.5rem 0 2.5rem;
}
.chip {
  padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--line);
  color: var(--cream-2); font-size: .85rem; font-weight: 500;
  transition: all .3s var(--ease-out);
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.is-active { background: var(--gold); border-color: var(--gold); color: #1a1206; font-weight: 700; }

.prod-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 620px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1240px) { .prod-grid { grid-template-columns: repeat(4, 1fr); } }

.prod-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.3rem 1.3rem 1.1rem; display: flex; flex-direction: column; gap: .6rem;
  transition: transform .35s var(--ease-out), border-color .35s var(--ease-out);
}
.prod-card:hover { transform: translateY(-4px); border-color: rgba(217,174,63,.4); }
.prod-photo {
  display: flex; align-items: center; justify-content: center;
  height: 128px; border-radius: 12px; margin-bottom: .2rem;
  background: radial-gradient(70% 90% at 50% 100%, rgba(217,174,63,.10), transparent 70%), rgba(0,0,0,.18);
}
.prod-photo svg { height: 110px; width: auto; filter: drop-shadow(0 8px 16px rgba(0,0,0,.4)); transition: transform .4s var(--ease-out); }
.prod-card:hover .prod-photo svg { transform: translateY(-4px) scale(1.03); }
.prod-photo--img img { max-height: 118px; max-width: 90%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0,0,0,.5)); transition: transform .4s var(--ease-out); }
.prod-card:hover .prod-photo--img img { transform: translateY(-4px) scale(1.04); }
.prod-photo { cursor: zoom-in; }
.prod-photo:hover { background: radial-gradient(70% 90% at 50% 100%, rgba(217,174,63,.18), transparent 70%), rgba(0,0,0,.22); }

/* =============================================================
   16. Product lightbox
   ============================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.25rem; background: rgba(8,7,5,.88); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease-out), visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-inner {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 780px; width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 2rem;
  box-shadow: var(--shadow); max-height: 88vh; overflow-y: auto;
  transform: scale(.94) translateY(10px); transition: transform .35s var(--ease-out);
}
.lightbox.is-open .lightbox-inner { transform: none; }
@media (min-width: 700px) { .lightbox-inner { grid-template-columns: 1fr 1fr; align-items: center; } }
.lightbox-media { display: flex; align-items: center; justify-content: center; min-height: 260px; }
.lightbox-media img, .lightbox-media svg { max-height: 380px; max-width: 100%; width: auto; height: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); }
.lightbox-info { display: flex; flex-direction: column; gap: .6rem; }
.lightbox-tag {
  align-self: flex-start; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--gold); background: rgba(217,174,63,.12); padding: .3rem .7rem; border-radius: 999px; font-weight: 600;
}
.lightbox-info h3 { font-size: 1.5rem; color: var(--cream); }
.lightbox-price { font-family: var(--serif); font-style: italic; color: var(--gold-soft); font-size: 1.4rem; margin-bottom: .4rem; }
.lightbox-close {
  position: fixed; top: 1.5rem; right: 1.5rem; z-index: 201;
  width: 44px; height: 44px; border-radius: 50%; background: rgba(28,22,14,.9); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--cream);
  transition: transform .3s var(--ease-out), border-color .3s;
}
.lightbox-close:hover { transform: rotate(90deg); border-color: var(--gold); color: var(--gold); }
.lightbox-close svg { width: 20px; height: 20px; }
.prod-tag {
  align-self: flex-start; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--gold); background: rgba(217,174,63,.12); padding: .25rem .6rem; border-radius: 999px; font-weight: 600;
}
.prod-card h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; color: var(--cream); flex-grow: 1; line-height: 1.3; }
.prod-bottom { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .3rem; }
.prod-price { font-family: var(--serif); font-style: italic; color: var(--gold-soft); font-size: 1.15rem; }
.prod-wa {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(217,174,63,.14); border: 1px solid rgba(217,174,63,.35);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform .3s var(--ease-out), background .3s var(--ease-out);
}
.prod-wa svg { width: 19px; height: 19px; fill: var(--gold-soft); }
.prod-wa:hover { transform: scale(1.1); background: rgba(217,174,63,.28); }
.prod-card.is-hidden { display: none; }


/* =============================================================
   9. Pillars
   ============================================================= */
.pillars { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 3rem; }
@media (min-width: 780px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.pillar-num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.4rem; }
.pillar h3 { font-size: 1.25rem; margin: .6rem 0 .5rem; }
.pillar p { color: var(--cream-2); font-size: .95rem; }

/* =============================================================
   10. Ubicacion
   ============================================================= */
.ubicacion-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .ubicacion-grid { grid-template-columns: 1fr 1fr; } }
.info-list { list-style: none; padding: 0; margin: 1.75rem 0 2rem; display: flex; flex-direction: column; gap: 1rem; }
.info-list li { display: flex; align-items: center; gap: .85rem; color: var(--cream-2); }
.info-list a:hover { color: var(--gold); }
.ubicacion-map { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; box-shadow: var(--shadow); }
.map-card { position: relative; display: block; width: 100%; height: 100%; }
.map-card-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-card-pin {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -100%);
  width: 46px; height: 46px; border-radius: 50% 50% 50% 0; background: linear-gradient(135deg, var(--gold-soft), var(--gold-2));
  display: flex; align-items: center; justify-content: center; transform-origin: bottom center;
  rotate: -45deg; box-shadow: 0 10px 24px -6px rgba(217,174,63,.7);
  animation: pinDrop 2.4s ease-in-out infinite;
}
.map-card-pin svg { width: 22px; height: 22px; fill: #1a1206; rotate: 45deg; }
@keyframes pinDrop { 0%,100% { transform: translate(-50%,-100%) rotate(-45deg) translateY(0); } 50% { transform: translate(-50%,-100%) rotate(-45deg) translateY(-6px); } }
.map-card-label {
  position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .2rem; text-align: center;
  background: rgba(15,13,10,.75); backdrop-filter: blur(6px); padding: .7rem 1.4rem; border-radius: 14px;
  border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease-out);
}
.map-card-label strong { color: var(--cream); font-size: .98rem; }
.map-card-label span { color: var(--gold); font-size: .8rem; font-weight: 600; }
.map-card:hover .map-card-label { border-color: rgba(217,174,63,.5); transform: translateX(-50%) translateY(-3px); }
.map-card:hover .map-card-pin { animation-duration: 1s; }

/* =============================================================
   11. CTA final
   ============================================================= */
.cta-final { background: radial-gradient(80% 120% at 50% 100%, #241c10, var(--bg) 65%); text-align: center; }
.cta-final-inner h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: .75rem; }
.cta-final-inner p { color: var(--cream-2); margin-bottom: 2rem; font-size: 1.1rem; }

/* =============================================================
   12. Footer
   ============================================================= */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; text-align: center; }
.footer-logo { height: 56px; margin: 0 auto 1rem; }
.footer-slogan { font-family: var(--serif); font-style: italic; color: var(--gold); margin-bottom: 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.footer-links a { color: var(--cream-2); font-size: .92rem; }
.footer-links a:hover { color: var(--gold); }
.footer-legal { color: var(--cream-mute); font-size: .8rem; max-width: 46ch; margin: 0 auto .75rem; }
.footer-copy { color: var(--cream-mute); font-size: .8rem; }

/* =============================================================
   13. Phone float button
   ============================================================= */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-2)); color: #1a1206;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(217,174,63,.6);
  transition: transform .3s var(--ease-out);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: #1a1206; }

/* =============================================================
   14. Effects (reduced-motion gating — only intrusive ones)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation: none; }
  .hero-glass { animation: none; }
  .marquee-track { animation-duration: 60s; }
}

/* =============================================================
   15. Responsive tune-ups
   ============================================================= */
@media (max-width: 720px) {
  .hero-bottle { opacity: .22; width: 70vw; right: -10%; }
  .hero { padding-top: 5.5rem; }
}
