/* ==========================================================================
   K Dolç
   Dos modos, como el logo: Dolç (claro, obrador) y Salat (oscuro, brasa).
   Un solo acento: el turquesa de la casa.

   Radios: interactivos en píldora, fotos y tarjetas 20px, campos 12px,
   pizarras 6px (son objetos físicos, no botones).
   Capas (z-index): 10 contenido elevado, 40 barra móvil, 50 cabecera, 60 visor.
   ========================================================================== */

:root {
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-chalk: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1240px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --nav-h: 68px;
  --r-card: 20px;
  --r-field: 12px;
  --r-slate: 6px;
  --chalk: #eff5f2;
  --wood: linear-gradient(100deg, #d9b987, #c39b64 28%, #d6b27f 52%, #b88e58 78%, #cfa974);
}

html[data-mode="dolc"] {
  color-scheme: light;
  --bg: #f1f6f4;
  --bg-2: #e3eeeb;
  --surface: #fcfefd;
  --ink: #10201e;
  --ink-2: #47605c;
  --line: rgba(16, 32, 30, .13);
  --line-strong: rgba(16, 32, 30, .34);
  --accent: #5fb9ad;
  --accent-ink: #0b6b62;
  --on-accent: #0b1f1d;
  --slate: #24332f;
  --chalk-accent: #8adacc;
  --plank: #9fd4ca;
  --plank-gap: rgba(16, 60, 54, .16);
  --plank-tone: rgba(255, 255, 255, .13);
  --danger: #a8281f;
  --shadow: 0 22px 44px -22px rgba(16, 70, 62, .42);
}

html[data-mode="salat"] {
  color-scheme: dark;
  --bg: #0d1112;
  --bg-2: #131a1b;
  --surface: #182021;
  --ink: #eaf2f1;
  --ink-2: #a6b8b6;
  --line: rgba(234, 242, 241, .14);
  --line-strong: rgba(234, 242, 241, .38);
  --accent: #52bedd;
  --accent-ink: #74cee8;
  --on-accent: #06181d;
  --slate: #1d2928;
  --chalk-accent: #74cee8;
  --plank: #10292b;
  --plank-gap: rgba(0, 0, 0, .4);
  --plank-tone: rgba(255, 255, 255, .025);
  --danger: #ff9086;
  --shadow: 0 22px 44px -22px rgba(0, 0, 0, .8);
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }

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

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 70;
  padding: .7rem 1.1rem; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 1rem; }

.ico {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

/* Bloques que cambian con el modo: se apilan y solo se ve el activo */
[data-for] { transition: opacity .55s var(--ease), transform .7s var(--ease), visibility 0s linear 0s; }
html[data-mode="dolc"] [data-for="salat"],
html[data-mode="salat"] [data-for="dolc"] {
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), transform .5s var(--ease), visibility 0s linear .35s;
}
.swap { display: grid; }
.swap > * { grid-area: 1 / 1; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  height: 52px; padding: 0 1.5rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1; white-space: nowrap; text-decoration: none;
  transition: transform .3s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--line { border-color: var(--line-strong); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn--full { width: 100%; }

.link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; color: var(--accent-ink);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .28em;
}
.link .ico { transition: transform .3s var(--ease); }
.link:hover .ico { transform: translate(2px, -2px); }

/* Pizarra pequeña, como las de la vitrina */
.chalk {
  display: inline-block;
  padding: .3em .7em .38em;
  background: var(--slate); color: var(--chalk);
  border-radius: var(--r-slate);
  font-family: var(--font-chalk); font-weight: 700; font-size: 1.35rem; line-height: 1;
  transform: rotate(-2deg);
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .6);
}
html[data-mode="salat"] .chalk { box-shadow: inset 0 0 0 1px rgba(239, 245, 242, .16), 0 6px 14px -8px rgba(0, 0, 0, .6); }

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

.nav-sentinel { position: absolute; top: 0; height: 12px; width: 1px; }

