/* Bodega Carmine Granata — landing "Una historia con raíces profundas" */

:root {
  --ink: #0d0c0b;
  --bone: #f1ece4;
  --bone-2: rgba(241, 236, 228, 0.86);
  --bone-3: rgba(241, 236, 228, 0.6);
  --bone-4: rgba(241, 236, 228, 0.22);
  --paper: #f3efe8;
  --graphite: #2b2a2f;
  --slate: #626169;
  --gold: #bc9d65;
  --gold-deep: #8a6d3f;
  --frame-line: rgba(188, 157, 101, 0.6);

  /* EB Garamond: a true Garamond, like the italic on the bodega's own site.
     Marcellus: flared Roman capitals that echo the logo's wordmark. */
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Marcellus", Optima, Candara, "Gill Sans", serif;

  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);
  --gutter: clamp(22px, 6vw, 104px);
  --track: 1150vh;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, p, dl, dd { margin: 0; }

::selection { background: rgba(188, 157, 101, 0.3); }

:focus-visible {
  outline: 1px solid var(--bone-3);
  outline-offset: 5px;
}

.skip {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 0.8em 1.2em;
  background: var(--bone);
  color: var(--ink);
  font: 0.7rem/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ------------------------------------------------------------------- Intro */

/* The full logo alone on black while the first frames arrive, then the page fades in */
.intro {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--ink);
  pointer-events: none;
  transition: opacity 1.4s var(--ease) 0.2s, visibility 0s linear 1.6s;
}
.intro__logo {
  width: clamp(230px, 30vw, 420px);
  opacity: 0;
  animation: crest-in 1.4s var(--ease) 0.15s forwards;
}
@keyframes crest-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 0.92; transform: none; }
}
.is-ready .intro { opacity: 0; visibility: hidden; }
.no-js .intro { display: none; }

/* ------------------------------------------------------------------ Header */

.site-header {
  position: fixed;
  z-index: 40;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(20px, 3.4vh, 36px) var(--gutter) clamp(14px, 2.2vh, 22px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), opacity 1.4s var(--ease);
}

.js .site-header { opacity: 0; }
.is-ready .site-header { opacity: 1; }

.brand {
  position: relative;
  display: block;
  width: clamp(150px, 15vw, 224px);
  flex: none;
}
.brand img { width: 100%; transition: opacity 0.5s var(--ease); }
.brand__dark { position: absolute; inset: 0; opacity: 0; }

.navs {
  position: relative;
  flex: 1 1 auto;
  align-self: stretch;
  min-width: 0;
}
.navs > .nav,
.navs > .subnav {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  white-space: nowrap;
}
.navs > .nav { top: 50%; }
.navs > .subnav { top: 91%; }
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.9vw, 2.3rem);
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
/* second row: the wine lines, in gold, as on the original site */
.subnav {
  display: flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.subnav a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.subnav a + a {
  margin-left: 1.1em;
  padding-left: 1.1em;
  border-left: 1px solid rgba(188, 157, 101, 0.4);
}
.subnav a:hover { color: var(--bone); }
.on-light .subnav a { color: var(--gold-deep); }
.on-light .subnav a:hover { color: var(--graphite); }
.nav a {
  position: relative;
  color: var(--bone-2);
  text-decoration: none;
  padding: 0.4em 0;
  transition: color 0.3s var(--ease);
}
.nav a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.26em;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.nav a:hover { color: var(--bone); }
.nav a:not(.nav__cta):hover::after { transform: scaleX(1); }

.nav__cta {
  margin-left: 0.4rem;
  padding: 0.95em 1.5em 0.9em !important;
  border: 1px solid var(--bone-4);
  color: var(--bone) !important;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease) !important;
}
.nav__cta:hover {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--ink) !important;
}

.menu-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: none;
  color: var(--bone);
  font: 0.64rem/1 var(--sans);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 0.9em 0 0.9em 1em;
  cursor: pointer;
}
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline; }

/* Header over the dark sections after the film */
.site-header.is-solid {
  background: rgba(13, 12, 11, 0.9);
  border-bottom-color: rgba(188, 157, 101, 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Header over the light closing section */
.site-header.on-light {
  background: rgba(243, 239, 232, 0.94);
  border-bottom-color: rgba(43, 42, 47, 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.on-light .brand__light { opacity: 0; }
.on-light .brand__dark { opacity: 1; }
.on-light .nav a { color: var(--slate); }
.on-light .nav a:hover { color: var(--graphite); }
.on-light .nav__cta { border-color: rgba(43, 42, 47, 0.25); color: var(--graphite) !important; }
.on-light .nav__cta:hover { background: var(--graphite); border-color: var(--graphite); color: var(--paper) !important; }
.on-light .menu-toggle { color: var(--graphite); }

/* Mobile menu */
.menu {
  position: fixed;
  z-index: 35;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px var(--gutter) 40px;
  overflow-y: auto;
  background: var(--ink);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu nav { display: grid; gap: 0.5rem; }
.menu nav a {
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.7rem, 7vw, 2.2rem);
  line-height: 1.2;
  text-decoration: none;
  color: var(--bone);
}
.menu__sub { margin-top: 1.6rem; gap: 0.2rem !important; }
.menu__sub a {
  font: 0.6rem/2.2 var(--sans) !important;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold) !important;
}
.menu__foot {
  margin-top: auto;
  font: 0.6rem/1.9 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone-3);
}
.site-header.menu-open { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .brand__light { opacity: 1; }
.menu-open .brand__dark { opacity: 0; }
.menu-open .menu-toggle { color: var(--bone); }

/* ------------------------------------------------------------------- Story */

.story {
  position: relative;
  height: var(--track);
}

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  background: var(--ink);
}

/* Film, timeline and caption are one composition, centred in the visible viewport.
   The film is sized to fit what's left after the header and caption, so it is
   shown close to its native resolution rather than stretched edge to edge. */
.frame {
  --head: clamp(108px, 15vh, 140px);
  --cap: clamp(132px, 17vh, 164px);
  --gaps: 104px;
  --feather: 0px;
  --radius: clamp(28px, 3vw, 44px);
  --screen-w: min(78vw, 1480px, calc((100vh - var(--head) - var(--cap) - var(--gaps)) * 16 / 9));
  --text-w: calc(var(--screen-w) - var(--feather));
  position: absolute;
  inset: 0 0 auto;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--head) 0 clamp(18px, 3vh, 36px);
}
@supports (height: 100svh) {
  .frame { --screen-w: min(78vw, 1480px, calc((100svh - var(--head) - var(--cap) - var(--gaps)) * 16 / 9)); }
}

/* The screen: crisp rounded corners traced by a fine gold line */
.screen-wrap {
  position: relative;
  flex: none;
  width: var(--screen-w);
}
.js .screen-wrap {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 2s var(--ease), transform 2.6s var(--ease);
}
.is-ready .screen-wrap { opacity: 1; transform: none; }

.screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #141210;
  transform: translateZ(0);
}
/* the line sits on top of the picture and follows the radius exactly */
.screen::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--frame-line);
  pointer-events: none;
}

.poster,
.poster img,
.film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.poster img { object-fit: cover; }
.film { display: block; opacity: 0; }
.film.is-live { opacity: 1; }

/* Light in the room: a soft wash that takes the colour of each scene */
.tint {
  position: absolute;
  inset: 0;
  background-color: rgba(150, 104, 58, 0.34);
  -webkit-mask-image: radial-gradient(ellipse 62% 78% at 32% 52%, #000 0%, rgba(0, 0, 0, 0.45) 45%, transparent 78%);
  mask-image: radial-gradient(ellipse 62% 78% at 32% 52%, #000 0%, rgba(0, 0, 0, 0.45) 45%, transparent 78%);
  transition: background-color 2.2s var(--ease);
  pointer-events: none;
}
/* a whisper of film grain so the dark reads as a surface, not a void */
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
/* running labels in the margins */
.side {
  display: none;
  position: absolute;
  top: 50%;
  z-index: 1;
  margin: 0;
  font: 0.56rem/1 var(--sans);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(188, 157, 101, 0.55);
  writing-mode: vertical-rl;
  opacity: 0;
  transition: opacity 1.6s var(--ease) 1s;
}
.is-ready .side { opacity: 1; }
.side--left { left: calc(var(--gutter) * 0.42); transform: translate(-50%, -50%) rotate(180deg); }
.side--right { right: calc(var(--gutter) * 0.42); transform: translate(50%, -50%); }

.veil {
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
}

/* Timeline under the film: a hairline that fills as you scroll, one mark per chapter */
.timeline {
  position: relative;
  flex: none;
  width: var(--text-w);
  height: 1px;
  margin: clamp(20px, 3vh, 28px) 0 clamp(22px, 3.6vh, 34px);
  opacity: 0;
  transition: opacity 1.4s var(--ease) 0.6s;
}
.is-ready .timeline { opacity: 1; }
.timeline__track {
  position: absolute;
  inset: 0;
  background: rgba(188, 157, 101, 0.22);
}
.timeline__fill {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.timeline__mark {
  position: absolute;
  top: 0;
  left: var(--at, 0%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  text-decoration: none;
}
.timeline__mark::before {
  content: "";
  width: 1px;
  height: 7px;
  background: var(--bone-3);
  transition: height 0.4s var(--ease), background-color 0.4s var(--ease);
}
.timeline__mark.is-passed::before { background: var(--gold); }
.timeline__mark.is-current::before { height: 13px; background: var(--gold); }
.timeline__name {
  position: absolute;
  bottom: 26px;
  left: 50%;
  white-space: nowrap;
  font-style: normal;
  font-size: 0.98rem;
  color: var(--bone);
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
}
.timeline__mark:hover .timeline__name,
.timeline__mark:focus-visible .timeline__name { opacity: 1; transform: translate(-50%, 0); }

/* Captions: title on the left, text on the right, aligned to the film */
.captions {
  position: relative;
  flex: none;
  width: var(--text-w);
  height: var(--cap);
}
.caption {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  column-gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
  align-content: start;
}

/* Masked line reveal */
.mask,
.hero__eyebrow {
  display: block;
  overflow: hidden;
  /* room for italic overhang and descenders inside the clip */
  padding: 0.05em 0.16em 0.14em 0;
  margin: -0.05em -0.16em -0.14em 0;
}
.mask > span,
.hero__eyebrow > span {
  display: block;
  transform: translate3d(0, 105%, 0);
  transition: transform 1.4s var(--ease);
}

.rule {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--bone-3);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease);
}

/* Opening caption: centred beneath the film */
.hero {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}
.hero__title { font-weight: 400; }
.hero__eyebrow {
  margin: 0 auto 1rem;
  padding-right: 0;
  font: 0.66rem/1.4 var(--sans);
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--bone-3);
}
.hero__eyebrow > span { margin-right: -0.46em; }
.hero .mask {
  margin-right: 0;
  padding-right: 0.1em;
  padding-left: 0.1em;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.9rem, 2.9vw, 3.1rem);
  line-height: 1.12;
  color: var(--bone);
  text-wrap: balance;
}
.hero.is-active .hero__eyebrow > span { transform: none; transition-delay: 0.3s; }
.hero.is-active .mask > span { transform: none; transition-duration: 1.7s; transition-delay: 0.45s; }

.scroll-hint {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 1.3rem;
  font: 0.6rem/1.6 var(--sans);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--bone-3);
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.scroll-hint__text { margin-right: -0.34em; animation: breathe 3.2s ease-in-out infinite; }
.scroll-hint.is-visible { opacity: 1; transition-delay: 1.2s; }
.scroll-hint__line {
  flex: none;
  width: 32px;
  height: 1px;
  background: var(--bone-4);
}
@keyframes breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hero__lead,
.facts { display: none; }

.caption { isolation: isolate; }
.caption__num { display: none; }
.caption__index {
  margin-bottom: 1rem;
  font: 0.6rem/1 var(--sans);
  letter-spacing: 0.34em;
  color: var(--gold);
  opacity: 0;
  transition: opacity 1s var(--ease);
}
.caption__index span { color: var(--bone-4); }
.chapter.is-active .caption__index { opacity: 1; transition-delay: 0.05s; }

/* Chapter captions */
.caption {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s var(--ease), visibility 0s linear 0.8s;
}
.caption.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s linear, visibility 0s;
}
/* reset the reveal only once the caption has faded out */
.caption:not(.is-active) * { transition-delay: 0.8s !important; transition-duration: 0s !important; }

.chapter__title {
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.5rem, 2vw, 2.15rem);
  line-height: 1.12;
  color: var(--bone);
  text-wrap: balance;
}
.caption__head .rule { margin-top: clamp(0.9rem, 2vh, 1.2rem); }

.chapter__text {
  max-width: 34rem;
  padding-top: 0.35rem;
  font-weight: 400;
  font-size: clamp(0.98rem, 1vw, 1.08rem);
  line-height: 1.66;
  letter-spacing: 0.005em;
  color: var(--bone-2);
  text-wrap: pretty;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity 1.3s var(--ease), transform 1.3s var(--ease);
}

