/* === Vino de Pasto — design tokens v2 (atlantic discipline) ============ */
:root {
  /* Palette — bone, ink, single cool accent. NO ochre, NO gold, NO wood. */
  --bone:       #F2EEE7;
  --bone-2:     #ECE7DD;
  --bone-deep:  #E1DACB;
  --paper:      #F2EEE7;          /* alias for legacy */
  --paper-warm: #ECE7DD;          /* alias */
  --ink:        #0E0D0B;
  --ink-2:      #1B1916;
  --ink-soft:   #2B2825;
  --engrave:    #6E6A60;
  --engrave-soft: #8A867A;
  --rule:       #C9C2B0;
  --rule-soft:  #DAD3C0;

  /* Single accent — Atlantic ink */
  --atlantic:      #2E4A5C;
  --atlantic-deep: #1E3645;
  --atlantic-soft: #5C7484;

  /* Legacy gold tokens kept as aliases mapped to neutrals so old refs don't break */
  --gold:       var(--ink);
  --gold-deep:  var(--ink);
  --gold-soft:  var(--bone);
  --olive:      var(--engrave);
  --burgundy:   var(--atlantic-deep);

  /* Type */
  --serif:     'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --editorial: 'Newsreader', 'EB Garamond', Georgia, serif;
  --sans:      'Geist', 'Inter Tight', system-ui, sans-serif;
  --mono:      'JetBrains Mono', ui-monospace, monospace;

  --hairline: 0.5px solid var(--rule);
  --hairline-soft: 0.5px solid var(--rule-soft);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--editorial);
  font-weight: 380;
  color: var(--ink);
  background: var(--bone);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-variant-ligatures: common-ligatures;
  text-rendering: optimizeLegibility;
}

/* Paper grain — very faint now, almost invisible. The fonts and photos do the work. */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05  0 0 0 0 0.05  0 0 0 0 0.04  0 0 0 0.15 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }

/* === Type === */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 0;
}
h1 {
  font-size: clamp(56px, 11vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(40px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
h3 {
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1em;
  max-width: 62ch;
}

.italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--engrave);
  font-weight: 500;
}

.kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--engrave);
  text-transform: uppercase;
}

.rule { border: 0; border-top: var(--hairline); margin: 0; }
.rule-ink { border: 0; border-top: 0.5px solid var(--ink); margin: 0; }

/* === Layout === */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 720px) { .container { padding: 0 22px; } }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 238, 231, 0.84);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-bottom: var(--hairline);
}
.site-header .inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand .lockup {
  font-family: var(--serif);
  font-size: 20px;
}
.brand .lockup em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--engrave);
}
.brand .domain {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--engrave);
  letter-spacing: 0.2em;
  border-left: 0.5px solid var(--rule);
  padding-left: 12px;
  text-transform: uppercase;
}

.nav {
  display: flex; justify-content: center; gap: 36px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.nav a {
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  cursor: pointer;
  transition: color .2s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.header-cta { justify-self: end; display: flex; align-items: center; gap: 20px; }

/* === Buttons (now monochrome with sharper geometry) === */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 24px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 500;
  border: 0.5px solid var(--ink);
  cursor: pointer;
  background: var(--ink);
  color: var(--bone);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.btn:hover { background: var(--atlantic-deep); border-color: var(--atlantic-deep); }
.btn .arrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 0.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bone); }

.btn-link {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  padding-bottom: 4px;
  border-bottom: 0.5px solid var(--ink);
  transition: gap .25s ease, color .25s ease;
}
.btn-link:hover { gap: 16px; color: var(--atlantic-deep); border-color: var(--atlantic-deep); }

/* === Section scaffolding === */
section { position: relative; }
.section-pad { padding: 140px 0; }
.section-pad-sm { padding: 88px 0; }
@media (max-width: 720px) {
  .section-pad { padding: 80px 0; }
  .section-pad-sm { padding: 56px 0; }
}

.section-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--engrave);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
  text-transform: uppercase;
}
.section-num::before {
  content: ""; width: 36px; height: 0.5px; background: var(--engrave);
}

/* === Footer === */
.site-footer {
  background: var(--ink);
  color: var(--bone);
  padding: 96px 0 36px;
  font-family: var(--sans);
  font-size: 13.5px;
}
.site-footer h4 {
  font-family: var(--serif);
  color: var(--bone);
  font-size: 28px;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.site-footer a { color: var(--bone); opacity: .72; transition: opacity .2s; }
.site-footer a:hover { opacity: 1; }
.site-footer .grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 56px; }
.site-footer .grid .col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer .eyebrow { color: rgba(242, 238, 231, 0.5); }
.site-footer .colofon {
  display: flex; justify-content: space-between;
  padding-top: 32px; margin-top: 80px;
  border-top: 0.5px solid rgba(242, 238, 231, 0.12);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  color: rgba(242, 238, 231, 0.4);
  text-transform: uppercase;
  flex-wrap: wrap; gap: 16px;
}
@media (max-width: 820px) { .site-footer .grid { grid-template-columns: 1fr 1fr; } }

/* === Editorial drop cap === */
.dropcap::first-letter {
  font-family: var(--serif);
  font-size: 5.4em;
  float: left;
  line-height: 0.82;
  padding: 8px 14px 0 0;
  color: var(--ink);
  font-style: italic;
}