.nav { position: sticky; top: 0; z-index: 50; transition: box-shadow .3s; }
/* El desenfoque va en un pseudo-elemento para que el menú móvil pueda ser fixed respecto a la pantalla */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}
.nav.is-stuck { box-shadow: 0 1px 0 var(--line); }
.nav__in { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }

.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.nav__links a {
  position: relative; padding: .4rem 0; text-decoration: none; font-weight: 600;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__links a:hover::after, .nav__links a:focus-visible::after { transform: scaleX(1); }

.nav__tools { display: flex; align-items: center; gap: .7rem; }
.nav__call { height: 42px; padding: 0 1.1rem; font-size: .95rem; }

/* Interruptor Dolç · K · Salat */
.mode {
  --w: 56px; --k: 26px;
  position: relative; display: inline-grid; grid-template-columns: var(--w) var(--k) var(--w); align-items: center;
  height: 42px; padding: 4px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2);
  font-weight: 700; font-size: .92rem; line-height: 1;
}
.mode::before {
  content: ""; position: absolute; top: 4px; left: 4px; width: var(--w); height: 32px;
  border-radius: 999px; background: var(--ink);
  transition: transform .55s var(--ease);
}
html[data-mode="salat"] .mode::before { transform: translateX(calc(var(--w) + var(--k))); }
.mode__label { position: relative; text-align: center; color: var(--ink-2); transition: color .35s; }
html[data-mode="dolc"] .mode__label[data-side="dolc"],
html[data-mode="salat"] .mode__label[data-side="salat"] { color: var(--bg); }
.mode__k {
  position: relative; text-align: center;
  font-family: var(--font-chalk); font-size: 1.55rem; color: var(--accent-ink);
  transition: transform .6s var(--ease);
}
html[data-mode="salat"] .mode__k { transform: rotate(360deg); }

.lang { position: relative; display: inline-flex; align-items: center; }
.lang select {
  appearance: none; height: 42px; padding: 0 2rem 0 .95rem;
  border: 1px solid var(--line); border-radius: 999px; background: transparent;
  font-weight: 700; font-size: .92rem; cursor: pointer;
}
.lang::after {
  content: ""; position: absolute; right: .95rem; top: 50%; width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.lang select option { color: #10201e; background: #fff; }
.lang--menu { display: none; }

.burger { display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; }
.burger span {
  position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center; gap: clamp(2rem, 5vw, 5rem);
  min-height: min(calc(100dvh - var(--nav-h) - 72px), 780px);
  padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4rem);
}

.status {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .42rem .95rem .42rem .75rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-weight: 650; font-size: .95rem; line-height: 1.2;
}
.status[hidden] { display: inline-flex !important; visibility: hidden; }
.status[hidden] [data-status-text]::before { content: "\00a0"; }
.status__dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-2); flex: none; }
.status.is-open .status__dot { background: var(--accent-ink); }
.status.is-open .status__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit;
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { to { transform: scale(3.2); opacity: 0; } }

.hero__title {
  margin-top: 1.25rem;
  font-size: clamp(3.3rem, 8.6vw, 7.4rem);
  font-weight: 800; line-height: .92; letter-spacing: -.045em;
}
.hero__title > span { display: block; }
.hero__word { position: relative; display: inline-grid !important; width: max-content; color: var(--accent-ink); padding-bottom: .16em; }
.hero__word > [data-for] { grid-area: 1 / 1; }
html[data-mode="dolc"] .hero__word > [data-for="salat"],
html[data-mode="salat"] .hero__word > [data-for="dolc"] { transform: translateY(.35em); }
.hero__stroke {
  position: absolute; left: -3%; bottom: -.04em; width: 106%; height: .2em;
  color: var(--accent); overflow: visible;
  transform-origin: left; transition: transform .8s var(--ease);
}

