/* Bodeguita Romero. Diseño web: PM */
:root {
  --oro: #E2A001;
  --oro-claro: #F7B000;
  --oro-oscuro: #D98B05;
  --vino: #8F1B1E;
  --vino-claro: #A32327;
  --crema: #FFF1E4;
  --crema-clara: #FFFBED;
  --tinta: #2A1B14;
  --tinta-suave: #6B5A4E;
  --cobalto: #1A2A7A;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Alegreya Sans", "Trebuchet MS", Verdana, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --pad: 24px;
  --grout: 4px;
  --nav-h: 64px;
  --sec: 64px;
  /* tile lattice, 64 px module, stroke --oro-oscuro */
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23D98B05' stroke-opacity='.55' stroke-width='1.5'%3E%3Cpath d='M32 6l7 19 19 7-19 7-7 19-7-19-19-7 19-7z'/%3E%3Cpath d='M0 11L11 0M53 0l11 11M0 53l11 11M53 64l11-11'/%3E%3C/g%3E%3C/svg%3E");
}
@media (min-width: 700px) { :root { --pad: 40px; --grout: 8px; } }
@media (min-width: 1100px) { :root { --pad: 64px; --sec: 96px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font: 400 1.0625rem/1.6 var(--sans);
}
@media (min-width: 700px) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--pad); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -80px; z-index: 100; background: var(--tinta); color: var(--crema-clara); padding: 12px 16px; }
.skip:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }
.on-vino :focus-visible { outline-color: var(--crema-clara); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1; }
body { font-variant-numeric: lining-nums; }
h2 { font-size: clamp(2.25rem, 4.5vw, 4rem); color: var(--vino); letter-spacing: -0.005em; }
.sec { padding-block: var(--sec); }
.sec--clara { background: var(--crema-clara); }
.sec__head { margin-bottom: 40px; }
@media (min-width: 1100px) { .sec__head { margin-bottom: 56px; } }

.star { width: 0.6em; height: 0.6em; fill: currentColor; flex: none; }

/* text links: underline draws left to right */
.link {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 220ms ease-out;
  padding-bottom: 2px;
}
.link:hover, .link:focus-visible { background-size: 100% 1px; }
.link--on { background-size: 100% 1px; }
.prose a, .ulink { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: 2px; border: 2px solid var(--vino);
  background: var(--vino); color: var(--crema-clara);
  font: 700 1.0625rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, transform 160ms ease-out;
}
.btn:active { transform: scale(0.97); transition-duration: 100ms; }
.btn--line { background: transparent; border-color: var(--tinta); color: var(--tinta); }
.btn--oro { background: var(--oro); border-color: var(--oro); color: var(--tinta); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--vino-claro); border-color: var(--vino-claro); transform: translateY(-1px); }
  .btn--line:hover { background: rgba(42, 27, 20, 0.08); border-color: var(--tinta); }
  .btn--oro:hover { background: var(--oro-claro); border-color: var(--oro-claro); }
  .btn:active { transform: scale(0.97); }
}
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- nav ---------- */
.nav { background: var(--crema); border-bottom: 1px solid transparent; z-index: 50; position: relative; transition: border-color 200ms ease-out; }
.nav--sticky { position: sticky; top: 0; }
@media (min-width: 1100px) { .nav { position: sticky; top: 0; } }
.nav.is-scrolled { border-bottom-color: var(--oro-oscuro); }
.nav__in { display: flex; align-items: center; gap: 24px; height: var(--nav-h); transition: height 200ms ease-out; }
.nav.is-scrolled .nav__in { height: calc(var(--nav-h) - 4px); }
.nav__name { font: 600 1.5rem/1 var(--serif); color: var(--tinta); text-decoration: none; margin-right: auto; white-space: nowrap; transition: opacity 200ms ease-out, visibility 200ms; padding-block: 10px; }
.js .nav--home .nav__name { opacity: 0; visibility: hidden; }
.js.hero-gone .nav--home .nav__name { opacity: 1; visibility: visible; }
.nav__menu { display: flex; align-items: center; gap: 24px; }
.nav__menu ul { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nav__menu li a { display: inline-block; font-size: 1rem; font-weight: 500; padding-block: 10px; white-space: nowrap; background-position: 0 calc(100% - 8px); }
.nav__toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; margin-right: -10px; }
.nav__toggle svg { width: 24px; height: 24px; stroke: var(--tinta); stroke-width: 2; fill: none; }
.nav__toggle .x { display: none; }
.nav__toggle[aria-expanded="true"] .x { display: block; }
.nav__toggle[aria-expanded="true"] .bars { display: none; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 1rem; }

