:root {
  --ink: #191915;
  --ink-soft: #5f5a50;
  --night: #11130f;
  --night-soft: #1b1e18;
  --paper: #f4efe5;
  --paper-deep: #e5dccd;
  --line: rgba(37, 34, 27, 0.16);
  --cream: #fffaf0;
  --gold: #b99458;
  --gold-light: #d7bd8a;
  --copper: #99522f;
  --blue: #6f9caa;
  --red: #8d312f;
  --yellow: #bd8b28;
  --green: #1bbf74;
  --shadow: 0 30px 80px rgba(22, 20, 15, 0.12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --content: min(1420px, calc(100vw - 9vw));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

::selection { color: #fff; background: var(--copper); }

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus { transform: none; }

.eyebrow {
  margin: 0;
  color: var(--copper);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.display {
  margin: 0;
  font: 400 clamp(54px, 7.4vw, 116px)/.88 var(--serif);
  letter-spacing: -.055em;
}

.section-title {
  margin: 17px 0 0;
  font: 400 clamp(45px, 6vw, 86px)/.94 var(--serif);
  letter-spacing: -.045em;
}

.section-intro {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.85;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 86px;
  padding: 13px 4.5vw;
  color: #f8f2e7;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(12,13,11,.8), rgba(12,13,11,.4));
  backdrop-filter: blur(14px);
  transition: min-height .25s ease, background .25s ease;
}

.site-header.is-compact {
  min-height: 68px;
  background: rgba(14, 15, 12, .94);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  width: max-content;
  font-family: var(--serif);
  line-height: .82;
  text-transform: uppercase;
}

.brand small {
  margin: 0 0 5px 2px;
  font: 700 7px/1 var(--sans);
  letter-spacing: .3em;
}

.brand strong {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: .025em;
}

.site-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 47px); }

.site-nav a {
  position: relative;
  font-size: 11px;
  letter-spacing: .055em;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--gold-light);
  transition: right .25s ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after,
.site-nav a:focus-visible::after { right: 0; }

.header-action {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .2s ease, background .2s ease;
}

.header-action:hover,
.header-action:focus-visible { color: var(--ink); background: var(--cream); }

.menu-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 17px;
  height: 1px;
  margin: 4px auto;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-5px) rotate(-45deg); }

.hero-home {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, .75fr);
  align-items: center;
  min-height: 100svh;
  padding: 142px 7vw 76px;
  color: #f7f1e7;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 35%, rgba(183, 138, 69, .2), transparent 31%),
    linear-gradient(115deg, #10120e 0%, #1b1e18 55%, #090a08 100%);
}

.hero-home::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("/assets/images/variedades-agave.webp") center/cover;
  filter: saturate(.45) contrast(1.05);
  opacity: .19;
  transform: scale(1.03);
}

.hero-home::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(12,14,11,.96) 0%, rgba(12,14,11,.72) 46%, rgba(12,14,11,.23) 100%);
}

.hero-copy { position: relative; z-index: 3; max-width: 850px; }
.hero-copy .eyebrow { margin-bottom: 25px; color: var(--gold-light); }
.hero-copy .display em { display: block; margin-left: clamp(16px, 5vw, 100px); color: #d9c8a6; font-weight: 400; }

.hero-lead {
  max-width: 630px;
  margin: 34px 0 0 clamp(16px, 5vw, 100px);
  color: rgba(255,255,255,.68);
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 27px;
  margin: 34px 0 0 clamp(16px, 5vw, 100px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 51px;
  padding: 0 25px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--cream); }
.button-dark { color: #fff; background: var(--ink); }
.button-outline { color: inherit; border-color: currentColor; background: transparent; }
.button-gold { color: var(--ink); background: var(--gold-light); }

.text-link {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.32);
  font-size: 11px;
  letter-spacing: .03em;
}

.history-link { position: relative; z-index: 4; }

.hero-bottles {
  position: relative;
  z-index: 2;
  align-self: end;
  justify-self: center;
  width: min(39vw, 600px);
  height: min(83vh, 840px);
}

.hero-bottles::before {
  content: "";
  position: absolute;
  inset: 17% -14% 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228,190,118,.18), transparent 67%);
  filter: blur(17px);
}

