/* CanoBar · prototipo local
   Logo y tipografía (Inter) de canobarvalencia.com. Paleta «Terraza fresca», elegida por la familia el 14-10-2026:
   verde de la puerta y la fachada, naranja del agua de Valencia y vino del tinto de verano.
   Los nombres de las variables (--peach, --brown…) vienen de la paleta de la web actual y se conservan para no tocar el resto del CSS. */
:root {
  --peach: #FFF8EF;
  --brown: #2F6B5A;
  --brown-2: #2F6B5A;
  --ink: #16302A;
  --title: #16302A;
  --night: #12352D;
  --gold: #F59E2B;
  --sage: #9CAD8D;
  --yellow: #FFD84D;
  --white: #FFFFFF;
  /* Escena de bebidas: fondo, texto y palabra gigante por bebida (cerveza, tinto, agua de Valencia). */
  --b0-bg: #FFF8EF; --b0-fg: #16302A; --b0-word: #F2B63D;
  --b1-bg: #7A1E2B; --b1-fg: #FFF8EF; --b1-word: #A63446;
  --b2-bg: #F59E2B; --b2-fg: #16302A; --b2-word: #FFF8EF;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius: 28px;
  --radius-sm: 16px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: light;
}

/* ---------- Paletas descartadas, solo para comparar (?paleta=web|b|c) ---------- */
/* Web actual: paleta Astra/Elementor de canobarvalencia.com (leída el 12-10-2026). */
html[data-paleta="web"] {
  --peach: #FFE3C1; --brown: #966D5B; --brown-2: #806048; --ink: #402F25; --title: #343434;
  --night: #211B15; --gold: #D9AC6D; --yellow: #FFCD57;
  --b0-bg: #FFE3C1; --b0-fg: #402F25; --b0-word: #D9AC6D;
  --b1-bg: #211B15; --b1-fg: #FFE3C1; --b1-word: #806048;
  --b2-bg: #D9AC6D; --b2-fg: #402F25; --b2-word: #FFE3C1;
}
/* B · Web actual más luminosa: mismos marrones del logo, fondo más claro y dorado más vivo. */
html[data-paleta="b"] {
  --peach: #FFF3E6; --brown: #806048; --brown-2: #806048; --ink: #2B211B; --title: #2B211B;
  --night: #2B211B; --gold: #F2A23A; --yellow: #FFCD57;
  --b0-bg: #FFF3E6; --b0-fg: #2B211B; --b0-word: #F2A23A;
  --b1-bg: #2B211B; --b1-fg: #FFF3E6; --b1-word: #806048;
  --b2-bg: #F2A23A; --b2-fg: #2B211B; --b2-word: #FFF3E6;
}
/* C · Instagram CanoBar: salvia y amarillo de sus publicaciones, con tinta verde casi negra. */
html[data-paleta="c"] {
  --peach: #EEF3EA; --brown: #1E2A24; --brown-2: #4E6B4A; --ink: #1E2A24; --title: #1E2A24;
  --night: #1E2A24; --gold: #FFCD57; --yellow: #FFCD57;
  --b0-bg: #FFCD57; --b0-fg: #1E2A24; --b0-word: #FFFFFF;
  --b1-bg: #1E2A24; --b1-fg: #FFFFFF; --b1-word: #4E6B4A;
  --b2-bg: #8FA88A; --b2-fg: #1E2A24; --b2-word: #EEF3EA;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--peach);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body::after {
  /* grano fotográfico sutil */
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.25 0 0 0 0 0.18 0 0 0 0 0.14 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--yellow);
  border-radius: 6px;
}

.skip {
  position: fixed; left: 16px; top: -100px; z-index: 200;
  background: var(--ink); color: var(--peach); padding: 12px 18px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Tipografía ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brown-2);
  margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--gold { color: var(--gold); }
