:root {
  --bg: #F8F4F3;
  --paper: #FFFFFF;
  --ink: #2B2627;
  --ink-soft: #5E5557;
  --wine: #6A1212;
  --wine-deep: #3B0B0D;
  --gold-light: #E3C77A;
  --on-wine: #F3E9E6;
  --on-wine-soft: #EADBD7;
  --field: #CFC2BF;
  --display: "Marcellus", Georgia, serif;
  --text: "Figtree", system-ui, sans-serif;
  /* Escala tipográfica: pequeño, cuerpo, entrada, subtítulo; h2 y h1 aparte */
  --fs-sm: .9375rem;
  --fs-base: 1.125rem;
  --fs-lead: 1.375rem;
  --fs-h3: 1.75rem;
  --gap: clamp(88px, 11vw, 160px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; scrollbar-color: var(--wine) var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-base)/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--wine);
  accent-color: var(--wine);
}
::selection { background: var(--wine); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
p, li, dd { text-wrap: pretty; }
figure { margin: 0; }
figcaption { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: 10px; }
a { color: var(--wine); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.25rem); line-height: 1; letter-spacing: -0.02em; color: var(--wine); }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.05; letter-spacing: -0.015em; color: var(--wine); }
h3 { font-size: var(--fs-h3); line-height: 1.15; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); padding: 8px 12px; }

/* Botones: píldora, un solo relleno */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 2px solid var(--wine);
  font: 600 var(--fs-base) var(--text); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .12s;
}
.btn:active, .chip:active, .tabs button:active { transform: scale(.97); }
.btn--solid { background: var(--wine); color: #fff; }
.btn--solid:hover { background: var(--wine-deep); border-color: var(--wine-deep); }
.btn--line { background: transparent; color: var(--wine); }
.btn--line:hover { background: var(--wine); color: #fff; }
.btn--small { min-height: 44px; padding: 0 20px; font-size: var(--fs-sm); }
.btn--wide { width: 100%; }

/* Cabecera: barra simple, separada por un cambio de tono */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); }
.top__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.top__logo img { height: 50px; width: auto; }
.top__nav { display: flex; gap: 28px; margin-left: auto; }
.top__nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.top__nav a:hover { color: var(--wine); }

/* Hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 var(--gap); }
.hero__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(32px, 4vw, 56px); align-items: stretch; }
.hero__text { align-self: center; }
.hero__lead { font-size: var(--fs-lead); line-height: 1.5; max-width: 34ch; margin: 28px 0 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 20px 40px; margin: 56px 0 0; font-size: var(--fs-sm); }
.hero__facts dt { font-weight: 600; color: var(--wine); }
.hero__facts dd { margin: 4px 0 0; max-width: 22ch; }

.hero__panel {
  background: var(--wine-deep); color: var(--on-wine); border-radius: 28px;
  display: flex; flex-direction: column; gap: 28px; padding: clamp(28px, 3.5vw, 48px);
}
.panel__title { font-size: var(--fs-h3); color: #fff; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; display: flex; align-items: center; gap: 14px; }
.steps li::before {
  content: counter(step); flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold-light); color: var(--wine-deep);
  font: 400 var(--fs-base) var(--display);
}
.status { margin-top: auto; background: rgba(255, 255, 255, .07); border-radius: 16px; padding: 16px 20px; }
.status p { margin: 0; }
.status__now { font-family: var(--display); font-size: var(--fs-h3); line-height: 1.1; color: #fff; display: flex; align-items: center; gap: 12px; }
.status__now::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--gold-light); flex: none; }
.status[data-open="true"] .status__now::before { background: #7FD3A0; }
.status__next { margin-top: 4px; color: var(--on-wine-soft); font-size: var(--fs-sm); }

/* Secciones */
.section { padding: var(--gap) 0; }
.section__intro { max-width: 58ch; margin: 20px 0 48px; }