@media (max-width: 1099px) {
  /* no JS: links simply wrap under the name */
  .nav__in { flex-wrap: wrap; height: auto; min-height: var(--nav-h); padding-block: 8px; }
  .js .nav__in { flex-wrap: nowrap; height: var(--nav-h); padding-block: 0; }
  .js .nav__toggle { display: inline-flex; position: relative; z-index: 2; }
  .js .nav__name { position: relative; z-index: 2; }
  .js .nav__menu {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 32px;
    padding: 88px var(--pad) 40px; background: var(--crema); overflow-y: auto;
    transform: translateY(-100%); visibility: hidden;
    transition: transform 300ms var(--ease-out), visibility 0s 300ms;
  }
  .js .nav__menu ul { flex-direction: column; gap: 4px; }
  .js .nav__menu li a { font: 600 2rem/1.1 var(--serif); padding-block: 10px; white-space: normal; }
  .js .nav__menu li, .js .nav__tel { opacity: 0; transform: translateY(12px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
  .js .menu-open .nav__menu { transform: none; visibility: visible; transition: transform 300ms var(--ease-out); }
  .js .menu-open .nav__menu li, .js .menu-open .nav__tel { opacity: 1; transform: none; transition-delay: calc(120ms + var(--i, 0) * 40ms); }
  .js .nav.menu-open .nav__name { opacity: 1; visibility: visible; }
}
.menu-lock { overflow: hidden; }

/* ---------- gold grounds ---------- */
.oro { background: var(--oro) var(--lattice) center top / 64px 64px; color: var(--tinta); }

/* ---------- hero ---------- */
.hero { display: flex; align-items: center; padding-block: 20px 40px; }
.hero__grid { display: grid; gap: 24px; width: 100%; }
.hero h1 { font-size: 2.25rem; line-height: 1; letter-spacing: -0.01em; color: var(--tinta); }
.hero h1 .ln { display: inline-block; overflow: hidden; overflow: visible clip; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.hero h1 .ln > span { display: inline-block; }
.hero__facts { font-size: 1.25rem; line-height: 1.4; margin-top: 12px; }
.hero__facts strong { font-weight: 700; display: block; }
.hero .btns { margin-top: 24px; flex-direction: column; }
.hero__panel {
  order: -1; background: var(--crema); padding: 12px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grout);
  max-width: 416px; width: 100%; justify-self: center; perspective: 1200px;
  box-shadow: 0 1px 0 var(--oro-oscuro), 0 18px 40px -24px rgba(42, 27, 20, 0.55);
}
.hero__panel > * { aspect-ratio: 1; overflow: hidden; display: block; background: #e9dccd; }
.hero__panel img { width: 100%; height: 100%; object-fit: cover; }
.hero__sign { grid-column: 1 / -1; }
.hero__panel .only-wide { display: none; }

@media (min-width: 900px) {
  .hero { min-height: min(calc(100svh - var(--nav-h)), 900px); padding-block: 56px; }
  @supports not (height: 100svh) { .hero { min-height: min(calc(100vh - var(--nav-h)), 900px); } }
  .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
  .hero h1 { font-size: clamp(3.5rem, 7.4vw, 7rem); line-height: 0.92; }
  .hero h1 .ln { display: block; }
  .hero__facts { font-size: 1.5rem; margin-top: 28px; }
  .hero .btns { flex-direction: row; margin-top: 36px; }
  .hero__panel { order: 0; padding: 16px; max-width: 592px; justify-self: end; grid-template-rows: repeat(3, auto); }
  .hero__panel .only-wide { display: block; }
  .hero__sign { grid-column: 2 / 4; grid-row: 1 / 3; }
  .hero__panel .t1 { grid-column: 1; grid-row: 1; }
  .hero__panel .t2 { grid-column: 1; grid-row: 2; }
  .hero__panel .t3 { grid-column: 1; grid-row: 3; }
  .hero__panel .t4 { grid-column: 2; grid-row: 3; }
  .hero__panel .t5 { grid-column: 3; grid-row: 3; }
}

/* photo hover, shared by every linked or lightbox photo */
.zoom { overflow: hidden; display: block; }
.zoom img { transition: transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .zoom:hover img { transform: scale(1.04); } }

/* hero entrance (CSS only, so it also ends visible without JS) */
@keyframes panel-in { from { opacity: 0; } }
@keyframes tile-in { from { opacity: 0; transform: rotateX(-90deg); } }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .hero__panel { animation: panel-in 300ms ease-out both; }
  .hero__panel > * { transform-origin: top; animation: tile-in 700ms var(--ease-out) both; animation-delay: calc(200ms + var(--i) * 80ms); }
  .hero h1 .ln > span { animation: rise 600ms var(--ease-out) both; animation-delay: calc(var(--i) * 90ms); }
  .hero__facts, .hero .btns { animation: fade 400ms ease-out both; animation-delay: 420ms; }
  .hero .btns { animation-delay: 520ms; }
}

/* ---------- Visita ---------- */
.visita { background: var(--vino); color: var(--crema-clara); padding-block: var(--sec); }
.visita__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .visita__grid { grid-template-columns: 1fr 1.15fr 1.15fr; gap: 56px; } }
.visita h3 { font: italic 600 1.5rem/1.1 var(--serif); color: var(--oro-claro); margin-bottom: 14px; }
.visita .big { font: 600 2rem/1.1 var(--serif); }
.visita .btn { margin-top: 20px; }
.hours { display: grid; gap: 12px; }
.hours dt { font: italic 600 1.375rem/1.2 var(--serif); }
.tel-big { font: 600 2rem/1.1 var(--serif); text-decoration: none; display: inline-flex; align-items: center; min-height: 48px; }
.visita .mail { display: inline-block; margin-top: 8px; overflow-wrap: anywhere; padding-block: 8px; }
@media (max-width: 899px) { .tel-big { display: flex; } }

/* ---------- Quiénes somos ---------- */
.quienes__grid { display: grid; gap: 40px; }
.quienes__fotos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--grout); align-items: start; }
.quienes__fotos img { width: 100%; }
.quienes__fotos .f1 { max-width: 360px; }
.quienes__fotos .f2 { max-width: 380px; }
@media (min-width: 900px) {
  .quienes__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .quienes__fotos { grid-template-columns: 1fr; position: sticky; top: calc(var(--nav-h) + 32px); gap: 16px; }
  .quienes__fotos .f2 { margin-left: auto; margin-top: -72px; border: 8px solid var(--crema); box-sizing: content-box; max-width: 300px; }
}
.tl { position: relative; padding-left: 24px; }
.tl__line { position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: var(--vino); transform-origin: top; }
.tl__item + .tl__item { margin-top: 36px; }
.tl__years { font: 600 3rem/0.95 var(--serif); color: var(--vino); display: flex; gap: 20px; margin-bottom: 10px; font-variant-numeric: lining-nums; }
.tl__item p { max-width: 68ch; }
@media (min-width: 1100px) {
  .tl { padding-left: 32px; }
  .tl__item { display: grid; grid-template-columns: 7.25rem 1fr; gap: 24px; }
  .tl__years { font-size: 3.5rem; flex-direction: column; gap: 8px; margin: -6px 0 0; }
}
.en { margin-top: 40px; border-top: 1px solid rgba(143, 27, 30, 0.3); }
.en summary, .row summary { cursor: pointer; list-style: none; }
.en summary::-webkit-details-marker, .row summary::-webkit-details-marker { display: none; }
.en summary { display: flex; align-items: center; gap: 12px; min-height: 56px; font: italic 600 1.5rem/1 var(--serif); color: var(--vino); }
.en summary .star, .row summary .star { color: var(--cobalto); width: 14px; height: 14px; transition: transform 200ms ease-out; }
details[open] > summary .star { transform: rotate(45deg); }
.en p { max-width: 68ch; }
.en p + p { margin-top: 1em; }
.en > div { padding-bottom: 8px; }
@media (prefers-reduced-motion: no-preference) { details[open] > summary + * { animation: fade 200ms ease-out both; } }

