/* El Rincón de Marinela: la barra y sus posavasos */

:root {
  /* barra */
  --counter: #1d3a2d;
  --counter-deep: #142a20;
  --on-counter: #f4efe3;
  --on-counter-muted: #b4cbbd;

  /* cartón y tintas */
  --board: #f3ecdc;
  --board-shade: #e4d9c1;
  --board-edge: #cdbf9f;
  --ink: #1b2a22;
  --ink-soft: #3e5246;
  --sage: #7e9e8b;
  --sage-light: #c3d6c9;

  /* ley de tinta: rojo solo dice NUEVO, dorado solo dice RECOMENDADO */
  --nuevo: #c0362a;
  --reco: #7f5a12;

  --display: "Abril Fatface", "Bodoni 72", Didot, serif;
  --sans: "Archivo", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-flip: cubic-bezier(0.34, 1.32, 0.5, 1);

  --gutter: clamp(16px, 4vw, 48px);
  --shadow-coaster:
    0 1.5px 0 var(--board-edge),
    0 3px 6px -1px rgb(6 18 12 / 0.35),
    0 22px 40px -14px rgb(6 18 12 / 0.6);

  color-scheme: dark;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--sage) var(--counter-deep);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--on-counter);
  background: var(--counter-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--sage-light); color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

:focus-visible { outline: 3px solid var(--sage-light); outline-offset: 3px; border-radius: 6px; }
.carta :focus-visible, .visita :focus-visible { outline-color: var(--ink); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 10px 14px; background: var(--board); color: var(--ink);
  border-radius: 8px; transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}
.skip:focus { transform: none; }

/* ---------- La barra: formica verde ---------- */