.h2 {
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}
.h2 em, .hero__title .accent {
  font-style: normal;
  color: var(--brown-2);
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--yellow) 75%, transparent) 62%, color-mix(in srgb, var(--yellow) 75%, transparent) 90%, transparent 90%);
  padding-inline: .06em;
}
.h2--light { color: var(--peach); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.6; max-width: 34ch; color: var(--ink); }
.lead--light { color: var(--peach); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--ink); --fg: var(--peach); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 2px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font: 600 14px/1 var(--font); letter-spacing: 2.4px; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: transform .35s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .35s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--night) 55%, transparent); }
.btn:active { transform: translateY(0); }
.btn--dark { --bg: var(--ink); --fg: var(--peach); --bd: var(--ink); }
.btn--gold { --bg: var(--gold); --fg: var(--ink); --bd: var(--gold); }
.btn--gold:hover { --bg: var(--yellow); --bd: var(--yellow); }
.btn--outline { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--outline:hover { --bg: var(--ink); --fg: var(--peach); }
.btn--outline-light { --bg: transparent; --fg: var(--peach); --bd: var(--peach); }
.btn--outline-light:hover { --bg: var(--peach); --fg: var(--ink); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 12px; letter-spacing: 2px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-row--center { justify-content: center; }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  color: var(--ink);
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), transform .45s var(--ease);
}
.site-header.is-solid { background: var(--brown); color: var(--white); box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--night) 60%, transparent); }
.site-header.is-dark { background: color-mix(in srgb, var(--night) 92%, transparent); color: var(--peach); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
  height: 100%;
  width: min(1320px, 100% - 2 * var(--gutter)); margin-inline: auto;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: block; width: 132px; color: inherit; flex: none; }
.brand svg { width: 100%; height: auto; display: block; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 26px; }
.nav a {
  font-size: 13px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; text-decoration: none;
  position: relative; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.header-ctas { display: flex; gap: 10px; }

/* ---------- HERO ---------- */
.hero { position: relative; height: 230vh; background: var(--peach); }
.hero__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center;
  gap: clamp(24px, 4vw, 72px);
  padding: calc(var(--header-h) + 12px) var(--gutter) 32px;
  max-width: 1440px; margin-inline: auto;
}
.hero__copy { position: relative; z-index: 3; will-change: transform, opacity; }
.hero__title {
  font-size: clamp(3.1rem, 8.4vw, 8.4rem);
  line-height: .9;
  letter-spacing: -0.05em;
  color: var(--ink);
  margin-bottom: 26px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s .75s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .84s; }
.hero__title .line:nth-child(3) > span { animation-delay: .93s; }
@keyframes rise { to { transform: none; } }
@keyframes names-marquee { to { transform: translateX(-100%); } }
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 32ch; opacity: 0; animation: fade .9s 1.2s var(--ease) forwards; }
.hero .cta-row, .hero .eyebrow { opacity: 0; animation: fade .9s 1.3s var(--ease) forwards; }
.hero .eyebrow { animation-delay: .8s; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero__collage { position: relative; height: min(76svh, 820px); display: grid; place-items: center; }
.card { position: absolute; border-radius: var(--radius); overflow: hidden; background: var(--brown); box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--night) 55%, transparent); will-change: transform; }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card--main { height: 100%; aspect-ratio: 1440 / 1899; z-index: 2; animation: pop 1.2s .9s var(--ease) both; }
.card--back { z-index: 1; }
.card--interior { height: 80%; aspect-ratio: 660 / 1080; left: -23%; top: 4%; transform: rotate(-5deg); transform-origin: 70% 50%; animation: pop 1.2s 1.05s var(--ease) both; }
/* Las fotos de la portada van limpias: sin etiquetas ni frases encima (corrección del 14-10-2026). */
@keyframes pop { from { opacity: 0; scale: .92; } to { opacity: 1; scale: 1; } }
.hero__plant { position: absolute; width: clamp(140px, 18vw, 280px); pointer-events: none; z-index: 0; opacity: .9; }
.hero__plant--l { left: -40px; bottom: -30px; transform-origin: bottom center; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 18px; translate: -50% 0; margin: 0;
  font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--brown-2);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint span { width: 2px; height: 34px; background: linear-gradient(var(--brown-2) 50%, transparent 50%); background-size: 2px 14px; animation: drip 1.4s linear infinite; }
@keyframes drip { to { background-position: 0 14px; } }

/* ---------- Telón de entrada con el logo ---------- */
.curtain { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--brown); color: var(--white); pointer-events: none; animation: curtain .85s .75s var(--ease) forwards; }
.curtain svg { width: min(260px, 52vw); animation: logo-in .7s var(--ease) both; }
@keyframes curtain { to { transform: translateY(-101%); } }
@keyframes logo-in { from { opacity: 0; transform: translateY(16px); } }
html.rm .curtain { display: none; }
@media (prefers-reduced-motion: reduce) { .curtain { display: none; } }

