/* Reservus IA · Sistema visual
 * Referencia: la línea de Vercel (Geist) y el Booker de Cal.com.
 * Monocromo, una sola tipografía, bordes finos y color solo para estados.
 */
@font-face { font-family: 'Jakarta'; src: url('fonts/jakarta.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('fonts/geist.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('fonts/geist-mono.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --fg: #0a0a0a;
  --fg-2: #4d4d4d;
  --muted: #6b6b6b;
  --faint: #a1a1a1;
  --line: #e8e8e8;
  --line-2: #f0f0f0;
  --fill: #f4f4f5;
  --fill-2: #ebebeb;
  --green: #0b7a3e;
  --green-bg: #eaf7ef;
  --amber: #9a5b00;
  --amber-bg: #fdf3e1;
  --amber-dot: #e08a00;
  --red: #c52a1f;
  --red-bg: #fdecea;
  --brand: #1d5bd8;
  --brand-hover: #174ab3;
  --brand-ink: #143f95;
  --brand-50: #eef4ff;
  --brand-100: #dce8ff;
  --brand-200: #bcd2fc;
  --r-sm: 6px;
  --r: 8px;
  --r-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px -4px rgba(0, 0, 0, .08);
  --shadow-lg: 0 0 0 1px rgba(0, 0, 0, .06), 0 2px 4px rgba(0, 0, 0, .03), 0 16px 40px -12px rgba(0, 0, 0, .12);
  --sans: 'Jakarta', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; word-spacing: .04em; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--brand); }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.1; letter-spacing: -.022em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.12rem; letter-spacing: -.02em; line-height: 1.3; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-100); color: var(--brand-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--fg); color: #fff; padding: 10px 14px; border-radius: var(--r); z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); font-feature-settings: normal; }
.tnum { font-variant-numeric: tabular-nums; }

/* ── Botones ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid transparent; font: 500 .9rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; white-space: nowrap; user-select: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(29, 91, 216, .25), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-dark { background: var(--fg); color: #fff; }
.btn-dark:hover { background: #333; }
.btn-secondary { background: var(--surface); color: var(--fg); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--fill); border-color: #d4d4d4; }
.btn-ghost { background: transparent; color: var(--fg-2); }
.btn-ghost:hover { background: var(--fill); color: var(--fg); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #a3231a; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-sm { height: 32px; padding: 0 12px; font-size: .84rem; }
.btn-lg { height: 48px; padding: 0 22px; font-size: .98rem; }
.btn-block { width: 100%; }
.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: var(--r-sm); border: 1px solid transparent; background: transparent; color: var(--fg-2); cursor: pointer; }
.icon-btn:hover:not([disabled]) { background: var(--fill); color: var(--fg); }
.icon-btn[disabled] { opacity: .3; cursor: not-allowed; }
.icon-btn svg { width: 16px; height: 16px; }
kbd { font-family: var(--mono); font-size: .72rem; padding: 1px 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: var(--surface); color: var(--fg-2); }

/* ── Cabecera ── */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(250, 250, 250, .85); backdrop-filter: saturate(1.8) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 1.02rem; letter-spacing: -.02em; color: var(--fg); }
.brand-mark { width: 24px; height: 24px; }
.brand-logo { display: block; height: 32px; width: auto; }
@media (max-width: 420px) { .brand-logo { height: 27px; } }
.brand .tag-ia { font-family: var(--mono); font-size: .66rem; font-weight: 500; letter-spacing: 0; padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { font-size: .88rem; text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: var(--r-sm); }
.nav a:not(.btn):hover { color: var(--fg); background: var(--fill); }
.nav .btn { margin-left: 8px; }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }

/* ── Portada ── */
.hero { padding: 72px 0 40px; background: radial-gradient(1200px 420px at 70% -80px, var(--brand-50), transparent 70%), linear-gradient(180deg, #f5f8ff 0%, var(--bg) 360px); }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .76rem; color: var(--muted); margin-bottom: 20px; padding: 4px 10px 4px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 0 3px var(--green-bg); }
.hero h1 { margin: 0; max-width: 13em; }
.hero h1 .soft { color: var(--brand); }
.lede { font-size: 1.08rem; color: var(--fg-2); margin: 0 0 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.channels { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 22px 0 0; list-style: none; font-size: .85rem; color: var(--muted); }
.channels li { display: inline-flex; align-items: center; gap: 7px; }
.channels svg { width: 15px; height: 15px; color: var(--fg-2); }
@media (max-width: 920px) { .hero { padding-top: 48px; } .hero-top { grid-template-columns: 1fr; gap: 24px; } }
.demo-note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .82rem; color: var(--muted); margin-top: 14px; text-align: center; }

/* ── Secciones ── */
section { scroll-margin-top: 72px; }
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 44px; }
.section-head p { color: var(--fg-2); font-size: 1.05rem; margin: 0; }
.kicker { font-family: var(--mono); font-size: .76rem; color: var(--brand); margin: 0 0 14px; text-transform: uppercase; letter-spacing: .04em; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.grid-3 > * { padding: 28px; border-right: 1px solid var(--line); }
.grid-3 > *:last-child { border-right: 0; }
.grid-3 p { color: var(--fg-2); margin: 0; font-size: .95rem; }
.cell-ico { width: 36px; height: 36px; border-radius: var(--r); border: 1px solid var(--brand-100); display: grid; place-items: center; margin-bottom: 18px; background: var(--brand-50); color: var(--brand); }
.cell-ico svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-3 > * { border-right: 0; border-bottom: 1px solid var(--line); } .grid-3 > *:last-child { border-bottom: 0; } }
.engine { margin-top: 12px; border: 1px dashed var(--brand-200); border-radius: var(--r-lg); padding: 20px 24px; display: flex; gap: 16px; align-items: center; background: var(--surface); }
.engine .cell-ico { margin: 0; background: var(--brand); border-color: var(--brand); color: #fff; }
.engine p { margin: 0; color: var(--fg-2); font-size: .95rem; }
.engine strong { color: var(--fg); font-weight: 600; }

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.rules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rules li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rules .n { font-family: var(--mono); font-size: .8rem; color: var(--brand); padding-top: 2px; }
.rules strong { display: block; font-weight: 600; margin-bottom: 2px; }
.rules span { color: var(--fg-2); font-size: .95rem; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .7rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg-2); background: var(--surface); margin-bottom: 14px; }
.badge.ok { color: var(--green); border-color: #c6e9d4; background: var(--green-bg); }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 500; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 16px; height: 16px; flex: none; margin-top: 4px; background: no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%230a0a0a' stroke-width='1.5'/%3E%3C/svg%3E"); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--fg-2); max-width: 44em; }

/* CTA */
.cta { border: 0; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--brand) 0%, #1646a8 100%); color: #fff; padding: 48px; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.cta h2 { margin-bottom: 8px; }
.cta p { color: #d6e3ff; margin: 0; }
.cta .btn-primary { background: #fff; color: var(--brand-ink); box-shadow: none; }
.cta .btn-primary:hover { background: var(--brand-50); }
.cta .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); box-shadow: none; }
.cta .btn-secondary:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 820px) { .cta { grid-template-columns: 1fr; padding: 28px 22px; } }

/* Pie */
.site-footer { padding: 32px 0 40px; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); }
.made-by a, .foot-legal a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; }