/* Servicios: un índice, sin líneas */
.services { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.about { font-size: var(--fs-lead); line-height: 1.5; margin: 28px 0 0; max-width: 30ch; }
.about__shop { margin: 18px 0 0; font-weight: 600; }
.about__note { margin: 24px 0 20px; max-width: 34ch; }
.index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 56px 48px; }
.index h3 { color: var(--wine); margin-bottom: 12px; }
.index p { margin: 0 0 4px; }
.index a { font-weight: 600; display: inline-block; padding: 10px 0; }

/* Precios: la sala vino */
.section--menu { background: var(--wine-deep); color: var(--on-wine); }
.section--menu h2 { color: #fff; }
.section--menu .section__intro { color: var(--on-wine-soft); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.tabs button {
  font: 500 var(--fs-base) var(--text); color: var(--on-wine); cursor: pointer;
  background: rgba(255, 255, 255, .07); border: 0;
  border-radius: 999px; padding: 10px 20px; min-height: 48px;
  transition: background .2s, transform .12s;
}
.tabs button:hover { background: rgba(255, 255, 255, .14); }
.tabs button[aria-selected="true"] { background: var(--gold-light); color: var(--wine-deep); }
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 80px; }
.menu-cols h3 { color: var(--gold-light); margin-bottom: 14px; }
.prices { list-style: none; margin: 0; padding: 0; font-variant-numeric: tabular-nums; }
.prices li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; }
.prices span { flex: 0 1 auto; }
.prices b { order: 3; font-weight: 600; color: #fff; white-space: nowrap; }
.prices li::before {
  content: ""; order: 2; flex: 1 1 24px; min-width: 24px;
  border-bottom: 2px dotted rgba(227, 199, 122, .5); transform: translateY(-4px);
}
.prices__note { font-size: var(--fs-sm); color: var(--on-wine-soft); margin: -6px 0 8px; }

/* Reservas */
.section--book { background: var(--paper); }
.book { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.book__intro { position: sticky; top: 120px; }
.book__intro p { max-width: 40ch; }
.book__form { min-width: 0; }
.book__form fieldset { border: 0; padding: 0; margin: 0 0 36px; min-width: 0; }
.book__form legend { font-family: var(--display); font-size: var(--fs-lead); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.step {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--wine); color: #fff; font: 400 var(--fs-sm) var(--display);
}
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-weight: 500; margin-bottom: 6px; }
.field select, .field input, .field textarea {
  width: 100%; font: 400 var(--fs-base) var(--text); color: var(--ink);
  padding: 14px 16px; border: 1.5px solid var(--field); border-radius: 10px; background: var(--bg);
}
.field select:focus, .field input:focus, .field textarea:focus { border-color: var(--wine); outline: 3px solid rgba(106, 18, 18, .18); outline-offset: 0; }
.field textarea::placeholder { color: var(--ink-soft); }
.field [aria-invalid="true"] { border-color: var(--wine); background: #FBEFEC; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  flex: 0 0 auto; min-width: 76px; min-height: 52px; padding: 8px 14px;
  border: 1.5px solid var(--field); border-radius: 10px; background: var(--bg);
  font: 500 var(--fs-base)/1.15 var(--text); color: var(--ink); cursor: pointer; text-align: center;
  transition: background .15s, border-color .15s, transform .12s;
}
.chip small { display: block; font-size: var(--fs-sm); color: var(--ink-soft); font-weight: 400; }
.chip:hover { border-color: var(--wine); }
.chip[aria-checked="true"] { background: var(--wine); border-color: var(--wine); color: #fff; }
.chip[aria-checked="true"] small { color: #F3D9D4; }
.form__error { color: var(--wine); font-weight: 600; margin: 0 0 12px; }
.chips__hint { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); }

/* Cómo llegar */
.visit { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px clamp(40px, 5vw, 72px); }
.visit address { font-style: normal; font-weight: 500; margin: 24px 0 28px; }
.visit h3 { color: var(--wine); margin: 28px 0 6px; font-size: var(--fs-lead); }
.visit p { margin: 0 0 8px; }
.muted { color: var(--ink-soft); font-size: var(--fs-sm); }
.map { min-height: 420px; background: #EFE6E4; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
/* Galería: fotos verticales */
.work { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 40px; }
.work img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; }
.work a { display: block; border-radius: 16px; cursor: zoom-in; }
.work a:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; }

/* Visor de fotos */
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(30, 14, 15, .94);
  align-items: center; justify-content: center;
}
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: transparent; }
.lightbox__img { max-width: min(92vw, 1100px); max-height: 92vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lightbox__btn {
  position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff; font: 400 2rem/1 var(--text); cursor: pointer;
  display: grid; place-items: center; padding: 0 0 4px;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .26); }