.hero-bottles img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 35px 30px rgba(0,0,0,.52));
  animation: hero-breathe 6s ease-in-out infinite;
}

.hero-stamp {
  position: absolute;
  z-index: 4;
  right: 4.3vw;
  bottom: 44px;
  display: grid;
  place-items: center;
  width: 94px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.27);
  border-radius: 50%;
  color: rgba(255,255,255,.72);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: .18em;
  text-align: center;
  text-transform: uppercase;
}

.hero-stamp strong { display: block; color: var(--gold-light); font: 400 27px var(--serif); letter-spacing: 0; }

.heritage,
.collection-preview,
.process-preview,
.partners,
.contact-panel,
.catalogue,
.product-story,
.tasting,
.related,
.wholesale-section { padding: clamp(94px, 12vw, 175px) 5vw; }

.heritage { background: var(--paper); }

.heritage-inner {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(60px, 8vw, 145px);
  align-items: center;
  width: var(--content);
  margin: auto;
}

.heritage-copy .section-title { max-width: 650px; }
.heritage-copy p:not(.eyebrow) { color: var(--ink-soft); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.9; }
.heritage-copy .lineage { margin-top: 35px; color: var(--copper); font: italic 17px var(--serif); }

.heritage-media { position: relative; }
.heritage-media::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 1px solid #baa98f; }
.heritage-media img { position: relative; width: 100%; aspect-ratio: 16/10; object-fit: cover; filter: saturate(.75) sepia(.08); }
.heritage-caption { position: absolute; right: -22px; bottom: -35px; padding: 20px 25px; color: #fff; background: var(--ink); }
.heritage-caption strong { display: block; color: var(--gold-light); font: 400 27px var(--serif); }
.heritage-caption span { font-size: 8px; letter-spacing: .14em; text-transform: uppercase; }

.collection-preview { background: var(--paper-deep); }
.section-heading { display: flex; justify-content: space-between; gap: 60px; align-items: end; width: var(--content); margin: 0 auto 68px; }
.section-heading > div { max-width: 920px; }
.section-heading .section-intro { margin-bottom: 4px; }
.collection-heading-copy { width: min(100%, 640px); }
.collection-overview-cta { margin-top: 24px; }

.product-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: var(--content);
  margin: auto;
}