.chapter.is-active .mask > span { transform: none; transition-delay: 0.1s; }
.chapter.is-active .rule { transform: none; transition-delay: 0.45s; }
.chapter.is-active .chapter__text { opacity: 1; transform: none; transition-delay: 0.35s; }

/* ------------------------------------------------------------ Opening */

/* The original home hero: "Vinos con historia", the three accesses, the age notice */
.top {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(130px, 20vh, 190px) var(--gutter) clamp(110px, 17vh, 160px);
  overflow: hidden;
  background: var(--ink);
}
/* background video under a dark curtain (home opening and every page opening) */
.vbg {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  background: var(--ink);
}
.vbg__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Background videos never show the phone's own play button. Each one stays out of sight over its
   poster, which its box paints (style attribute in the page), and appears only while it really
   plays (main.js adds .is-playing). A phone that does not autoplay it (an iPhone in Low Power Mode,
   for example) keeps the still picture. Not quite 0, so Safari still counts the video as visible. */
video[data-bgvideo] { pointer-events: none; }
.js video[data-bgvideo] { opacity: 0.001; transition: opacity 0.6s ease; }
.js video[data-bgvideo].is-playing { opacity: 1; }
video[data-bgvideo]::-webkit-media-controls,
video[data-bgvideo]::-webkit-media-controls-panel,
video[data-bgvideo]::-webkit-media-controls-overlay-play-button,
video[data-bgvideo]::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.vbg__curtain {
  position: absolute;
  inset: 0;
  background-color: rgba(13, 12, 11, var(--curtain, 0.5));
  background-image:
    linear-gradient(90deg, rgba(13, 12, 11, 0.85) 0%, rgba(13, 12, 11, 0.45) 50%, rgba(13, 12, 11, 0.55) 100%),
    linear-gradient(180deg,
      rgba(13, 12, 11, 0.750) 0.00%,
      rgba(13, 12, 11, 0.718) 4.25%,
      rgba(13, 12, 11, 0.633) 8.50%,
      rgba(13, 12, 11, 0.513) 12.75%,
      rgba(13, 12, 11, 0.375) 17.00%,
      rgba(13, 12, 11, 0.237) 21.25%,
      rgba(13, 12, 11, 0.117) 25.50%,
      rgba(13, 12, 11, 0.032) 29.75%,
      rgba(13, 12, 11, 0.000) 34.00%,
      rgba(13, 12, 11, 0.000) 50.00%,
      rgba(13, 12, 11, 0.043) 56.25%,
      rgba(13, 12, 11, 0.156) 62.50%,
      rgba(13, 12, 11, 0.316) 68.75%,
      rgba(13, 12, 11, 0.500) 75.00%,
      rgba(13, 12, 11, 0.684) 81.25%,
      rgba(13, 12, 11, 0.844) 87.50%,
      rgba(13, 12, 11, 0.957) 93.75%,
      rgba(13, 12, 11, 1.000) 100.00%);
}
.top .grain,
.phero .grain { z-index: -1; }
.top__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.top__title {
  font-style: normal;
  font-weight: 400;
  font-size: clamp(3.1rem, 7.2vw, 6.8rem);
  line-height: 1.02;
  color: var(--bone);
}
.top__sub {
  margin-top: clamp(1.4rem, 3vh, 2.2rem);
  font: 0.74rem/1.8 var(--sans);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
}
.top__links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.top__links a,
.phero__links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.top__links a {
  min-width: 16.5rem;
  padding: 1.35em 1.8em 1.3em;
  border: 1px solid var(--bone-4);
  border-radius: 999px;
  font: 0.66rem/1.4 var(--sans);
  letter-spacing: 0.28em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease), opacity 1.3s var(--ease), transform 1.3s var(--ease);
}
.top__links a:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.top__links a.is-gold { border-color: var(--frame-line); color: var(--gold); border-radius: 26px; }
.top__links a.is-gold:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.top__links small {
  display: block;
  margin-top: 0.5em;
  font-size: 0.5rem;
  letter-spacing: 0.24em;
  opacity: 0.75;
}
.top__legal {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(28px, 5vh, 52px);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--bone-3);
}

.js .top__sub,
.js .top__links a,
.js .top__legal {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
}
.js .top__sub,
.js .top__legal { transition: opacity 1.3s var(--ease), transform 1.3s var(--ease); }
.is-ready .top .mask > span { transform: none; transition-duration: 1.8s; transition-delay: 0.5s; }
.is-ready .top .mask + .mask > span { transition-delay: 0.66s; }
.is-ready .top__sub { opacity: 1; transform: none; transition-delay: 1.1s; }
.is-ready .top__links a { opacity: 1; transform: none; transition-delay: 0s, 0s, 0s, 1.25s, 1.25s; }
.is-ready .top__links a:nth-child(2) { transition-delay: 0s, 0s, 0s, 1.37s, 1.37s; }
.is-ready .top__links a:nth-child(3) { transition-delay: 0s, 0s, 0s, 1.49s, 1.49s; }
.is-ready .top__legal { opacity: 1; transform: none; transition-delay: 1.7s; }

@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .vbg__curtain {
    background-image:
      linear-gradient(180deg,
      rgba(13, 12, 11, 0.800) 0.00%,
      rgba(13, 12, 11, 0.781) 4.25%,
      rgba(13, 12, 11, 0.730) 8.50%,
      rgba(13, 12, 11, 0.658) 12.75%,
      rgba(13, 12, 11, 0.575) 17.00%,
      rgba(13, 12, 11, 0.492) 21.25%,
      rgba(13, 12, 11, 0.420) 25.50%,
      rgba(13, 12, 11, 0.369) 29.75%,
      rgba(13, 12, 11, 0.350) 34.00%,
      rgba(13, 12, 11, 0.362) 43.25%,
      rgba(13, 12, 11, 0.392) 46.50%,
      rgba(13, 12, 11, 0.435) 49.75%,
      rgba(13, 12, 11, 0.485) 53.00%,
      rgba(13, 12, 11, 0.535) 56.25%,
      rgba(13, 12, 11, 0.578) 59.50%,
      rgba(13, 12, 11, 0.608) 62.75%,
      rgba(13, 12, 11, 0.620) 66.00%,
      rgba(13, 12, 11, 0.636) 70.25%,
      rgba(13, 12, 11, 0.679) 74.50%,
      rgba(13, 12, 11, 0.740) 78.75%,
      rgba(13, 12, 11, 0.810) 83.00%,
      rgba(13, 12, 11, 0.880) 87.25%,
      rgba(13, 12, 11, 0.941) 91.50%,
      rgba(13, 12, 11, 0.984) 95.75%,
      rgba(13, 12, 11, 1.000) 100.00%);
  }
  .top { justify-content: flex-start; padding-bottom: 130px; }
  .top__inner { grid-template-columns: minmax(0, 1fr); }
  .top__links a { min-width: 0; }
}

/* ------------------------------------------------ Framed images */

/* images framed like the film: rounded, traced by a fine gold line */
.framed {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: clamp(20px, 2vw, 30px);
  background: #141210;
  transform: translateZ(0);
}
.framed::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--frame-line);
  pointer-events: none;
}
.framed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------------------------------------ Letter & cards (paper) */

.light {
  position: relative;
  z-index: 2;
  background: var(--paper);
  color: var(--graphite);
}

/* "Donde cada botella tiene su propia historia" */
.letter {
  display: grid;
  grid-template-columns: minmax(0, 23rem) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2.5rem, 7vw, 8rem);
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(120px, 20vh, 210px) var(--gutter) clamp(70px, 11vh, 120px);
}
.letter__photo {
  position: sticky;
  top: clamp(120px, 18vh, 170px);
  aspect-ratio: 436 / 537;
}
.letter__title {
  font-style: normal;
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 3.3rem);
  line-height: 1.1;
  color: var(--graphite);
}
.letter .rule {
  width: 56px;
  margin: clamp(1.5rem, 3.4vh, 2.1rem) 0 clamp(1.6rem, 3.6vh, 2.3rem);
  background: rgba(43, 42, 47, 0.35);
  transform: none;
}
.letter__body p {
  max-width: 39rem;
  margin-bottom: 1.25em;
  font-size: clamp(1.04rem, 1.12vw, 1.17rem);
  line-height: 1.74;
  color: #4b4a51;
  text-wrap: pretty;
}
.letter__body .letter__link { margin-top: -0.4em; font-size: 0.92rem; }
.letter__link a { color: var(--gold-deep); text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.letter__link a:hover { color: var(--graphite); }
.letter__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(1.8rem, 3.5vw, 3.4rem);
}
.letter__body > * { grid-column: 1; }
.letter__aside {
  grid-column: 2;
  grid-row: 1 / span 9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}
.letter__bottle { width: clamp(72px, 7vw, 100px); height: auto; }
.letter__compass { width: clamp(70px, 6vw, 92px); height: auto; }
.letter__body .letter__sign {
  margin: 2.2rem 0 0;
  font-style: normal;
  font-size: clamp(1.4rem, 1.9vw, 1.8rem);
  color: var(--graphite);
}

/* the five accesses of the original home */
.cards {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 80px) var(--gutter) clamp(120px, 18vh, 200px);
}
.cards__bottles { margin: 0; }
.cards__bottles img {
  width: 100%;
  max-width: 436px;
  margin: 0 auto;
}
.cards__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(43, 42, 47, 0.14);
}
.cards__item { border-bottom: 1px solid rgba(43, 42, 47, 0.14); }
.cards__item a {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.8rem);
  padding: 1.1rem 0.4rem 1.1rem 0;
  text-decoration: none;
  color: inherit;
}
/* the photo half of each original card, shown at its native size so it stays sharp */
.cards__thumb {
  width: 128px;
  height: 100px;
  border-radius: 16px;
  background-color: #ddd6ca;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 1px var(--frame-line);
}
.cards__text strong {
  display: block;
  font: 400 0.72rem/1.5 var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--graphite);
  transition: color 0.4s var(--ease);
}
.cards__text > span {
  display: block;
  margin-top: 0.45rem;
  font-size: clamp(1rem, 1.05vw, 1.1rem);
  line-height: 1.5;
  color: var(--slate);
}
.cards__arrow {
  font-family: var(--sans);
  font-size: 1.1rem;
  color: var(--gold-deep);
  transform: translateX(-6px);
  transition: transform 0.5s var(--ease);
}
.cards__item a:hover strong { color: var(--gold-deep); }
.cards__item a:hover .cards__arrow { transform: none; }
.cards__item.is-featured a {
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1.4rem;
  background: rgba(188, 157, 101, 0.14);
}

@media (max-width: 860px) {
  .letter { grid-template-columns: minmax(0, 1fr); }
  .letter__photo { position: relative; top: auto; max-width: 20rem; }
  .letter__body { display: block; }
  .letter__aside { flex-direction: row; justify-content: center; align-items: flex-end; margin-top: 3rem; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .cards__bottles img { max-width: 300px; }
}
@media (max-width: 480px) {
  .cards__item a { grid-template-columns: 92px minmax(0, 1fr) auto; }
  .cards__thumb { width: 92px; height: 76px; border-radius: 12px; }
}

/* the original's arrow band to the next page */
.next {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(76px, 12vh, 112px);
  background: #000;
  border-top: 1px solid rgba(188, 157, 101, 0.25);
  border-bottom: 1px solid rgba(188, 157, 101, 0.25);
  font: 1.7rem/1 var(--sans);
  text-decoration: none;
  color: var(--gold);
}
.next span { transition: transform 0.6s var(--ease); }
.next:hover span { transform: translateX(10px); }

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 1.3s var(--ease), transform 1.3s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ============================================================ Inner pages */

/* current page in the navigation */
.nav a[aria-current],
.subnav a[aria-current="page"] { color: var(--gold); }
.on-light .nav a[aria-current] { color: var(--gold-deep); }
.menu nav a[aria-current] { color: var(--gold); }

/* Opening of each page: the title and the three accesses over a background
   video with the dark curtain */
.phero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 52rem);
  align-content: center;
  min-height: 92vh;
  min-height: 92svh;
  padding: clamp(150px, 22vh, 210px) var(--gutter) clamp(80px, 12vh, 130px);
  overflow: hidden;
  background: var(--ink);
}
.phero__title {
  font-weight: 400;
  font-size: clamp(2.6rem, 5.2vw, 5.4rem);
  line-height: 1.05;
  color: var(--bone);
}
.phero__sub {
  margin-top: clamp(1.3rem, 3vh, 2rem);
  font: 0.72rem/1.9 var(--sans);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
}
.phero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(2.2rem, 5vh, 3.2rem);
}
.phero__links a {
  padding: 1.15em 1.6em 1.1em;
  border: 1px solid var(--bone-4);
  border-radius: 999px;
  font: 0.6rem/1.4 var(--sans);
  letter-spacing: 0.26em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease), opacity 1.3s var(--ease), transform 1.3s var(--ease);
}
.phero__links a:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.phero__links a.is-gold { border-color: var(--frame-line); color: var(--gold); border-radius: 22px; }
.phero__links a.is-gold:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.phero__links small { display: block; margin-top: 0.45em; font-size: 0.48rem; letter-spacing: 0.22em; opacity: 0.75; }