.hero__sub { margin-top: 1.5rem; max-width: 30rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.45; color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero__art { position: relative; justify-self: end; width: min(100%, 560px); aspect-ratio: 1; }
.plate { position: absolute; inset: 7%; border-radius: 50%; overflow: hidden; background: var(--bg-2); }
.plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plate img[data-for="dolc"] { object-position: 50% 68%; }
.plate img[data-for="salat"] { object-position: 42% 62%; }
html[data-mode="dolc"] .plate img[data-for="salat"],
html[data-mode="salat"] .plate img[data-for="dolc"] { transform: scale(1.12); }

.ring {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  color: var(--accent); pointer-events: none;
  transition: transform 1.2s var(--ease), color .5s;
}
html[data-mode="salat"] .ring { transform: rotate(150deg); }

.sat {
  position: absolute; width: 31%; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: 50%; border: 6px solid var(--bg);
  box-shadow: var(--shadow);
  transition: transform .9s var(--ease), border-color .5s;
}
.sat--sweet { top: 0; right: -2%; object-position: 60% 30%; }
.sat--savory { bottom: 2%; left: -3%; }
html[data-mode="salat"] .sat--sweet { transform: scale(.86); }
html[data-mode="dolc"] .sat--savory { transform: scale(.86); }

.spark { position: absolute; fill: var(--accent); }
.spark--a { width: 26px; height: 26px; top: 30%; left: 2%; }
.spark--b { width: 16px; height: 16px; top: 9%; left: 22%; }
.spark--c { width: 20px; height: 20px; bottom: 8%; right: 12%; }

/* ---------- Cinta ---------- */

.ticker { overflow: hidden; border-block: 1px solid var(--line); padding-block: 1.05rem; }
.ticker__track {
  display: flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem;
  width: max-content; white-space: nowrap;
  font-size: clamp(1.2rem, 2.3vw, 1.85rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.2;
  animation: tick 42s linear infinite;
}
.ticker svg { width: .62em; height: .62em; flex: none; fill: var(--accent); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */

/* El anillo gira al cambiar de modo y su caja sobresale: se recorta aquí sin romper los sticky */
main { overflow-x: clip; }
section { position: relative; }
.day, .carta, .tartas, .local, .voz, .visita { padding-block: clamp(4.5rem, 10vw, 8rem); }

.head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.head h2, .visita h2 {
  font-size: clamp(2.2rem, 5.2vw, 3.9rem);
  font-weight: 760; line-height: 1; letter-spacing: -.038em; text-wrap: balance;
}
.head p { margin-top: 1.1rem; max-width: 36rem; font-size: 1.15rem; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

/* ---------- El día ---------- */

.day__track {
  display: flex; gap: 1rem;
  width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto;
}
.slot {
  position: relative; flex: 1 1 0; min-width: 0;
  border-radius: var(--r-card); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: flex-grow .8s var(--ease);
}
.slot.is-now { flex-grow: 1.75; border-color: var(--accent-ink); }
.slot > img, .slot__big { width: 100%; height: clamp(230px, 25vw, 330px); object-fit: cover; }
.slot__txt { padding: 0 1.15rem 1.35rem; }
.slot__txt .chalk { position: relative; margin-top: -1.15rem; }
.slot__txt h3 { margin-top: .85rem; font-size: 1.3rem; font-weight: 720; line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
.slot__txt p:not(.chalk) { margin-top: .4rem; font-size: .98rem; line-height: 1.4; color: var(--ink-2); }

.slot--ember { background: var(--slate); border-color: transparent; color: var(--chalk); }
.slot--ember .slot__big {
  display: grid; place-content: center; justify-items: center; gap: .6rem;
  font-family: var(--font-chalk); font-weight: 700; font-size: clamp(2.5rem, 4.4vw, 3.8rem); line-height: .9; text-align: center;
  background:
    radial-gradient(ellipse at 22% 18%, rgba(255, 255, 255, .07), transparent 55%),
    radial-gradient(ellipse at 80% 85%, rgba(255, 255, 255, .05), transparent 55%);
}
.slot--ember .slot__big span { display: block; max-width: 5ch; transform: rotate(-5deg); }
.slot--ember .spark { position: static; width: 30px; height: 30px; fill: var(--chalk-accent); }
.slot--ember .chalk { background: var(--chalk); color: var(--slate); }
.slot--ember .slot__txt p:not(.chalk) { color: rgba(239, 245, 242, .76); }

.now {
  position: absolute; top: .8rem; left: .8rem; z-index: 10;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .32rem .8rem .32rem .65rem; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 750; font-size: .85rem; line-height: 1.2;
}
.now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- Carta: una pizarra con marco de madera ---------- */

.carta { background: var(--bg-2); }
.frame { padding: 12px; border-radius: var(--r-card); background: var(--wood); box-shadow: var(--shadow); }
.board {
  padding: clamp(1.4rem, 4vw, 3.25rem);
  border-radius: 9px;
  color: var(--chalk);
  background:
    radial-gradient(ellipse at 14% 8%, rgba(255, 255, 255, .06), transparent 46%),
    radial-gradient(ellipse at 88% 92%, rgba(255, 255, 255, .05), transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(255, 255, 255, .025), transparent 40%),
    #24332f;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35), inset 0 10px 30px -10px rgba(0, 0, 0, .55);
}

.tabs { display: flex; flex-wrap: wrap; gap: .4rem clamp(1.1rem, 3vw, 2.4rem); }
.tabs button {
  position: relative; padding: .2rem .1rem .45rem;
  border: 0; background: none;
  font-family: var(--font-chalk); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1;
  color: rgba(239, 245, 242, .58); white-space: nowrap;
  transition: color .3s;
}
.tabs button::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0; height: 4px; border-radius: 4px;
  background: var(--chalk-accent); transform: scaleX(0) rotate(-.6deg); transform-origin: left;
  transition: transform .5s var(--ease);
}
.tabs button:hover { color: var(--chalk); }
.tabs button[aria-selected="true"] { color: var(--chalk); }
.tabs button[aria-selected="true"]::after { transform: scaleX(1) rotate(-.6deg); }
.tabs button:focus-visible, .panel:focus-visible { outline-color: var(--chalk-accent); }

.panel { margin-top: clamp(1.5rem, 3vw, 2.25rem); animation: panel-in .6s var(--ease) both; }
.panel[hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } }
.panel__intro { max-width: 34rem; font-size: 1.08rem; color: rgba(239, 245, 242, .78); }

.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.7rem 2.5rem; margin-top: 1.9rem; }
.items--short { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.05rem 2.5rem; }
.items h3 { font-family: var(--font-chalk); font-weight: 700; font-size: 1.95rem; line-height: 1.02; }
.items p { margin-top: .3rem; font-size: .96rem; line-height: 1.4; color: rgba(239, 245, 242, .74); }
.items p:empty { display: none; }
.items li { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: baseline; }
.items li p { grid-column: 1 / -1; }
.items .price { font-family: var(--font-chalk); font-weight: 700; font-size: 1.7rem; line-height: 1; color: var(--chalk-accent); }

.board__note { margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.2rem; border-top: 1px dashed rgba(239, 245, 242, .26); font-size: .92rem; color: rgba(239, 245, 242, .7); }

/* ---------- Tartas ---------- */

.tartas__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.shots { columns: 2; column-gap: 1rem; }
.shot {
  display: block; width: 100%; margin: 0 0 1rem; padding: 0; border: 0; background: var(--bg-2);
  border-radius: var(--r-card); overflow: hidden; break-inside: avoid; cursor: zoom-in;
}
.shot img { width: 100%; transition: transform .9s var(--ease); }
.shot:hover img { transform: scale(1.045); }
.shot:focus-visible { border-radius: var(--r-card); }

.order {
  position: sticky; top: calc(var(--nav-h) + 20px);
  display: grid; gap: 1.25rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow);
}
.order__title { font-size: 1.6rem; font-weight: 760; line-height: 1.1; letter-spacing: -.03em; }
.field { display: grid; gap: .5rem; }
.field > label, .field > legend { font-weight: 680; font-size: .96rem; }
.field > legend { margin-bottom: .5rem; }
.field input[type="text"], .field input[type="date"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .65rem .9rem;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-field);
  background: var(--bg); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; line-height: 1.45; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--accent-ink);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 34%, transparent);
}
.field__msg { font-size: .9rem; line-height: 1.35; color: var(--ink-2); }
.field.is-error input { border-color: var(--danger); }
.field.is-error .field__msg { color: var(--danger); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; height: 42px; padding: 0 1rem;
  border: 1.5px solid var(--line-strong); border-radius: 999px;
  font-weight: 650; font-size: .96rem;
  transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease);
}
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chips input:focus-visible + span { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
.chips label:active span { transform: scale(.96); }
.order__help { font-size: .9rem; line-height: 1.4; color: var(--ink-2); }

/* ---------- El local: tablones decapados ---------- */

.local {
  background:
    repeating-linear-gradient(90deg, var(--plank-gap) 0 2px, transparent 2px 152px),
    repeating-linear-gradient(90deg, transparent 0 152px, var(--plank-tone) 152px 304px),
    var(--plank);
}
html[data-mode="dolc"] .local { --ink-2: #26403c; }

.trio { display: grid; grid-template-columns: 1.15fr 1fr .85fr; gap: 1rem; align-items: start; }
.trio figure { border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); }
.trio img { width: 100%; height: 100%; object-fit: cover; }
.trio__a { aspect-ratio: 4 / 5; }
.trio__b { aspect-ratio: 4 / 3; margin-top: 4.5rem; }
.trio__c { aspect-ratio: 3 / 4; margin-top: 1.75rem; }
.trio__a img { object-position: 50% 60%; }
.trio__c img { object-position: 50% 30%; }

.facts { display: flex; flex-wrap: wrap; gap: .8rem 2.2rem; margin-top: clamp(2rem, 4vw, 3.25rem); font-weight: 680; font-size: 1.12rem; }
.facts li { display: inline-flex; align-items: center; gap: .6rem; }
.facts svg { width: 15px; height: 15px; fill: currentColor; flex: none; }

/* ---------- Reseñas ---------- */

.voz__in { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 300px); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.medal { position: relative; aspect-ratio: 1; align-self: center; }
.medal img { position: absolute; inset: 7%; width: 86%; height: 86%; object-fit: cover; object-position: 50% 62%; border-radius: 50%; }
html[data-mode] .medal .ring { transform: none; }
.score__num { font-size: clamp(5.5rem, 14vw, 11rem); font-weight: 800; line-height: .8; letter-spacing: -.06em; }
.score__stars { position: relative; display: inline-block; margin-top: 1.4rem; line-height: 0; }
.score__stars span { display: inline-flex; gap: 3px; }
.score__stars svg { width: 26px; height: 26px; flex: none; }
.score__base svg { fill: var(--line-strong); }
.score__fill { position: absolute; left: 0; top: 0; width: 96%; overflow: hidden; }
.score__fill svg { fill: var(--accent-ink); }
.score__count { margin-top: .6rem; color: var(--ink-2); font-weight: 600; }

.quote blockquote {
  max-width: 19ch;
  font-size: clamp(1.9rem, 4.4vw, 3.5rem); font-weight: 680; line-height: 1.06; letter-spacing: -.035em; text-wrap: balance;
}
.quote figcaption { margin-top: 1.25rem; color: var(--ink-2); }
.quote__more { margin-top: clamp(2rem, 4vw, 3rem); }
.quote__more p { font-weight: 680; }
.quote__more ul { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.quote__more li { padding: .4rem .95rem; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 600; font-size: .98rem; }
.quote .link { margin-top: 1.75rem; }

/* ---------- Visítanos ---------- */

.visita { background: var(--bg-2); }
.visita__in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch; }
.visita address { display: flex; gap: .8rem; margin-top: 1.75rem; font-style: normal; font-size: 1.1rem; line-height: 1.5; }
.visita address .ico { margin-top: .22em; color: var(--accent-ink); width: 1.3em; height: 1.3em; }
.visita address span span { color: var(--ink-2); }

.hours { width: 100%; max-width: 25rem; margin-top: 2rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: .42rem 0; font-weight: 500; text-align: left; }
.hours td { text-align: right; }
.hours .is-closed td { color: var(--ink-2); }
.hours .is-today th, .hours .is-today td { font-weight: 780; }
.hours .chalk { margin-left: .6rem; font-size: 1.15rem; vertical-align: .1em; }

.visita__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

.map { position: relative; min-height: 440px; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
html[data-mode="salat"] .map iframe { filter: invert(.92) hue-rotate(180deg) saturate(.75) contrast(.92); }

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

.foot { padding-block: clamp(3rem, 6vw, 5rem) 2rem; border-top: 1px solid var(--line); }
.foot__in { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 2.5rem; }
.foot h2 { margin-bottom: .7rem; font-size: 1rem; font-weight: 760; }
.foot p { color: var(--ink-2); line-height: 1.5; }
.foot p + p { margin-top: .45rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .25em; }
.foot__brand img { width: 96px; height: 96px; border-radius: 50%; }
.foot__brand p { margin-top: 1rem; max-width: 17rem; }
.foot__ig { display: inline-flex; align-items: center; gap: .45rem; }
.foot__copy { margin-top: 3rem; font-size: .9rem; }

/* ---------- Barra móvil ---------- */

.dock { display: none; }

/* ---------- Visor ---------- */

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(5, 9, 9, .9); }
.lightbox figure { display: grid; justify-items: center; gap: .9rem; padding: 4.5rem 1rem 1.5rem; }
.lightbox img { max-width: min(92vw, 900px); max-height: 74dvh; width: auto; height: auto; border-radius: var(--r-card); animation: panel-in .5s var(--ease) both; }
.lightbox figcaption { max-width: 40ch; text-align: center; font-size: .98rem; color: rgba(255, 255, 255, .82); }
.lightbox__btn {
  position: fixed; z-index: 60; display: grid; place-items: center; width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.2rem;
  transition: background-color .2s, transform .3s var(--ease);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .26); }