.product-card {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: var(--ink);
  background: rgba(255,255,255,.43);
  border-top: 3px solid var(--accent, var(--gold));
  transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover { z-index: 2; transform: translateY(-7px); box-shadow: var(--shadow); }
.product-card-media { position: relative; display: grid; place-items: center; height: 430px; padding: 26px 15px 8px; overflow: hidden; }
.product-card-media::after { content: ""; position: absolute; right: 15%; bottom: 7%; left: 15%; height: 20px; border-radius: 50%; background: rgba(0,0,0,.13); filter: blur(9px); }
.product-card-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.product-card:hover .product-card-media img { transform: scale(1.035); }
.product-number { position: absolute; z-index: 2; top: 20px; left: 22px; font: italic 13px var(--serif); opacity: .5; }
.product-card-body { padding: 25px 24px 28px; border-top: 1px solid var(--line); }
.product-type { margin: 0 0 8px; color: var(--ink-soft); font-size: 8px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.product-card h3 { margin: 0; min-height: 72px; font: 400 clamp(27px, 2.35vw, 38px)/.98 var(--serif); }
.product-card-meta { display: flex; justify-content: space-between; gap: 10px; align-items: end; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); }
.product-card-meta strong { color: var(--copper); font: 400 23px var(--serif); }
.product-card-meta span { color: var(--ink-soft); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }

.product-placeholder {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 80%;
  height: 86%;
  padding: 25px;
  color: #e9d5ad;
  border: 1px solid rgba(214,187,135,.42);
  background: linear-gradient(145deg, #22241e, #0e0f0d);
  box-shadow: 0 24px 45px rgba(0,0,0,.2);
  text-align: center;
}

.product-placeholder span { display: block; font: 400 clamp(54px, 5vw, 78px)/.9 var(--serif); }
.product-placeholder strong { display: block; margin-top: 7px; font: 400 18px/1 var(--serif); letter-spacing: .1em; text-transform: uppercase; }
.product-placeholder small { display: block; margin-top: 32px; color: rgba(255,255,255,.45); font-size: 7px; letter-spacing: .16em; text-transform: uppercase; }

.process-preview { color: #f5efe4; background: var(--night); }
.process-preview .section-heading { align-items: start; }
.process-preview .eyebrow { color: var(--gold-light); }
.process-preview .section-intro { color: rgba(255,255,255,.55); }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; width: var(--content); margin: auto; background: rgba(255,255,255,.14); }
.process-item { position: relative; min-height: 540px; padding: 0 0 35px; background: var(--night-soft); overflow: hidden; }
.process-item img { width: 100%; height: 320px; object-fit: cover; filter: saturate(.72) contrast(1.06); transition: transform .55s ease; }
.process-item:hover img { transform: scale(1.035); }
.process-item-copy { padding: 28px 26px 0; }
.process-item span { color: var(--gold-light); font: italic 13px var(--serif); }
.process-item h3 { margin: 20px 0 12px; font: 400 33px var(--serif); }
.process-item p { margin: 0; color: rgba(255,255,255,.55); font-size: 13px; line-height: 1.7; }

.partners { background: #e8e0d4; }
.partners-inner { width: var(--content); margin: auto; }
.partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 58px; }
.partner-card { display: grid; place-items: center; min-height: 250px; padding: 45px; border: 1px solid var(--line); background: rgba(255,255,255,.35); transition: background .2s ease, transform .2s ease; }
.partner-card:hover { background: rgba(255,255,255,.7); transform: translateY(-3px); }
.partner-card img { max-width: 280px; max-height: 95px; object-fit: contain; }
.partner-card small { margin-top: 27px; color: var(--ink-soft); font-size: 8px; letter-spacing: .15em; text-transform: uppercase; }

.contact-panel { color: #f7f0e5; text-align: center; background: #171914; }
.contact-panel-inner { max-width: 1060px; margin: auto; }
.contact-panel .eyebrow { color: var(--gold-light); }
.contact-panel .section-title { margin-inline: auto; }
.contact-panel .section-intro { margin-inline: auto; color: rgba(255,255,255,.56); }
.contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 42px; }

.page-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: 72svh;
  padding: 160px 7vw 80px;
  color: #f8f2e7;
  overflow: hidden;
  background: var(--night);
}

.page-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: var(--page-image, url("/assets/images/variedades-agave.webp")) center/cover;
  filter: saturate(.45);
  opacity: .38;
}

.page-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(12,14,11,.95), rgba(12,14,11,.58) 60%, rgba(12,14,11,.28)); }
.page-hero-inner { width: var(--content); margin: auto; }
.page-hero .eyebrow { margin-bottom: 23px; color: var(--gold-light); }
.page-hero .display { max-width: 970px; }
.page-hero p:last-child { max-width: 650px; margin: 28px 0 0; color: rgba(255,255,255,.65); font-size: 17px; line-height: 1.75; }

.catalogue { background: var(--paper); }
.catalogue-grid { display: grid; gap: 26px; width: var(--content); margin: auto; }

.catalogue-item {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) 1.18fr;
  min-height: 680px;
  background: #ebe3d6;
  border-top: 4px solid var(--accent, var(--gold));
  box-shadow: 0 20px 55px rgba(23,20,14,.06);
  overflow: hidden;
}