.js .phero__sub,
.js .phero__links a {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
}
.js .phero__sub { transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.is-ready .phero .mask > span { transform: none; transition-duration: 1.6s; transition-delay: 0.15s; }
.is-ready .phero .mask + .mask > span { transition-delay: 0.28s; }
.is-ready .phero .mask + .mask + .mask > span { transition-delay: 0.41s; }
.is-ready .phero__sub { opacity: 1; transform: none; transition-delay: 0.7s; }
.is-ready .phero__links a { opacity: 1; transform: none; transition-delay: 0s, 0s, 0s, 0.85s, 0.85s; }

/* Paper body */
.page {
  position: relative;
  z-index: 2;
  background: var(--paper);
  color: var(--graphite);
  padding-bottom: clamp(100px, 16vh, 170px);
}
.sec {
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(90px, 14vh, 150px) var(--gutter) 0;
}
.sec-title {
  max-width: 40rem;
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  line-height: 1.1;
  color: var(--graphite);
}
.sec-kicker,
.wine__kicker {
  margin-bottom: 1rem;
  font: 0.62rem/1.5 var(--sans);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.page .rule {
  width: 56px;
  margin: clamp(1.5rem, 3.4vh, 2.1rem) 0 clamp(2rem, 4.5vh, 3rem);
  background: rgba(43, 42, 47, 0.35);
  transform: none;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6.5rem);
}
.split + .split,
.split + .gallery,
.gallery + .split,
.band + .split,
.split + .band { margin-top: clamp(70px, 11vh, 120px); }
.split--center { align-items: center; }
.split--wr { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.45fr); }
.split--rev > :first-child { order: 2; }
.stack { display: grid; gap: clamp(14px, 2vw, 24px); }

/* body copy, kept exactly as on the original site */
.prose { max-width: 40rem; }
.prose p {
  margin: 0 0 1.1em;
  font-size: clamp(1.02rem, 1.1vw, 1.14rem);
  line-height: 1.72;
  color: #4b4a51;
  text-wrap: pretty;
}
.prose p.ln { margin-bottom: 0.3em; }
/* each original paragraph block keeps its own breathing room */
.prose .blk + .blk { margin-top: 1.1em; }
.prose .blk > :last-child { margin-bottom: 0; }
.prose .blk:has(> .lbl:only-child) + .blk { margin-top: 0; }
.prose p.gap { margin-top: 1.1em; }
.prose .lbl {
  margin: 1.8em 0 0.6em;
  font: 500 1.08rem/1.4 var(--serif);
  color: var(--gold-deep);
}
.prose .lbl:first-child { margin-top: 0; }
.prose .mini {
  margin: 1.5em 0 0.4em;
  font: 0.66rem/1.5 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--graphite);
}
.prose .mini:first-child { margin-top: 0; }
.prose .k { font-weight: 500; color: var(--graphite); }
.prose a { color: var(--gold-deep); text-underline-offset: 0.2em; }
.prose a:hover { color: var(--graphite); }
.prose--cols {
  max-width: none;
  columns: 2 20rem;
  column-gap: clamp(2rem, 4.5vw, 4.5rem);
}
.prose--cols p,
.prose--cols h3 { break-inside: avoid; }
.prose--cols .lbl,
.prose--cols .mini { break-after: avoid; }

/* rows like "LEGADO Y VALORES:" — label on the left, text on the right */
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(2rem, 5vh, 3rem) 0;
  border-top: 1px solid rgba(43, 42, 47, 0.14);
}
.row:last-child { border-bottom: 1px solid rgba(43, 42, 47, 0.14); }
.row__label {
  font: 0.68rem/1.7 var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.rows { margin-top: clamp(70px, 11vh, 120px); }

/* photographs: framed like the film; product shots melt into the paper */
.page .framed img { height: auto; }
.product { margin: 0; }
.product img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}
.product--narrow { --cap: 17rem; }
.product--mid { --cap: 26rem; }
.product,
.band > .framed { margin-left: auto; margin-right: auto; }
/* black frames standing in for photographs still to be supplied */
.ph { background: #070707; width: 100%; }
.photos { display: grid; gap: clamp(12px, 1.6vw, 20px); }
.photos--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.photos--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.photos--fit .framed { aspect-ratio: 3 / 4; }
.page .photos--fit .framed img { height: 100%; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(50px, 8vh, 80px); }
.band { margin-top: clamp(50px, 8vh, 80px); }
.caption {
  margin-top: 1.2rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--slate);
}
.figcaption-side {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  line-height: 1.6;
  color: #4b4a51;
}

/* the brand's gold panel, rebuilt as text */
.panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
  min-height: 100%;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.8rem, 4vw, 3.4rem);
  border-radius: clamp(20px, 2vw, 30px);
  background: #a0906d;
  color: #fbf8f2;
  text-align: center;
}
.panel img { width: 42px; opacity: 0.95; }
.panel__text { font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1.25; }
.panel__cap {
  margin-top: 0.6rem;
  font: 0.56rem/1.9 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(251, 248, 242, 0.85);
}

/* wine sheets */
.wine {
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6.5rem);
  padding-top: clamp(80px, 12vh, 130px);
}
.wine + .wine,
.band + .wine,
.interlude + .wine { border-top: 1px solid rgba(43, 42, 47, 0.12); margin-top: clamp(80px, 12vh, 130px); }
.wine__media { position: sticky; top: clamp(130px, 18vh, 170px); display: grid; gap: 2rem; }
.wine__media .product img { max-height: 68vh; width: auto; max-width: 100%; }
.wine--wide { grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 4vh, 2.6rem); }
.wine--wide .wine__media { position: static; max-width: 34rem; }
.wine--wide .wine__media .product img { max-height: none; width: 100%; }
.wine--text { grid-template-columns: minmax(0, 1fr); }
.wine__title {
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  line-height: 1.1;
  color: var(--graphite);
}
.ficha {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.6rem;
  padding: 0.95em 1.5em 0.9em;
  border: 1px solid rgba(43, 42, 47, 0.25);
  border-radius: 999px;
  font: 0.62rem/1 var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--graphite);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.ficha span { padding: 0.35em 0.55em; border-radius: 4px; background: #6f9fa3; color: #fff; letter-spacing: 0.12em; font-size: 0.52rem; }
.ficha:hover { background: var(--graphite); border-color: var(--graphite); color: var(--paper); }
.interlude { margin-top: clamp(80px, 12vh, 130px); padding-top: clamp(80px, 12vh, 130px); }

/* the four wine lines */
.lines {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.8rem);
  margin-top: clamp(60px, 9vh, 100px);
}
.line {
  display: flex;
  flex-direction: column;
  padding: 1.8rem 1.5rem 2rem;
  border: 1px solid rgba(43, 42, 47, 0.14);
  border-radius: clamp(20px, 2vw, 28px);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.5s var(--ease), transform 0.6s var(--ease), background-color 0.5s var(--ease);
}
.line:hover { border-color: var(--frame-line); transform: translateY(-4px); }
.line__img { display: flex; align-items: flex-end; justify-content: center; height: clamp(220px, 30vh, 320px); margin-bottom: 1.6rem; }
.line__img img { max-height: 100%; width: auto; max-width: 100%; }
.line__title {
  font: 0.7rem/1.6 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--graphite);
}
.line__list {
  margin: 1rem 0 0;
  padding: 1rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(43, 42, 47, 0.14);
  font: 0.56rem/2.1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
}
.line__go { margin-top: auto; padding-top: 1.4rem; font-family: var(--sans); color: var(--gold-deep); }

/* the collectors' list */
.cava-list { max-width: 44rem; }
.cava-year {
  margin: 2.2rem 0 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(43, 42, 47, 0.14);
  font-size: 1.5rem;
  color: var(--gold-deep);
  font-variant-numeric: lining-nums;
}
.cava-year:first-child { margin-top: 0; }
.cava-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: clamp(1rem, 1.08vw, 1.1rem);
  line-height: 2;
  color: #4b4a51;
  font-variant-numeric: lining-nums;
}
.cava-row .dots { flex: 1; min-width: 1rem; overflow: hidden; white-space: nowrap; color: rgba(43, 42, 47, 0.28); }
.cava-row .n { white-space: nowrap; color: var(--graphite); }

/* the four accesses at the foot of each page */
.others {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 5rem);
  max-width: 78rem;
  margin: clamp(100px, 15vh, 160px) auto 0;
  padding: 0 var(--gutter);
  list-style: none;
}
.others .cards__item:nth-child(-n + 2) { border-top: 1px solid rgba(43, 42, 47, 0.14); }

/* back and forward, as the original's arrows */
.pager {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: clamp(76px, 12vh, 112px);
  padding: 0 var(--gutter);
  background: #000;
  border-top: 1px solid rgba(188, 157, 101, 0.25);
  border-bottom: 1px solid rgba(188, 157, 101, 0.25);
}
.pager a {
  padding: 0.6rem 1rem;
  font: 1.7rem/1 var(--sans);
  text-decoration: none;
  color: var(--gold);
  transition: transform 0.6s var(--ease), color 0.3s var(--ease);
}
.pager a:hover { color: var(--bone); }
.pager a:first-child:hover { transform: translateX(-8px); }
.pager a:last-child:hover { transform: translateX(8px); }