/* ---------- tile walls ---------- */
.tile { min-width: 0; }
.wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px var(--grout); }
@media (min-width: 900px) { .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px var(--grout); } }
.tile__btn { display: block; width: 100%; aspect-ratio: 1; background: #e9dccd; cursor: zoom-in; }
.tile__btn img { width: 100%; height: 100%; object-fit: cover; }
.tile figcaption { font: italic 600 1.375rem/1.15 var(--serif); padding: 10px 8px 0 0; }
.tile figcaption.credit { font: 400 0.9375rem/1.35 var(--sans); color: var(--tinta-suave); }
.tile--link { aspect-ratio: 1; background: var(--vino); color: var(--crema-clara); display: flex; flex-direction: column; justify-content: space-between; padding: 16px; text-decoration: none; font: 600 clamp(1.5rem, 2.6vw, 2.25rem)/1 var(--serif); transition: background-color 160ms ease-out; }
.tile--link .star { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .tile--link:hover { background: var(--vino-claro); } }

/* ---------- La Carta band ---------- */
.band { padding-block: var(--sec); }
.band h2 { color: var(--tinta); }
.cats { font: 600 clamp(1.75rem, 4.3vw, 3.5rem)/1.16 var(--serif); letter-spacing: -0.01em; margin-top: 28px; max-width: 1060px; }
.cats li { display: inline; white-space: nowrap; }
.cats a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 92% / 0 2px no-repeat; transition: background-size 220ms ease-out; }
.cats a:hover, .cats a:focus-visible { background-size: 100% 2px; }
.cats .star { width: 0.3em; height: 0.3em; margin: 0 0.1em 0.22em 0.32em; display: inline-block; vertical-align: middle; }
.band .btns { margin-top: 40px; }