.catalogue-item:nth-child(even) { grid-template-columns: 1.18fr minmax(300px, .82fr); }
.catalogue-item:nth-child(even) .catalogue-media { order: 2; }
.catalogue-media { position: relative; display: grid; place-items: center; min-height: 680px; padding: 38px; background: rgba(255,255,255,.36); overflow: hidden; }
.catalogue-media img { width: 100%; height: 100%; max-height: 610px; object-fit: contain; filter: drop-shadow(0 24px 22px rgba(20,18,14,.17)); transition: transform .4s ease; }
.catalogue-item:hover .catalogue-media img { transform: scale(1.025); }
.catalogue-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(44px, 7vw, 100px); }
.catalogue-copy .eyebrow { color: var(--accent, var(--copper)); }
.catalogue-copy h2 { margin: 19px 0 23px; font: 400 clamp(47px, 6vw, 86px)/.9 var(--serif); letter-spacing: -.045em; }
.catalogue-copy > p:not(.eyebrow) { max-width: 680px; margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.85; }
.catalogue-facts { display: flex; flex-wrap: wrap; gap: 9px; margin: 32px 0; }
.catalogue-facts span { padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 8px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.price-line { display: flex; align-items: end; gap: 11px; margin-bottom: 30px; }
.price-line strong { color: var(--copper); font: 400 40px var(--serif); }
.price-line small { padding-bottom: 7px; color: var(--ink-soft); font-size: 8px; letter-spacing: .11em; text-transform: uppercase; }

.pricing-note { width: var(--content); margin: 44px auto 0; padding: 26px; color: var(--ink-soft); border: 1px solid var(--line); font-size: 12px; line-height: 1.7; text-align: center; }

.product-hero {
  display: grid;
  grid-template-columns: minmax(350px, .92fr) 1.08fr;
  min-height: 100svh;
  padding-top: 86px;
  background: var(--paper);
}

.product-gallery {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 760px;
  padding: 52px clamp(25px, 5vw, 72px) 32px;
  background: var(--gallery-bg, #e7ded0);
  overflow: hidden;
}

.product-gallery::before { content: ""; position: absolute; top: -18%; left: -18%; width: 70%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; }
.gallery-open { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; min-height: 0; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.gallery-open img { width: 100%; height: min(70vh, 690px); object-fit: contain; filter: drop-shadow(0 28px 24px rgba(20,18,13,.18)); transition: transform .32s ease; }
.gallery-open:hover img { transform: scale(1.025); }
.gallery-hint { position: absolute; z-index: 3; right: 28px; top: 26px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.45); font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.gallery-thumbs { position: relative; z-index: 2; display: flex; justify-content: center; gap: 11px; padding-top: 18px; }
.gallery-thumb { display: grid; place-items: center; width: 68px; height: 82px; padding: 5px; border: 1px solid var(--line); background: rgba(255,255,255,.36); cursor: pointer; }
.gallery-thumb[aria-current="true"] { border-color: var(--accent, var(--copper)); box-shadow: inset 0 0 0 1px var(--accent, var(--copper)); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }

.product-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(70px, 9vw, 140px) 7vw;
  background: #f7f2e8;
}

.breadcrumbs { margin-bottom: 38px; color: #777064; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumbs a:hover { color: var(--copper); }
.product-summary .eyebrow { color: var(--accent, var(--copper)); }
.product-summary h1 { margin: 20px 0 22px; font: 400 clamp(62px, 8vw, 118px)/.82 var(--serif); letter-spacing: -.06em; }
.product-summary .product-tagline { max-width: 670px; margin: 0; color: var(--ink-soft); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.8; }
.summary-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 38px 0; background: var(--line); border: 1px solid var(--line); }
.summary-fact { min-height: 100px; padding: 20px; background: #f7f2e8; }
.summary-fact span { display: block; margin-bottom: 11px; color: #837b6f; font-size: 7px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.summary-fact strong { font: 400 19px/1.2 var(--serif); }
.summary-price { display: flex; align-items: end; justify-content: space-between; gap: 25px; padding-top: 26px; border-top: 1px solid var(--line); }
.summary-price div span { display: block; margin-bottom: 7px; color: #7a7267; font-size: 7px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.summary-price div strong { color: var(--copper); font: 400 46px/1 var(--serif); }

.product-story { color: #f5eee2; background: var(--night); }
.story-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(50px, 9vw, 160px); width: var(--content); margin: auto; }
.story-heading { position: sticky; top: 125px; align-self: start; }
.story-heading .eyebrow { color: var(--gold-light); }
.story-heading .section-title { font-size: clamp(48px, 5vw, 77px); }
.story-blocks { display: grid; gap: 1px; background: rgba(255,255,255,.14); }
.story-block { display: grid; grid-template-columns: 120px 1fr; gap: 34px; padding: 44px; background: var(--night-soft); }
.story-block > span { color: var(--gold-light); font: italic 600 20px/1 var(--serif); }
.story-block h2 { margin: 0 0 14px; font: 400 clamp(31px, 3vw, 46px) var(--serif); }
.story-block p { margin: 0; color: rgba(255,255,255,.57); font-size: 14px; line-height: 1.85; }
.story-update { border-left: 3px solid var(--gold); }

.tasting { background: #e8dfd1; }
.tasting-inner { width: var(--content); margin: auto; }
.tasting-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 64px; background: var(--line); }
.tasting-step { min-height: 280px; padding: 38px 32px; background: #efe8dc; }
.tasting-step span { color: var(--copper); font: italic 14px var(--serif); }
.tasting-step h3 { margin: 50px 0 18px; font: 400 31px var(--serif); }
.tasting-step p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.75; }

.related { background: var(--paper); }
.related-inner { width: var(--content); margin: auto; }
.related-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 55px; }
.related-link { display: flex; justify-content: space-between; align-items: center; min-height: 130px; padding: 32px; border: 1px solid var(--line); background: rgba(255,255,255,.35); transition: background .2s ease, transform .2s ease; }
.related-link:hover { background: #fffaf0; transform: translateY(-3px); }
.related-link small { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.related-link strong { font: 400 30px var(--serif); }
.related-link > span { font-size: 28px; }

.no-photo-gallery { display: grid; place-items: center; }
.no-photo-gallery .product-placeholder { width: min(470px, 80%); height: min(630px, 75vh); }

.wholesale-hero { min-height: 68svh; background: #11130f; }
.wholesale-hero::before { background-image: url("/assets/images/coleccion-tres.webp"); background-size: contain; background-repeat: no-repeat; background-position: 82% 70%; opacity: .28; }
.wholesale-hero::after { background: linear-gradient(90deg, rgba(10,11,9,.98) 0%, rgba(10,11,9,.82) 50%, rgba(10,11,9,.4)); }
.wholesale-section { background: #efe7dc; }
.wholesale-inner { width: var(--content); margin: auto; }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin: 55px 0 70px; }
.tier-card { position: relative; min-height: 260px; padding: 37px; color: #f4ede1; background: var(--night-soft); overflow: hidden; }
.tier-card::after { content: attr(data-tier); position: absolute; right: -9px; bottom: -23px; color: rgba(255,255,255,.05); font: 400 118px var(--serif); }
.tier-card span { color: var(--gold-light); font-size: 8px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.tier-card strong { display: block; margin: 23px 0 12px; font: 400 62px var(--serif); }
.tier-card p { margin: 0; color: rgba(255,255,255,.55); font-size: 13px; line-height: 1.7; }

.price-table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #f8f3e9; box-shadow: var(--shadow); }
.price-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.price-table th, .price-table td { padding: 22px 19px; border-bottom: 1px solid var(--line); text-align: left; }
.price-table thead th { color: #70695e; background: #e1d6c5; font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover td { background: #fffaf0; }
.price-table td:first-child { width: 40px; color: var(--copper); font: italic 13px var(--serif); }
.price-table td:nth-child(2) strong { display: block; margin-bottom: 5px; font: 400 21px var(--serif); }
.price-table td:nth-child(2) small { color: #7f776b; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.price-table .retail { color: #71695d; }
.price-table .wholesale-price { color: var(--copper); font: 700 18px var(--serif); }
.commercial-terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 34px; }
.term-card { padding: 28px; border: 1px solid var(--line); background: rgba(255,255,255,.4); }
.term-card span { display: block; margin-bottom: 13px; color: var(--copper); font-size: 8px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.term-card p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.wholesale-cta { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; margin-top: 70px; padding: clamp(36px, 6vw, 70px); color: #fff; background: var(--night); }
.wholesale-cta h2 { margin: 0 0 14px; font: 400 clamp(38px, 4vw, 60px) var(--serif); }
.wholesale-cta p { max-width: 650px; margin: 0; color: rgba(255,255,255,.55); line-height: 1.7; }

.age-gate {
  position: fixed;
  z-index: 1500;
  inset: 0;
  display: none;
  place-items: center;
  padding: 22px;
  color: var(--ink);
  background: rgba(10,11,9,.88);
  backdrop-filter: blur(18px);
}

.age-gate.is-open { display: grid; }
.age-card { width: min(540px, 100%); padding: clamp(35px, 7vw, 64px); border: 1px solid rgba(255,255,255,.23); background: #f7f2e8; box-shadow: 0 40px 100px rgba(0,0,0,.42); text-align: center; }
.age-emblem { display: grid; place-items: center; width: 62px; aspect-ratio: 1; margin: 0 auto 28px; border: 1px solid #a8987e; border-radius: 50%; font: 400 20px var(--serif); }
.age-card .eyebrow { color: var(--copper); }
.age-card h2 { margin: 12px 0 17px; font: 400 clamp(38px, 7vw, 57px)/.96 var(--serif); }
.age-card > p:not(.eyebrow) { max-width: 390px; margin: auto; color: var(--ink-soft); line-height: 1.7; }
.age-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 30px 0 18px; }
.age-card small { color: #80786b; font-size: 9px; }

.coming-soon-modal {
  position: fixed;
  z-index: 1650;
  inset: 0;
  display: none;
  place-items: center;
  padding: 22px;
  color: var(--ink);
  background: rgba(10,11,9,.84);
  backdrop-filter: blur(16px);
}

.coming-soon-modal.is-open { display: grid; }
.coming-soon-card {
  position: relative;
  width: min(560px, 100%);
  padding: clamp(42px, 8vw, 72px);
  border: 1px solid rgba(215,189,138,.58);
  background:
    radial-gradient(circle at 100% 0, rgba(215,189,138,.22), transparent 35%),
    #f7f2e8;
  box-shadow: 0 38px 100px rgba(0,0,0,.46);
  text-align: center;
  overflow: hidden;
}
.coming-soon-card::before {
  content: "";
  position: absolute;
  top: -130px;
  right: -130px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(155,113,71,.25);
  border-radius: 50%;
  pointer-events: none;
}
.coming-soon-mark { display: block; margin-bottom: 22px; color: var(--copper); font: 400 clamp(56px, 12vw, 84px)/.8 var(--serif); letter-spacing: -.04em; }
.coming-soon-card .eyebrow { color: var(--copper); }
.coming-soon-card h2 { max-width: 430px; margin: 16px auto 20px; font: 400 clamp(38px, 7vw, 58px)/.94 var(--serif); letter-spacing: -.035em; }
.coming-soon-card > p:not(.eyebrow) { max-width: 410px; margin: 0 auto 30px; color: var(--ink-soft); font-size: 14px; line-height: 1.75; }
.coming-soon-card > .button { min-width: 180px; }
.coming-soon-x { position: absolute; z-index: 1; top: 18px; right: 18px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.34); cursor: pointer; font-size: 22px; line-height: 1; transition: background .2s ease, transform .2s ease; }
.coming-soon-x:hover { background: #fffaf0; transform: rotate(4deg); }

.floating-actions { position: fixed; z-index: 90; right: 22px; bottom: 22px; display: grid; justify-items: end; gap: 10px; }
.whatsapp-float { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px; color: #fff; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; background: #25d366; box-shadow: 0 12px 30px rgba(20,133,73,.3); font-size: 14px; font-weight: 700; transition: transform .2s ease, background .2s ease; }
.whatsapp-float:hover { transform: translateY(-2px); background: #20c760; }
.whatsapp-icon { display: block; width: 26px; height: 26px; flex: 0 0 26px; object-fit: contain; }
.back-top { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; color: var(--gold-light); border: 1px solid rgba(215,189,138,.6); border-radius: 50%; background: rgba(17,19,15,.96); box-shadow: 0 10px 25px rgba(0,0,0,.24); opacity: 0; pointer-events: none; transform: translateY(8px); cursor: pointer; transition: opacity .2s ease, transform .2s ease, color .2s ease, border-color .2s ease; }
.back-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-top:hover { color: #fff; border-color: var(--gold-light); transform: translateY(-2px); }
.back-top span { display: block; font: 400 22px/1 var(--sans); transform: translateY(-1px); }

.lightbox {
  position: fixed;
  z-index: 1700;
  inset: 0;
  display: none;
  grid-template-rows: auto 1fr auto;
  padding: 18px;
  color: #fff;
  background: rgba(7,8,6,.96);
  backdrop-filter: blur(14px);
}

.lightbox.is-open { display: grid; }
.lightbox-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 55px; }
.lightbox-title { font: 400 22px var(--serif); }
.lightbox-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: transparent; cursor: pointer; }
.lightbox-stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; }
.lightbox-image { width: 100%; height: 100%; max-height: calc(100svh - 155px); object-fit: contain; cursor: zoom-in; transition: transform .25s ease; }
.lightbox-image.is-zoomed { transform: scale(1.65); cursor: zoom-out; }
.lightbox-nav { position: absolute; top: 50%; display: grid; place-items: center; width: 50px; height: 50px; padding: 0; color: #fff; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: rgba(0,0,0,.34); transform: translateY(-50%); cursor: pointer; }
.lightbox-prev { left: 7px; }
.lightbox-next { right: 7px; }
.lightbox-footer { display: flex; align-items: center; justify-content: center; gap: 17px; min-height: 45px; color: rgba(255,255,255,.65); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.zoom-toggle { padding: 8px 13px; color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: transparent; cursor: pointer; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }

.site-footer { padding: 55px 5vw 35px; color: #eee7d9; background: #0e0f0d; border-top: 1px solid rgba(255,255,255,.1); }
.footer-main { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 55px; width: var(--content); margin: auto; }
.footer-brand p { max-width: 380px; margin: 23px 0 0; color: rgba(255,255,255,.48); font-size: 12px; line-height: 1.7; }
.footer-title { margin: 0 0 18px; color: var(--gold-light); font-size: 8px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.footer-links { display: grid; gap: 10px; color: rgba(255,255,255,.63); font-size: 12px; }
.footer-links a:hover { color: #fff; }
.footer-contact { justify-self: end; text-align: right; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; width: var(--content); margin: 42px auto 0; padding-top: 25px; color: rgba(255,255,255,.38); border-top: 1px solid rgba(255,255,255,.1); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.footer-credit a { color: var(--gold-light); font-weight: 700; transition: color .2s ease; }
.footer-credit a:hover { color: #fff; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(3px);
  transition: opacity .42s ease, transform .48s cubic-bezier(.2,.8,.2,1), filter .34s ease;
}

.reveal.is-visible { opacity: 1; transform: none; filter: none; }

@keyframes hero-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (max-width: 1180px) {
  .product-cards { grid-template-columns: repeat(3, 1fr); }
  .product-card { min-height: 590px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .product-hero { grid-template-columns: .85fr 1.15fr; }
  .summary-facts { grid-template-columns: 1fr 1fr; }
  .summary-fact:last-child { grid-column: 1 / -1; }
}

@media (max-width: 1450px) and (min-width: 601px) {
  .whatsapp-float { width: 56px; padding: 0; justify-content: center; }
  .whatsapp-float > span:last-child { display: none; }
}

@media (max-width: 900px) {
  :root { --content: min(100% - 40px, 720px); }
  .site-header { grid-template-columns: 1fr auto; min-height: 72px; padding: 12px 20px; }
  .site-header.is-compact { min-height: 64px; }
  .header-action { display: none; }
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 10px 20px 24px;
    border-top: 1px solid rgba(255,255,255,.1);
    background: rgba(14,15,12,.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease;
  }
  .site-nav.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .site-nav a { padding: 18px 4px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .site-nav a::after { display: none; }
  .hero-home { grid-template-columns: 1fr; min-height: 960px; padding: 135px 7vw 70px; align-items: start; }
  .hero-copy .display { font-size: clamp(54px, 13vw, 88px); }
  .hero-copy .display em, .hero-lead, .hero-actions { margin-left: 0; }
  .hero-bottles { position: absolute; right: -5vw; bottom: -80px; width: min(82vw, 560px); height: 650px; opacity: .7; }
  .hero-stamp { display: none; }
  .heritage-inner { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .section-heading .section-intro { margin-top: 25px; }
  .product-cards { grid-template-columns: 1fr 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .catalogue-item, .catalogue-item:nth-child(even) { grid-template-columns: 1fr; }
  .catalogue-item:nth-child(even) .catalogue-media { order: initial; }
  .catalogue-media { min-height: 550px; }
  .product-hero { grid-template-columns: 1fr; padding-top: 72px; }
  .product-gallery { min-height: 670px; }
  .product-summary { padding-top: 75px; padding-bottom: 85px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-heading { position: static; }
  .tasting-grid { grid-template-columns: 1fr 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
  .commercial-terms { grid-template-columns: 1fr; }
  .wholesale-cta { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-contact { justify-self: start; grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 600px) {
  :root { --content: calc(100% - 32px); }
  .display { font-size: 49px; }
  .section-title { font-size: 43px; }
  .hero-home { min-height: 880px; padding-right: 22px; padding-left: 22px; }
  .hero-copy .display { font-size: 51px; }
  .hero-lead { max-width: 94%; margin-top: 25px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; margin-top: 27px; }
  .history-link { display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px; color: var(--ink); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: var(--gold-light); box-shadow: 0 10px 25px rgba(0,0,0,.2); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .hero-bottles { right: -34vw; bottom: -85px; width: 120vw; height: 580px; opacity: .46; }
  .heritage, .collection-preview, .process-preview, .partners, .contact-panel, .catalogue, .product-story, .tasting, .related, .wholesale-section { padding-right: 16px; padding-left: 16px; }
  .heritage-media::before { inset: 15px -9px -15px 9px; }
  .heritage-caption { right: 8px; }
  .product-cards { grid-template-columns: 1fr; }
  .product-card { min-height: 570px; }
  .product-card-media { height: 410px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-item { min-height: auto; }
  .process-item img { height: 280px; }
  .partner-card { min-height: 190px; }
  .page-hero { min-height: 640px; padding: 135px 22px 60px; }
  .page-hero p:last-child { font-size: 15px; }
  .catalogue-item { min-height: 0; }
  .catalogue-media { min-height: 470px; padding: 25px; }
  .catalogue-copy { padding: 45px 26px; }
  .catalogue-copy h2 { font-size: 50px; }
  .product-gallery { min-height: 600px; padding: 35px 18px 22px; }
  .gallery-open img { height: 510px; }
  .gallery-hint { right: 14px; top: 14px; }
  .product-summary { padding: 65px 22px 75px; }
  .product-summary h1 { font-size: 65px; }
  .summary-facts { grid-template-columns: 1fr; }
  .summary-fact:last-child { grid-column: auto; }
  .summary-price { align-items: flex-start; flex-direction: column; }
  .story-block { grid-template-columns: 1fr; gap: 17px; padding: 30px 24px; }
  .story-block > span { font-size: 22px; }
  .tasting-grid { grid-template-columns: 1fr; }
  .tasting-step { min-height: 230px; }
  .related-links { grid-template-columns: 1fr; }
  .tier-card { min-height: 220px; }
  .wholesale-cta { padding: 35px 25px; }
  .age-actions { grid-template-columns: 1fr; }
  .coming-soon-card { padding: 48px 25px 36px; }
  .coming-soon-card h2 { font-size: 42px; }
  .floating-actions { right: 13px; bottom: 13px; }
  .whatsapp-float { width: 56px; padding: 0; justify-content: center; }
  .whatsapp-float > span:last-child { display: none; }
  .back-top { width: 46px; height: 46px; }
  .lightbox { padding: 10px; }
  .lightbox-image.is-zoomed { transform: scale(1.35); }
  .lightbox-nav { width: 44px; height: 44px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-contact { grid-column: auto; }
  .footer-bottom { align-items: center; flex-direction: column; text-align: center; }
}

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

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

@media print {
  .site-header, .floating-actions, .age-gate, .lightbox, .site-footer, .wholesale-cta { display: none !important; }
  body { color: #000; background: #fff; }
  .wholesale-hero { min-height: auto; padding: 40px 0; color: #000; background: #fff; }
  .wholesale-hero::before, .wholesale-hero::after { display: none; }
  .wholesale-section { padding: 20px 0; background: #fff; }
  .tier-card { min-height: auto; color: #000; border: 1px solid #aaa; background: #fff; }
  .tier-card p { color: #444; }
  .price-table-wrap { box-shadow: none; }
}