@media (max-width: 960px) {
  .phero { grid-template-columns: minmax(0, 1fr); min-height: 78svh; }
  .split,
  .row { grid-template-columns: minmax(0, 1fr); }
  .split--rev > :first-child { order: 0; }
  .wine { grid-template-columns: minmax(0, 1fr); }
  .wine__media { position: static; max-width: 18rem; }
  .wine__media .product img { max-height: 420px; }
  .lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .others { grid-template-columns: minmax(0, 1fr); }
  .others .cards__item:nth-child(2) { border-top: 0; }
}
@media (max-width: 560px) {
  .lines,
  .photos--3,
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .photos--2 { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ Footer */

.site-footer {
  position: relative;
  z-index: 2;
  padding: clamp(64px, 10vh, 100px) var(--gutter) calc(clamp(44px, 7vh, 64px) + env(safe-area-inset-bottom));
  background: var(--ink);
  text-align: center;
}
.site-footer img {
  width: clamp(170px, 16vw, 240px);
  margin: 0 auto clamp(30px, 5vh, 46px);
}
.site-footer__addr {
  font-size: clamp(1.05rem, 1.2vw, 1.22rem);
  line-height: 1.6;
  color: var(--bone-2);
  font-variant-numeric: lining-nums;
}
.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem clamp(1.4rem, 3vw, 2.6rem);
  margin: clamp(1.8rem, 4vh, 2.6rem) 0 0;
  padding: 0;
  list-style: none;
  font: 0.62rem/1.6 var(--sans);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.site-footer__social a { color: var(--gold); text-decoration: none; transition: color 0.3s var(--ease); }
.site-footer__social a:hover { color: var(--bone); }
.site-footer__seo {
  max-width: 50rem;
  margin: clamp(2.4rem, 6vh, 3.6rem) auto 0;
  padding-top: clamp(1.6rem, 4vh, 2.2rem);
  border-top: 1px solid rgba(188, 157, 101, 0.2);
  font-size: 0.86rem;
  line-height: 1.75;
  color: rgba(241, 236, 228, 0.46);
}

/* ------------------------------------------------------------- Responsive */

/* the two-row navigation tightens on smaller screens, then folds into the menu */
@media (max-width: 1320px) {
  .nav { gap: 1.05rem; font-size: 0.56rem; letter-spacing: 0.2em; }
  .subnav { font-size: 0.54rem; letter-spacing: 0.13em; }
  .subnav a + a { margin-left: 0.8em; padding-left: 0.8em; }
}
@media (max-width: 1080px) {
  .navs { display: none; }
  .menu-toggle { display: block; }
}

/* Desktop: the film on the left with its timeline, the chapter text in its own
   column on the right, vertically centred against the film */
@media (min-width: 761px) and (min-aspect-ratio: 1/1) {
  .frame {
    --below: 100px;
    --gap: clamp(2.5rem, 5.5vw, 7.5rem);
    --text-min: clamp(16rem, 28vw, 28rem);
    /* the film takes what's left once the text column has its room, capped by height */
    --screen-w: min(48vw, 1240px, calc(100vw - 2 * var(--gutter) - var(--gap) - var(--text-min)), calc((100vh - var(--head) - var(--below)) * 16 / 9));
    display: grid;
    grid-template-columns: var(--screen-w) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: var(--gap);
    align-content: center;
    justify-content: start;
    padding: var(--head) var(--gutter) clamp(28px, 5vh, 56px);
  }
  @supports (height: 100svh) {
    .frame { --screen-w: min(48vw, 1240px, calc(100vw - 2 * var(--gutter) - var(--gap) - var(--text-min)), calc((100svh - var(--head) - var(--below)) * 16 / 9)); }
  }

  .screen-wrap { grid-column: 1; grid-row: 1; }
  .timeline {
    grid-column: 1;
    grid-row: 2;
    width: auto;
    margin: clamp(20px, 3vh, 28px) calc(var(--radius) * 0.5) 0;
  }

  .captions {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: auto;
    height: auto;
    align-self: stretch;
  }
  .caption {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    max-width: 27rem;
  }
  .chapter__title { font-size: clamp(1.6rem, 2.4vw, 2.6rem); }
  .caption__head .rule { margin-top: clamp(1rem, 2.4vh, 1.5rem); }
  .chapter__text { padding-top: clamp(1.1rem, 2.4vh, 1.5rem); max-width: 26rem; }

  /* opening caption reads left-aligned in the text column */
  .hero { justify-items: start; text-align: left; }
  .hero__eyebrow { margin: 0 0 1.2rem; }
  .hero .mask { padding-left: 0; font-size: clamp(1.9rem, 3.1vw, 3.4rem); line-height: 1.1; }
  .scroll-hint {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    max-width: 17rem;
    margin-top: clamp(1.8rem, 4vh, 2.6rem);
    line-height: 2;
  }
  .scroll-hint__line:last-child { display: none; }

  .side { display: block; }

  /* a large outlined numeral fills the text column behind each chapter */
  .caption__num {
    display: block;
    position: absolute;
    z-index: -1;
    right: -0.04em;
    top: 50%;
    font-style: normal;
    font-size: clamp(9rem, 34vh, 22rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(188, 157, 101, 0.2);
    transform: translate3d(0, -46%, 0);
    opacity: 0;
    transition: opacity 1.6s var(--ease), transform 2.4s var(--ease);
    pointer-events: none;
    user-select: none;
  }
  .chapter.is-active .caption__num { opacity: 1; transform: translate3d(0, -50%, 0); }

  .hero__lead {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-size: clamp(1rem, 1.15vw, 1.2rem);
    color: var(--bone-3);
  }
  .facts {
    display: flex;
    gap: clamp(1.4rem, 2.6vw, 2.6rem);
    margin: clamp(1.6rem, 3.6vh, 2.4rem) 0 0;
    padding-top: clamp(1.1rem, 2.4vh, 1.5rem);
    border-top: 1px solid rgba(188, 157, 101, 0.3);
  }
  .facts dt {
    font-size: clamp(1.25rem, 1.6vw, 1.7rem);
    line-height: 1.1;
    color: var(--gold);
    font-variant-numeric: lining-nums;
    white-space: nowrap;
  }
  .facts dd {
    margin-top: 0.45rem;
    font: 0.56rem/1.4 var(--sans);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--bone-3);
  }
  .hero .facts,
  .hero .hero__lead {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
    transition: opacity 1.3s var(--ease), transform 1.3s var(--ease);
  }
  .hero.is-active .hero__lead { opacity: 1; transform: none; transition-delay: 0.8s; }
  .hero.is-active .facts { opacity: 1; transform: none; transition-delay: 1s; }
  .scroll-hint { margin-top: clamp(1.4rem, 3vh, 2rem); }
}

/* Phones and portrait windows: a 4:5 window on the film, caption stacked below */
@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  :root { --track: 1050vh; }

  .frame {
    --head: 84px;
    --cap: 214px;
    --gaps: 70px;
    --feather: 0px;
    --screen-w: min(calc(100vw - 2 * var(--gutter)), 34rem, calc((100vh - var(--head) - var(--cap) - var(--gaps)) * 4 / 5));
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }
  @supports (height: 100svh) {
    .frame { --screen-w: min(calc(100vw - 2 * var(--gutter)), 34rem, calc((100svh - var(--head) - var(--cap) - var(--gaps)) * 4 / 5)); }
  }
  .frame { --radius: 24px; }
  .screen { aspect-ratio: 4 / 5; }

  .timeline { margin: 18px 0 22px; }
  .timeline__name { display: none; }

  .caption { grid-template-columns: minmax(0, 1fr); }
  .hero .mask { font-size: clamp(1.6rem, 6.8vw, 2rem); }
  .chapter__title { font-size: clamp(1.35rem, 5.6vw, 1.65rem); }
  .caption__head .rule { margin-top: 0.8rem; }
  .chapter__text { padding-top: 0.9rem; font-size: 0.98rem; line-height: 1.58; }
  .scroll-hint { margin-top: 1.4rem; }
}

@media (max-width: 760px) {
  .details { grid-template-columns: 1fr; text-align: center; }
  .coda__actions { flex-direction: column; }
  .button { width: 100%; max-width: 20rem; text-align: center; }
}

/* ------------------------------------------------------ Motion & fallbacks */

@media (prefers-reduced-motion: reduce) {
  .mask > span,
  .hero__eyebrow > span,
  .chapter__text,
  .rule,
  .js .screen-wrap { transform: none !important; }
  .scroll-hint__text { animation: none; }
  .js .reveal { transform: none; }
}

.no-js .story { height: auto; }
.no-js .stage { position: relative; height: auto; }
.no-js .frame { position: relative; height: auto; padding-bottom: 12vh; }
.no-js .captions { height: auto; }
.no-js .caption {
  position: relative;
  opacity: 1;
  visibility: visible;
  margin-bottom: 3rem;
}
.no-js .mask > span,
.no-js .hero__eyebrow > span,
.no-js .chapter__text { opacity: 1; transform: none; }
.no-js .rule { transform: none; }
.no-js .timeline,
.no-js .scroll-hint { display: none; }

/* pages without a film of their own: a deep tone in place of the video */
.vbg--tone {
  background:
    radial-gradient(ellipse 70% 85% at 72% 42%, var(--glow) 0%, transparent 70%),
    var(--tone);
}

/* the original banner of each wine line, at the top of its page */
.showcase { margin: 0 auto clamp(30px, 6vh, 70px); }
.showcase img { width: 100%; }

/* ------------------------------------------------------ Page transitions */

/* a dark veil with the crest between pages */
.pt {
  position: fixed;
  z-index: 70;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--ink);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s var(--ease), visibility 0s linear 0.55s;
}
.pt.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.4s var(--ease), visibility 0s;
}
.pt img {
  width: clamp(62px, 5.5vw, 88px);
  height: auto;
  opacity: 0.92;
  transform: scale(0.96);
  transition: transform 0.9s var(--ease);
}
.pt.is-on img { transform: none; }
.no-js .pt { display: none; }

/* ------------------------------------------------------------- Age gate */

.gate {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: var(--ink);
  color: var(--bone);
  text-align: center;
  transition: opacity 0.8s var(--ease);
}
.gate:focus { outline: none; }
.gate.is-out { opacity: 0; pointer-events: none; }
.gate__box {
  display: grid;
  justify-items: center;
  gap: clamp(1.6rem, 4vh, 2.4rem);
  max-width: 34rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s var(--ease) 0.1s, transform 1.2s var(--ease) 0.1s;
}
.gate.is-on .gate__box { opacity: 1; transform: none; }
.gate.is-out .gate__box { opacity: 0; transition-duration: 0.4s; transition-delay: 0s; }
/* while the notice is pending the veils under it stay plain, so only one crest shows */
.age-pending .intro__logo,
.age-pending .pt img { visibility: hidden; animation: none; }
.gate__logo { width: clamp(200px, 26vw, 320px); height: auto; }
.gate__text {
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--bone-2);
}
.gate__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; justify-content: center; }
.gate__btn {
  appearance: none;
  min-width: 9.5rem;
  padding: 1.05em 2em;
  border: 1px solid var(--bone-4);
  border-radius: 999px;
  background: transparent;
  color: var(--bone-2);
  font: 400 0.68rem/1 var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.gate__btn:hover { border-color: var(--bone); color: var(--bone); }
.gate__btn--yes { border-color: var(--gold); color: var(--ink); background: var(--gold); }
.gate__btn--yes:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.gate__btn:focus { outline: none; }
.gate__btn:focus-visible { outline: 1px solid rgba(188, 157, 101, 0.8); outline-offset: 5px; }
.gate-open { overflow: hidden; }

/* ---------------------------------------------------- WhatsApp booking */

.wa {
  position: fixed;
  z-index: 45;
  right: clamp(16px, 2.4vw, 32px);
  bottom: clamp(16px, 2.4vw, 32px);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  height: 52px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(13, 12, 11, 0.28);
  transition: background-color 0.4s var(--ease), opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.wa svg { width: 22px; height: 22px; flex: none; }
.wa__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font: 400 0.62rem/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: max-width 0.6s var(--ease), margin 0.6s var(--ease);
  margin-right: -0.7rem;
}
.wa:hover, .wa:focus-visible { background: var(--bone); }
.wa:hover .wa__label, .wa:focus-visible .wa__label { max-width: 12rem; margin-right: 0.2rem; }
.js:not(.is-ready) .wa,
.gate-open .wa,
.menu-open ~ .wa { opacity: 0; transform: translateY(12px); pointer-events: none; }

/* --------------------------------------- Demo only: whose proposal it is */

.demo-tag {
  position: fixed;
  z-index: 95; /* above the age gate too: it is the first thing a visitor sees */
  left: clamp(16px, 2.4vw, 32px);
  bottom: clamp(16px, 2.4vw, 32px);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: calc(100vw - 110px);
  min-height: 40px;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(188, 157, 101, 0.45);
  border-radius: 999px;
  background: rgba(13, 12, 11, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font: 400 0.56rem/1.4 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(241, 236, 228, 0.7);
  transition: border-color 0.4s var(--ease), opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.demo-tag b { font-weight: 400; color: var(--gold); }
.demo-tag:hover, .demo-tag:focus-visible { border-color: var(--gold); }
/* on screen from the first moment, the age notice included; out of the way of the open menu */
.menu-open ~ .demo-tag { opacity: 0; transform: translateY(12px); pointer-events: none; }
@media (max-width: 760px) {
  .demo-tag { flex-direction: column; align-items: flex-start; gap: 0.1rem; border-radius: 18px; letter-spacing: 0.14em; }
}

/* ------------------------------------------------------- Map (Contacto) */

.map-sec { padding-top: clamp(60px, 9vh, 100px); }
.map { margin: 0; aspect-ratio: 16 / 7; background: #e6e0d6; }
.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) sepia(0.3) contrast(1.02) brightness(1.02);
}
.map__link { margin: 1.4rem 0 0; text-align: right; }
.map__link a {
  font: 400 0.68rem/1 var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-decoration: none;
}
.map__link a:hover { color: var(--graphite); }
@media (max-width: 760px) { .map { aspect-ratio: 4 / 3; } }

/* ------------------------------------------- Pairing finder (Nuestros vinos) */

.pair__chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 clamp(2rem, 5vh, 3rem); }
.pair__chip {
  appearance: none;
  padding: 0.95em 1.4em;
  border: 1px solid rgba(43, 42, 47, 0.18);
  border-radius: 999px;
  background: transparent;
  color: var(--slate);
  font: 400 0.64rem/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.pair__chip:hover { border-color: var(--gold); color: var(--graphite); }
.pair__chip[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: var(--paper); }
.pair__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pair__wine { animation: pair-in 0.6s var(--ease) both; }
.pair__wine[hidden] { display: none; }
@keyframes pair-in { from { opacity: 0; transform: translateY(10px); } }
.pair__wine a {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  height: 100%;
  padding: 1.1rem 1.3rem 1.1rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(188, 157, 101, 0.35);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.pair__wine a:hover { background: rgba(255, 255, 255, 0.75); box-shadow: inset 0 0 0 1px var(--frame-line); }
.pair__img { display: grid; place-items: center; height: 132px; }
.pair__img img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.pair__line {
  display: block;
  font: 400 0.56rem/1.5 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.pair__text strong { display: block; margin: 0.35rem 0 0.45rem; font-weight: 400; font-size: 1.22rem; line-height: 1.2; color: var(--graphite); }
.pair__note {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--slate);
}
.wine { scroll-margin-top: 120px; }

/* ------------------------------------------------ Family timeline (Empresa) */

.tl { position: relative; margin-top: clamp(70px, 11vh, 120px); --when: 7.4rem; --to-line: 1.7rem; }
.tl__stage { position: relative; padding: clamp(30px, 6vh, 60px) 0 clamp(40px, 7vh, 70px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tl__stage::-webkit-scrollbar { display: none; }
.tl__track {
  position: relative;
  display: flex;
  gap: clamp(4.5rem, 8vw, 9.5rem);
  width: max-content;
  padding: 0 var(--gutter);
}
/* the line runs under the dates, with air above and below */
.tl__track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--when) + var(--to-line));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(188, 157, 101, 0.6) 5%, rgba(188, 157, 101, 0.6) 95%, transparent);
}
.tl__item { position: relative; flex: none; width: min(26rem, 80vw); scroll-snap-align: start; scroll-margin-left: var(--gutter); }
.tl__when { display: flex; flex-direction: column; justify-content: flex-end; gap: 0.7rem; height: var(--when); }
.tl__big { font: 400 clamp(3.4rem, 5.2vw, 4.8rem)/0.85 var(--serif); letter-spacing: 0.01em; color: var(--graphite); }
.tl__small { min-height: 1em; font: 400 0.6rem/1.2 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-deep); }
.tl__dot {
  position: absolute;
  left: 0;
  top: calc(var(--when) + var(--to-line) - 5.5px);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 0 6px rgba(188, 157, 101, 0.12);
}
.tl__title {
  margin: calc(var(--to-line) + 2.8rem) 0 0;
  font: 400 0.74rem/1.5 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.tl__text { max-width: 24rem; margin: 1.1rem 0 0; font-size: clamp(1.06rem, 1.12vw, 1.16rem); line-height: 1.85; color: #4b4a51; text-wrap: pretty; }
.tl__photos { display: flex; gap: 0.8rem; max-width: 24rem; margin-top: 1.8rem; }
.tl__photos .framed { flex: 1; margin: 0; }
.tl__progress { position: relative; height: 1px; margin: clamp(2.4rem, 6vh, 3.6rem) var(--gutter) 0; background: rgba(43, 42, 47, 0.12); }
.tl__progress span { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.sec--after-tl { padding-top: clamp(40px, 7vh, 80px); }
.more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.more-grid .more { margin: 0; }
.more-grid .more__body p { font-size: 1.04rem; line-height: 1.75; color: #4b4a51; }
@media (max-width: 760px) { .more-grid { grid-template-columns: minmax(0, 1fr); } }
.stats-sec--3 .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .stats-sec--3 .stats { grid-template-columns: minmax(0, 1fr); }
  .stats-sec--3 .stat { border-left: 0 !important; }
  .stats-sec--3 .stat + .stat { border-top: 1px solid rgba(188, 157, 101, 0.3); }
}

/* desktop: vertical scrolling moves the story sideways */
.tl.is-pinned .tl__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0 0;
  overflow: hidden;
  scroll-snap-type: none;
}
.tl.is-pinned .tl__track { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .pt, .pt img, .gate, .wa, .pair__wine { transition: none; animation: none; }
}

/* ------------------------------------------- Pairing: cards and preview */

.pair__img { display: flex; align-items: flex-end; justify-content: center; width: 74px; height: 140px; }
.pair__img img { width: auto; height: auto; max-width: 74px; max-height: 140px; object-fit: contain; }
.pair__img img.is-crest { align-self: center; max-width: 52px; opacity: 0.5; }
.pair__wine a { position: relative; cursor: pointer; }
.pair__wine a::after {
  content: "+";
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(188, 157, 101, 0.55);
  font: 400 0.95rem/1 var(--sans);
  color: var(--gold-deep);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.pair__wine a:hover::after { background: var(--gold); color: var(--paper); }

.pp { position: fixed; z-index: 85; inset: 0; display: grid; place-items: center; padding: var(--gutter); }
.pp[hidden] { display: none; }
.pp__scrim {
  position: absolute;
  inset: 0;
  background: rgba(13, 12, 11, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.pp__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.2rem);
  align-items: center;
  width: min(840px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: clamp(1.8rem, 4vw, 3.2rem);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--frame-line), 0 30px 80px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
}
.pp.is-on .pp__scrim, .pp.is-on .pp__panel { opacity: 1; }
.pp.is-on .pp__panel { transform: none; }
.pp__img { display: flex; align-items: center; justify-content: center; height: min(430px, 58vh); }
.pp__img img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.pp__img img.is-crest { max-width: 90px; opacity: 0.5; }
.pp__line { margin: 0; font: 400 0.6rem/1.5 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); }
.pp__title { margin: 0.5rem 0 1.4rem; font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.12; color: var(--graphite); }
.pp__label { margin: 0 0 0.6rem; font: 400 0.62rem/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--slate); }
.pp__text { margin: 0 0 1.9rem; font-size: 1.08rem; line-height: 1.72; color: #4b4a51; }
.pp__link { font: 400 0.66rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); text-decoration: none; }
.pp__link:hover { color: var(--graphite); }
.pp__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(43, 42, 47, 0.18);
  border-radius: 50%;
  background: var(--paper);
  color: var(--graphite);
  font: 300 1.4rem/1 var(--sans);
  cursor: pointer;
}
.pp__close:hover { border-color: var(--gold); }
.pp-open { overflow: hidden; }
@media (max-width: 640px) {
  .pp { place-items: end center; padding: 0; }
  .pp__panel { grid-template-columns: minmax(0, 1fr); border-radius: 22px 22px 0 0; max-height: 88vh; }
  .pp__img { height: 210px; }
}