.lightbox__btn:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.work__more { margin-top: 20px; }

/* Preguntas: cambios de tono, sin líneas */
.section--faq { padding-top: 0; }
.faq { max-width: 820px; }
.faq h2 { margin-bottom: 28px; }
.faq details { background: var(--paper); margin-bottom: 6px; padding: 0 24px; border-radius: 10px; }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--wine); font-size: var(--fs-lead); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 22px; max-width: 65ch; }

/* Pie: el nombre vuelve a todo lo ancho */
.foot { background: var(--ink); color: #DCD4D5; padding: 72px 0 104px; font-size: var(--fs-sm); }
.foot__name {
  font-family: var(--display); color: var(--gold-light); margin: 0 0 32px; padding-bottom: 28px;
  border-bottom: 1px solid rgba(227, 199, 122, .28);
  font-size: var(--fs-h3); line-height: 1; letter-spacing: .14em; text-transform: uppercase;
}
.foot__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.foot a { color: #fff; }
.foot p { margin: 0; }

.dock { display: none; }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #157A41; color: #fff;
  box-shadow: 0 6px 16px rgba(43, 38, 39, .28); /* taste-skill-ignore: botón fijo que flota sobre el contenido */
  transition: transform .12s;
}
.wa-float:active { transform: scale(.94); }

/* Entradas al hacer scroll: el contenido es visible si el script no corre */
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0ms); }