/* ---------- Ticker ---------- */
.ticker { background: var(--brown); color: var(--white); overflow: hidden; padding: 22px 0; position: relative; z-index: 2; }
.ticker__track { display: flex; align-items: center; gap: 34px; width: max-content; will-change: transform; }
.ticker span { font-weight: 700; font-size: clamp(1.4rem, 3.4vw, 2.8rem); letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap; }
.ticker i { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); flex: none; }

/* ---------- Terraza ---------- */
.terraza { background: var(--white); padding: clamp(80px, 12vw, 160px) 0; position: relative; overflow: hidden; }
.terraza__grid {
  width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto;
  display: grid; grid-template-columns: 1.1fr .9fr .55fr; grid-template-rows: auto auto; gap: clamp(20px, 3vw, 40px); align-items: center;
}
.terraza__text { grid-column: 1; grid-row: 1 / span 2; }
.ph { border-radius: var(--radius); overflow: hidden; position: relative; will-change: transform; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--tall { grid-column: 2; grid-row: 1 / span 2; aspect-ratio: 1440 / 1712; }
.ph--small { grid-column: 3; grid-row: 2; aspect-ratio: 4 / 5; overflow: visible; }
.ph--small img { border-radius: var(--radius-sm); }
.ph--small figcaption { font-size: 13px; line-height: 1.4; color: var(--brown-2); margin-top: 10px; }
.facts { margin-top: 28px; display: grid; gap: 10px; max-width: 360px; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); font-size: 15px; }
.facts strong { font-weight: 600; }