/* ----------------------------------------------------------------- Award */

.award { display: flex; align-items: center; gap: 1.3rem; }
.award__medal { flex: none; width: clamp(104px, 9vw, 132px); height: auto; filter: drop-shadow(0 10px 18px rgba(43, 42, 47, 0.2)); }
.award__name { margin: 0; font-size: clamp(1.6rem, 2.3vw, 2.1rem); line-height: 1.1; color: var(--graphite); }
.award__meta { margin: 0.5rem 0 0; font: 400 0.6rem/1.75 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }
.band--award { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(2rem, 6vw, 5.5rem); }
.band--award .award__bottle { flex: 1 1 340px; margin: 0; }
.award--inline { margin-top: 2.2rem; padding-top: 1.7rem; border-top: 1px solid rgba(43, 42, 47, 0.12); }
.award--inline .award__medal { width: 86px; }
.award--inline .award__name { font-size: 1.4rem; }

/* ------------------------------------- Visitas: "Experiencias sensoriales" */

.sensory {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(110px, 16vh, 180px) var(--gutter);
  background: var(--ink);
  color: var(--bone);
}
.sensory .grain { z-index: -1; }
.sensory__bg .vbg__curtain {
  --fade: clamp(240px, 32vh, 360px);
  background-image:
    linear-gradient(90deg, rgba(13, 12, 11, 0.94) 0%, rgba(13, 12, 11, 0.7) 46%, rgba(13, 12, 11, 0.38) 100%),
    linear-gradient(180deg,
      rgba(13, 12, 11, 1.000) 0%,
      rgba(13, 12, 11, 0.957) calc(var(--fade) * 0.125),
      rgba(13, 12, 11, 0.844) calc(var(--fade) * 0.250),
      rgba(13, 12, 11, 0.684) calc(var(--fade) * 0.375),
      rgba(13, 12, 11, 0.500) calc(var(--fade) * 0.500),
      rgba(13, 12, 11, 0.316) calc(var(--fade) * 0.625),
      rgba(13, 12, 11, 0.156) calc(var(--fade) * 0.750),
      rgba(13, 12, 11, 0.043) calc(var(--fade) * 0.875),
      rgba(13, 12, 11, 0.000) calc(var(--fade) * 1.000),
      rgba(13, 12, 11, 0.000) calc(100% - var(--fade) * 1.000),
      rgba(13, 12, 11, 0.043) calc(100% - var(--fade) * 0.875),
      rgba(13, 12, 11, 0.156) calc(100% - var(--fade) * 0.750),
      rgba(13, 12, 11, 0.316) calc(100% - var(--fade) * 0.625),
      rgba(13, 12, 11, 0.500) calc(100% - var(--fade) * 0.500),
      rgba(13, 12, 11, 0.684) calc(100% - var(--fade) * 0.375),
      rgba(13, 12, 11, 0.844) calc(100% - var(--fade) * 0.250),
      rgba(13, 12, 11, 0.957) calc(100% - var(--fade) * 0.125),
      rgba(13, 12, 11, 1.000) 100%);
}
.sensory__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
  max-width: 78rem;
  margin: 0 auto;
}
.sensory__title { margin: 0; font-weight: 400; font-size: clamp(2.5rem, 4.8vw, 4.6rem); line-height: 1.03; color: var(--bone); }
.sensory .rule { width: 56px; margin: clamp(1.4rem, 3vh, 2rem) 0 clamp(1.6rem, 3.4vh, 2.2rem); background: var(--gold); transform: none; }
.sensory__lead { max-width: 34rem; margin: 0 0 1.3rem; font-size: clamp(1.28rem, 1.75vw, 1.6rem); line-height: 1.5; color: var(--bone); }
.sensory__p { max-width: 34rem; margin: 0 0 2.1rem; font-size: clamp(1.03rem, 1.1vw, 1.13rem); line-height: 1.78; color: rgba(241, 236, 228, 0.74); }
.sensory__info { display: grid; gap: 0.55rem; max-width: 34rem; padding-top: 1.5rem; border-top: 1px solid rgba(188, 157, 101, 0.32); }
.sensory__info .ln { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--bone-2); }
.sensory__info .k { margin-right: 0.55rem; font: 400 0.6rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.sensory__info a { color: var(--bone); text-underline-offset: 0.2em; }
.sensory__info a:hover { color: var(--gold); }
.sensory__glasses { margin: 0; }
.sensory__glasses img { width: 100%; height: auto; filter: drop-shadow(0 34px 50px rgba(0, 0, 0, 0.55)); }
@media (max-width: 900px) {
  .sensory__inner { grid-template-columns: minmax(0, 1fr); }
  .sensory__glasses { order: -1; max-width: 560px; }
}

/* the visiting hours as cards */
.split--visits { align-items: start; }
.prose--cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.prose--cards .blk,
.prose--cards .blk + .blk { margin: 0; }
.prose--cards .blk {
  padding: 1.35rem 1.5rem 1.45rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 0 0 1px rgba(188, 157, 101, 0.32);
}
.prose--cards .blk:first-child { grid-column: 1 / -1; padding: 0 0 0.3rem; background: none; box-shadow: none; }
.prose--cards .blk:last-child { grid-column: 1 / -1; }
.prose--cards .mini:first-child { margin-top: 0; }
.btn-wa {
  display: inline-flex;
  gap: 0.6em;
  margin-top: 1.1rem;
  padding: 0.95em 1.45em;
  border-radius: 999px;
  background: var(--graphite);
  color: var(--paper);
  font: 400 0.6rem/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.35s var(--ease);
}
.btn-wa:hover { background: var(--gold-deep); }
.btn-wa { white-space: nowrap; letter-spacing: 0.14em; font-size: 0.56rem; }
@media (max-width: 700px) { .prose--cards { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------- Menu: wine search */

.nav__search {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.4em 0;
  border: 0;
  background: none;
  color: var(--bone-2);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.nav__search svg { width: 1.35em; height: 1.35em; }
.nav__search:hover { color: var(--gold); }
.on-light .nav__search { color: var(--slate); }
.on-light .nav__search:hover { color: var(--gold-deep); }
.menu__search {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: var(--gold);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sx {
  position: fixed;
  z-index: 86;
  inset: 0;
  overflow-y: auto;
  background: rgba(13, 12, 11, 0.97);
  color: var(--bone);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.sx[hidden] { display: none; }
.sx.is-on { opacity: 1; }
.sx__inner { max-width: 72rem; margin: 0 auto; padding: clamp(28px, 6vh, 70px) var(--gutter) 80px; }
.sx__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.4rem, 4vh, 2.4rem); }
.sx__title { margin: 0; font: 400 0.66rem/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.sx__close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--bone-4);
  border-radius: 50%;
  background: transparent;
  color: var(--bone);
  font: 300 1.5rem/1 var(--sans);
  cursor: pointer;
}
.sx__close:hover { border-color: var(--gold); color: var(--gold); }
.sx__field {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(188, 157, 101, 0.5);
}
.sx__field svg { width: 30px; height: 30px; flex: none; color: var(--gold); }
.sx__field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--bone);
  font: 400 clamp(1.6rem, 3.4vw, 2.6rem)/1.2 var(--serif);
  outline: none;
}
.sx__field input::placeholder { color: rgba(241, 236, 228, 0.35); }
/* the browser's own clear button (a blue cross in Chrome), drawn as a thin gold cross */
.sx__field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-left: 0.6rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3 3l12 12M15 3 3 15' stroke='%23bc9d65' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  cursor: pointer;
}
.sx__filters { display: grid; gap: 0.7rem; margin: 1.6rem 0 1.4rem; }
.sx__group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sx__chip {
  appearance: none;
  padding: 0.9em 1.3em;
  border: 1px solid var(--bone-4);
  border-radius: 999px;
  background: transparent;
  color: var(--bone-2);
  font: 400 0.6rem/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.sx__chip:hover { border-color: var(--gold); color: var(--bone); }
.sx__chip[aria-pressed="true"] { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.sx__count { margin: 0 0 1.2rem; font: 400 0.6rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--bone-3); }
.sx__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
.sx__wine {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: center;
  height: 100%;
  padding: 0.9rem 1.1rem 0.9rem 0.8rem;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(188, 157, 101, 0.3);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.sx__wine:hover { background: rgba(241, 236, 228, 0.05); box-shadow: inset 0 0 0 1px var(--frame-line); }
.sx__img { display: flex; align-items: flex-end; justify-content: center; height: 108px; }
.sx__img img { width: auto; height: auto; max-width: 60px; max-height: 108px; object-fit: contain; }
.sx__img img.is-crest { align-self: center; max-width: 44px; filter: invert(1); opacity: 0.5; }
.sx__text strong { display: block; font-weight: 400; font-size: 1.15rem; line-height: 1.25; color: var(--bone); }
.sx__text span { display: block; margin-top: 0.35rem; font: 400 0.56rem/1.5 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.sx__text span + span { margin-top: 0.15rem; color: var(--bone-3); }
.sx__empty { margin: 2rem 0; font-size: 1.15rem; color: var(--bone-3); }
.sx-open { overflow: hidden; }

/* ------------------------------------- Long texts that open on demand */

.more {
  margin: 0 0 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 0 1px rgba(188, 157, 101, 0.55);
  break-inside: avoid;
}
.more > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  list-style: none;
  cursor: pointer;
  font: 500 1.05rem/1.35 var(--serif);
  color: var(--gold-deep);
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after {
  content: "+";
  flex: none;
  font: 300 1.35rem/1 var(--sans);
  color: var(--gold);
  transition: transform 0.4s var(--ease);
}
.more[open] > summary::after { transform: rotate(45deg); }
.more > summary:hover { color: var(--graphite); }
.more__body { padding: 0 1.15rem 1.1rem; }
.more__body p { margin: 0 0 0.55em; }
.more__body p:last-child { margin-bottom: 0; }
.prose--cols .more { display: block; }
@supports (interpolate-size: allow-keywords) {
  .more { interpolate-size: allow-keywords; }
  .more::details-content { block-size: 0; overflow: hidden; transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete; }
  .more[open]::details-content { block-size: auto; }
}

/* the founder's cart, framed in gold */
.framebox {
  padding: clamp(1.6rem, 4vw, 3.2rem);
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px var(--frame-line);
}

/* ---------------------------------------- Exportaciones: over the grapes */

.dark-sec {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(110px, 16vh, 180px) var(--gutter);
  background: var(--ink);
  color: var(--bone);
}
.dark-sec .grain { z-index: -1; }
.dark-sec__bg .vbg__curtain {
  --fade: clamp(220px, 30vh, 340px);
  background-image:
    linear-gradient(90deg, rgba(13, 12, 11, 0.9) 0%, rgba(13, 12, 11, 0.62) 55%, rgba(13, 12, 11, 0.5) 100%),
    linear-gradient(180deg,
      rgba(13, 12, 11, 1.000) 0%,
      rgba(13, 12, 11, 0.957) calc(var(--fade) * 0.125),
      rgba(13, 12, 11, 0.844) calc(var(--fade) * 0.250),
      rgba(13, 12, 11, 0.684) calc(var(--fade) * 0.375),
      rgba(13, 12, 11, 0.500) calc(var(--fade) * 0.500),
      rgba(13, 12, 11, 0.316) calc(var(--fade) * 0.625),
      rgba(13, 12, 11, 0.156) calc(var(--fade) * 0.750),
      rgba(13, 12, 11, 0.043) calc(var(--fade) * 0.875),
      rgba(13, 12, 11, 0.000) calc(var(--fade) * 1.000),
      rgba(13, 12, 11, 0.000) calc(100% - var(--fade) * 1.000),
      rgba(13, 12, 11, 0.043) calc(100% - var(--fade) * 0.875),
      rgba(13, 12, 11, 0.156) calc(100% - var(--fade) * 0.750),
      rgba(13, 12, 11, 0.316) calc(100% - var(--fade) * 0.625),
      rgba(13, 12, 11, 0.500) calc(100% - var(--fade) * 0.500),
      rgba(13, 12, 11, 0.684) calc(100% - var(--fade) * 0.375),
      rgba(13, 12, 11, 0.844) calc(100% - var(--fade) * 0.250),
      rgba(13, 12, 11, 0.957) calc(100% - var(--fade) * 0.125),
      rgba(13, 12, 11, 1.000) 100%);
}
.dark-sec__inner { max-width: 78rem; margin: 0 auto; }
.dark-sec__title { max-width: 40rem; margin: 0; font-weight: 400; font-size: clamp(2.4rem, 4.4vw, 4.2rem); line-height: 1.05; color: var(--bone); }
.dark-sec .rule { width: 56px; margin: clamp(1.4rem, 3vh, 2rem) 0 clamp(2rem, 5vh, 3.2rem); background: var(--gold); transform: none; }
.dark-sec__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.dark-sec .prose p { color: rgba(241, 236, 228, 0.82); }
.dark-sec__lead p { font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.65; color: var(--bone) !important; }
.dark-sec .more { background: rgba(241, 236, 228, 0.05); box-shadow: inset 0 0 0 1px rgba(188, 157, 101, 0.5); }
.dark-sec .more > summary { color: var(--gold); }
.dark-sec .more > summary:hover { color: var(--bone); }
.page--tail { padding-top: clamp(80px, 12vh, 130px); }
@media (max-width: 860px) { .dark-sec__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------- Widgets */

/* Terroir (Nuestros vinos) */
.terroir {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: clamp(70px, 11vh, 120px) 0 clamp(60px, 9vh, 100px);
  padding: 0;
  list-style: none;
}
.terroir li {
  display: grid;
  justify-items: start;
  gap: 0.35rem;
  padding: 1.5rem 1.4rem 1.6rem;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(188, 157, 101, 0.45);
}
.terroir svg { width: 38px; height: 38px; margin-bottom: 0.6rem; color: var(--gold-deep); }
.terroir strong { font-weight: 400; font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1; color: var(--graphite); }
.terroir span { font-size: 0.98rem; line-height: 1.45; color: var(--slate); }
@media (max-width: 900px) { .terroir { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* La bodega en números (Empresa) */
.stats-sec { padding-top: clamp(40px, 7vh, 80px); }
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(188, 157, 101, 0.45);
  border-bottom: 1px solid rgba(188, 157, 101, 0.45);
}
.stat { display: grid; align-content: start; gap: 0.6rem; padding: clamp(1.6rem, 4vh, 2.4rem) clamp(1rem, 2vw, 1.8rem); }
.stat + .stat { border-left: 1px solid rgba(188, 157, 101, 0.3); }
.stat__num { font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1; color: var(--graphite); font-variant-numeric: lining-nums tabular-nums; }
.stat__label { font: 400 0.62rem/1.6 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid rgba(188, 157, 101, 0.3); }
}

/* Today's weather (Visitas guiadas) */
.weather {
  display: inline-grid;
  gap: 0.4rem;
  margin-top: 2rem;
  padding: 1.1rem 1.4rem 1.2rem;
  border-radius: 16px;
  background: rgba(241, 236, 228, 0.05);
  box-shadow: inset 0 0 0 1px rgba(188, 157, 101, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.weather[hidden] { display: none; }
.weather__kicker { margin: 0; font: 400 0.58rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.weather__now { display: flex; align-items: center; gap: 0.8rem; }
.weather__icon svg { display: block; width: 36px; height: 36px; color: var(--gold); }
.weather__temp { font-size: 2.2rem; line-height: 1; color: var(--bone); }
.weather__desc { font-size: 1.02rem; color: var(--bone-2); }
.weather__range { margin: 0; font: 400 0.6rem/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-3); }

/* the "+" of each pairing card sits in its own corner, never over the text */
.pair__text { padding-right: 30px; }

/* ======================================================= Round 8 additions */

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sec-lead { max-width: 38rem; margin: 0 0 clamp(1.8rem, 4vh, 2.6rem); font-size: clamp(1.05rem, 1.2vw, 1.2rem); line-height: 1.7; color: var(--slate); }

/* form fields, shared by the booking, order and contact forms */
.field { display: grid; gap: 0.45rem; margin: 0 0 1rem; }
.field > span { font: 400 0.6rem/1.3 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); }
.field small { font-size: inherit; letter-spacing: inherit; color: var(--slate); text-transform: none; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(43, 42, 47, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--graphite);
  font: 400 1.05rem/1.4 var(--serif);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(188, 157, 101, 0.2); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3.1rem;
  padding: 0 1.8em;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font: 400 0.64rem/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), opacity 0.35s var(--ease);
}
.btn-gold:hover { background: var(--graphite); color: var(--paper); }
.btn-gold:disabled { opacity: 0.4; cursor: not-allowed; background: var(--gold); color: var(--ink); }

/* Visitas: questions beside the booking card */
.visits { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.visits__intro p { margin: 0 0 1.6rem; font-size: 1.12rem; line-height: 1.7; color: var(--slate); }
.visits__list .more__body .mini { margin: 0.9rem 0 0.4rem; font: 400 0.6rem/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); }
.visits__list .more__body .mini:first-child { margin-top: 0; }
.book {
  position: sticky;
  top: 130px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 0 0 1px var(--frame-line);
}
.book__title { margin: 0 0 0.5rem; font-weight: 400; font-size: clamp(1.7rem, 2.4vw, 2.2rem); line-height: 1.1; color: var(--graphite); }
.book__note { margin: 0 0 1.6rem; font-size: 1rem; line-height: 1.55; color: var(--slate); }
.book__error { margin: 0 0 1rem; font-size: 0.98rem; color: #8a2b2b; }
.book .btn-gold { width: 100%; }
.sec--band { padding-top: clamp(50px, 8vh, 80px); }
.sec--band .band { margin-top: 0; }
@media (max-width: 900px) { .visits { grid-template-columns: minmax(0, 1fr); } .book { position: static; } }

/* Visitas: reviews */
.reviews { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.reviews .product { justify-self: center; }
.reviews__score { display: flex; align-items: center; gap: 1.1rem; margin: 0 0 2rem; }
.reviews__num { font-size: clamp(3.4rem, 5vw, 4.6rem); line-height: 1; color: var(--graphite); }
.reviews__stars { display: flex; gap: 4px; }
.reviews__stars svg { width: 20px; height: 20px; fill: var(--gold); }
.reviews__meta { font: 400 0.62rem/1.6 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--slate); }
.reviews__kicker { margin: 0 0 0.9rem; font: 400 0.62rem/1.4 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); }
.reviews__list { display: grid; gap: 0.7rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.reviews__list li { position: relative; padding-left: 1.6rem; font-size: 1.12rem; line-height: 1.5; color: #4b4a51; }
.reviews__list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.8rem; height: 1px; background: var(--gold); }
.reviews__link { font: 400 0.64rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); text-decoration: none; }
.reviews__link:hover { color: var(--graphite); }
@media (max-width: 760px) { .reviews { grid-template-columns: minmax(0, 1fr); } }

/* Nuestros vinos: compare */
.cmp { overflow-x: auto; padding-bottom: 0.4rem; }
.cmp__grid { display: grid; grid-template-columns: minmax(9rem, 0.8fr) repeat(3, minmax(13rem, 1fr)); min-width: 50rem; }
.cmp__corner, .cmp__head { padding: 0 0.9rem 1.2rem; }
.cmp__head { display: grid; gap: 1rem; align-content: start; }
.cmp__pick select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(188, 157, 101, 0.55);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--graphite);
  font: 400 0.98rem/1.3 var(--serif);
}
.cmp__wine { display: grid; justify-items: center; gap: 0.8rem; color: inherit; text-decoration: none; text-align: center; }
.cmp__img { display: flex; align-items: flex-end; justify-content: center; height: 190px; }
.cmp__img img { width: auto; height: auto; max-height: 190px; max-width: 130px; object-fit: contain; }
.cmp__img img.is-crest { align-self: center; max-width: 64px; opacity: 0.5; }
.cmp__wine strong { font-weight: 400; font-size: 1.15rem; line-height: 1.25; color: var(--graphite); }
.cmp__wine:hover strong { color: var(--gold-deep); }
.cmp__label, .cmp__cell { padding: 0.95rem 0.9rem; border-top: 1px solid rgba(188, 157, 101, 0.32); }
.cmp__label { font: 400 0.6rem/1.5 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }
.cmp__cell { font-size: 1.02rem; line-height: 1.5; color: #4b4a51; }
.cmp__none { color: rgba(43, 42, 47, 0.3); }

/* Nuestros vinos: order */
.order { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.order__group + .order__group { margin-top: 2rem; }
.order__line { margin: 0 0 0.6rem; font: 400 0.64rem/1.4 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); }
.order__group ul { margin: 0; padding: 0; list-style: none; }
.order__row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid rgba(43, 42, 47, 0.08);
  transition: background-color 0.3s var(--ease);
}
.order__row.is-on { background: rgba(188, 157, 101, 0.1); }
.order__img { display: flex; align-items: center; justify-content: center; height: 64px; }
.order__img img { width: auto; height: auto; max-height: 64px; max-width: 44px; object-fit: contain; }
.order__img img.is-crest { max-width: 30px; opacity: 0.5; }
.order__name { font-size: 1.06rem; line-height: 1.3; color: var(--graphite); }
.stepper { display: inline-flex; align-items: center; gap: 0.2rem; padding: 0.2rem; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(188, 157, 101, 0.5); }
.stepper button {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--gold-deep);
  font: 400 1.1rem/1 var(--sans);
  cursor: pointer;
}
.stepper button:hover { background: var(--gold); color: var(--paper); }
.stepper output { min-width: 1.6rem; text-align: center; font: 400 0.95rem/1 var(--sans); color: var(--graphite); }
.order__summary {
  position: sticky;
  top: 130px;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 0 0 1px var(--frame-line);
}
.order__title { margin: 0 0 1rem; font-weight: 400; font-size: 1.6rem; color: var(--graphite); }
.order__list { display: grid; gap: 0.45rem; margin: 0 0 0.8rem; padding: 0; list-style: none; font-size: 1.02rem; color: #4b4a51; }
.order__list span { color: var(--gold-deep); }
.order__total { margin: 0 0 1.4rem; font: 400 0.62rem/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--slate); }
.order__summary .btn-gold { width: 100%; }
@media (max-width: 900px) { .order { grid-template-columns: minmax(0, 1fr); } .order__summary { position: static; } }

/* Wine sheets: share */
.share {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin: 1.2rem 0 0 0.6rem;
  padding: 0.75em 1.2em;
  border: 1px solid rgba(188, 157, 101, 0.55);
  border-radius: 999px;
  background: transparent;
  color: var(--gold-deep);
  font: 400 0.58rem/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  vertical-align: middle;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.share svg { width: 15px; height: 15px; }
.share:hover { background: var(--gold); color: var(--paper); }
.share__menu {
  display: inline-flex;
  gap: 0.4rem;
  margin: 1.2rem 0 0 0.5rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--frame-line), 0 10px 30px rgba(43, 42, 47, 0.12);
  vertical-align: middle;
}
.share__menu a, .share__menu button {
  padding: 0.7em 1.1em;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--graphite);
  font: 400 0.58rem/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.share__menu a:hover, .share__menu button:hover { background: rgba(188, 157, 101, 0.18); }

/* Contacto: form */
.contact { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact__intro p { font-size: 1.12rem; line-height: 1.7; color: var(--slate); }
.contact__form {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 0 0 1px var(--frame-line);
}
.hp { position: absolute; left: -9999px; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } .field-row { grid-template-columns: minmax(0, 1fr); } }

/* thank-you page */
.thanks { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 100vh; min-height: 100svh; padding: 140px var(--gutter) 90px; overflow: hidden; background: var(--ink); color: var(--bone); text-align: center; }
.thanks .grain { z-index: -1; }
.thanks__box { display: grid; justify-items: center; gap: 1.4rem; max-width: 34rem; }
.thanks__box img { width: 78px; height: auto; }
.thanks__title { margin: 0; font-weight: 400; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; }
.thanks__text { margin: 0 0 0.8rem; font-size: 1.15rem; line-height: 1.6; color: var(--bone-2); }

/* Home: Instagram */
.igw {
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 0 0 1px var(--frame-line), 0 24px 60px rgba(43, 42, 47, 0.07);
}
.igw__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1.1rem; }
.igw__profile { display: flex; align-items: center; gap: 0.9rem; min-width: 0; color: var(--graphite); text-decoration: none; }
.igw__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 2px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #e3cb8f, #b08a4a, #8a6a32, #d8bb7a, #e3cb8f);
}
.igw__avatar img { width: 100%; height: 100%; padding: 10px; border-radius: 50%; background: var(--ink); object-fit: contain; box-shadow: 0 0 0 2px var(--paper); }
.igw__names { display: grid; gap: 0.2rem; min-width: 0; }
.igw__names strong { font-size: 1.08rem; font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
.igw__names span { font: 400 0.58rem/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); }
.igw__profile:hover strong { color: var(--gold-deep); }
.igw__follow {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.85em 1.4em;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font: 400 0.62rem/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.igw__follow svg { width: 15px; height: 15px; }
.igw__follow:hover { background: var(--graphite); color: var(--paper); }
.igw__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.igw__grid a { position: relative; display: block; overflow: hidden; border-radius: 12px; }
.igw__grid img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform 1.2s var(--ease); }
.igw__reel { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45)); }
.igw__reel svg { display: block; width: 100%; height: 100%; }
.igw__hover { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(13, 12, 11, 0.42); color: #fff; opacity: 0; transition: opacity 0.4s var(--ease); }
.igw__hover svg { width: 30px; height: 30px; }
.igw__grid a:hover img, .igw__grid a:focus-visible img { transform: scale(1.06); }
.igw__grid a:hover .igw__hover, .igw__grid a:focus-visible .igw__hover { opacity: 1; }
.igw__more { display: block; width: fit-content; margin: 1.3rem auto 0.3rem; font: 400 0.64rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); text-decoration: none; }
.igw__more:hover { color: var(--graphite); }
@media (max-width: 960px) { .igw__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .igw__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .igw__avatar { width: 48px; height: 48px; }
  .igw__avatar img { padding: 8px; }
  .igw__names strong { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .igw__follow { justify-content: center; width: 44px; height: 44px; padding: 0; }
  .igw__follow svg { width: 18px; height: 18px; }
  .igw__follow span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* gentle motion: photos drift against the scroll, bottles lean in on hover */
.framed > img.is-drift { transform: translateY(var(--py, 0)) scale(1.07); will-change: transform; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .product img, .line__img img { transition: transform 0.9s var(--ease); }
  .product:hover img { transform: translateY(-6px) rotate(-1.2deg); }
  .line:hover .line__img img { transform: translateY(-8px) rotate(-1.5deg); }
}

/* language switch */
.nav__lang {
  margin-left: 0.2rem;
  padding: 0.45em 0.75em 0.4em !important;
  border: 1px solid rgba(188, 157, 101, 0.55);
  border-radius: 999px;
  color: var(--gold) !important;
  letter-spacing: 0.18em;
}
.nav__lang::after { display: none !important; }
.nav__lang:hover { background: var(--gold); color: var(--ink) !important; }
.on-light .nav__lang { color: var(--gold-deep) !important; }
.on-light .nav__lang:hover { color: var(--paper) !important; }
.menu__lang { color: var(--gold) !important; }

/* home, phones and tablets: the bottle stands beside the signature and the pair
   of bottles stays small and centred above the list, so nothing floats alone */
@media (max-width: 860px) {
  .letter__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.2rem; }
  .letter__body > * { grid-column: 1 / -1; }
  .letter__body .letter__sign { grid-column: 1; align-self: end; }
  .letter__aside { grid-column: 2; grid-row: auto; flex-direction: row; justify-content: flex-end; align-items: flex-end; gap: 0; margin: 0; }
  .letter__bottle { width: 66px; }
  .cards__bottles { margin: 0 auto 0.6rem; }
  .cards__bottles img { max-width: 210px; }
}

/* timeline: smaller dates and generation numerals */
.tl { --when: 5.2rem; }
.tl__big { font-size: clamp(2.1rem, 2.9vw, 2.8rem); }

/* compare: cards on phones */
.cmp__cards { display: none; }
@media (max-width: 760px) {
  .cmp__grid { display: none; }
  .cmp__cards { display: grid; gap: 1rem; }
  .cmp__card { display: grid; gap: 1rem; padding: 1.2rem; border-radius: 18px; background: rgba(255, 255, 255, 0.45); box-shadow: inset 0 0 0 1px rgba(188, 157, 101, 0.45); }
  .cmp__card .cmp__img { height: 160px; }
  .cmp__card .cmp__img img { max-height: 160px; }
  .cmp__card dl { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 0.6rem 1rem; margin: 0; }
  .cmp__card dt { font: 400 0.56rem/1.6 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); }
  .cmp__card dd { margin: 0; font-size: 0.98rem; line-height: 1.45; color: #4b4a51; }
}

/* contact: two ways to send */
.contact__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0 1.8em;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: transparent;
  color: var(--gold-deep);
  font: 400 0.64rem/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.btn-line:hover { background: var(--gold); color: var(--ink); }

/* ======================================================= Round 10 additions */

/* galleries: restored photos, large, framed in gold; they open in the viewer */
.gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.9rem, 1.6vw, 1.4rem); margin-top: clamp(2.4rem, 5vh, 3.4rem); }
.gal--prod { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gal__item--machine img { object-position: 50% 42%; }
.gal--salas { --ar: 4 / 3; }
.gal--tl { gap: 0.8rem; margin-top: 1.8rem; --ar: 1 / 1; }
.gal__item { position: relative; margin: 0; }
.gal__item--wide { grid-column: 1 / -1; }
.gal__link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: var(--ar, 16 / 10);
  border-radius: clamp(16px, 1.6vw, 24px);
  background: #141210;
  cursor: zoom-in;
}
.gal__item--wide .gal__link { aspect-ratio: 21 / 9; }
.gal__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--frame-line); pointer-events: none; }
.gal__link img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.6s var(--ease); }
.gal__link:hover img { transform: scale(1.035); filter: brightness(1.06); }
.gal__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(13, 12, 11, 0.55);
  color: var(--bone);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.gal__zoom svg { width: 17px; height: 17px; }