.counter {
  position: relative;
  background-color: var(--counter);
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgb(255 246 214 / 0.10), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cg fill='%23e8f0e9' fill-opacity='.07'%3E%3Ccircle cx='12' cy='18' r='1'/%3E%3Ccircle cx='47' cy='9' r='.7'/%3E%3Ccircle cx='88' cy='31' r='1.1'/%3E%3Ccircle cx='121' cy='12' r='.8'/%3E%3Ccircle cx='30' cy='61' r='.9'/%3E%3Ccircle cx='70' cy='77' r='.7'/%3E%3Ccircle cx='109' cy='66' r='1'/%3E%3Ccircle cx='9' cy='104' r='.8'/%3E%3Ccircle cx='54' cy='118' r='1.1'/%3E%3Ccircle cx='96' cy='126' r='.7'/%3E%3Ccircle cx='133' cy='98' r='.9'/%3E%3C/g%3E%3Cg fill='%23081a11' fill-opacity='.18'%3E%3Ccircle cx='24' cy='37' r='1'/%3E%3Ccircle cx='77' cy='50' r='.8'/%3E%3Ccircle cx='128' cy='44' r='1'/%3E%3Ccircle cx='41' cy='92' r='.9'/%3E%3Ccircle cx='83' cy='101' r='1.1'/%3E%3Ccircle cx='118' cy='133' r='.8'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Cabecera ---------- */

.top {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  transition: background-color 300ms ease, box-shadow 300ms ease;
}
.top[data-scrolled] {
  background-color: rgb(20 42 32 / 0.9);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 1px 0 rgb(244 239 227 / 0.08);
}
.top__logo { opacity: 0; transform: translateY(-6px); transition: opacity 300ms ease, transform 300ms var(--ease-out); pointer-events: none; }
.top[data-scrolled] .top__logo { opacity: 1; transform: none; pointer-events: auto; }
.top__logo img { height: 40px; width: auto; }
.top__nav { display: flex; gap: 26px; margin-left: auto; font-weight: 600; font-size: 0.95rem; }
.top__nav a { text-decoration: none; opacity: 0.86; transition: opacity 160ms ease; }
.top__nav a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Sobres de azúcar: los botones ---------- */

.sachet {
  --z: 7px;
  position: relative;
  display: inline-grid;
  justify-items: start;
  align-content: center;
  gap: 1px;
  min-height: 56px;
  padding: 11px 30px 12px 34px;
  color: var(--ink);
  background: #f8f3e8;
  text-decoration: none;
  -webkit-mask:
    conic-gradient(from 45deg at left, #0000, #000 1deg 89deg, #0000 90deg) left / 51% calc(var(--z) * 2) repeat-y,
    conic-gradient(from -135deg at right, #0000, #000 1deg 89deg, #0000 90deg) right / 51% calc(var(--z) * 2) repeat-y;
  mask:
    conic-gradient(from 45deg at left, #0000, #000 1deg 89deg, #0000 90deg) left / 51% calc(var(--z) * 2) repeat-y,
    conic-gradient(from -135deg at right, #0000, #000 1deg 89deg, #0000 90deg) right / 51% calc(var(--z) * 2) repeat-y;
  transition: transform 160ms var(--ease-out);
  cursor: pointer;
}
.sachet::before { content: ""; position: absolute; left: 16px; top: 0; bottom: 0; width: 4px; background: var(--stripe, rgb(126 158 139 / 0.6)); }
.sachet-wrap { filter: drop-shadow(0 8px 12px rgb(6 18 12 / 0.35)); display: inline-block; }
.sachet__label {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-variation-settings: "wdth" 112;
  line-height: 1.15;
}
.sachet__small { font-size: 0.78rem; color: var(--ink-soft); font-weight: 500; }
.sachet--sage { background: #b2cbbb; --stripe: rgb(27 42 34 / 0.35); }
.sachet--sage .sachet__small { color: #22352a; }
.sachet--ghost { background: #2c4e3f; --stripe: rgb(244 239 227 / 0.35); color: var(--on-counter); }
.sachet--ghost .sachet__small { color: var(--on-counter-muted); }
.sachet--small { --z: 5px; min-height: 42px; padding: 9px 22px 9px 28px; }
.sachet--small::before { left: 12px; width: 3px; }
.sachet--small .sachet__label { font-size: 0.88rem; }
.sachet:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .sachet:hover { transform: translateY(-2px) rotate(-1.2deg); }
  .sachet:active { transform: scale(0.97); }
}

/* ---------- Posavasos ---------- */

.coaster {
  position: relative;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 1.5px 0 var(--board-edge)) drop-shadow(0 3px 3px rgb(6 18 12 / 0.3)) drop-shadow(0 18px 18px rgb(6 18 12 / 0.38));
  transition: filter 240ms ease;
}
.coaster__drop { perspective: 1100px; }
.coaster__tilt { transform-style: preserve-3d; }
.coaster__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transition: transform 780ms var(--ease-flip);
}
.coaster.is-flipped .coaster__inner { transform: rotateY(180deg); }

.face {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  color: var(--ink);
  background-color: var(--board);
  box-shadow: inset -14px -18px 40px -10px rgb(0 0 0 / 0.07), inset 12px 14px 30px -12px rgb(255 253 246 / 0.9);
  -webkit-mask: url("../assets/mask-redondo.svg") center / 100% 100% no-repeat;
  mask: url("../assets/mask-redondo.svg") center / 100% 100% no-repeat;
  overflow: hidden;
}
.face--back { transform: rotateY(180deg); }
.coaster--round .face { border-radius: 50%; }
.coaster--square .face { border-radius: 16px; -webkit-mask-image: url("../assets/mask-cuadrado.svg"); mask-image: url("../assets/mask-cuadrado.svg"); }

/* anillos impresos: el color vive en el borde */
.face::before, .face::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}
.face::before { inset: 4.5%; border: 2px solid var(--sage); }
.face::after { inset: 6.6%; border: 1px solid rgb(126 158 139 / 0.55); translate: 0.8px 0.5px; }
/* desgaste: zona rozada del cartón */
.face--front { background-image: radial-gradient(ellipse 30% 22% at 76% 70%, rgb(205 191 159 / 0.28), transparent 70%), radial-gradient(ellipse 18% 12% at 22% 84%, rgb(205 191 159 / 0.2), transparent 70%); }
.face__body .ticket { margin-top: 7px; }
.coaster--square .face::before { border-radius: 11px; }
.coaster--square .face::after { border-radius: 9px; }
.coaster[data-origen="ciudad"] .face::before { border-color: var(--ink); border-width: 3px; }

.face__body {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 18%;
  gap: 4px;
}

.rim {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  fill: var(--ink-soft);
  font-family: var(--sans);
  font-size: 9.4px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transform: rotate(var(--rim, 0deg));
  pointer-events: none;
}

.coaster__turn {
  position: absolute;
  left: 50%; bottom: -20px;
  z-index: 3;
  translate: -50% 0;
  font: 800 0.82rem/1 var(--sans);
  font-variation-settings: "wdth" 110;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--sage-light);
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  min-height: 44px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 8px 18px -6px rgb(6 18 12 / 0.6);
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.coaster__turn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .coaster__turn:hover { background: #d6e5da; } }

/* ---------- Primera pantalla ---------- */

.hero {
  min-height: 100svh;
  padding: 88px var(--gutter) 80px;
  display: grid;
  align-content: start;
  gap: clamp(16px, 2.5vw, 34px);
  overflow: hidden;
}
.hero__sign { display: grid; place-items: center; }
.hero__logo { width: clamp(250px, 38vw, 580px); height: auto; filter: drop-shadow(0 6px 18px rgb(0 0 0 / 0.35)); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}
.hero__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.hero__title .line { display: block; padding-bottom: 0.06em; }
.hero__title .line + .line { color: var(--sage-light); }
.hero__lead { margin: 22px 0 0; max-width: 36ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--on-counter-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: 30px; }
@media (min-width: 1200px) { .hero__actions { flex-wrap: nowrap; gap: 12px; } .hero__actions .sachet { padding-inline: 30px 22px; } }

.hero__table { position: relative; min-height: clamp(470px, 44vw, 620px); }
.coaster--menu {
  position: absolute;
  width: min(470px, 82%);
  left: 50%; top: 48%;
  translate: -46% -50%;
  rotate: -4deg;
  z-index: 2;
}
.coaster--hours { position: absolute; width: clamp(150px, 15vw, 196px); left: 0; top: 2%; rotate: -9deg; z-index: 3; }
.coaster--google { position: absolute; width: clamp(116px, 11vw, 150px); right: -1%; bottom: 14%; rotate: 11deg; z-index: 3; }

.menu__day { margin-top: 8px !important; }
.menu__day {
  margin: 0;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variation-settings: "wdth" 120;
  color: var(--ink-soft);
}
.menu__title {
  margin: 2px 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.2vw, 4.3rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
}
.menu__price { margin: 10px 0 0; font-weight: 900; font-size: 1.5rem; font-variation-settings: "wdth" 80; font-variant-numeric: tabular-nums; }
.menu__inc { margin: 8px 0 0; font-size: 0.92rem; color: var(--ink-soft); max-width: 22ch; line-height: 1.35; text-wrap: balance; }

.face__body--list { padding: 16% 17%; align-content: center; gap: 1px; width: 100%; }
.menu__group {
  margin: 7px 0 2px;
  font-weight: 800;
  font-size: max(0.7em, 0.66rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4f735f;
  font-variation-settings: "wdth" 120;
}
.face__body--list { font-size: calc(clamp(0.84rem, 1.15vw, 0.98rem) * var(--fit, 1)); }
.menu__dishes { margin: 0; display: grid; gap: 1px; }
.menu__dish { font-weight: 600; font-size: 1em; line-height: 1.32; }
.is-inline .menu__dishes { display: block; line-height: 1.38; text-wrap: balance; }
.is-inline .menu__dish { display: inline; }
.face__body--list.is-scroll {
  max-height: 76%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  align-content: start;
  padding-block: 18px;
  -webkit-mask: linear-gradient(transparent, #000 14%, #000 86%, transparent);
  mask: linear-gradient(transparent, #000 14%, #000 86%, transparent);
}
.face__body--list.is-scroll::-webkit-scrollbar { display: none; }
.is-inline .menu__dish + .menu__dish::before { content: " · "; color: var(--sage); font-weight: 800; }
.menu__foot { margin: 8px 0 0; font-size: max(0.82em, 0.72rem); color: var(--ink-soft); }
.menu__empty { margin: 0; font-size: 0.98rem; line-height: 1.4; max-width: 23ch; }
.menu__empty strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.7rem; line-height: 1; margin-bottom: 8px; }
.menu__empty a { font-weight: 800; }
.menu__loading { margin: 0; color: var(--ink-soft); }

.hours__stamp {
  margin: 0;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variation-settings: "wdth" 90;
  padding: 4px 10px;
  border: 2.5px solid currentColor;
  border-radius: 6px;
  rotate: -6deg;
}
.hours__stamp[data-state="open"] { color: #2c6646; }
.hours__stamp[data-state="closed"] { color: var(--ink-soft); }
.hours__today { margin: 10px 0 0; font-size: 0.84rem; line-height: 1.34; text-wrap: balance; font-weight: 600; }
.hours__link { margin-top: 6px; font-size: 0.76rem; font-weight: 700; color: var(--ink-soft); }
.coaster--hours .face__body { padding: 15%; }

.google__score { margin: 0; font-family: var(--display); font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; }
.google__label { margin: 4px 0 0; font-size: 0.72rem; line-height: 1.32; font-weight: 700; color: var(--ink-soft); }
.coaster--small .face__body { padding: 14%; }

/* ---------- Secciones sobre la barra ---------- */

.section-head {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px 48px;
  align-items: end;
}
.section-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.section-title--ink { color: var(--ink); }
.section-lead { margin: 0; max-width: 46ch; color: var(--on-counter-muted); font-size: 1.1rem; }
.link-light { color: var(--on-counter); font-weight: 700; }

.barra { padding: clamp(80px, 11vw, 150px) var(--gutter) clamp(70px, 9vw, 120px); }
.barra__hint {
  grid-column: 2;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sage-light);
  font-variation-settings: "wdth" 110;
}
.barra__field {
  position: relative;
  max-width: 1280px;
  margin: clamp(32px, 5vw, 56px) auto 0;
  height: clamp(620px, 54vw, 720px);
}
.barra__field .coaster {
  position: absolute;
  width: clamp(200px, 19vw, 250px);
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.barra__field .coaster.is-dragging { cursor: grabbing; z-index: 30; }
.barra__field .coaster.is-dragging { filter: drop-shadow(0 1.5px 0 var(--board-edge)) drop-shadow(0 8px 8px rgb(6 18 12 / 0.3)) drop-shadow(0 40px 34px rgb(6 18 12 / 0.5)); }
.coaster__hit {
  position: absolute; inset: 0; z-index: 2;
  border: 0; padding: 0; margin: 0;
  background: transparent;
  border-radius: 50%;
  cursor: inherit;
}
.coaster--square .coaster__hit { border-radius: 16px; }
.coaster .pc__link {
  position: absolute; left: 50%; bottom: 17%; z-index: 3;
  translate: -50% 0;
  padding: 8px 12px;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 200ms ease;
}
.coaster.is-flipped .pc__link { opacity: 1; pointer-events: auto; transition-delay: 380ms; }
.barra__field .face--back .face__body { padding-bottom: 26%; }

.pc__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 2.4vw, 2.1rem); line-height: 0.95; }
.pc__from {
  margin: 6px 0 0;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variation-settings: "wdth" 115;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}
.pc__back { margin: 0; font-size: 0.9rem; line-height: 1.35; font-weight: 500; }
.pc__link { margin-top: 8px; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.pc__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.has-photo .face--front .face__body { align-self: end; gap: 0; margin-bottom: 11%; padding: 5px 12px 6px; background: var(--board); border-radius: 8px; box-shadow: 0 4px 10px -4px rgb(6 18 12 / 0.4); }
.has-photo .face--front .ticket { display: none; }
.has-photo .face--front .pc__title { font-size: clamp(1.15rem, 1.5vw, 1.35rem); }
.has-photo .face--front .pc__from { margin-top: 2px; font-size: 0.68rem; }
.has-photo .face--front .rim { display: none; }

/* tickets de origen */
.ticket {
  display: inline-block;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variation-settings: "wdth" 118;
  padding: 3px 8px;
  border-radius: 3px;
  line-height: 1.2;
}
.ticket--casa { color: var(--ink); background: var(--sage-light); }
.ticket--ciudad { color: var(--board); background: var(--ink); }

/* sellos: ley de tinta */
.tag {
  display: inline-block;
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  rotate: -3deg;
  line-height: 1.25;
  vertical-align: 0.15em;
  white-space: nowrap;
}
.tag--nuevo { color: var(--nuevo); }
.tag--reco { color: var(--reco); }
.tag--pica { color: var(--ink-soft); border-style: dashed; rotate: 0deg; }

/* ---------- La carta: la hoja sobre la barra ---------- */

.carta-zone { padding: 0 var(--gutter); }
.carta {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 72px) clamp(20px, 4vw, 64px) clamp(40px, 6vw, 80px);
  color: var(--ink);
  background-color: var(--board);
  border-radius: 16px;
  box-shadow: var(--shadow-coaster);
}
.carta__head { display: grid; grid-template-columns: auto 1fr; gap: 10px 40px; align-items: end; }
.carta__lead { margin: 0; max-width: 44ch; color: var(--ink-soft); }
.carta__legend { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; align-items: center; }

.rack {
  position: sticky;
  top: 66px;
  z-index: 5;
  margin: 26px calc(clamp(20px, 4vw, 64px) * -1) 0;
  padding: 8px clamp(20px, 4vw, 64px) 0;
  background: linear-gradient(180deg, var(--board) 80%, rgb(243 236 220 / 0));
}
.rack__track { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 6px 2px 14px; scroll-snap-type: x proximity; }
.rack__track::-webkit-scrollbar { display: none; }
@media (min-width: 961px) { .rack__track { flex-wrap: wrap; overflow: visible; } }
@media (max-width: 960px) { .rack__track { -webkit-mask: linear-gradient(90deg, #000 85%, transparent); mask: linear-gradient(90deg, #000 85%, transparent); } }
.chip {
  flex: none;
  scroll-snap-align: start;
  font: 700 0.92rem/1 var(--sans);
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--sage);
  border-radius: 999px;
  padding: 11px 16px;
  min-height: 44px;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--board); }
@media (hover: hover) and (pointer: fine) { .chip:hover:not([aria-pressed="true"]) { background: rgb(126 158 139 / 0.18); } }

.carta__list { margin-top: 22px; columns: 2 380px; column-gap: clamp(32px, 5vw, 72px); }
.cat {
  break-inside: avoid;
  padding: 18px 0 32px;
  border-top: 2px solid var(--ink);
  transition: opacity 360ms var(--ease-out), filter 360ms var(--ease-out);
}
.carta[data-active] .cat:not(.is-active) { opacity: 0.22; filter: saturate(0.4); }
.cat__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.cat__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 2.6vw, 2.3rem); line-height: 1; }
.cat__sub { width: 100%; margin: 2px 0 0; font-size: 0.9rem; color: var(--ink-soft); }
.cat__note { margin: 10px 0 0; font-size: 0.86rem; font-weight: 700; color: var(--ink-soft); }
.cat__items { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 11px; }
.dish__row { display: flex; align-items: baseline; gap: 8px; }
.dish__name { font-weight: 700; font-size: 1rem; }
.dish__tags { display: inline-flex; gap: 5px; margin-left: 6px; }
.dish__dots { flex: 1; min-width: 12px; border-bottom: 1.5px dotted rgb(27 42 34 / 0.35); translate: 0 -4px; }
.dish__price { font-weight: 800; font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 85; white-space: nowrap; }
.dish__desc { margin: 2px 0 0; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.4; max-width: 60ch; }

/* ---------- Opiniones: servilletas ---------- */

.opiniones { margin-top: -60px; padding: clamp(130px, 15vw, 190px) var(--gutter) clamp(70px, 9vw, 120px); }
.napkins {
  max-width: 1280px;
  margin: clamp(32px, 5vw, 56px) auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: clamp(18px, 2.5vw, 30px);
  align-items: start;
}
.napkin {
  position: relative;
  margin: 0;
  padding: 30px 26px 24px;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgb(0 0 0 / 0.045) 50%, transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), rgb(0 0 0 / 0.04) 50%, transparent calc(50% + 1px)),
    #fbfaf6;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgb(6 18 12 / 0.25), 0 18px 30px -16px rgb(6 18 12 / 0.55);
  rotate: var(--r, 0deg);
}
.napkin::before { content: ""; position: absolute; inset: 8px; border: 1px dashed rgb(126 158 139 / 0.7); border-radius: 2px; pointer-events: none; }
.napkin blockquote { margin: 0; font-size: 1.02rem; line-height: 1.45; font-weight: 500; }
.napkin figcaption { margin-top: 12px; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.napkin__stars { display: flex; gap: 3px; margin-bottom: 10px; color: var(--ink); }
.napkin__stars svg { width: 14px; height: 14px; }

/* ---------- Visita ---------- */

.visita { position: relative; color: var(--ink); background: var(--board); padding: clamp(70px, 9vw, 120px) var(--gutter) clamp(60px, 8vw, 100px); }
.visita__grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.visita__addr { margin: 18px 0 0; font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 600; line-height: 1.35; }
.visita__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.visita .sachet::before { content: ""; position: absolute; left: 16px; top: 0; bottom: 0; width: 4px; background: var(--stripe, rgb(126 158 139 / 0.6)); }
.sachet-wrap { filter: drop-shadow(0 6px 10px rgb(60 50 30 / 0.28)); }
.visita__notes { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-soft); }
.visita__notes strong { color: var(--ink); }

.coaster--timetable { width: min(100%, 460px); justify-self: center; rotate: 3deg; }
.coaster--timetable { filter: drop-shadow(0 1.5px 0 #0c1611) drop-shadow(0 20px 20px rgb(0 0 0 / 0.28)); }
.coaster--timetable .face { background: var(--ink); color: var(--board); box-shadow: inset 12px 14px 30px -12px rgb(255 255 255 / 0.06); }
.coaster--timetable .face::after { border-color: rgb(126 158 139 / 0.45); }
.coaster--timetable .face__body { padding: 13%; width: 100%; }
.timetable__title { margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: 2rem; }
.timetable { width: 100%; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.timetable th { text-align: left; font-weight: 700; padding: 6px 0; }
.timetable td { text-align: right; padding: 6px 0; color: var(--sage-light); }
.timetable tr + tr { border-top: 1px solid rgb(195 214 201 / 0.18); }
.timetable tr.is-today th, .timetable tr.is-today td { color: var(--board); font-weight: 800; }

.mapa {
  max-width: 1180px;
  margin: clamp(40px, 6vw, 70px) auto 0;
  aspect-ratio: 16 / 5;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgb(126 158 139 / 0.28), transparent 62%), var(--board-shade);
  display: grid;
  place-items: center;
}
.mapa iframe { width: 100%; height: 100%; border: 0; display: block; }
.mapa__load {
  display: grid; gap: 4px; justify-items: center;
  font: 700 1rem/1.2 var(--sans);
  color: var(--ink);
  background: var(--board);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 14px 24px;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.mapa__load small { font-weight: 500; font-size: 0.78rem; color: var(--ink-soft); }
.mapa__load:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .mapa__load:hover { background: #fffdf6; } }

/* ---------- Pie ---------- */

.foot { padding: clamp(70px, 9vw, 120px) var(--gutter) 70px; display: grid; justify-items: center; text-align: center; gap: 18px; }
.foot__logo { width: clamp(240px, 34vw, 500px); height: auto; }
.foot__tag { margin: 0; color: var(--on-counter-muted); font-size: 1.05rem; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; list-style: none; margin: 8px 0 0; padding: 0; font-weight: 700; }
.foot__links a { text-decoration: none; display: inline-block; padding: 8px 2px; }
.foot__links a:hover { text-decoration: underline; }
.foot__credit { margin: 22px 0 0; font-size: 0.85rem; color: var(--on-counter-muted); }

.dock { display: none; }

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .coaster__inner { transition: none; }
  .coaster .face { transition: opacity 240ms ease; }
  .coaster.is-flipped .coaster__inner { transform: none; }
  .coaster .face--back { transform: none; opacity: 0; }
  .coaster.is-flipped .face--front { opacity: 0; }
  .coaster.is-flipped .face--back { opacity: 1; }
}

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

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { display: contents; }
  .hero__title { order: 1; text-align: center; }
  .hero__table { order: 2; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 18px; padding: 6px 0 10px; }
  .hero__lead { order: 3; margin: 4px auto 0; text-align: center; }
  .hero__actions { order: 4; justify-content: center; margin-top: 6px; }
  .coaster--menu { position: relative; grid-column: 1 / -1; width: min(420px, 86vw); left: auto; top: auto; translate: none; justify-self: center; margin-bottom: 22px; }
  .coaster--hours { position: relative; width: min(170px, 40vw); left: auto; top: auto; justify-self: end; }
  .coaster--google { position: relative; width: min(136px, 32vw); right: auto; bottom: auto; justify-self: start; align-self: center; }
  .section-head { grid-template-columns: 1fr; }
  .barra__hint { grid-column: 1; }
  .visita__grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .top__nav, .top > .sachet-wrap { display: none; }
  .top { padding-block: 10px; }
  .top__logo img { height: 34px; }
  .hero { padding-top: 60px; padding-bottom: 56px; }
  .hero__actions .sachet-wrap:last-child { display: none; }
  .barra__field .rim { display: none; }
  .dock__btn { text-align: center; line-height: 1.15; }
  .barra__field { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .barra__field .coaster { position: relative; width: 100%; left: auto !important; top: auto !important; touch-action: manipulation; cursor: pointer; }
  .barra__field .coaster:nth-child(even) { translate: 0 22px; }
  .pc__title { font-size: 1.4rem; }
  .pc__back { font-size: 0.78rem; }
  .pc__link { font-size: 0.7rem; }
  .face__body { padding: 15%; }
  .carta-zone { padding: 0 10px; }
  .carta { border-radius: 14px; }
  .rack { top: 54px; }
  .carta__head { grid-template-columns: 1fr; }
  .mapa { aspect-ratio: 4 / 3; }
  .dock {
    position: fixed; inset: auto 0 0 0; z-index: 50;
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgb(20 42 32 / 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -1px 0 rgb(244 239 227 / 0.08);
  }
  .dock__btn {
    display: grid; place-items: center;
    min-height: 50px;
    padding: 4px;
    font-weight: 800;
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-variation-settings: "wdth" 108;
    text-decoration: none;
    color: var(--ink);
    background: var(--board);
    border-radius: 10px;
    transition: transform 160ms var(--ease-out);
  }
  .dock__btn:first-child { background: var(--sage-light); }
  .dock__btn:active { transform: scale(0.96); }
}

/* ---------- Menú del día completo ---------- */

.hoy { padding: clamp(70px, 9vw, 120px) var(--gutter); }
.hoy__sheet {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px);
  color: var(--ink);
  background-color: var(--board);
  border-radius: 16px;
  box-shadow: var(--shadow-coaster), inset 12px 14px 40px -16px rgb(255 253 246 / 0.9);
  rotate: -0.6deg;
}
.hoy__sheet::before {
  content: "";
  position: absolute; inset: 12px;
  border: 2px solid var(--sage);
  border-radius: 10px;
  pointer-events: none;
}
.hoy__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.hoy__date {
  margin: 0;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variation-settings: "wdth" 120;
  color: var(--ink-soft);
}
.hoy__body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 8px clamp(28px, 5vw, 64px);
  margin-top: clamp(22px, 3vw, 34px);
  border-top: 2px solid var(--ink);
  padding-top: 22px;
}
.hoy__group h3 {
  margin: 0 0 10px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-variation-settings: "wdth" 120;
  color: #4f735f;
}
.hoy__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hoy__group li {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.12;
  padding-bottom: 10px;
  border-bottom: 1.5px dotted rgb(27 42 34 / 0.3);
}
.hoy__empty { grid-column: 1 / -1; margin: 0; font-size: 1.15rem; max-width: 44ch; }
.hoy__empty strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.05; margin-bottom: 8px; }
.hoy__empty a { font-weight: 800; }
.hoy__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: clamp(26px, 4vw, 40px); }
.hoy__price { width: 150px; rotate: 8deg; flex: none; }
.hoy__price .face__body { padding: 16%; }
.hoy__price-num { margin: 0; font-weight: 900; font-size: 1.9rem; font-variation-settings: "wdth" 80; font-variant-numeric: tabular-nums; line-height: 1; }
.hoy__price-inc { margin: 6px 0 0; font-size: 0.74rem; font-weight: 700; line-height: 1.3; color: var(--ink-soft); }
.hoy__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hoy .sachet-wrap { filter: drop-shadow(0 6px 10px rgb(60 50 30 / 0.25)); }

/* posavasos del menú cuando el menú no cabe: es un botón que lleva a #menu-hoy */
.coaster--menu.is-link .coaster__inner { cursor: pointer; }

/* ---------- La barra viva: luces de bar que se mueven despacio ---------- */

.counter { isolation: isolate; overflow: clip; overflow-clip-margin: 48px; }
.counter::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 22% 30%, rgb(255 236 190 / 0.10), transparent),
    radial-gradient(closest-side at 78% 62%, rgb(255 236 190 / 0.08), transparent),
    radial-gradient(closest-side at 46% 88%, rgb(195 214 201 / 0.06), transparent);
  animation: lamps 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes lamps {
  0%   { transform: translate3d(-4%, -2%, 0) scale(1); }
  50%  { transform: translate3d(3%, 3%, 0) scale(1.06); }
  100% { transform: translate3d(-2%, 4%, 0) scale(1.02); }
}

/* lámpara que sigue al ratón en la primera pantalla */
.lamp {
  position: absolute;
  left: 0; top: 0;
  width: 720px; height: 720px;
  margin: -360px 0 0 -360px;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 240 205 / 0.11), transparent);
  opacity: 0;
  transition: opacity 600ms ease;
}
.hero:hover .lamp { opacity: 1; }