/* ---------- Gallego ---------- */
.gallego { position: relative; height: 460vh; background: var(--night); color: var(--peach); }
.gallego__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.gallego__word {
  position: absolute; left: 50%; top: 50%; margin: 0;
  font-weight: 700; font-size: clamp(5rem, 25vw, 26rem); line-height: .8; letter-spacing: -0.06em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--gold) 55%, transparent);
  white-space: nowrap; transform: translate(-50%, -50%); will-change: transform; user-select: none;
}
.gallego__frame {
  position: absolute; left: 50%; top: 50%;
  height: min(76svh, 900px); aspect-ratio: 4 / 5;
  translate: -50% -50%;
  border-radius: var(--radius); overflow: hidden; z-index: 2;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .8), 0 0 0 1px color-mix(in srgb, var(--peach) 8%, transparent);
  will-change: transform;
}
.gallego__frame img { width: 100%; height: 100%; object-fit: cover; transform-origin: 52.8% 55.5%; will-change: transform; }
.gallego__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 52.8% 55.5%, transparent 35%, color-mix(in srgb, var(--night) 65%, transparent) 100%);
  opacity: var(--vig, 0);
}
.gallego__intro { position: absolute; left: var(--gutter); bottom: clamp(28px, 7vh, 72px); max-width: 30ch; z-index: 3; will-change: transform, opacity; }
.gallego__intro .h2 { font-size: clamp(2rem, 4vw, 3.6rem); margin-bottom: 14px; }
/* Despiece por capas (recreación ilustrativa) */
.sandwich { position: absolute; left: 0; top: 0; z-index: 3; opacity: 0; pointer-events: none; transform-origin: 50% 50%; will-change: transform, opacity; }
.layer { position: absolute; max-width: none; height: auto; will-change: transform; filter: drop-shadow(0 16px 16px rgba(0, 0, 0, .32)); }
.sandwich__note {
  position: absolute; left: 50%; bottom: 34px; translate: -50% 0; z-index: 5; margin: 0; opacity: 0;
  font-size: 12px; font-weight: 600; letter-spacing: .6px; color: color-mix(in srgb, var(--peach) 80%, transparent); white-space: nowrap;
}
.sandwich-static { display: none; }
html.g-foto .sandwich, html.g-foto .sandwich__note { display: none; }
html:not(.g-foto) [data-foto-only] { display: none; }
.gallego__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.gallego__lines path { fill: none; stroke: var(--peach); stroke-width: 1.5; stroke-linecap: round; }
.gallego__lines circle { fill: var(--yellow); }
.gallego__lines .halo { fill: color-mix(in srgb, var(--yellow) 25%, transparent); }
.tags { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.tag {
  position: absolute; display: grid; gap: 2px;
  background: var(--peach); color: var(--ink);
  padding: 12px 18px 12px 16px; border-radius: 14px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7);
  opacity: 0; transform: translateY(14px) scale(.96); transform-origin: left center;
  transition: opacity .45s var(--ease), transform .55s var(--ease);
  max-width: 260px;
}
.tag strong { font-size: clamp(.95rem, 1.3vw, 1.15rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.tag small { font-size: 13px; color: var(--brown-2); font-weight: 600; letter-spacing: .5px; }
.tag.is-on { opacity: 1; transform: none; }
.tag--chip { background: transparent; color: var(--peach); border: 1.5px dashed color-mix(in srgb, var(--peach) 60%, transparent); box-shadow: none; }
.tag--chip small { color: var(--gold); }
.gallego__outro {
  position: absolute; left: 50%; bottom: clamp(24px, 6vh, 64px); translate: -50% 0; z-index: 5;
  width: min(820px, 100% - 2 * var(--gutter)); text-align: center;
  opacity: 0; transform: translateY(24px); pointer-events: none; will-change: transform, opacity;
}
.gallego__outro.is-on { pointer-events: auto; }
/* Si se llega con teclado, el cierre se muestra aunque el scroll no haya llegado. */
.gallego__outro:focus-within { opacity: 1 !important; transform: none !important; pointer-events: auto; }
@media (min-width: 901px) {
  /* En escritorio el cierre ocupa el lado derecho mientras la foto se aparta a la izquierda. */
  .gallego__outro { left: auto; right: var(--gutter); top: 50%; bottom: auto; translate: 0 -50%; width: min(540px, 38vw); text-align: left; }
  .gallego__outro .quote { font-size: clamp(2rem, 3.6vw, 3.4rem); }
}
.quote { font-size: clamp(1.7rem, 4.2vw, 3.4rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; color: var(--peach); margin-bottom: 22px; text-wrap: balance; }
.quote .hl { color: var(--yellow); }
.progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 14px; height: 2px; background: color-mix(in srgb, var(--peach) 15%, transparent); border-radius: 2px; z-index: 6; }
.progress span { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); border-radius: 2px; }

/* ---------- Bebidas ---------- */
.bebidas { position: relative; height: 600vh; --bg: var(--b0-bg); --fg: var(--b0-fg); --word: var(--b0-word); background: var(--bg); color: var(--fg); }
.bebidas__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); color: var(--fg); }
.bebidas__head { position: absolute; left: var(--gutter); top: calc(var(--header-h) + 20px); z-index: 6; max-width: 26ch; will-change: opacity, transform; }
.bebidas__head .eyebrow { color: inherit; }
.bebidas__head .h2 { color: inherit; font-size: clamp(1.7rem, 3vw, 2.8rem); }
.bebidas__words { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; pointer-events: none; }
.bword {
  grid-area: 1 / 1; margin: 0; text-align: center;
  font-weight: 700; font-size: clamp(3.6rem, 11.5vw, 12rem); line-height: .82; letter-spacing: -0.055em; text-transform: uppercase;
  color: var(--word); opacity: 0; will-change: transform, opacity, clip-path;
}
.bebidas__glow {
  position: absolute; left: 0; top: 0; width: 86vmin; height: 86vmin; border-radius: 50%; z-index: 2; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--word) 75%, transparent), color-mix(in srgb, var(--word) 18%, transparent) 60%, transparent);
  opacity: 0; will-change: transform, opacity;
}
.bebidas__frame {
  position: absolute; left: 50%; top: 54%; z-index: 3;
  height: min(74svh, 860px); aspect-ratio: 9 / 16;
  translate: -50% -50%;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 60px 100px -40px color-mix(in srgb, var(--night) 60%, transparent);
  will-change: transform, opacity, filter;
}
.bebidas__frame canvas, .bebidas__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bebidas__poster { z-index: -1; }
.bebidas__cuts { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.cut {
  position: absolute; left: 0; top: 0; height: min(76svh, 860px); width: auto; max-width: none;
  opacity: 0; transform-origin: 50% 50%; will-change: transform, opacity;
  filter: drop-shadow(0 44px 38px color-mix(in srgb, var(--night) 42%, transparent));
}
.moments { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.moment { position: absolute; left: var(--gutter); bottom: 64px; width: min(430px, 31vw); }
.moment__names { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; }
/* Halo del color de fondo para que los nombres se lean aunque pasen por encima de la palabra gigante. */
.names { position: absolute; left: 0; top: 0; margin: 0; display: grid; gap: 9px; width: max-content; max-width: 24vw; font-size: 18px; font-weight: 700; letter-spacing: 0; line-height: 1.3; text-shadow: 0 0 3px var(--bg), 0 0 10px var(--bg), 0 0 18px var(--bg); }
.names--left { text-align: right; justify-items: end; }
.names li { opacity: 0; will-change: transform, opacity; }
.names__head { font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 4px; }
.names li:not(.names__head)::before { content: "· "; opacity: .6; }
.moment__kicker, .moment__name, .moment__lead, .moment__chips li { opacity: 0; will-change: transform, opacity; }
.moment__kicker { font-size: 13px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; margin: 0 0 14px; }
.moment__name { font-size: clamp(2.4rem, 4.4vw, 4.4rem); line-height: .92; letter-spacing: -0.045em; margin: 0 0 14px; color: inherit; }
.moment__lead { font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 22px; max-width: 22ch; }
.moment__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.moment__chips li {
  padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: .3px;
  border: 1.5px solid color-mix(in srgb, currentColor 55%, transparent);
  background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(6px);
}
.bebidas__dots { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; z-index: 6; display: flex; gap: 12px; }
.bebidas__dots li { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .3; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.bebidas__dots li.is-on { opacity: 1; transform: scale(1.5); }

/* ---------- Tapas ---------- */
.tapas { position: relative; background: var(--peach); }
.tapas__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr; padding-top: calc(var(--header-h) + 24px); }
.tapas__head { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px 48px; align-items: end; }
.tapas__head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.tapas__head .h2 { font-size: clamp(2rem, 4.4vw, 3.8rem); }
.tapas__head .lead { margin: 0; }
.tapas__hint { grid-column: 2; margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .2px; opacity: .75; }
.tapas__hint::after { content: " →"; }
.tapas__viewport { overflow: hidden; display: flex; align-items: center; outline-offset: -6px; }
.tapas__track { display: flex; gap: clamp(14px, 2vw, 28px); padding: 24px var(--gutter); will-change: transform; }
.shot { position: relative; flex: none; height: min(56svh, 620px); border-radius: var(--radius); overflow: hidden; background: var(--brown); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.shot:hover img { transform: scale(1.05); }
.shot--tall { aspect-ratio: 4 / 5; }
.shot--wide { aspect-ratio: 1920 / 1036; }
.shot--sq { aspect-ratio: 1; }
/* Cada foto es un enlace a su sección de la carta; el nombre va en aria-label, no encima de la foto. */
.shot > a { display: block; width: 100%; height: 100%; position: relative; color: inherit; text-decoration: none; border-radius: inherit; }
.shot > a:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }

/* ---------- Brindis ---------- */
/* Titular en su franja y foto limpia debajo (sin texto ni degradado encima). */
.brindis { position: relative; background: var(--night); padding-top: clamp(64px, 9vw, 112px); }
.brindis__copy { width: min(1240px, 100% - 2 * var(--gutter)); margin: 0 auto clamp(32px, 5vw, 56px); }
.brindis__copy .h2 { max-width: 16ch; }
.brindis__copy .lead { max-width: 52ch; }
.brindis__band { position: relative; height: 78vh; min-height: 420px; overflow: hidden; }
.brindis__media { position: absolute; inset: -12% 0; will-change: transform; }
.brindis__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }

/* ---------- Opiniones ---------- */
.opiniones { background: var(--white); padding: clamp(80px, 11vw, 140px) 0; }
.opiniones__grid { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.opiniones .h2 { max-width: 14ch; margin-bottom: 20px; }
.review {
  position: relative; margin: 0; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius);
  background: var(--peach); color: var(--ink); box-shadow: 0 40px 70px -40px color-mix(in srgb, var(--night) 45%, transparent);
  transform: rotate(1.5deg);
}
.review::before { content: "“"; position: absolute; right: 26px; top: -18px; font-size: 9rem; line-height: 1; font-weight: 700; color: var(--gold); opacity: .55; }
.review__stars { margin: 0 0 14px; font-size: 1.5rem; letter-spacing: 4px; color: var(--gold); }
.review__text { margin: 0 0 22px; font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.45; font-weight: 600; letter-spacing: -0.01em; }
.review__by { display: grid; gap: 2px; font-size: 14px; }
.review__by span { color: var(--brown-2); font-size: 13px; }
@media (max-width: 900px) { .opiniones__grid { grid-template-columns: 1fr; } .review { transform: none; } }

/* ---------- Carta teaser ---------- */
.carta-teaser { padding: clamp(80px, 12vw, 150px) 0; background: var(--peach); text-align: center; }
.carta-teaser .eyebrow::before { display: none; }
.carta-teaser .h2 { max-width: 18ch; margin-inline: auto; }
.cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 56px auto 12px; max-width: 980px; }
.cats a {
  display: grid; justify-items: center; gap: 14px; padding: 26px 12px; border-radius: var(--radius);
  background: var(--white); text-decoration: none; font-weight: 600; letter-spacing: 1px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .3s;
}
.cats a:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 24px 40px -24px color-mix(in srgb, var(--ink) 50%, transparent); }
/* Iconos de la marca como máscara: toman el color de la paleta (el SVG original es dorado fijo).
   La imagen va en el style de cada icono en index.html para que la ruta se resuelva desde la página, no desde css/. */