.gal__link:hover .gal__zoom, .gal__link:focus-visible .gal__zoom { opacity: 1; transform: none; }
@media (hover: none) { .gal__zoom { opacity: 0.9; transform: none; } }
.gal__cap { margin: 1.1rem auto 0; max-width: 40rem; font-size: clamp(1.05rem, 1.2vw, 1.2rem); line-height: 1.6; color: #4b4a51; text-align: center; }
.gal__more { margin: clamp(1.6rem, 4vh, 2.4rem) 0 0; text-align: center; }
@media (max-width: 760px) {
  .gal, .gal--prod { grid-template-columns: minmax(0, 1fr); }
  .gal--tl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gal__item--wide .gal__link { aspect-ratio: 16 / 10; }
}

/* the photo viewer */
.lb {
  position: fixed;
  z-index: 95;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: rgba(13, 12, 11, 0.96);
  color: var(--bone);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.lb[hidden] { display: none; }
.lb.is-on { opacity: 1; }
.lb__stage { display: grid; place-items: center; min-height: 0; padding: clamp(60px, 8vh, 84px) clamp(64px, 7vw, 110px) 0; }
.lb__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--frame-line), 0 30px 80px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
}
.lb__img.is-in { opacity: 1; transform: none; }
.lb__foot { padding: 1.1rem var(--gutter) 1.5rem; text-align: center; }
.lb__cap { margin: 0 auto; max-width: 46rem; font-size: 1.08rem; line-height: 1.5; color: var(--bone-2); }
.lb__count { margin: 0.55rem 0 0; font: 400 0.6rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.lb__btn, .lb__close {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--bone-4);
  border-radius: 50%;
  background: rgba(13, 12, 11, 0.45);
  color: var(--bone);
  font: 300 1.8rem/1 var(--sans);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.lb__btn:hover, .lb__close:hover { border-color: var(--gold); color: var(--gold); }
.lb__btn[hidden] { display: none; }
.lb__prev { left: clamp(10px, 2vw, 28px); top: 50%; transform: translateY(-50%); }
.lb__next { right: clamp(10px, 2vw, 28px); top: 50%; transform: translateY(-50%); }
.lb__close { top: clamp(12px, 2vw, 24px); right: clamp(12px, 2vw, 24px); font-size: 1.5rem; }
.lb-open { overflow: hidden; }
.lb-open .wa { opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
  .lb__stage { padding: 66px 12px 0; }
  .lb__btn { top: auto; bottom: 18px; transform: none; width: 46px; height: 46px; }
  .lb__prev { left: 16px; }
  .lb__next { right: 16px; }
  .lb__foot { padding: 1rem 74px 1.4rem; }
}

/* Empresa: the panel and the family photos, larger */
.fam {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr) minmax(0, 0.92fr);
  grid-auto-rows: clamp(400px, 62vh, 620px);
  gap: clamp(0.9rem, 1.8vw, 1.5rem);
  margin-top: clamp(1.6rem, 4vh, 2.6rem);
}
.fam .panel { min-height: 0; height: 100%; }
.fam .gal__link { height: 100%; aspect-ratio: auto; }
@media (max-width: 860px) {
  .fam { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .fam .panel { grid-column: 1 / -1; }
  .fam .gal__link { aspect-ratio: 3 / 5; }
}
.tl__item--wide { width: min(38rem, 86vw); }

/* Exportaciones: the panel as a band above the production photos */
.panel--band { flex-direction: row; gap: clamp(1.2rem, 3vw, 2.2rem); min-height: 0; padding: clamp(1.5rem, 3vw, 2.2rem) clamp(1.6rem, 4vw, 3rem); }
.panel--band img { width: clamp(44px, 4vw, 56px); }
.panel--band .panel__text { margin: 0; text-align: left; }
@media (max-width: 760px) { .panel--band { flex-direction: column; } .panel--band .panel__text { text-align: center; } }

/* Exportaciones (dark): the lead across, the boxes in two columns across */
.dark-sec__grid--stack { grid-template-columns: minmax(0, 1fr); gap: clamp(1.8rem, 4vh, 2.6rem); }
.dark-sec__grid--stack .dark-sec__lead { max-width: 64rem; }
.dark-sec__boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem 1rem; align-items: start; }
.dark-sec__boxes > .blk { grid-column: 1 / -1; max-width: 64rem; }
.dark-sec__boxes .more { margin: 0; }
@media (max-width: 760px) { .dark-sec__boxes { grid-template-columns: minmax(0, 1fr); } }