/* ---------- Galería ---------- */
.gal { display: grid; gap: 32px; }
.gal figure { margin: 0; }
.gal button { display: block; cursor: zoom-in; width: 100%; background: #e9dccd; }
.gal img { width: 100%; }
.gal figcaption { font: italic 600 1.375rem/1.2 var(--serif); padding-top: 10px; }
.gal .g1 { max-width: 800px; } .gal .g2 { max-width: 800px; } .gal .g3 { max-width: 640px; } .gal .g4 { max-width: 638px; }
@media (min-width: 900px) {
  .gal { grid-template-columns: repeat(12, 1fr); gap: 48px var(--grout); align-items: end; }
  .gal .g1 { grid-column: span 7; } .gal .g2 { grid-column: span 5; }
  .gal .g3 { grid-column: span 5; } .gal .g4 { grid-column: span 4; }
}

/* ---------- Noticias ---------- */
.feat { display: grid; gap: var(--grout); margin-bottom: 48px; }
@media (min-width: 900px) { .feat { grid-template-columns: 1fr 1fr; } }
.feat__item { display: grid; grid-template-columns: 1fr; background: var(--crema); }
.feat__item--foto { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.feat__item--foto button { cursor: zoom-in; min-height: 200px; height: 100%; }
.feat__item--foto img { width: 100%; height: 100%; object-fit: cover; }
.feat__txt { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 1100px) { .feat__txt { padding: 28px; } }
.feat h3 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.05; }
.feat__item--foto h3 { color: var(--vino); }
.feat time { font-size: 0.9375rem; }
.feat__item--foto time { color: var(--tinta-suave); }
.feat__item--vino { background: var(--vino); color: var(--crema-clara); }
.feat__item--vino .star { width: 20px; height: 20px; margin-bottom: auto; }
.feat__item--vino .feat__txt { min-height: 100%; }
.feat p { font-size: 1.0625rem; line-height: 1.5; }

.rows { border-top: 1px solid rgba(143, 27, 30, 0.3); }
.row { border-bottom: 1px solid rgba(143, 27, 30, 0.3); }
.row__head { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center; padding-block: 16px; min-height: 64px; text-decoration: none; }
.row__date { grid-column: 1 / -1; font-size: 0.9375rem; color: var(--tinta-suave); }
.row__title { font: 600 1.5rem/1.15 var(--serif); }
.row__cats { grid-column: 1 / -1; font-size: 0.9375rem; color: var(--tinta-suave); }
.row__mark { grid-column: 2; grid-row: 2; display: flex; }
.row__mark .star { color: var(--cobalto); width: 14px; height: 14px; }
@media (min-width: 900px) {
  .row__head { grid-template-columns: 11rem minmax(0, 1fr) 15rem 1.5rem; gap: 24px; }
  .row__date, .row__cats { grid-column: auto; }
  .row__mark { grid-column: 4; grid-row: auto; justify-content: flex-end; }
  .row__body { padding-left: calc(11rem + 24px); }
}
a.row__head .row__title span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 220ms ease-out; }
a.row__head:hover .row__title span, a.row__head:focus-visible .row__title span { background-size: 100% 1px; }
.row__body { padding-bottom: 28px; max-width: calc(68ch + 11rem + 24px); }
.row__body p + p, .row__body ul + p, .row__body p + ul { margin-top: 0.9em; }
.row__body ul li { display: flex; align-items: baseline; gap: 10px; }
.row__body ul .star { color: var(--cobalto); width: 10px; height: 10px; }
.row__media { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin-top: 20px; }
.row__media figcaption { font: italic 600 1.375rem/1.2 var(--serif); padding-top: 8px; }
.multiply { mix-blend-mode: multiply; }

