/*
 * Webs de los negocios. Cada negocio elige un estilo (theme-moderno, theme-clasico, theme-calido,
 * theme-oscuro) y su color (--brand y --brand-ink, que pone la propia página). Sin sombras ni
 * adornos: tipografía, fotos y espacio. Fuentes propias (licencia OFL) en ../fonts.
 */
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2-variations"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
    --bg: #ffffff;
    --surface: #f4f4f1;
    --ink: #0f0f0e;
    --muted: #62625d;
    --line: #e4e4df;
    --foot-bg: #0f0f0e;
    --foot-ink: #f4f4f1;
    --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --display: "Bricolage Grotesque", var(--sans);
    --h-weight: 700;
    --h-track: -0.035em;
    --h-case: none;
    --radius: 10px;
    --radius-lg: 18px;
    --btn-radius: 999px;
    --top-h: 68px;
    --ok: #16a34a;
    --bad: #dc2626;
    --brand: #111111;
    --brand-ink: #ffffff;
    --brand-soft: color-mix(in srgb, var(--brand) 9%, var(--bg));
}
/* Clásico: crema, títulos con remates y líneas rectas. */
.theme-clasico {
    --bg: #fbf8f2; --surface: #f2ece1; --ink: #201c17; --muted: #6c6459; --line: #e2d8c8;
    --foot-bg: #201c17; --foot-ink: #f2ece1;
    --display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
    --h-weight: 460; --h-track: -0.02em; --radius: 3px; --radius-lg: 4px; --btn-radius: 2px;
}
/* Cálido: rosado claro, títulos finos y formas redondas. */
.theme-calido {
    --bg: #fcf6f3; --surface: #f6e9e3; --ink: #2c211e; --muted: #7c6963; --line: #ecdcd4;
    --foot-bg: #2c211e; --foot-ink: #f6e9e3;
    --display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
    --h-weight: 360; --h-track: -0.025em; --radius: 16px; --radius-lg: 28px;
}
/* Oscuro: casi negro, títulos en mayúsculas y detalles en el color de la marca. */
.theme-oscuro {
    color-scheme: dark;
    --bg: #121110; --surface: #1c1a18; --ink: #f3eee7; --muted: #a69e94; --line: #322d29;
    --foot-bg: #0a0909; --foot-ink: #f3eee7;
    --h-weight: 760; --h-track: -0.012em; --h-case: uppercase; --radius: 4px; --radius-lg: 6px; --btn-radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); }
body { margin: 0; background: var(--bg); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--display); font-weight: var(--h-weight); letter-spacing: var(--h-track); text-transform: var(--h-case); line-height: 1.02; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
p { margin: 0; }
::selection { background: var(--brand); color: var(--brand-ink); }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 60; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: 6px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.theme-oscuro :focus-visible { outline-color: var(--ink); }

.demo-bar { position: relative; z-index: 31; margin: 0; padding: 7px 16px; text-align: center; font-size: 13px; line-height: 1.4; background: var(--ink); color: var(--bg); }