.lightbox__btn:active { transform: scale(.94); }
.lightbox__btn:focus-visible { outline-color: #fff; border-radius: 50%; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; margin-top: -24px; }
.lightbox__next { right: 1rem; top: 50%; margin-top: -24px; }

/* ---------- Páginas de apoyo: aviso legal y 404 ---------- */

.nav__back { height: 42px; padding: 0 1.1rem; font-size: .95rem; }

.prose { max-width: 44rem; padding-block: clamp(2.5rem, 6vw, 5rem); }
.prose h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 760; line-height: 1; letter-spacing: -.038em; }
.prose h2 { margin-top: 2.75rem; font-size: 1.45rem; font-weight: 740; line-height: 1.15; letter-spacing: -.025em; }
.prose p { margin-top: .9rem; color: var(--ink-2); }
.prose a { color: var(--accent-ink); font-weight: 650; }
.prose mark { padding: .1em .45em; border-radius: var(--r-slate); background: var(--accent); color: var(--on-accent); font-weight: 700; }

.lost { display: grid; justify-items: start; align-content: center; gap: 1.4rem; min-height: 100dvh; padding-block: 3rem; }
.lost img { border-radius: 50%; }
.lost h1 { max-width: 14ch; font-size: clamp(2.6rem, 8vw, 5.5rem); font-weight: 800; line-height: .95; letter-spacing: -.045em; }
.lost p { font-size: 1.15rem; color: var(--ink-2); }

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

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