/* Responsive */
@media (max-width: 960px) {
  .hero__grid, .book, .services { grid-template-columns: 1fr; }
  .book__intro { position: static; }
  .book { gap: 32px; }
}
@media (max-width: 760px) {
  .work { grid-template-columns: 1fr 1fr; }
  .work figure:last-child { grid-column: span 2; }
  .work figure:last-child img { aspect-ratio: 16 / 10; }
  .visit { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { padding-bottom: 88px; }
  .wa-float { display: none; }
  .dock {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
    display: flex; gap: 8px; padding: 8px; border-radius: 999px; background: var(--paper);
    box-shadow: 0 6px 20px rgba(43, 38, 39, .18); /* taste-skill-ignore: barra fija que flota sobre el contenido */
  }
  .dock a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; border-radius: 999px; font-weight: 600; text-decoration: none; color: #fff;
  }
  .dock__wa { flex: 1; background: #157A41; }
  .dock__call { padding: 0 20px; background: var(--wine); }
  .top__nav { display: none; }
  .top__inner .btn { margin-left: auto; }
  .top__logo img { height: 42px; }
  .hero__facts { grid-template-columns: 1fr; gap: 16px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .index { grid-template-columns: 1fr; gap: 40px; }
  .menu-cols { grid-template-columns: 1fr; }
  #days { display: grid; grid-template-columns: repeat(4, 1fr); }
  #days .chip { min-width: 0; padding: 8px 4px; }
  .chips--time { display: grid; grid-template-columns: repeat(3, 1fr); }
  .foot__inner { grid-template-columns: 1fr; }
  .faq details { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .btn, .chip, .tabs button, .wa-float { transition: none; }
}

/* ===== Catálogo de productos (/productos) ===== */
html:has(.shop) { scroll-padding-top: 140px; }
.top__nav a[aria-current="page"] { color: var(--wine); box-shadow: 0 2px 0 var(--gold-light); }

.shop-hero { padding: clamp(32px, 5vw, 64px) 0 clamp(28px, 4vw, 48px); }
.crumbs { display: flex; gap: 8px; font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: 20px; }
.crumbs a { color: var(--ink-soft); }
.shop-hero h1 { max-width: 16ch; font-size: clamp(2.5rem, 5.6vw, 4.5rem); }
.shop-hero__lead { font-size: var(--fs-lead); line-height: 1.5; max-width: 46ch; margin: 24px 0 36px; }
.how { list-style: none; counter-reset: how; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 900px; }
.how li {
  counter-increment: how; display: flex; align-items: center; gap: 14px;
  background: var(--paper); border-radius: 16px; padding: 16px 20px; font-size: var(--fs-sm); line-height: 1.4;
}
.how li::before {
  content: counter(how); flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wine); color: #fff; font: 400 var(--fs-base) var(--display);
}
.how b { color: var(--wine); }

/* Categorías: barra fija bajo la cabecera */
.cats { position: sticky; top: 72px; z-index: 15; background: var(--bg); padding: 10px 0; }
.cats__inner { display: flex; flex-wrap: wrap; gap: 8px; }
.cats a {
  flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px;
  border: 1.5px solid var(--field); border-radius: 999px; background: var(--paper);
  color: var(--ink); font-weight: 500; text-decoration: none; transition: background .2s, color .2s, border-color .2s;
}
.cats a:hover { border-color: var(--wine); color: var(--wine); }
.cats a:active { transform: scale(.97); }

.shop-section { padding: clamp(48px, 7vw, 88px) 0; }
.shop-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-bottom: 36px; }
.shop-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.shop-head p { margin: 0; max-width: 50ch; color: var(--ink-soft); }
.shop-section--dark { background: var(--wine-deep); color: var(--on-wine); }
.shop-section--dark h2 { color: #fff; }
.shop-section--dark .shop-head p { color: var(--on-wine-soft); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product { background: var(--paper); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); }
.product__img { position: relative; aspect-ratio: 1; display: grid; place-items: center; color: var(--wine); background: #F6F3F2; }
.product__img img { width: 100%; height: 100%; object-fit: cover; }
.product__img--icon { background: #F1E3E0; }
.product__icon { width: 46%; max-width: 150px; height: auto; }
.product__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.product__brand { margin: 0 0 4px; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.product h3 { font-size: 1.5rem; color: var(--wine); }
.product__desc { margin: 10px 0 14px; font-size: var(--fs-sm); line-height: 1.55; }
.product__tags { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.product__tags li { font-size: .8125rem; background: var(--bg); border-radius: 999px; padding: 4px 12px; color: var(--ink-soft); }
.product__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.product__price { margin: 0; line-height: 1.1; }
.product__price span { display: block; font-size: .8125rem; color: var(--ink-soft); }
.product__price b { font: 400 1.75rem var(--display); color: var(--wine); font-variant-numeric: tabular-nums; }

.shop-soon { padding: 0 0 clamp(40px, 6vw, 72px); }
.shop-soon__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  background: var(--paper); border-radius: 22px; padding: 24px 28px;
}
.shop-soon p { margin: 0; max-width: 56ch; }
.shop-soon b { color: var(--wine); }
.shop-cta { background: var(--paper); padding: clamp(48px, 7vw, 88px) 0; }
.shop-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.shop-cta h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.shop-cta p { margin: 12px 0 0; max-width: 52ch; }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .how { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .shop-section { padding: 40px 0; }
  .shop-head { margin-bottom: 24px; }
  .cats { position: static; padding: 4px 0 8px; }
  .cats a { flex: 1 1 auto; justify-content: center; }
  .shop-soon__inner { padding: 20px; }
  .shop-soon .btn { width: 100%; }
  .product__foot .btn { flex: 1 1 auto; }
}