/* ---------- footer ---------- */
.foot { background: var(--vino); color: var(--crema-clara); padding-block: 64px 32px; border-top: 1px solid rgba(255, 251, 237, 0.25); }
.foot__grid { display: grid; gap: 40px; }
@media (min-width: 700px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .foot__grid { grid-template-columns: 264px 1.1fr 0.8fr 1.1fr; gap: 48px; } }
.foot__logo { width: 240px; border: 1px solid var(--oro-oscuro); }
.foot h2 { font: italic 600 1.5rem/1.1 var(--serif); color: var(--oro-claro); margin-bottom: 12px; letter-spacing: 0; }
.foot p, .foot li, .foot dl { font-size: 1rem; line-height: 1.5; }
.foot dl { margin-top: 12px; display: grid; gap: 6px; }
.foot dt { font-weight: 700; }
.foot a { text-decoration: none; }
.foot li a, .foot .tap { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; overflow-wrap: anywhere; }
.foot .enlaces li a { min-height: 36px; font-size: 0.9375rem; }
.foot .enlaces ul { columns: 2; column-gap: 24px; }
.foot .enlaces li { break-inside: avoid; }
.foot svg.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.foot a span.t { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 220ms ease-out; }
.foot a:hover span.t, .foot a:focus-visible span.t { background-size: 100% 1px; }
.foot__pm { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 251, 237, 0.25); font-size: 0.9375rem; }
.foot__pm a { display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- mobile action bar ---------- */
.bar { display: none; }
@media (max-width: 899px) {
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--vino); padding-bottom: env(safe-area-inset-bottom, 0px); border-top: 1px solid rgba(255, 251, 237, 0.35); transition: transform 250ms var(--ease-out); }
  .bar a { height: 56px; display: flex; align-items: center; justify-content: center; color: var(--crema-clara); font-weight: 700; text-decoration: none; }
  .bar a + a { border-left: 1px solid rgba(255, 251, 237, 0.35); }
  .bar a:focus-visible { outline-color: var(--crema-clara); outline-offset: -5px; }
  .js .bar--home { transform: translateY(100%); }
  .js.hero-gone .bar--home { transform: none; }
}

/* ---------- carta / vinos ---------- */
.phead { min-height: min(40vh, 420px); display: flex; align-items: flex-end; padding-block: 48px; }
.phead .wrap { width: 100%; }
.phead h1 { font-size: clamp(3.5rem, 9vw, 8.5rem); line-height: 0.92; letter-spacing: -0.01em; }
@media (prefers-reduced-motion: no-preference) { .phead h1 { animation: fade 500ms ease-out both; } }
.catbar { position: sticky; top: 0; z-index: 30; background: var(--crema); border-bottom: 1px solid var(--oro-oscuro); }
@media (min-width: 1100px) { .catbar { top: calc(var(--nav-h) - 4px); } }
.catbar__in { position: relative; display: flex; gap: 4px 22px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; height: 48px; align-items: stretch; }
.catbar__in::-webkit-scrollbar { display: none; }
.catbar a { display: inline-flex; align-items: center; white-space: nowrap; text-decoration: none; font-size: 1rem; font-weight: 500; scroll-snap-align: start; padding-inline: 2px; }
.catbar a[aria-current] { color: var(--vino); }
.catbar__line { position: absolute; left: 0; bottom: 0; height: 3px; width: 100px; background: var(--vino); transform-origin: left; transform: scaleX(0); transition: transform 250ms var(--ease-in-out); pointer-events: none; }
.carta [id], .vinos [id] { scroll-margin-top: 64px; }
@media (min-width: 1100px) { .carta [id], .vinos [id] { scroll-margin-top: calc(var(--nav-h) + 48px + 16px); } }