.js .hero__copy > * { animation: rise 1s var(--ease) both; }
.js .hero__copy > :nth-child(2) { animation-delay: 80ms; }
.js .hero__copy > :nth-child(3) { animation-delay: 160ms; }
.js .hero__copy > :nth-child(4) { animation-delay: 240ms; }
.js .hero__art { animation: pop 1.3s var(--ease) both 120ms; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes pop { from { opacity: 0; transform: scale(.9) rotate(-8deg); } }

/* Cambio de modo: el nuevo color se abre en círculo desde el interruptor */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; animation: iris .8s var(--ease) both; }
@keyframes iris {
  from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 0)); }
  to { clip-path: circle(var(--vt-r, 150vmax) at var(--vt-x, 50%) var(--vt-y, 0)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker__track { width: auto; flex-wrap: wrap; justify-content: center; white-space: normal; gap: .6rem 1.4rem; padding-inline: var(--gutter); }
  .ticker__track > :nth-child(n + 13) { display: none; }
  ::view-transition-new(root) { animation: none; }
}

/* ---------- Tablet y móvil ---------- */

@media (max-width: 1040px) {
  .lang--bar { display: none; }
  .lang--menu { display: inline-flex; }
}

@media (max-width: 899px) {
  .burger { display: block; }
  .nav__call { display: none; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 0 0;
    flex-direction: column; align-items: flex-start; gap: .35rem;
    padding: 1.5rem var(--gutter) 2rem; overflow-y: auto;
    background: var(--bg);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s linear .35s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__links a { font-size: clamp(2.1rem, 9vw, 3rem); font-weight: 760; letter-spacing: -.035em; line-height: 1.25; }
  .nav__links a::after { height: 5px; }
  .lang--menu { margin-top: 1.5rem; }

  .hero { grid-template-columns: 1fr; min-height: 0; gap: 2.5rem; padding-top: 1.75rem; }
  .hero__title { font-size: clamp(3.4rem, 17vw, 5.6rem); }
  .hero__art { justify-self: center; width: min(86vw, 440px); }

  .day__track {
    width: auto; margin: 0; padding-inline: var(--gutter);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: var(--gutter);
  }
  .day__track::-webkit-scrollbar { display: none; }
  .slot, .slot.is-now { flex: 0 0 min(74vw, 320px); scroll-snap-align: center; }
  .slot > img, .slot__big { height: 250px; }

  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * clamp(1.4rem, 4vw, 3.25rem)); padding-inline: clamp(1.4rem, 4vw, 3.25rem); gap: 1.4rem; }
  .tabs::-webkit-scrollbar { display: none; }
  .frame { padding: 8px; }

  .tartas__grid { grid-template-columns: 1fr; }
  .order { position: static; }

  .trio { grid-template-columns: 1fr 1fr; }
  .trio__a { grid-column: 1 / -1; aspect-ratio: 1; }
  .trio__b, .trio__c { margin-top: 0; aspect-ratio: 3 / 4; }

  .voz__in { grid-template-columns: minmax(0, 1fr) 132px; }
  .quote { grid-column: 1 / -1; grid-row: 2; }
  .medal { grid-column: 2; grid-row: 1; align-self: start; }
  .visita__in { grid-template-columns: 1fr; }
  .map { min-height: 340px; }

  .foot { padding-bottom: 6.5rem; }
  .foot__in { grid-template-columns: 1fr 1fr; gap: 2.25rem 1.5rem; }
  .foot__brand { grid-column: 1 / -1; }

  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1.25fr; gap: .55rem;
    padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .55s var(--ease);
  }
  .dock.is-on { transform: none; }
  .dock .btn { height: 50px; padding: 0 .9rem; }
}

@media (max-width: 420px) {
  .brand span { display: none; }
  .foot__in { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 auto; }
}