/* marcas de vasos sobre la barra */
.stain {
  position: absolute;
  z-index: -1;
  width: var(--s, 150px);
  aspect-ratio: 1;
  pointer-events: none;
  background: url("../assets/marca-vaso.svg") center / contain no-repeat;
  opacity: 0;
  rotate: var(--r, 0deg);
  transition: opacity 1.6s ease;
}
.stain.is-in { opacity: var(--o, 0.5); }

/* ---------- Textos que aparecen ---------- */

.js [data-reveal="words"] .w { display: inline-block; overflow: clip; overflow-clip-margin: 0.12em; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.js [data-reveal="words"] .w > span { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .counter::after { animation: none; }
  .lamp { display: none; }
}
@media (max-width: 760px) {
  .hoy { padding-inline: 10px; }
  .hoy__sheet { rotate: 0deg; }
  .hoy__price { width: 128px; }
}

/* ---------- Valoración de Google ---------- */

.rating { display: flex; align-items: center; gap: 18px 22px; }
.rating__score {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.6rem, 7.5vw, 6.6rem);
  line-height: 0.9;
  color: var(--on-counter);
  font-variant-numeric: tabular-nums;
}
.rating__side { display: grid; gap: 8px; }
.rating__stars { position: relative; width: clamp(170px, 22vw, 300px); aspect-ratio: 130 / 24; }
.rating__row { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rating__row--empty { fill: none; stroke: rgb(244 239 227 / 0.4); stroke-width: 1.2; stroke-linejoin: round; }
.rating__row--full { fill: var(--on-counter); clip-path: inset(0 calc(100% - var(--pct)) 0 0); }
.rating__text { margin: 0; color: var(--on-counter-muted); font-size: 1rem; text-wrap: balance; }

/* ---------- Pásate a vernos: tira de fotos impresas ---------- */

.fotos { padding: clamp(70px, 9vw, 120px) 0 clamp(60px, 8vw, 100px); }
.fotos .section-head { padding-inline: var(--gutter); }
.fotos__nav { display: grid; gap: 18px; justify-items: start; }
.fotos__btns { display: flex; gap: 10px; }
.fotos__btn {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border: 2px solid rgb(244 239 227 / 0.5);
  border-radius: 50%;
  background: transparent;
  color: var(--on-counter);
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out), opacity 200ms ease;
}
.fotos__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fotos__btn:active { transform: scale(0.94); }
.fotos__btn:disabled { opacity: 0.3; cursor: default; }
@media (hover: hover) and (pointer: fine) { .fotos__btn:not(:disabled):hover { background: rgb(244 239 227 / 0.1); border-color: var(--on-counter); } }