/* Visitas: "Experiencias sensoriales" across the whole width */
.sensory__inner--wide { display: block; }
.sensory__cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.sensory__inner--wide .sensory__lead,
.sensory__inner--wide .sensory__p,
.sensory__inner--wide .sensory__info { max-width: none; }
.sensory__inner--wide .sensory__info { padding-top: 0; border-top: 0; }
@media (max-width: 860px) { .sensory__cols { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; } }

/* Visitas: questions in two columns, the booking card across */
.visits--stack { display: block; }
.visits--stack .visits__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem 1rem; align-items: start; }
.visits--stack .visits__list .more { margin: 0; }
.book--wide { position: static; display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 2fr); gap: clamp(1.4rem, 4vw, 3.4rem); align-items: start; margin-top: clamp(2.6rem, 6vh, 4rem); }
.book--wide .book__form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
.book--wide .field-row { display: contents; }
.book--wide .field:has(textarea), .book--wide .book__error, .book--wide .btn-gold { grid-column: 1 / -1; }
.book--wide .btn-gold { width: auto; justify-self: start; }
@media (max-width: 900px) { .book--wide { grid-template-columns: minmax(0, 1fr); } .book--wide .book__form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .visits--stack .visits__list, .book--wide .book__form { grid-template-columns: minmax(0, 1fr); } .book--wide .btn-gold { width: 100%; } }