.cats__ico {
  width: 64px; height: 64px; background: var(--gold); transition: transform .5s var(--ease);
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.cats a:hover .cats__ico { transform: scale(1.12) rotate(-6deg); }

/* ---------- Visítanos ---------- */
.visit { background: var(--ink); color: var(--peach); padding: clamp(80px, 11vw, 140px) 0; }
.visit__grid { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.visit address { margin-top: 26px; font-size: 1.15rem; line-height: 1.6; }
.visit address a { color: var(--yellow); font-weight: 700; font-size: 1.4rem; text-decoration: none; }
.visit address a:hover { text-decoration: underline; }
.hours { margin: 26px 0 0; display: grid; gap: 0; max-width: 420px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid color-mix(in srgb, var(--peach) 20%, transparent); }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; }
.map { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.3; background: var(--peach); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px; text-align: center; color: var(--ink); }
.map__placeholder img { width: 120px; }
.map__placeholder p { margin: 0; font-weight: 600; max-width: 26ch; }

/* ---------- Pie ---------- */
.site-footer { background: var(--brown-2); color: var(--white); padding: 56px 0 40px; }
.footer__grid { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: center; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: flex-end; }
.footer__links a { text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: 1px; }
.footer__links a:hover { text-decoration: underline; }
.footer__note { grid-column: 1 / -1; margin: 0; font-size: 13px; opacity: .9; border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 18px; }

.dock { display: none; }

/* ---------- Revelado de elementos ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .header-ctas { margin-left: auto; }
}
@media (max-width: 900px) {
  :root { --header-h: 62px; }
  body { font-size: 16px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .brand { width: 108px; }
  .header-ctas .btn--ghost { display: none; }

  .hero { height: 190vh; }
  .hero__stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 18px; padding-top: calc(var(--header-h) + 18px); padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .hero__title { font-size: clamp(2.7rem, 12.5vw, 4.6rem); margin-bottom: 14px; }
  .hero__lead { font-size: 1rem; margin-bottom: 0; }
  /* En móvil la barra inferior ya ofrece Ver carta, Cómo llegar y Llamar. */
  .hero .cta-row { display: none; }
  .hero__collage { height: 100%; min-height: 0; }
  .card--main { height: 96%; }
  .card--interior { height: 66%; left: -10%; top: -2%; }
  .scroll-hint { display: none; }
  .hero__plant { width: 120px; left: -30px; bottom: -20px; }

  .terraza__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .terraza__text { grid-column: 1 / -1; grid-row: auto; }
  .ph--tall { grid-column: 1 / span 2; grid-row: auto; aspect-ratio: 4 / 4.4; }
  .ph--small { grid-column: 2; grid-row: auto; margin-top: -32%; margin-right: -4%; border: 6px solid var(--white); border-radius: calc(var(--radius-sm) + 6px); }

  .gallego { height: 400vh; }
  .gallego__frame { height: auto; width: min(74vw, 420px); top: 50%; }
  .gallego__intro { left: var(--gutter); right: var(--gutter); bottom: auto; top: calc(var(--header-h) + 14px); max-width: none; }
  .gallego__intro .h2 { font-size: clamp(1.7rem, 7.4vw, 2.4rem); }
  .gallego__intro .lead { font-size: 1rem; }
  .tag { padding: 8px 11px; max-width: 200px; border-radius: 12px; }
  .tag strong { font-size: .9rem; }
  .tag small { font-size: 11.5px; }
  .gallego__outro { bottom: calc(88px + env(safe-area-inset-bottom)); }
  .sandwich__note { bottom: calc(92px + env(safe-area-inset-bottom)); font-size: 11px; }
  .progress { bottom: calc(80px + env(safe-area-inset-bottom)); }

  .bebidas { height: 560vh; }
  .bebidas__head { top: calc(var(--header-h) + 12px); right: var(--gutter); max-width: none; }
  .bebidas__head .h2 { font-size: clamp(1.4rem, 6vw, 2rem); }
  .bebidas__frame { height: min(50svh, 480px); top: 50%; }
  .bword { font-size: clamp(3rem, 17vw, 6rem); }
  .cut { height: min(52svh, 470px); }
  .moment { left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: calc(80px + env(safe-area-inset-bottom)); translate: none; }
  .moment__kicker { font-size: 11px; letter-spacing: 2px; margin-bottom: 6px; }
  .moment__name { font-size: 2.1rem; margin-bottom: 6px; }
  .moment__lead { font-size: 1rem; margin-bottom: 10px; max-width: none; }
  .moment__chips { gap: 6px; }
  .moment__chips li { padding: 6px 11px; font-size: 12px; }
  .bebidas__dots { left: auto; right: var(--gutter); bottom: auto; top: calc(var(--header-h) + 16px); translate: none; }
  .moment__names { inset: auto 0 auto 0; top: calc(var(--header-h) + 40px); height: 34px; overflow: hidden; display: flex; gap: 22px; width: max-content; animation: names-marquee 22s linear infinite; padding-left: 100%; }
  .names { position: static; display: flex; gap: 14px; max-width: none; font-size: 15px; white-space: nowrap; text-align: left; }
  .names li { opacity: 1; }
  .names__head { margin: 0; font-size: 11.5px; align-self: center; }

  .tapas__head { grid-template-columns: 1fr; }
  .tapas__hint { grid-column: 1; }
  .tapas__stage { position: relative; height: auto; padding: 72px 0 56px; }
  .tapas__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tapas__viewport::-webkit-scrollbar { display: none; }
  .tapas__track { transform: none !important; }
  .shot { height: 62vw; max-height: 440px; scroll-snap-align: center; }

  .brindis__band { height: 58vh; min-height: 320px; }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .visit__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }

  .dock {
    display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; z-index: 120; left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom)); background: var(--ink); border-radius: 999px; overflow: hidden;
    box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--night) 70%, transparent);
  }
  .dock a { color: var(--peach); text-decoration: none; text-align: center; font-weight: 600; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; padding: 16px 4px; }
  .dock a + a { border-left: 1px solid color-mix(in srgb, var(--peach) 18%, transparent); }
  .dock .dock__call { background: var(--gold); color: var(--ink); }
}
@media (max-width: 520px) {
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats li:last-child { grid-column: 1 / -1; }
  .header-ctas .btn { padding: 0 14px; }
}