.cat { padding-block: 40px; border-bottom: 1px solid rgba(143, 27, 30, 0.3); }
.cat:first-child { padding-top: 0; }
.cat:last-child { border-bottom: 0; padding-bottom: 0; }
.cat h2 { margin-bottom: 24px; }
.cat--foto { display: grid; grid-template-columns: minmax(0, 1fr) 160px; column-gap: 16px; }
.cat--foto h2 { align-self: end; }
.cat--foto .cat__foto { margin-bottom: 24px; }
.cat--foto .dishes { grid-column: 1 / -1; }
.cat h2, .wgroup h3, .wsec h3 { font: italic 600 2rem/1.05 var(--serif); color: var(--vino); letter-spacing: 0; }
.cat h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
.cat__foto { width: 160px; height: 160px; object-fit: cover; flex: none; }
@media (min-width: 900px) {
  .cat--foto { grid-template-columns: minmax(0, 1fr) 240px; column-gap: 48px; }
  .cat--foto h2 { align-self: start; }
  .cat--foto .cat__foto { width: 240px; height: 240px; grid-column: 2; grid-row: 1 / span 2; align-self: start; margin-bottom: 0; }
  .cat--foto .dishes { grid-column: 1; align-content: start; }
}
.dishes { display: grid; gap: 14px 48px; }
@media (min-width: 760px) { .dishes { grid-template-columns: 1fr 1fr; } }
.dishes li { break-inside: avoid; }
.d-es { font-weight: 500; display: block; line-height: 1.35; }
.d-en { font-style: italic; color: var(--tinta-suave); display: block; font-size: 1rem; line-height: 1.35; }

.wsec + .wsec { margin-top: var(--sec); padding-top: var(--sec); border-top: 1px solid rgba(143, 27, 30, 0.3); }
.wcols { column-gap: 48px; }
@media (min-width: 700px) { .wcols { columns: 2; } }
@media (min-width: 1100px) { .wcols { columns: 3; } }
.wgroup { break-inside: avoid; padding-bottom: 40px; }
/* generosos: rows of groups, so no column runs long */
.wgrid { display: grid; column-gap: 40px; }
@media (min-width: 700px) { .wgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .wgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wgroup h3 { margin-bottom: 12px; }
.wgroup li { padding-block: 5px; line-height: 1.35; }
.w-n { font-weight: 500; }
.w-t { color: var(--tinta-suave); }
.wgroup li .w-t::before { content: " "; }
.wgroup--gen li .w-t { display: block; font-size: 1rem; }
.wgroup--gen li .w-t::before { content: none; }
.wgroup .bottle { margin-top: 14px; }

/* ---------- lightbox ---------- */
.lb { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; color: var(--crema-clara); }
.lb::backdrop { background: rgba(42, 27, 20, 0.88); }
.lb img { max-height: 80vh; width: auto; margin-inline: auto; }
.lb p { font: italic 600 1.375rem/1.2 var(--serif); padding-top: 12px; text-align: center; }
.lb__close { position: fixed; top: 12px; right: 12px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; color: var(--crema-clara); }
.lb__close svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; fill: none; }
.lb :focus-visible { outline-color: var(--crema-clara); }
@keyframes lb-in { from { opacity: 0; transform: scale(0.96); } }
@keyframes lb-out { to { opacity: 0; } }
.lb[open] { animation: lb-in 250ms var(--ease-out); }
.lb[open]::backdrop { animation: fade 250ms ease-out; }
.lb.is-closing, .lb.is-closing::backdrop { animation: lb-out 160ms ease-out forwards; }

/* ---------- scroll reveals (only when JS runs) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
  .js .rv.in { opacity: 1; transform: none; }
  .js .rv-rows > * { opacity: 0; transition: opacity 400ms var(--ease-out); transition-delay: calc(var(--r, 0) * 60ms); }
  .js .rv-rows.in > * { opacity: 1; }
  .js .tl__line { transform: scaleY(0); transition: transform 900ms var(--ease-out); }
  .js .tl.in .tl__line { transform: none; }
  .js .tl__years { opacity: 0; transition: opacity 400ms ease-out; }
  .js .tl__item.in .tl__years { opacity: 1; }
}

/* ---------- reduced motion: final state at once ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .zoom img, .btn, .catbar__line, .nav__in, .bar { transition: none !important; }
  .zoom:hover img { transform: none; }
  .btn:hover, .btn:active { transform: none; }
  .js .nav__menu, .js .menu-open .nav__menu { transform: none; opacity: 0; transition: opacity 1ms, visibility 0s 1ms; }
  .js .menu-open .nav__menu { opacity: 1; transition: opacity 1ms; }
  .js .nav__menu li, .js .nav__tel { opacity: 1; transform: none; transition: none; }
  .lb[open], .lb[open]::backdrop { animation: fade 1ms; }
  .lb.is-closing, .lb.is-closing::backdrop { animation: lb-out 1ms forwards; }
  details[open] > summary + * { animation: fade 1ms; }
  details > summary .star { transition: none; }
}