/* ---- Botones ------------------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border: 1px solid color-mix(in srgb, currentColor 32%, transparent); border-radius: var(--btn-radius); background: transparent; color: inherit; font: inherit; font-size: 16px; font-weight: 600; line-height: 1.1; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, opacity .2s; }
.btn:hover { border-color: currentColor; }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.primary:hover { opacity: .88; }
.btn.small { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* ---- Cabecera fija ------------------------------------------------------------------------ */
.top { position: sticky; top: 0; z-index: 30; height: var(--top-h); background: color-mix(in srgb, var(--bg) 93%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); transition: background-color .35s, border-color .35s, color .35s; }
.top .in { display: flex; align-items: center; gap: 16px; height: 100%; }
.brandname { display: flex; align-items: center; min-width: 0; margin-right: auto; font-family: var(--display); font-weight: var(--h-weight); letter-spacing: var(--h-track); text-transform: var(--h-case); font-size: 24px; line-height: 1; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brandname img { max-height: 44px; width: auto; }
.top .links { display: none; gap: 2px; }
.top .links a { padding: 8px 13px; border-radius: 999px; font-size: 15px; color: var(--muted); text-decoration: none; transition: color .2s, background-color .2s; }
.top .links a:hover { color: var(--ink); background: var(--surface); }
.top .cta { display: flex; align-items: center; gap: 8px; }
.top .cta .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
.menu-btn { display: none; min-height: 42px; padding: 0 16px; border: 1px solid color-mix(in srgb, currentColor 32%, transparent); border-radius: var(--btn-radius); background: transparent; color: inherit; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.js .menu-btn { display: inline-flex; align-items: center; }
@media (max-width: 979px) {
    .has-actionbar .top .cta .btn { display: none; }
    /* Menú del móvil: ocupa la pantalla bajo la cabecera. */
    .top.open { background: var(--bg); color: var(--ink); border-color: var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
    .top.open .links { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - var(--top-h)); padding: 20px 20px 40px; overflow-y: auto; background: var(--bg); border-top: 1px solid var(--line); }
    .top.open .links a { padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--display); font-weight: var(--h-weight); letter-spacing: var(--h-track); text-transform: var(--h-case); font-size: 34px; line-height: 1.1; }
    .top.open .links a:hover { background: transparent; }
    html.menu-open { overflow: hidden; }
}
@media (min-width: 980px) {
    .top .links { display: flex; }
    .js .menu-btn { display: none; }
}
/* Sobre la foto de portada: transparente hasta que se baja (solo con JavaScript, que lo vuelve opaco). */
.js .top.can-float:not(.solid):not(.open) { background: transparent; border-color: transparent; color: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
.js .top.can-float:not(.solid):not(.open) .links a { color: rgba(255, 255, 255, .86); }
.js .top.can-float:not(.solid):not(.open) .links a:hover { color: #fff; background: rgba(255, 255, 255, .14); }

/* ---- Portada ------------------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; background: var(--surface); }
.hero .in { position: relative; z-index: 1; display: grid; justify-items: start; gap: 24px; padding: clamp(72px, 11vw, 140px) 0 clamp(56px, 8vw, 104px); }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero h1 { max-width: 100%; padding-top: .08em; margin-bottom: .1em; font-size: clamp(72px, 21vw, 184px); line-height: .9; margin-left: -.045em; }
.theme-oscuro .hero h1 { padding-top: .14em; line-height: .92; }
.hero h1.size-l { font-size: clamp(52px, 13vw, 140px); }
.hero h1.size-xl { font-size: clamp(40px, 9vw, 104px); line-height: .96; }
.tagline { max-width: 26ch; font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.7vw, 34px); line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
.theme-oscuro .tagline { font-family: var(--sans); font-weight: 450; letter-spacing: -.01em; }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 15px; font-weight: 600; line-height: 1.3; }
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--bad); outline: 4px solid color-mix(in srgb, var(--bad) 22%, transparent); }
[data-open="1"] .dot { background: var(--ok); outline-color: color-mix(in srgb, var(--ok) 24%, transparent); }
.today { font-size: 15px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.next-slot { font-size: 15px; color: var(--muted); }
.next-slot a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.next-slot a:hover { text-decoration-thickness: 2px; }

.hero.has-cover { margin-top: calc(-1 * var(--top-h)); min-height: clamp(580px, 94svh, 1000px); display: grid; align-items: end; background: #0b0b0b; color: #fff; }
.hero.has-cover .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Oscurece arriba (menú) y abajo (textos) para que se lean sobre cualquier foto. */
.hero.has-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, .18) 45%, rgba(0, 0, 0, 0) 70%), linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .06) 22%, rgba(0, 0, 0, .2) 46%, rgba(0, 0, 0, .8) 100%); }
.hero.has-cover .in { padding-top: calc(var(--top-h) + 120px); }
.hero.has-cover .kicker { color: #fff; }
.hero.has-cover .today, .hero.has-cover .next-slot { color: rgba(255, 255, 255, .88); }
.hero.has-cover .next-slot a { color: #fff; }
.hero.has-cover .status { background: rgba(10, 10, 10, .38); border-color: rgba(255, 255, 255, .26); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero.has-cover .btn:not(.primary) { color: #fff; border-color: rgba(255, 255, 255, .6); }
.hero.has-cover .btn:not(.primary):hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* ---- Presentación ------------------------------------------------------------------------- */
.intro .in { display: grid; gap: 28px 72px; padding: clamp(72px, 10vw, 144px) 0; }
.intro .lead { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.5vw, 46px); line-height: 1.16; letter-spacing: -.02em; text-wrap: pretty; }
.intro .lead.long { font-size: clamp(24px, 2.6vw, 34px); }
.theme-oscuro .intro .lead { font-family: var(--sans); font-weight: 500; letter-spacing: -.025em; }
.intro .more { display: grid; gap: 16px; align-content: end; max-width: 46ch; color: var(--muted); font-size: 18px; }
@media (min-width: 920px) { .intro .in { grid-template-columns: 1.55fr 1fr; align-items: end; } }

/* ---- Bloques ------------------------------------------------------------------------------ */
.sec { padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--line); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 40px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h2 { font-size: clamp(46px, 7.4vw, 104px); line-height: .95; }
.sec-head p { max-width: 38ch; color: var(--muted); font-size: 18px; }

/* Carta o servicios: lo que tiene foto, destacado arriba de su apartado; el resto, en filas con su precio (y su duración si la tiene). */
.cats { display: flex; gap: 8px; margin: 0 0 clamp(40px, 5vw, 56px); padding: 0 0 4px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a { display: block; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 500; white-space: nowrap; text-decoration: none; transition: border-color .2s; }
.cats a:hover { border-color: var(--ink); }
.cat + .cat { margin-top: clamp(56px, 7vw, 96px); }
.cat > h3 { margin-bottom: 26px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); font-size: clamp(28px, 3.2vw, 40px); }
.plates { display: grid; gap: 36px 64px; margin: 0 0 18px; padding: 0; list-style: none; }
.plates figure { margin: 0; display: grid; gap: 16px; }
.plates img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); background: var(--surface); }
.dishes { display: grid; gap: 0 64px; margin: 0; padding: 0; list-style: none; }
.dishes li { padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 880px) {
    .plates, .dishes { grid-template-columns: 1fr 1fr; }
    .plates.three { grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
    /* Un plato con foto y el resto al lado, en lista. */
    .cat.side { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; align-items: start; }
    .cat.side > h3 { grid-column: 1 / -1; }
    .cat.side .plates, .cat.side .dishes { grid-template-columns: 1fr; margin: 0; }
    .cat.side .dishes li:first-child { padding-top: 0; }
}
.dish { display: flex; align-items: baseline; gap: 12px; }
.dish .name { font-size: 18px; font-weight: 600; line-height: 1.35; }
.dish .leader { flex: 1; min-width: 16px; border-bottom: 1px dotted color-mix(in srgb, var(--ink) 38%, transparent); transform: translateY(-5px); }
.dish .dur { color: var(--muted); font-size: 15px; white-space: nowrap; }
.price { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.desc { margin-top: 6px; max-width: 58ch; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* Llamada a reservar */
.book-band { background: var(--brand); color: var(--brand-ink); }
.book-band .in { display: grid; gap: 28px 64px; padding: clamp(72px, 9vw, 128px) 0; }
.book-band h2 { font-size: clamp(50px, 7.6vw, 108px); line-height: .95; }
.book-band .side { display: grid; gap: 26px; justify-items: start; }
.book-band p { max-width: 40ch; font-size: 19px; }
.book-band .btn { min-height: 56px; padding: 0 32px; background: var(--brand-ink); color: var(--brand); border-color: var(--brand-ink); font-size: 17px; }
.book-band .btn:hover { opacity: .9; }
.book-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.book-band .btn.ghost { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 55%, transparent); }
.book-band .btn.ghost:hover { border-color: currentColor; opacity: 1; }
.book-band .next-slot { color: inherit; font-size: 17px; }
.book-band .next-slot a { color: inherit; }
@media (min-width: 920px) { .book-band .in { grid-template-columns: 1.25fr 1fr; align-items: end; } }

/* Equipo */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 40px 28px; margin: 0; padding: 0; list-style: none; }
.team .ph { aspect-ratio: 4 / 5; margin-bottom: 18px; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); }
.team .ph img { width: 100%; height: 100%; object-fit: cover; }
.team .card { display: grid; justify-items: start; gap: 4px; padding-top: 22px; border-top: 1px solid var(--ink); }
.mono { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 16px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-family: var(--display); font-size: 30px; font-weight: var(--h-weight); line-height: 1; }
.theme-clasico .mono, .theme-oscuro .mono { border-radius: var(--radius); }
.team .name { font-family: var(--display); font-weight: var(--h-weight); letter-spacing: var(--h-track); text-transform: var(--h-case); font-size: 30px; line-height: 1.1; }
.team .role { color: var(--muted); }
.team .bio { margin-top: 8px; max-width: 40ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.tags li { padding: 4px 11px; border-radius: 999px; background: var(--surface); font-size: 13.5px; }

/* Fotos: una grande y las demás alrededor (bloques de cinco). */
.gal { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gal li:nth-child(5n+1) { grid-column: span 2; }
.gal li:last-child:nth-child(5n+2), .gal li:last-child:nth-child(5n+4) { grid-column: span 2; }
.gal a { display: block; height: 100%; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.gal a:hover img { transform: scale(1.04); }
@media (min-width: 760px) {
    .gal { grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(150px, 17vw, 240px); gap: 12px; }
    .gal li:nth-child(5n+1) { grid-column: span 4; grid-row: span 2; }
    .gal li:nth-child(5n+2), .gal li:nth-child(5n+3) { grid-column: span 2; }
    .gal li:nth-child(5n+4), .gal li:nth-child(5n+5) { grid-column: span 3; }
    .gal li:last-child:nth-child(5n+1), .gal li:last-child:nth-child(5n+4) { grid-column: span 6; }
    .gal li:last-child:nth-child(5n+2) { grid-column: span 2; grid-row: span 2; }
}
.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 8, 8, .96); color: #fff; }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox .frame { display: grid; grid-template-rows: auto 1fr auto; width: min(1280px, 100%); height: 100%; margin-inline: auto; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); gap: 12px; }
.lightbox .bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.lightbox figure { margin: 0; display: grid; place-items: center; min-height: 0; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lightbox .nav { display: flex; justify-content: center; gap: 10px; }
.lightbox button { min-height: 44px; padding: 0 20px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: 15px; cursor: pointer; }
.lightbox button:hover { border-color: #fff; }

/* Horario */
.hours-grid { display: grid; gap: 40px; }
@media (min-width: 920px) { .hours-grid { grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; } }
.now { display: grid; justify-items: start; gap: 10px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--brand-soft); }
.now .label { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.now .state { display: flex; align-items: center; gap: 16px; font-family: var(--display); font-weight: var(--h-weight); letter-spacing: var(--h-track); text-transform: var(--h-case); font-size: clamp(46px, 5.6vw, 76px); line-height: 1; }
.now .state .dot { width: 14px; height: 14px; margin-left: 6px; outline-width: 6px; }
.now .detail { font-size: 20px; font-weight: 600; }
.now .detail::first-letter { text-transform: uppercase; }
.now .today { margin-top: 6px; font-size: 16px; }
.week { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.week th, .week td { padding: 16px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; vertical-align: baseline; }
.week tr:first-child th, .week tr:first-child td { border-top: 1px solid var(--line); }
.week td { text-align: right; }
.week td span { display: inline-block; margin-left: 18px; }
.week .closed { color: var(--muted); }
.week tr.is-today th, .week tr.is-today td { font-weight: 700; }
.badge { display: inline-block; margin-left: 10px; padding: 2px 9px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 600; vertical-align: 2px; }
.special-t { margin: 40px 0 14px; font-size: 26px; }
.special { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.special li { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.special b { min-width: 7.5em; }

/* Cómo llegar y contacto */
.visit { display: grid; gap: 32px; }
@media (min-width: 920px) { .visit { grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; } }
.visit h2 { font-size: clamp(46px, 7.4vw, 104px); line-height: .95; }
.visit address { margin-bottom: 26px; font-style: normal; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; letter-spacing: -.015em; }
.theme-oscuro .visit address { font-family: var(--sans); font-weight: 500; letter-spacing: -.02em; }
.contact { margin: 0; padding: 0; list-style: none; }
.contact li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact li:first-child { border-top: 1px solid var(--line); }
.contact .label { color: var(--muted); }
.contact a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact a:hover { text-decoration: underline; }

/* Formulario de contacto (site/partials/contact-form), debajo de los datos de contacto si los hay. */
.msg-form, .msg-done { margin-top: 48px; }
.msg-form:first-child, .msg-done:first-child { margin-top: 0; }
.msg-form h3 { margin: 0 0 6px; font-family: var(--display); font-weight: var(--h-weight); letter-spacing: var(--h-track); text-transform: var(--h-case); font-size: clamp(28px, 3.2vw, 38px); line-height: 1.1; }
.msg-form .hint, .msg-form .demo-note { margin: 0; color: var(--muted); font-size: 15px; font-weight: 400; }
.msg-fields { display: grid; gap: 16px; margin-top: 22px; }
@media (min-width: 560px) { .msg-fields { grid-template-columns: 1fr 1fr; } .msg-fields .full { grid-column: 1 / -1; } }
.msg-fields .hint { margin-top: -8px; font-size: 14px; }
.msg-fields label { display: grid; gap: 6px; align-content: start; font-size: 15px; font-weight: 600; }
.msg-form input:not([type="checkbox"]), .msg-form textarea { width: 100%; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); border-radius: var(--radius); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; }
.msg-form textarea { min-height: 132px; resize: vertical; }
.msg-form [aria-invalid="true"] { border-color: var(--bad); }
.msg-form .err { color: var(--bad); font-size: 14px; font-weight: 600; }
.msg-form .err:empty { display: none; }
.msg-form .check { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 0; font-size: 15px; }
.msg-form .check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); }
.msg-form > .err { display: block; margin-top: 6px; }
.msg-form > .btn { margin-top: 22px; }
.msg-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.msg-form .legal { margin: 16px 0 0; max-width: 62ch; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.msg-status { margin: 14px 0 0; font-weight: 600; }
.msg-status:empty { display: none; }
.msg-status.bad { color: var(--bad); }
.msg-done { padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.msg-done:focus { outline: none; }
.msg-done .big { margin: 0 0 6px; font-family: var(--display); font-weight: var(--h-weight); letter-spacing: var(--h-track); text-transform: var(--h-case); font-size: clamp(28px, 3.2vw, 38px); line-height: 1.1; }
.msg-done p { margin: 0; }

/* ---- Pie ---------------------------------------------------------------------------------- */
.foot { padding: clamp(64px, 8vw, 104px) 0 calc(40px + env(safe-area-inset-bottom)); background: var(--foot-bg); color: var(--foot-ink); }
.foot .big { padding-top: .1em; font-family: var(--display); font-weight: var(--h-weight); letter-spacing: var(--h-track); text-transform: var(--h-case); font-size: clamp(60px, 12vw, 160px); line-height: .9; margin-left: -.04em; overflow-wrap: break-word; }
.foot .big.size-l { font-size: clamp(46px, 8.6vw, 120px); }
.foot .big.size-xl { font-size: clamp(36px, 6.4vw, 88px); line-height: .96; }
.foot .cols { display: grid; gap: 32px 48px; margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid color-mix(in srgb, var(--foot-ink) 18%, transparent); }
@media (min-width: 820px) { .foot .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h2 { margin-bottom: 12px; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.foot ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .note { margin-top: 12px; opacity: .65; font-size: 15px; }
.foot .made { margin-top: 56px; font-size: 13px; opacity: .55; }
.foot.compact { padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); }
.foot.compact .made { margin-top: 8px; }

/* ---- Barra de acciones en el móvil -------------------------------------------------------- */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.actionbar .btn { flex: 1; min-height: 48px; padding: 0 10px; font-size: 15px; }
.actionbar { transition: transform .3s ease, visibility .3s; }
.bar-auto .actionbar:not(.show), .menu-open .actionbar { transform: translateY(110%); visibility: hidden; }
body.has-actionbar { padding-bottom: calc(69px + env(safe-area-inset-bottom)); }
@media (min-width: 980px) { .actionbar { display: none; } body.has-actionbar { padding-bottom: 0; } }

/* ---- Aparición al bajar (la activa site.js; sin JavaScript todo se ve desde el principio) --- */
.reveal .rv:not(.shown) { opacity: 0; transform: translateY(22px); }
.reveal .rv { transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal .rv:not(.shown) { opacity: 1; transform: none; }
    .reveal .rv, .gal img, .btn, .top, .actionbar { transition: none; }
}
@media print { .top, .actionbar, .demo-bar { display: none; } .hero.has-cover { margin-top: 0; } }

/* ---- Tarjeta de sellos (bloque de la web y página del cliente) ---------------------------- */
.loyal-lead { margin: 0 0 18px; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; }
.loyal p { margin: 0 0 12px; }
.loyal .btn { margin-top: 10px; }
.loyal p.muted, .loyal-card .muted { color: var(--muted); }
.loyal-dots { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; }
.loyal-dots li { width: 34px; height: 34px; border: 2px solid currentColor; border-radius: 50%; }
.loyal-dots li.goal { border-style: dashed; }
.loyal-dots li.on { background: var(--brand); border-color: var(--brand); }
.loyal-dots.big li { width: 44px; height: 44px; }
.loyal-card { padding-top: 28px; }
.loyal-hello { margin: 0 0 18px; font-family: var(--display); font-size: clamp(28px, 4vw, 40px); font-weight: var(--h-weight); letter-spacing: var(--h-track); line-height: 1.1; }
.loyal-count { margin: 0 0 12px; font-size: 18px; }
.loyal-count b { margin-right: .1em; font-family: var(--display); font-size: 2.2em; font-weight: var(--h-weight); }
.loyal-reward { margin: 0 0 26px; padding: 18px 20px; border: 2px solid var(--brand); border-radius: var(--radius); }
.loyal-reward p { margin: 0; }
.loyal-reward .k { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.loyal-reward .t { margin: 4px 0 8px; font-family: var(--display); font-size: clamp(26px, 4vw, 36px); font-weight: var(--h-weight); line-height: 1.1; }
.loyal-note { margin: 0 0 22px; padding: 12px 14px; border: 1px solid var(--ink); border-radius: var(--radius); }
.loyal-qr { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin: 28px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.loyal-qr .qr { flex: none; width: 200px; height: 200px; padding: 8px; background: #fff; border-radius: 6px; }
.loyal-qr .qr svg { display: block; width: 100%; height: 100%; }
.loyal-qr figcaption { flex: 1 1 200px; }
.loyal-h { margin: 28px 0 8px; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.loyal-days { display: grid; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; }
.loyal-staff { margin-top: 28px; font-size: 14px; }
.loyal-staff a { color: var(--muted); }
/* «Estoy en la caja» */
.loyal-counter { scroll-margin-top: calc(var(--top-h) + 16px); margin: 0 0 28px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.loyal-counter form { margin: 0; }
.loyal-counter .loyal-here { width: 100%; min-height: 56px; margin: 0 0 12px; font-size: 18px; }
.loyal-counter p { margin: 0 0 10px; }
.loyal-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); font-size: 14px; font-weight: 600; }
.loyal-pill span { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: loyal-blink 1.6s ease-in-out infinite; }
.loyal-pill.ok span { background: var(--ok); animation: none; }
.loyal-say { font-size: clamp(20px, 3vw, 26px); line-height: 1.3; }
.loyal-say b { font-family: var(--display); font-weight: var(--h-weight); }
.loyal-counter .linkish { padding: 8px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.loyal-counter .linkish:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
@keyframes loyal-blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .loyal-pill span { animation: none; } }

/* El QR del cartel de la caja: hacerse la tarjeta en el móvil (site/till-join) */
.loyal-join-form { display: grid; gap: 14px; margin: 8px 0 24px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.loyal-join-form h2 { margin: 0; font-family: var(--display); font-size: clamp(22px, 3vw, 28px); font-weight: var(--h-weight); line-height: 1.15; }
.loyal-join-form .legal { margin: 0; }
.loyal-join-form .error { margin: 0; }
.loyal-join-ok { align-items: flex-start; font-weight: 400; }
.loyal-join-ok input { flex: none; margin-top: 2px; }
.loyal-join-have { margin: 0 0 32px; }

/* Tarjeta de puntos: lo que falta para el próximo premio, el catálogo y los últimos movimientos */
.loyal-next { margin: 0 0 18px; }
.loyal-next p { margin: 0; }
.loyal-bar { height: 12px; margin: 0 0 10px; border-radius: 999px; background: var(--brand-soft); overflow: hidden; }
.loyal-bar span { display: block; height: 100%; min-width: 6px; border-radius: inherit; background: var(--brand); }
.loyal-prizes { display: grid; margin: 0 0 12px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.loyal-prizes li { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.loyal-prize-cost { grid-row: span 2; font-family: var(--display); font-size: 22px; font-weight: var(--h-weight); line-height: 1; font-variant-numeric: tabular-nums; }
.loyal-prize-cost small { display: block; margin-top: 2px; color: var(--muted); font-family: var(--sans); font-size: 12px; font-weight: 600; }
.loyal-prize-name { display: grid; gap: 2px; min-width: 0; }
.loyal-prize-name b { overflow-wrap: anywhere; }
.loyal-prize-name small { color: var(--muted); font-size: 14px; }
.loyal-prize-state { color: var(--muted); font-size: 14px; }
.loyal-prizes li.ready .loyal-prize-state { width: fit-content; padding: 2px 10px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.loyal-prizes li.out { color: var(--muted); }
.loyal-prizes li.out .loyal-prize-name b { text-decoration: line-through; }
.loyal-moves li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.loyal-moves small { color: var(--muted); font-size: 13px; }
.loyal-moves b { font-variant-numeric: tabular-nums; }

/* «Mantén para pedirlo»: el premio que el cliente pide desde su tarjeta (la caja lo ve al atenderle) */
.loyal-ask { margin: 12px 0 0; }
.loyal-prizes .loyal-ask { grid-column: 2 / -1; margin: 6px 0 0; }
.loyal-ask-btn { position: relative; overflow: hidden; min-height: 48px; padding: 10px 20px; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.loyal-ask-text { position: relative; }
.loyal-ask-fill { position: absolute; inset: 0; background: rgba(255, 255, 255, .28); transform: scaleX(0); transform-origin: left center; }
.loyal-ask-btn.holding .loyal-ask-fill { transform: scaleX(1); transition: transform .8s linear; }
.loyal-ask-btn.done .loyal-ask-fill { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .loyal-ask-btn.holding .loyal-ask-fill { transition: none; opacity: .6; } }
.loyal-wish { margin: 0 0 18px; padding: 16px 18px; border: 2px solid var(--brand); border-radius: var(--radius); }
.loyal-wish p { margin: 0; }
.loyal-wish .k { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.loyal-wish .t { margin: 2px 0 6px; font-family: var(--display); font-size: clamp(22px, 3.4vw, 30px); font-weight: var(--h-weight); line-height: 1.15; }
.loyal-wish form { margin-top: 4px; }
.loyal-wish .linkish { padding: 8px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.loyal-wish .linkish:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.dish .out { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--muted); font-size: 12px; font-weight: 700; vertical-align: 2px; white-space: nowrap; }
.dish.is-out .price, .dish.is-out .name { color: var(--muted); }

/* Clases en grupo: las de los próximos días con las plazas que quedan (se reserva en /{slug}/clases) */
.cls-days { display: grid; gap: 28px 40px; }
.cls-day h3 { margin: 0 0 10px; font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cls-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.cls-item { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cls-time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 18px; }
.cls-main { display: grid; min-width: 0; }
.cls-main b { font-size: 18px; overflow-wrap: anywhere; }
.cls-main small { color: var(--muted); font-size: 15px; }
.cls-left { padding: 8px 14px; border: 1px solid var(--brand); border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.cls-left:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.cls-item.is-full .cls-left { background: none; color: var(--ink); border-color: var(--line); }
.cls-item.is-off { color: var(--muted); }
.cls-item.is-off b { text-decoration: line-through; }
.cls-item.is-off .cls-left { border: 0; background: none; color: var(--bad); padding: 0; }
.cls-empty { color: var(--muted); font-size: 18px; }
.cls-cta { margin: 36px 0 0; }
@media (min-width: 880px) { .cls-days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .cls-item { grid-template-columns: 48px minmax(0, 1fr); } .cls-left { grid-column: 2; justify-self: start; margin-top: 6px; } }