/* ---------- Movimiento reducido: mismo contenido, sin escenas fijadas ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
}
html.rm .hero, html.rm .gallego, html.rm .bebidas, html.rm .tapas { height: auto; }
html.rm .hero__stage, html.rm .gallego__stage, html.rm .bebidas__stage, html.rm .tapas__stage { position: relative; height: auto; min-height: 0; overflow: visible; }
html.rm .hero__stage { min-height: 100svh; }
html.rm .scroll-hint { display: none; }
html.rm [data-reveal] { opacity: 1; transform: none; }

html.rm .gallego__stage { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: calc(var(--header-h) + 48px) var(--gutter) 80px; }
html.rm .gallego__word { display: none; }
html.rm .gallego__intro, html.rm .gallego__outro, html.rm .gallego__frame, html.rm .tags { position: relative; inset: auto; left: auto; top: auto; bottom: auto; translate: none; transform: none; opacity: 1; width: auto; max-width: none; }
html.rm .gallego__frame { height: auto; width: 100%; grid-row: span 3; }
html.rm .gallego__lines, html.rm .progress, html.rm .sandwich, html.rm .sandwich__note { display: none; }
html.rm .sandwich-static { display: block; width: 100%; max-width: 560px; border-radius: var(--radius); }
html.rm .tags { display: flex; flex-wrap: wrap; gap: 10px; pointer-events: auto; }
html.rm .tag { position: static; opacity: 1; transform: none; }
html.rm .gallego__outro { text-align: left; pointer-events: auto; }

html.rm .bebidas__stage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px; align-items: start; padding: calc(var(--header-h) + 40px) var(--gutter) 80px; max-width: 1180px; margin-inline: auto; background: transparent; }
html.rm .bebidas__head { position: static; grid-column: 1 / -1; max-width: none; }
html.rm .bebidas__words, html.rm .bebidas__frame, html.rm .bebidas__glow, html.rm .bebidas__dots { display: none; }
html.rm .bebidas__cuts, html.rm .moments { display: contents; }
html.rm .cut { position: static; opacity: 1; width: 100%; height: 420px; object-fit: contain; grid-row: 2; transform: none !important; }
html.rm .moment { position: static; translate: none; width: auto; min-width: 0; grid-row: 3; }
html.rm .cut[data-cut="0"], html.rm .moment[data-moment="0"] { grid-column: 1; }
html.rm .cut[data-cut="1"], html.rm .moment[data-moment="1"] { grid-column: 2; }
html.rm .cut[data-cut="2"], html.rm .moment[data-moment="2"] { grid-column: 3; }
html.rm .moment__kicker, html.rm .moment__name, html.rm .moment__lead, html.rm .moment__chips li { opacity: 1 !important; transform: none !important; }
html.rm .moment { bottom: auto; }
html.rm .moment__names { position: static; opacity: 1; display: grid; gap: 12px; margin-top: 18px; animation: none; padding: 0; height: auto; width: auto; }
html.rm .names { position: static; width: auto; min-width: 0; max-width: none; white-space: normal; overflow-wrap: anywhere; text-align: left; justify-items: start; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 16px; text-shadow: none; }
html.rm .names li { opacity: 1; }
html.rm .names__head { flex-basis: 100%; margin: 0; }
html.rm .moment__name { font-size: clamp(2rem, 3.4vw, 3rem); }

html.rm .tapas__stage { padding: 80px 0; }
html.rm .tapas__viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
html.rm .tapas__track { transform: none !important; }
html.rm .shot { scroll-snap-align: start; }
html.rm .brindis__media { inset: 0; transform: none !important; }
html.rm .card { transform: none !important; }
html.rm .card--interior { transform: rotate(-5deg) !important; }
@media (max-width: 900px) {
  html.rm .gallego__stage { grid-template-columns: 1fr; }
  html.rm .bebidas__stage { grid-template-columns: minmax(0, 1fr); }
  html.rm .cut, html.rm .moment { grid-column: 1 !important; grid-row: auto; }
  html.rm .cut { height: 320px; }
  html.rm .cut[data-cut="0"] { order: 1; } html.rm .moment[data-moment="0"] { order: 2; }
  html.rm .cut[data-cut="1"] { order: 3; } html.rm .moment[data-moment="1"] { order: 4; }
  html.rm .cut[data-cut="2"] { order: 5; } html.rm .moment[data-moment="2"] { order: 6; }
}

/* ---------- Selector de paleta (solo demo: ?demo) ---------- */
.paleta-demo {
  position: fixed; left: 12px; bottom: 12px; z-index: 250;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: calc(100vw - 24px);
  padding: 8px; border-radius: 16px; background: rgba(20, 20, 20, .82); backdrop-filter: blur(8px);
  font: 600 12px/1 var(--font); color: #fff; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
}
.paleta-demo span { padding: 0 6px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .8; }
.paleta-demo button { font: inherit; color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.paleta-demo button[aria-pressed="true"] { background: #fff; color: #111; }
@media (max-width: 900px) { .paleta-demo { bottom: calc(80px + env(safe-area-inset-bottom)); } }