/* ═════════ Booker (widget de reservas) ═════════ */
.bk { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 260px minmax(0, 1fr) 260px; min-height: 492px; overflow: hidden; }
.bk.is-form { grid-template-columns: 260px minmax(0, 1fr); }
.bk.is-done, .bk.is-full { grid-template-columns: 1fr; }
.bk-meta { padding: 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.bk-venue-logo { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .9rem; }
.bk-venue small { display: block; color: var(--muted); font-size: .84rem; }
.bk-venue h2 { font-size: 1.3rem; margin: 6px 0 2px; letter-spacing: -.02em; }
.bk-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .88rem; color: var(--fg-2); }
.bk-facts li { display: flex; gap: 9px; align-items: flex-start; }
.bk-facts svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--muted); }
.bk-label { font-size: .8rem; font-weight: 500; color: var(--muted); margin: 0 0 8px; }
.stepper { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; height: 40px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.stepper button { height: 100%; border: 0; background: transparent; cursor: pointer; color: var(--fg); display: grid; place-items: center; }
.stepper button:hover:not([disabled]) { background: var(--brand-50); color: var(--brand); }
.stepper button[disabled] { color: var(--faint); cursor: not-allowed; }
.stepper button svg { width: 14px; height: 14px; }
.stepper output { text-align: center; font-weight: 500; font-size: .92rem; border-inline: 1px solid var(--line); height: 100%; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.bk-hint { font-size: .8rem; color: var(--muted); margin: 8px 0 0; }
.bk-hint a, .bk-hint button { color: var(--fg-2); }
.bk-meta-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font-size: .8rem; color: var(--muted); }
.pill-mode { align-self: flex-start; font-family: var(--mono); font-size: .68rem; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pill-mode.live { color: var(--green); border-color: #c6e9d4; background: var(--green-bg); }

.bk-cal { padding: 24px; }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.bk-month { font-weight: 600; font-size: 1rem; }
.bk-month span { color: var(--muted); font-weight: 400; }
.bk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.bk-dow { font-size: .72rem; font-weight: 500; color: var(--muted); text-align: center; padding: 0 0 8px; text-transform: uppercase; letter-spacing: .03em; }
.day { position: relative; height: 52px; border: 1px solid transparent; border-radius: var(--r); background: transparent; font: 500 .92rem var(--sans); color: var(--faint); display: grid; place-items: center; padding: 0; cursor: default; font-variant-numeric: tabular-nums; transition: background .12s, border-color .12s, color .12s; }
.day.out { color: #cfcfcf; }
.day.out::after { content: attr(data-n); }
.day.open { background: var(--brand-50); color: var(--brand-ink); cursor: pointer; font-weight: 600; }
.day.open:hover { border-color: var(--brand); background: var(--surface); }
.day.few::after { content: ''; position: absolute; bottom: 6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--amber-dot); }
.day.full { color: var(--faint); text-decoration: line-through; text-decoration-color: #cfcfcf; }
.day.today::before { content: ''; position: absolute; top: 5px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.day[aria-pressed='true'], .day.open[aria-selected='true']:hover { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 2px 6px rgba(29, 91, 216, .3); }
.day[aria-pressed='true']::before { background: #fff; }
.day[aria-pressed='true'].few::after { background: #fff; }
.bk-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 16px 0 0; padding: 0; list-style: none; font-size: .76rem; color: var(--muted); }
.bk-legend li { display: inline-flex; align-items: center; gap: 6px; }
.bk-legend .sw { width: 14px; height: 14px; border-radius: 4px; background: var(--brand-50); border: 1px solid var(--brand-100); }
.bk-legend .sw.few { position: relative; }
.bk-legend .sw.few::after { content: ''; position: absolute; left: 5px; bottom: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--amber-dot); }
.bk-legend .sw.no { background: transparent; border: 1px solid var(--line); }

.bk-slots { border-left: 1px solid var(--line); padding: 24px 16px 24px 20px; display: flex; flex-direction: column; min-height: 0; }
.bk-slots-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.bk-slots-head strong { font-weight: 600; }
.bk-slots-head span { color: var(--muted); font-weight: 400; }
.seg { display: inline-flex; padding: 2px; border-radius: var(--r-sm); background: var(--fill); gap: 2px; }
.seg button { height: 26px; padding: 0 9px; border: 0; border-radius: 4px; background: transparent; font: 500 .76rem var(--sans); color: var(--muted); cursor: pointer; }
.seg button[aria-pressed='true'] { background: var(--surface); color: var(--brand); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.seg button[disabled] { opacity: .4; cursor: not-allowed; }
.slot-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: 390px; padding-right: 4px; scrollbar-width: thin; }
.slot { height: 44px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font: 500 .92rem var(--sans); color: var(--fg); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-variant-numeric: tabular-nums; transition: border-color .12s, background .12s; }
.slot:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.slot:active { background: var(--brand-100); }
.slot .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.slot-empty { margin: auto 0; text-align: center; color: var(--muted); font-size: .88rem; padding: 20px 6px; }
.slot-empty svg { width: 22px; height: 22px; margin: 0 auto 10px; color: var(--faint); }

.bk-form { padding: 24px 28px; display: grid; gap: 14px; align-content: start; }
.bk-form h3 { font-size: 1.05rem; margin: 0 0 4px; }
.field label { display: block; font-size: .84rem; font-weight: 500; margin-bottom: 6px; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 12px; font: 400 .94rem var(--sans); color: var(--fg); background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color .12s, box-shadow .12s; }
.field textarea { height: auto; min-height: 76px; padding: 10px 12px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #d4d4d4; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 91, 216, .15); }
.field input[aria-invalid='true'] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(197, 42, 31, .12); }
.field .help { font-size: .78rem; color: var(--muted); margin-top: 5px; }
.err { font-size: .78rem; color: var(--red); margin-top: 5px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.check { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: .84rem; color: var(--fg-2); align-items: start; }
.check input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--brand); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; padding-top: 6px; }
.alert { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; border-radius: var(--r); padding: 10px 12px; margin: 0; border: 1px solid; }
.alert svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.alert.err { color: var(--red); background: var(--red-bg); border-color: #f6cbc7; }
.alert.warn { color: var(--amber); background: var(--amber-bg); border-color: #f3dcb2; }
.alert.ok { color: var(--green); background: var(--green-bg); border-color: #c6e9d4; }

.summary { border: 1px solid var(--brand-100); border-radius: var(--r); padding: 14px; display: grid; gap: 8px; font-size: .88rem; background: var(--brand-50); color: var(--brand-ink); }
.summary div { display: flex; gap: 9px; align-items: center; }
.summary svg { width: 16px; height: 16px; color: var(--brand); flex: none; }
.timer { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--fg-2); }
.timer-bar { flex: 1; height: 3px; background: var(--fill-2); border-radius: 3px; overflow: hidden; }
.timer-bar i { display: block; height: 100%; background: var(--brand); transition: width 1s linear; }
.timer.late .timer-bar i { background: var(--red); }
.timer b { font-weight: 500; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }

.bk-done { padding: 48px 24px; display: grid; justify-items: center; text-align: center; gap: 8px; }
.bk-done .seal { width: 44px; height: 44px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; margin-bottom: 8px; }
.bk-done .seal svg { width: 22px; height: 22px; }
.bk-done h3 { font-size: 1.4rem; margin: 0; letter-spacing: -.02em; }
.bk-done p { color: var(--fg-2); margin: 0; max-width: 30em; }
.ticket { margin: 18px 0 8px; border: 1px solid var(--line); border-radius: var(--r-lg); width: min(440px, 100%); text-align: left; overflow: hidden; }
.ticket dl { margin: 0; display: grid; grid-template-columns: 120px 1fr; }
.ticket dt, .ticket dd { margin: 0; padding: 11px 16px; border-bottom: 1px solid var(--line-2); font-size: .88rem; }
.ticket dt { color: var(--muted); }
.ticket dd { font-weight: 500; }
.ticket dl > :nth-last-child(-n+2) { border-bottom: 0; }
.ticket .code { font-family: var(--mono); font-size: .95rem; letter-spacing: .04em; }
.bk-done .actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.bk-panel { padding: 32px; max-width: 520px; margin: 0 auto; width: 100%; display: grid; gap: 14px; align-content: start; }

.bk-skel { min-height: 492px; background: linear-gradient(90deg, #f3f3f3 0%, #fafafa 50%, #f3f3f3 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: var(--r-lg); }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 1020px) {
  .bk, .bk.is-form { grid-template-columns: 1fr; }
  .bk-meta { border-right: 0; border-bottom: 1px solid var(--line); }
  .bk-meta-foot { margin-top: 0; }
  .bk-slots { border-left: 0; border-top: 1px solid var(--line); }
  .slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); max-height: none; }
}
@media (max-width: 520px) { .bk-cal { padding: 18px 14px; } .bk-meta, .bk-slots, .bk-form { padding: 18px; } .day { height: 42px; } }

/* ═════════ Simulador ═════════ */
.sim { display: grid; grid-template-columns: 280px 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.sim-side { padding: 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.sim-side .bk-label { margin: 0 0 4px; }
.scn { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 12px; font: 500 .88rem/1.35 var(--sans); color: var(--fg); cursor: pointer; transition: border-color .12s, background .12s; }
.scn:hover:not([disabled]) { border-color: #cfcfcf; background: var(--bg); }
.scn small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; margin-top: 2px; }
.scn[aria-pressed='true'] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--brand-50); }
.scn[disabled]:not([aria-pressed='true']) { opacity: .5; cursor: not-allowed; }
.sim-side p { font-size: .8rem; color: var(--muted); margin: auto 0 0; padding-top: 10px; }
.sim-main { display: flex; flex-direction: column; min-height: 480px; }
.sim-bar { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-bottom: 1px solid var(--line); font-size: .84rem; color: var(--fg-2); }
.sim-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fill-2); }
.sim-dot.on { background: var(--green); box-shadow: 0 0 0 3px var(--green-bg); }
.sim-bar .toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); cursor: pointer; }
.sim-bar .toggle input { accent-color: var(--brand); }
.sim-log { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 520px; background: var(--bg); }
.sim-empty { margin: auto; text-align: center; color: var(--muted); font-size: .9rem; max-width: 26em; }
.msg { max-width: 76%; padding: 10px 13px; border-radius: 12px; font-size: .92rem; line-height: 1.45; animation: rise .22s ease-out; }
.msg.bot { background: var(--surface); border: 1px solid var(--line); border-top-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--brand); color: #fff; border-top-right-radius: 4px; align-self: flex-end; }
.msg .who { display: block; font-family: var(--mono); font-size: .68rem; opacity: .6; margin-bottom: 3px; }
.msg.result { align-self: stretch; max-width: none; background: var(--green-bg); border: 1px solid #c6e9d4; color: #0a5a2e; }
.tool { align-self: center; width: min(100%, 540px); font: .76rem/1.5 var(--mono); background: var(--surface); color: var(--fg-2); border: 1px dashed #d4d4d4; border-radius: var(--r); padding: 8px 12px; animation: rise .22s ease-out; }
.tool b { color: var(--brand); font-weight: 600; }
.tool .res { color: var(--green); display: block; margin-top: 3px; white-space: pre-wrap; word-break: break-word; }
.sim.hide-tools .tool { display: none; }
.sc-ic { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; margin-right: 5px; color: var(--brand); }
.sim-bar .toggle { margin-left: 4px; }
.sim-bar [data-bar] { margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim-vmode { font-size: .72rem; font-weight: 600; color: var(--green); background: var(--green-bg); padding: 3px 9px; border-radius: 99px; }
.sim-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 0; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--fg-2); font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; }
.sim-btn:hover { color: var(--fg); box-shadow: inset 0 0 0 1px #cfcfcf; }
.sim-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sim-btn svg { width: 15px; height: 15px; }
.sim-btn[hidden] { display: none; }
.sim-stop { color: #b42318; box-shadow: inset 0 0 0 1px #f3c4bf; background: #fff6f5; }
.sim-stop:hover { color: #912018; box-shadow: inset 0 0 0 1px #eaa59d; }
.sim-sound .off-ic, .sim-sound.off .on-ic { display: none; }
.sim-sound.off .off-ic { display: block; }
.sim-sound.off { color: var(--muted); }
.msg .eq { display: none; gap: 2px; align-items: flex-end; height: 9px; margin-left: 7px; vertical-align: -1px; }
.msg .eq b { display: block; width: 2px; height: 3px; border-radius: 1px; background: currentColor; animation: eq .9s ease-in-out infinite; }
.msg .eq b:nth-child(2) { animation-delay: .15s; } .msg .eq b:nth-child(3) { animation-delay: .3s; }
.msg.speaking .eq { display: inline-flex; }
.msg.speaking { box-shadow: 0 0 0 3px var(--brand-50, #e8efff); }
.msg.user.speaking { box-shadow: 0 0 0 3px rgba(29, 91, 216, .22); }
.msg.note { align-self: center; max-width: none; font-size: .8rem; color: var(--muted); background: transparent; padding: 4px 8px; }
.msg.note .who { display: inline; margin-right: 6px; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 9px; } }
@media (prefers-reduced-motion: reduce) { .msg .eq b { animation: none; height: 6px; } }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 820px) { .sim { grid-template-columns: 1fr; } .sim-side { border-right: 0; border-bottom: 1px solid var(--line); } .msg { max-width: 90%; } }

/* Toast */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: grid; gap: 8px; width: min(360px, calc(100% - 32px)); }
.toast { display: flex; align-items: center; gap: 12px; background: var(--fg); color: #fff; border-radius: var(--r); padding: 11px 12px 11px 14px; font-size: .86rem; box-shadow: var(--shadow-lg); animation: rise .2s ease-out; }
.toast span { flex: 1; }
.toast button { background: transparent; border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: var(--r-sm); height: 28px; padding: 0 10px; font: 500 .8rem var(--sans); cursor: pointer; }
.toast button:hover { background: rgba(255, 255, 255, .1); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Páginas legales */
.doc { padding: 56px 0 88px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.doc h2 { font-size: 1.3rem; margin-top: 2em; }
.doc p, .doc li { color: var(--fg-2); }
.doc table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1em 0 1.5em; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--fill); font-weight: 500; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.note { font-size: .85rem; color: var(--muted); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; cursor: pointer; }
.linklike:hover { color: var(--brand); text-decoration-color: var(--brand); }
.alert.info { color: var(--brand-ink); background: var(--brand-50); border-color: var(--brand-100); }
.bk-venue-logo.has-img { flex: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; background: #fff; border-radius: 12px; width: auto; min-width: 44px; max-width: 124px; height: 44px; padding: 5px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.bk-venue-logo.has-img img { display: block; height: 34px; width: auto; max-width: 114px; object-fit: contain; }

/* ── Pedido a domicilio ── */
.dlv-card { margin-top: 14px; padding: 16px; border-radius: 14px; background: linear-gradient(160deg, var(--brand-50), #fff 70%); box-shadow: inset 0 0 0 1px var(--brand-100); display: grid; gap: 12px; }
.dlv-head { display: flex; gap: 12px; align-items: flex-start; }
.dlv-head b { display: block; font-size: .95rem; color: var(--fg); }
.dlv-head span:not(.dlv-badge) { font-size: .84rem; color: var(--fg-2); line-height: 1.4; }
.dlv-badge { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.dlv-badge svg, .dlv-badge .ic { width: 19px; height: 19px; }
.dlv-badge.big { width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 6px; }
.dlv-badge.big .ic { width: 26px; height: 26px; }
.dlv-btns { display: grid; gap: 8px; }
.dlv-btn { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px 0 10px; border-radius: 12px; background: #fff; color: var(--fg); text-decoration: none; font-weight: 650; font-size: .92rem; box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(15, 23, 42, .05); transition: box-shadow .15s, transform .15s; }
.dlv-btn:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1.5px var(--brand), 0 8px 18px -10px rgba(15, 23, 42, .35); }
.dlv-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dlv-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--fill); color: var(--fg-2); flex: none; }
.dlv-ic .ic, .dlv-ic svg { width: 17px; height: 17px; }
.dlv-glovo .dlv-ic { background: #fff4d6; color: #8a6200; }
.dlv-ubereats .dlv-ic { background: #e3f5ea; color: #0b6b35; }
.dlv-justeat .dlv-ic { background: #fff0e3; color: #a14b00; }
.dlv-whatsapp .dlv-ic { background: #e7f7ee; color: #128c4a; }
.dlv-name { flex: 1; }
.dlv-btn .dlv-ext { width: 15px; height: 15px; color: var(--faint); flex: none; }
.dlv-mini { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--brand-50); color: var(--brand-ink); cursor: pointer; text-align: left; font: inherit; box-shadow: inset 0 0 0 1px var(--brand-100); }
.dlv-mini:hover { background: var(--brand-100); }
.dlv-mini .dlv-badge { width: 32px; height: 32px; border-radius: 10px; }
.dlv-mini b { display: block; font-size: .86rem; }
.dlv-mini small { font-size: .78rem; opacity: .8; }
.slot-empty.full b { display: block; color: var(--fg); margin-bottom: 2px; }
.dlv-sheet { width: min(420px, calc(100% - 24px)); padding: 28px 24px 24px; border: 0; border-radius: 24px; text-align: center; background: var(--surface, #fff); color: var(--fg); box-shadow: 0 30px 80px -24px rgba(10, 20, 28, .55); }
.dlv-sheet::backdrop { background: rgba(10, 20, 28, .5); backdrop-filter: blur(3px); }
.dlv-sheet h2 { font-size: 1.4rem; margin: 6px 0 4px; }
.dlv-sheet p { margin: 0 0 16px; color: var(--fg-2); font-size: .92rem; }
.dlv-sheet .dlv-btns { text-align: left; }
.dlv-x { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--fill); color: var(--fg-2); cursor: pointer; display: grid; place-items: center; }
.dlv-x .ic { width: 18px; height: 18px; }
.day.full.picked { box-shadow: inset 0 0 0 1.5px var(--fg-2); border-radius: 10px; color: var(--fg); }
@media (max-width: 560px) { .sim-vmode { display: none; } .sim-bar { height: auto; min-height: 48px; flex-wrap: wrap; row-gap: 8px; padding: 8px 12px; } .sim-bar .toggle { margin-left: 0; } }

/* Idioma y cookies */
.nav a.lang-sw { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .8rem; letter-spacing: .04em; color: var(--fg-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; }
.nav a.lang-sw svg { width: 14px; height: 14px; }
@media (max-width: 860px) { .nav a.lang-sw { display: inline-flex; } }
.site-footer .ck-reabrir { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--muted); text-decoration: none; }
.site-footer .ck-reabrir:hover { color: var(--fg); }
.foot-legal { flex-basis: 100%; margin: 0; font-size: .78rem; color: var(--muted); line-height: 1.6; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.bk-code input { letter-spacing: .4em; font-variant-numeric: tabular-nums; font-size: 1.15rem; max-width: 12em; }