/* Visitas: the two wines beside the reviews */
.duo { display: flex; justify-content: center; align-items: flex-end; gap: clamp(1rem, 3vw, 2.4rem); margin: 0; }
.duo img { height: clamp(300px, 48vh, 460px); width: auto; filter: drop-shadow(0 18px 22px rgba(43, 42, 47, 0.16)); }

/* Contacto: the intro above, the form across */
.contact--stack { grid-template-columns: minmax(0, 1fr); gap: clamp(1rem, 3vh, 1.8rem); }
.contact--stack .contact__form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
.contact--stack .field-row { display: contents; }
.contact--stack .field:has(textarea), .contact--stack .book__error, .contact--stack .contact__actions { grid-column: 1 / -1; }
@media (max-width: 760px) { .contact--stack .contact__form { grid-template-columns: minmax(0, 1fr); } }

/* Nuestros vinos: the historic label as a special piece, over the pouring wine */
.heritage__inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2.4rem, 6vw, 6rem); align-items: center; max-width: 78rem; margin: 0 auto; }
.heritage__label { justify-self: center; width: min(100%, 440px); margin: 0; }
.heritage__label img { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55)); }
.heritage__kicker { margin: 0; font: 400 0.64rem/1.4 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.heritage__name { margin: 0.9rem 0 0; font-weight: 400; font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.08; color: var(--bone); }
.heritage .rule { width: 56px; margin: 1.6rem 0 1.8rem; background: var(--gold); transform: none; }
.heritage__caption { margin: 0 0 1.6rem; font-size: clamp(1.25rem, 1.7vw, 1.55rem); line-height: 1.55; color: var(--bone-2); }
.heritage__meta { margin: 0; font: 400 0.6rem/1.8 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--bone-3); }
@media (max-width: 860px) {
  .heritage__inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .heritage .rule { margin-left: auto; margin-right: auto; }
  .heritage__label { width: min(78%, 340px); }
}

/* Bodega: the long text opens from its title */
.tale > summary { display: block; list-style: none; cursor: pointer; }
.tale > summary::-webkit-details-marker { display: none; }
.tale .dark-sec__title { max-width: none; }
.tale__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.95em 1.5em;
  border: 1px solid rgba(188, 157, 101, 0.6);
  border-radius: 999px;
  color: var(--gold);
  font: 400 0.62rem/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.tale__cta::after { content: "+"; font-size: 1.15rem; line-height: 0.6; transition: transform 0.4s var(--ease); }
.tale[open] .tale__cta::after { transform: rotate(45deg); }
.tale > summary:hover .tale__cta { background: var(--gold); color: var(--ink); }
.tale__less, .tale[open] .tale__more { display: none; }
.tale[open] .tale__less { display: inline; }
.tale__body { margin-top: clamp(1.8rem, 4vh, 2.6rem); columns: 2 22rem; column-gap: clamp(2rem, 5vw, 4.5rem); }
.tale__body .blk { break-inside: avoid; margin: 0 0 1.1em; }
.tale__body p { font-size: clamp(1.03rem, 1.1vw, 1.13rem); line-height: 1.78; }
@supports (interpolate-size: allow-keywords) {
  .tale { interpolate-size: allow-keywords; }
  .tale::details-content { block-size: 0; overflow: hidden; transition: block-size 0.5s var(--ease), content-visibility 0.5s allow-discrete; }
  .tale[open]::details-content { block-size: auto; }
}
.pair-photos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(1rem, 3vw, 2.4rem); margin-top: clamp(60px, 9vh, 100px); }
.pair-photos .framed { flex: 0 1 auto; }

/* the films on the long white wine pages */
.vband { aspect-ratio: 21 / 9; margin: clamp(2.6rem, 6vh, 4rem) 0 0; background: #ebe6de; }
.vband video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .vband { aspect-ratio: 16 / 10; } }

.dark-sec__boxes { max-width: none; }
.dark-sec__boxes > .blk p { max-width: none; }
.tale__body { max-width: none; }

/* the viewer: the photo always fits above its caption */
.lb__img { max-height: calc(100vh - 230px); max-height: calc(100svh - 230px); }
@media (max-width: 640px) { .lb__img { max-height: calc(100svh - 250px); } }

/* ---- Round 11 ------------------------------------------------------------ */

/* contact details never underlined: phone, e-mail, web */
a[href^="mailto:"],
a[href^="tel:"] { text-decoration: none; }
.sensory__info a { text-decoration: none; }

/* Contacto: the details in small cards */
.info-cards { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.info-card {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.45rem 1rem;
  padding: 1rem 1.3rem 1.05rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 0 1px rgba(188, 157, 101, 0.55);
}
.info-card__k { font: 400 0.6rem/1.4 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); }
.prose .info-card__v { font-size: 1.06rem; line-height: 1.55; color: var(--graphite); text-decoration: none; overflow-wrap: anywhere; transition: color 0.3s var(--ease); }
.prose a.info-card__v:hover { color: var(--gold-deep); }
@media (max-width: 520px) { .info-card { grid-template-columns: minmax(0, 1fr); } }

/* Visitas: TripAdvisor's own widget under the highlights */
.reviews__ta { display: grid; justify-items: start; gap: 1.3rem; }
.reviews__ta .TA_links { margin: 0; padding: 0; list-style: none; }
.reviews__ta .TA_links img { width: 150px; height: auto; }
.reviews__ta.is-loaded .reviews__link { display: none; }

/* Wine sheets: the same boxes in the same order, aligned two by two */
.wine__boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 0.75rem; align-items: start; max-width: none; }
.wine__boxes .more { margin: 0; }
.wine__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.9rem; }
.wine__actions .ficha,
.wine__actions .share,
.wine__actions .share__menu { margin: 0; }
.wine__actions .ficha,
.wine__actions .share { box-sizing: border-box; height: 2.75rem; padding-top: 0; padding-bottom: 0; }

/* Home letter: Raúl Granata's photo on the left, his name above the title,
   the private cellar as a title */
.letter--photo .letter__body { display: block; }
.letter__kicker { margin: 0 0 1.1rem; font: 400 0.64rem/1.4 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-deep); }
.letter__cta {
  display: inline-grid;
  gap: 0.5rem;
  margin: 0.4rem 0 0;
  padding: 1.15rem 1.6rem 1.2rem;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--frame-line);
  text-decoration: none;
  transition: background-color 0.4s var(--ease);
}
.letter__cta-kicker { font: 400 0.6rem/1.4 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-deep); }
.letter__cta-title { font-size: clamp(1.45rem, 2vw, 1.85rem); line-height: 1.15; color: var(--graphite); }
.letter__cta-title span { display: inline-block; margin-left: 0.25em; color: var(--gold); transition: transform 0.4s var(--ease); }
.letter__cta:hover { background: rgba(188, 157, 101, 0.12); }
.letter__cta:hover .letter__cta-title span { transform: translateX(5px); }
@media (max-width: 860px) {
  .letter--photo { gap: 2.6rem; }
}

/* Nuestros vinos: the historic label's own words as the title */
.heritage__name--long { font-size: clamp(1.7rem, 2.7vw, 2.55rem); line-height: 1.2; }

@media (prefers-reduced-motion: reduce) {
  .gate__box { transition: none; }
}

/* ---- Round 12 ------------------------------------------------------------ */

/* gallery captions show only in the viewer, like the other photos */
.gal__cap { display: none; }

/* Clásicos: the glass being poured, on the page itself instead of in a frame */
.page { overflow-x: clip; }
.vband--bleed {
  width: 100vw;
  height: clamp(300px, 54vh, 580px);
  margin: clamp(3rem, 8vh, 5rem) calc(50% - 50vw) 0;
  aspect-ratio: auto;
  background: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}
.vband--bleed video { object-position: 35% 55%; }
@media (max-width: 760px) { .vband--bleed { height: clamp(240px, 44svh, 380px); } }

/* Bodega: the title on plain black (the opening video fades into it), then the vines,
   cut clean */
.tale-sec { padding-bottom: clamp(90px, 13vh, 150px); }
.vines { position: relative; height: clamp(300px, 60vh, 660px); overflow: hidden; background: var(--ink); }
.vines__video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .vines { height: clamp(240px, 46svh, 420px); } }

/* ---- Round 14 ------------------------------------------------------------ */

/* the first row of the menu also has "Maridajes" and "Comprar vinos": it tightens earlier
   so it never reaches the logo */
@media (max-width: 1660px) { .nav { gap: 1.05rem; font-size: 0.56rem; letter-spacing: 0.2em; } }
@media (max-width: 1300px) { .nav { gap: 0.8rem; font-size: 0.52rem; letter-spacing: 0.15em; } }
a.btn-line { text-decoration: none; }

.order-sec:first-child { padding-top: clamp(90px, 14vh, 150px); }

/* Contacto: the Instagram widget between the form and the map */
.insta-sec .igw { margin-top: 0.4rem; }

/* the menu link to Maridajes lands with the section title clear of the header */
#maridajes { scroll-margin-top: 70px; }

/* ---- Round 17 ------------------------------------------------------------ */

/* every bottle drawn from the same-size thumbnails: one height for all of them */
.order__img img:not(.is-crest) { width: auto; height: 72px; max-width: none; max-height: none; }
.order__img { height: 76px; }
.sx__img img:not(.is-crest) { width: auto; height: 108px; max-width: none; max-height: none; }
.cmp__img img:not(.is-crest) { width: auto; height: 190px; max-width: none; max-height: none; }
@media (max-width: 760px) { .cmp__card .cmp__img img:not(.is-crest) { height: 160px; } }

/* Comprar vinos: the pouring glass, turned so it stands clear of the title */
.vbg--shop .vbg__video { transform: scaleX(-1); }
/* the poster under it, mirrored like the video */
.vbg--shop::before { content: ""; position: absolute; inset: 0; background: inherit; transform: scaleX(-1); }

/* ---- Round 18 ------------------------------------------------------------ */

/* Cava: the text, and beside it the four small photos as a gallery. The photos are small
   originals, so the tiles stay small and the viewer shows them at their own size */
.split--cava { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.gal--cava { grid-template-columns: repeat(2, 160px); gap: 0.6rem; margin-top: 0; }
.gal--cava .gal__link { aspect-ratio: 16 / 7; border-radius: 10px; cursor: pointer; }
.gal--cava .gal__link:hover img { transform: none; filter: brightness(1.08); }
@media (max-width: 960px) {
  .split--cava { grid-template-columns: minmax(0, 1fr); }
  .gal--cava { justify-self: start; }
}
@media (max-width: 380px) { .gal--cava { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the toast, edge to edge, only a little cropped above and below; closer to the texts
   around it */
.cava-band { height: clamp(240px, 42vw, 620px); margin: clamp(52px, 7.5vh, 76px) 0 0; overflow: hidden; background: var(--ink); }
.cava-band video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.cava-band + .sec { padding-top: clamp(56px, 8vh, 84px); }