.fotos__track {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 36px);
  margin-top: clamp(32px, 5vw, 56px);
  padding: 28px max(var(--gutter), calc((100vw - 1280px) / 2)) 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - 1280px) / 2));
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.fotos__track::-webkit-scrollbar { display: none; }
.fotos__track.is-grabbing { cursor: grabbing; scroll-snap-type: none; }
@media (hover: hover) and (pointer: fine) { .fotos__track { cursor: grab; } }

.foto {
  flex: none;
  margin: 0;
  padding: 10px 10px 34px;
  background: #fbf8f0;
  rotate: var(--r, 0deg);
  scroll-snap-align: start;
  filter: drop-shadow(0 2px 2px rgb(6 18 12 / 0.3)) drop-shadow(0 20px 22px rgb(6 18 12 / 0.4));
  transition: rotate 400ms var(--ease-out), scale 400ms var(--ease-out);
  user-select: none;
  -webkit-user-select: none;
}
.foto img {
  display: block;
  height: clamp(300px, 36vw, 440px);
  width: auto;
  min-width: 200px;
  background: var(--board-shade);
  max-width: min(78vw, 600px);
  object-fit: cover;
  -webkit-user-drag: none;
  pointer-events: none;
}
.foto figcaption {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 12px 4px 14px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
}
.foto figcaption a { color: inherit; text-decoration: none; }
.foto figcaption a:hover { text-decoration: underline; }
.foto__price { font-weight: 800; font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 85; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .foto:hover { rotate: 0deg; scale: 1.02; } }

@media (max-width: 760px) {
  .foto img { height: 340px; max-width: 80vw; }
  .fotos__track { scroll-snap-type: x mandatory; }
  .foto { scroll-snap-align: center; }
}

@media (max-width: 760px) {
  .has-photo .face--front .face__body { margin-bottom: 8%; padding: 4px 10px 5px; }
  .has-photo .face--front .pc__title { font-size: 1.05rem; }
  .has-photo .face--front .pc__from { font-size: 0.62rem; }
}
