
/* Layout concept: dark estate-label page. Full-bleed fog hero with the gold logo, a credentials strip of the five Cup of Excellence years, then alternating story / product / process bands on near-black with thin gold rules. */
:root {
  color-scheme: dark;
  --ink: #0b0a08;
  --ink-2: #14120e;
  --forest: #17261c;
  --gold: #c9a24b;
  --gold-hi: #e6cb85;
  --cream: #eee6d3;
  --mute: #a99f8a;
  --rule: rgba(201,162,75,.35);
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --body: "Jost", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--cream);
  font-family: var(--body); font-weight: 300; font-size: 17px; line-height: 1.65;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--ink); z-index: 30; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h3 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.wrap { max-width: 1160px; margin-inline: auto; }
.label { font-size: .74rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* Header */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(11,10,8,.92); backdrop-filter: blur(8px); margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))) calc(-1 * max(16px, env(safe-area-inset-right, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); border-bottom: 1px solid var(--rule); }
.nav { max-width: 1160px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--gold); white-space: nowrap; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav li a { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--cream); }
.nav li a:hover { color: var(--gold-hi); }
.btn { display: inline-block; font-family: var(--body); font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; padding: 14px 26px; border: 1px solid var(--gold); color: var(--gold); background: transparent; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--gold); color: var(--ink); }
.btn.solid { background: var(--gold); color: var(--ink); }
.btn.solid:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn.sm { padding: 10px 18px; }
@media (max-width: 760px) { .nav ul { display: none; } }

/* Hero */
.hero { position: relative; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))) calc(-1 * max(16px, env(safe-area-inset-right, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); padding-block: clamp(56px, 11vw, 140px); background: linear-gradient(180deg, rgba(11,10,8,.55) 0%, rgba(11,10,8,.72) 55%, var(--ink) 100%), url("../img/hero.jpg") center 35% / cover; text-align: center; }
.hero img.logo { width: min(640px, 92%); margin: 0 auto; filter: drop-shadow(0 8px 30px rgba(0,0,0,.6)); }
.hero p.lede { font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(1.25rem, 2.6vw, 1.7rem); max-width: 34ch; margin: 28px auto 0; color: var(--cream); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }

/* Credentials */
.creds { padding-block: clamp(40px, 6vw, 72px); text-align: center; }
.creds .label { display: block; margin-bottom: 26px; }
.years { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-block: 1px solid var(--rule); }
.years div { padding: 22px 8px; border-right: 1px solid var(--rule); }
.years div:last-child { border-right: 0; }
.years b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 4.6vw, 3.2rem); color: var(--gold-hi); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.years span { display: block; margin-top: 8px; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.creds .facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 40px; margin-top: 26px; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
@media (max-width: 640px) {
  .years { grid-template-columns: repeat(3, 1fr); }
  .years div:nth-child(3) { border-right: 0; }
  .years div:nth-child(-n+3) { border-bottom: 1px solid var(--rule); }
}

/* Sections */
section { padding-block: clamp(56px, 9vw, 112px); }
.head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); display: grid; gap: 14px; }
.head p.sub { color: var(--mute); max-width: 56ch; }

/* Historia */
.story { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.story > * { min-width: 0; }
.story .text { display: grid; gap: 22px; }
.story .text p { color: #d8cfba; max-width: 52ch; }
.story .sign { border-top: 1px solid var(--rule); padding-top: 18px; display: grid; gap: 2px; }
.story .sign strong { font-family: var(--display); font-weight: 500; font-size: 1.5rem; }
.story .sign span { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.story figure { margin: 0; position: relative; }
.story figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--rule); }
.story figcaption, .cap { margin-top: 10px; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

/* Cereza madura band */
.band { margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))) calc(-1 * max(16px, env(safe-area-inset-right, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); background: var(--forest); }
.band .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.band .grid > * { min-width: 0; }
.band img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--rule); }
.band blockquote { margin: 0; display: grid; gap: 18px; }
.band blockquote p { font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(1.7rem, 3.8vw, 2.6rem); line-height: 1.2; }
@media (max-width: 760px) { .band .grid { grid-template-columns: 1fr; } }

/* Catálogo */
.lot { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(28px, 4vw, 48px); border-top: 1px solid var(--rule); }
.lot > * { min-width: 0; }
.lot:nth-of-type(even) .pic { order: 2; }
.lot .pic { background: #000; border: 1px solid var(--rule); display: grid; place-items: center; }
.lot .pic img { width: 100%; max-height: 560px; object-fit: contain; }
.lot .info { display: grid; gap: 18px; }
.lot .info > p { color: #d8cfba; max-width: 46ch; }
dl.spec { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); }
dl.spec div { padding: 12px 14px; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); }
dl.spec div:nth-child(2n) { border-right: 0; }
dl.spec div:nth-last-child(-n+2) { border-bottom: 0; }
dl.spec dt { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
dl.spec dd { margin: 2px 0 0; font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chips span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; border: 1px solid var(--rule); padding: 8px 14px; color: var(--cream); }
.chips + p { margin-top: 14px; color: var(--mute); font-size: .92rem; }
@media (max-width: 820px) { .lot { grid-template-columns: 1fr; } .lot:nth-of-type(even) .pic { order: 0; } }

/* Proceso */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { min-width: 0; display: grid; gap: 12px; align-content: start; }
.steps img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--rule); }
.steps .n { font-family: var(--display); font-size: 1.1rem; color: var(--gold); letter-spacing: .12em; }
.steps h3 { font-size: 1.5rem; }
.steps p { font-size: .95rem; color: var(--mute); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .steps { grid-template-columns: 1fr; } }

/* Terroir */
.terroir { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.terroir figure { margin: 0; min-width: 0; }
.terroir img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--rule); }
.terroir .big { grid-row: span 2; }
.terroir .big img { aspect-ratio: 4 / 3.2; }
.terroir .sm img { aspect-ratio: 16 / 10; }
@media (max-width: 700px) { .terroir { grid-template-columns: 1fr; } .terroir .big { grid-row: auto; } }

/* Contacto */
.contact { margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))) calc(-1 * max(16px, env(safe-area-inset-right, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); background: var(--ink-2); border-top: 1px solid var(--rule); }
.contact .grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); }
.contact .grid > * { min-width: 0; }
.contact .left { display: grid; gap: 22px; align-content: start; }
.contact .left p { color: #d8cfba; max-width: 42ch; }
.mail { font-family: var(--display); font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--gold-hi); overflow-wrap: anywhere; }
.qr { display: flex; align-items: center; gap: 16px; border: 1px solid var(--rule); padding: 14px; max-width: 360px; }
.qr .box { flex: none; width: 92px; height: 92px; background: var(--cream); display: grid; place-items: center; color: #3a3426; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: 8px; }
.qr p { font-size: .9rem; color: var(--mute); }
form { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); min-width: 0; }
input, select, textarea { font: inherit; font-size: 1rem; letter-spacing: normal; text-transform: none; color: var(--cream); background: var(--ink); border: 1px solid var(--rule); padding: 12px 14px; width: 100%; border-radius: 0; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold-hi); outline: none; }
#formNote { font-size: .9rem; color: var(--gold-hi); min-height: 1.4em; }
@media (max-width: 820px) { .contact .grid { grid-template-columns: 1fr; } }

footer { padding-block: 40px; text-align: center; font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--mute); display: grid; gap: 6px; }
footer b { font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: .2em; color: var(--gold); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