/* === Page transitions (transform only — opacity stays at 1) === */
main { opacity: 1; }
.page-enter { animation: pageIn .5s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes pageIn {
  from { transform: translateY(10px); }
  to   { transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* === Photographic blocks === */
.photo {
  position: relative;
  background-color: var(--bone-2);
  background-size: cover;
  background-position: center;
  border: 0; /* no frame — full-bleed photography */
  overflow: hidden;
}
.photo.tint::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,13,11,0) 55%, rgba(14,13,11,0.42) 100%);
}
.photo .caption {
  position: absolute; left: 18px; bottom: 16px; right: 18px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em;
  color: rgba(242, 238, 231, 0.88); text-transform: uppercase;
  z-index: 2;
  display: flex; gap: 14px; align-items: center;
}
.photo .caption::before {
  content: ""; width: 18px; height: 0.5px; background: rgba(242, 238, 231, 0.6);
}

/* === Case tag — now monochrome ink === */
.case-tag {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink);
  border: 0.5px solid var(--ink);
  padding: 7px 12px;
}
.case-tag.dark { color: var(--bone); border-color: rgba(242,238,231,0.6); }
.case-tag .pip {
  width: 6px; height: 6px; background: currentColor; border-radius: 50%;
  display: inline-block;
}

/* === Two-col editorial body === */
.two-col {
  column-count: 2; column-gap: 56px;
  font-family: var(--editorial); font-size: 17px; line-height: 1.7;
}
@media (max-width: 820px) { .two-col { column-count: 1; } }

/* === Vertical metadata === */
.vert {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.3em;
  color: var(--engrave); text-transform: uppercase;
}

/* === Selection === */
::selection { background: var(--ink); color: var(--bone); }

/* Stack order above paper grain */
.site-header, main, .site-footer, .tweaks-host { position: relative; z-index: 2; }

/* === Hero number (massive editorial figure) === */
.hero-figure {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  line-height: 0.85;
  letter-spacing: -0.04em;
}

/* === Atlantic accent rules === */
.text-atlantic { color: var(--atlantic-deep); }
.italic-atlantic { font-style: italic; color: var(--atlantic-deep); }

/* === Photo overlap utility === */
.photo-cluster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* === Inline pill === */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px 5px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 0.5px solid currentColor;
  color: var(--engrave);
}
.pill .pip { width: 4px; height: 4px; background: currentColor; border-radius: 50%; }

/* === Spec list === */
.spec-list { border-top: 0.5px solid var(--rule); }
.spec-list .row {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 28px; padding: 18px 0;
  border-bottom: 0.5px solid var(--rule);
}
.spec-list .row .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--engrave); padding-top: 4px; }
.spec-list .row .v { font-family: var(--editorial); font-size: 17px; color: var(--ink); }

/* === Mobile nav (simple hide) === */
@media (max-width: 880px) {
  .nav { display: none; }
  .header-cta .btn-link { display: none; }
}

/* ====================================================================== */
/*  ZOOM FIGURE — large product photo + magnifier lupa                    */
/* ====================================================================== */
.zoom-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.zoom-cap {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--engrave);
  display: flex;
  align-items: center;
  gap: 12px;
}
.zoom-cap::before {
  content: "";
  width: 22px;
  height: 0.5px;
  background: currentColor;
}
.zoom-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--bone);
  border: 0.5px solid var(--rule-soft);
  overflow: hidden;
  cursor: zoom-in;
  isolation: isolate;
}
.zoom-stage.is-active { cursor: none; }
.zoom-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.zoom-stage:hover .zoom-img { transform: scale(1.015); }
.zoom-lens {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  border: 0.5px solid var(--ink);
  box-shadow:
    0 0 0 4px rgba(242, 238, 231, 0.85),
    0 18px 40px rgba(14, 13, 11, 0.28),
    inset 0 0 0 1px rgba(255,255,255,0.4);
  background-color: var(--bone);
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .18s ease;
  z-index: 3;
}
.zoom-stage.is-active .zoom-lens { opacity: 1; }
.zoom-hint {
  position: absolute;
  left: 18px; bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(242, 238, 231, 0.92);
  backdrop-filter: blur(8px);
  border: 0.5px solid var(--rule);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 2;
}
.zoom-stage.is-active .zoom-hint { opacity: 0; }

/* ====================================================================== */
/*  COMPRAR — split product page                                          */
/* ====================================================================== */
.comprar-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.comprar-split .col {
  padding: 80px 56px 96px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.comprar-split .col + .col {
  border-left: 0.5px solid rgba(242, 238, 231, 0.18);
}
.comprar-split .col.is-light {
  background: var(--bone);
  color: var(--ink);
}
.comprar-split .col.is-light + .col.is-light { border-left-color: var(--rule); }
.comprar-split .col-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: currentColor;
  opacity: .6;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.comprar-split .col-eyebrow .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  opacity: 1;
  letter-spacing: 0;
}
.comprar-split .product-title {
  font-family: var(--serif);
  font-size: clamp(48px, 5.2vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.comprar-split .product-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 1.8vw, 26px);
  opacity: .75;
  margin-bottom: 32px;
}
.comprar-split .product-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 32px;
  margin-top: 36px;
  padding: 24px 0;
  border-top: 0.5px solid currentColor;
  border-bottom: 0.5px solid currentColor;
  border-color: rgba(255,255,255,0.18);
}
.is-light .product-meta { border-color: var(--rule); }
.comprar-split .product-meta .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: .6;
  margin-bottom: 6px;
}
.comprar-split .product-meta .v {
  font-family: var(--editorial);
  font-size: 16px;
  line-height: 1.45;
}
.comprar-split .price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 32px 0 28px;
}
.comprar-split .price .amt {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  font-style: italic;
}
.comprar-split .price .unit {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: .65;
}

@media (max-width: 980px) {
  .comprar-split { grid-template-columns: 1fr; }
  .comprar-split .col { padding: 64px 26px 80px; }
  .comprar-split .col + .col { border-left: 0; border-top: 0.5px solid rgba(242, 238, 231, 0.18); }
  .comprar-split .col.is-light + .col.is-light { border-top-color: var(--rule); }
}
