/* FisiOart — ink, paper and a rose accent drawn from the clinic's photos */
:root {
  --paper: #f6f1ea;
  --paper-2: #efe7dc;
  --card: #fffdf9;
  --ink: #171412;
  --ink-2: #4a433d;
  --line: #ddd2c4;
  --accent: #b4234c;        /* rose — 6.0:1 on paper */
  --accent-ink: #ffffff;
  --accent-soft: #f6dde3;
  --ok: #1f7a4d;
  --danger: #b3261e;
  --focus: #1d4ed8;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgb(23 20 18 / .06), 0 8px 24px rgb(23 20 18 / .06);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wa: #1a7f45; --wa-ink: #ffffff;
  --logo-filter: none; --contact-bg: var(--ink); --contact-fg: var(--paper);
  --contact-line: color-mix(in srgb, var(--paper) 22%, var(--ink)); --contact-muted: color-mix(in srgb, var(--paper) 72%, var(--ink));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #14110f; --paper-2: #1c1815; --card: #211c19;
    --ink: #f3ece3; --ink-2: #c3b8ab; --line: #3a322c;
    --accent: #f07a98; --accent-ink: #1a0b10; --accent-soft: #3a1c25;
    --ok: #5fd39a; --danger: #ff8a80; --focus: #93b4ff;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .3);
    --wa: #3ccf7a; --wa-ink: #08210f;
    --logo-filter: invert(1); --contact-bg: var(--paper-2); --contact-fg: var(--ink); --contact-line: var(--line); --contact-muted: var(--ink-2);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --paper: #14110f; --paper-2: #1c1815; --card: #211c19;
    --ink: #f3ece3; --ink-2: #c3b8ab; --line: #3a322c;
    --accent: #f07a98; --accent-ink: #1a0b10; --accent-soft: #3a1c25;
    --ok: #5fd39a; --danger: #ff8a80; --focus: #93b4ff;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .3);
    --wa: #3ccf7a; --wa-ink: #08210f;
    --logo-filter: invert(1); --contact-bg: var(--paper-2); --contact-fg: var(--ink); --contact-line: var(--line); --contact-muted: var(--ink-2);
    color-scheme: dark;
}
.brand img, .site-footer img { filter: var(--logo-filter); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw + .5rem, 5rem); }
h2 { font-size: clamp(2rem, 3vw + .8rem, 3.1rem); }
h3 { font-size: 1.3rem; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.muted { color: var(--ink-2); }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(1200px, 100% - 64px); } }

.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }

/* Buttons */
.btn {
  --h: 50px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--h); padding: 0 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-sm { --h: 42px; padding: 0 1.1rem; font-size: .93rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn.is-loading { position: relative; color: transparent; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border: 2px solid var(--accent-ink); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font: 500 1.35rem var(--serif); letter-spacing: .02em; }
.brand img { width: 40px; height: auto; }
.nav { display: flex; gap: 1.8rem; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: .97rem; padding: .4rem 0; border-bottom: 1.5px solid transparent; transition: border-color .2s; }
.nav a:hover { border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.lang { min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; font: 600 .85rem var(--sans); cursor: pointer; }
.lang:hover { border-color: var(--ink); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 899px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 16px 1rem; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .header-actions { margin-left: auto; }
}
@media (max-width: 420px) { .header-actions .btn-sm { display: none; } }

/* Hero */
.hero { padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 6rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; } }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.8rem 0; }
.hero-ctas.center { justify-content: center; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; color: var(--ink-2); font-size: .97rem; }
.hero-points li { display: flex; gap: .6rem; align-items: center; }
.hero-points li::before { content: ""; width: 18px; height: 1.5px; background: var(--accent); flex: none; }
.hero-media { position: relative; margin: 0; }
.hero-media img { border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 140px; aspect-ratio: 4/3.4; object-fit: cover; object-position: 60% 30%; width: 100%; }
.enso { position: absolute; width: 26%; right: -3%; bottom: -8%; color: var(--accent); opacity: .9; pointer-events: none; }

/* Sections */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-head { max-width: 640px; margin-bottom: 2.75rem; }

/* Services */
.services { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.service-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; gap: .4rem; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.service-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.service-card .icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: .6rem; }
.service-card p { color: var(--ink-2); font-size: .97rem; flex: 1; }
.meta { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: var(--ink-2); margin-bottom: .8rem; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: .15rem .65rem; white-space: nowrap; }
.link-btn { align-self: flex-start; font-weight: 600; color: var(--accent); background: none; border: 0; padding: .5rem 0; cursor: pointer; font-size: .97rem; display: inline-flex; gap: .35rem; align-items: center; text-decoration: none; min-height: 44px; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Approach */
.approach { background: var(--paper-2); }
.approach-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .approach-grid { grid-template-columns: 1fr 1.1fr; gap: 5rem; } }
.approach-media { margin: 0; }
.approach-media img { border-radius: 160px var(--radius-lg) var(--radius-lg) var(--radius-lg); aspect-ratio: 1/1; object-fit: cover; object-position: 70% center; width: 100%; }
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.6rem; }
.steps li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.steps .num { font: italic 400 1.6rem var(--serif); color: var(--accent); }
.steps h3 { margin-bottom: .3rem; }
.steps p { color: var(--ink-2); margin: 0; }

/* Groups */
.groups-grid { display: grid; gap: 1.2rem; }
.groups-media { margin: 0; }
.groups-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.groups-copy { padding-bottom: 1.5rem; }
.groups-copy p { color: var(--ink-2); max-width: 52ch; }
@media (min-width: 960px) {
  .groups-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto 300px; gap: 1.4rem; }
  .groups-copy { grid-column: 1; grid-row: 1; padding: 0 2rem 0 0; align-self: center; }
  .groups-media.main { grid-column: 2; grid-row: 1 / span 2; }
  .groups-media.side { grid-column: 1; grid-row: 2; }
  .groups-media.side img { object-position: center 30%; }
}
@media (max-width: 959px) { .groups-media img { aspect-ratio: 16/10; } }

/* Booking */
.booking .section-head { margin-inline: auto; text-align: center; }
.booker { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.2rem, 3vw, 2.5rem); box-shadow: var(--shadow); max-width: 980px; margin-inline: auto; }
.stepper { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; gap: .5rem; counter-reset: s; }
.stepper li { flex: 1; min-width: 0; white-space: nowrap; display: flex; align-items: center; gap: .6rem; color: var(--ink-2); font-size: .92rem; padding-bottom: .8rem; border-bottom: 2px solid var(--line); }
.stepper li span { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); font-weight: 600; font-size: .85rem; }
.stepper li.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.stepper li.is-active span { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.stepper li.is-done span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
@media (max-width: 560px) { .stepper b { display: none; } .stepper li.is-active b { display: inline; } }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }

.service-options { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.svc-opt { position: relative; }
.svc-opt input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.svc-opt label { display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: 1.1rem 1.2rem; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background-color .15s; }
.svc-opt label:hover { border-color: var(--ink-2); }
.svc-opt input:checked + label { border-color: var(--accent); background: var(--accent-soft); }
.svc-opt input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.svc-opt strong { font-weight: 600; }
.svc-opt small { color: var(--ink-2); font-size: .87rem; }

.dt-grid { display: grid; gap: 2rem; }
@media (min-width: 820px) { .dt-grid { grid-template-columns: 340px 1fr; gap: 2.5rem; } }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.cal-head h3 { margin: 0; font-size: 1.15rem; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover:not([disabled]) { border-color: var(--ink); }
.icon-btn[disabled] { opacity: .35; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid .dow { text-align: center; font-size: .75rem; font-weight: 600; color: var(--ink-2); text-transform: uppercase; padding: .3rem 0; }
.day { aspect-ratio: 1; min-height: 40px; border-radius: 50%; border: 1.5px solid transparent; background: transparent; color: var(--ink); font: 500 .95rem var(--sans); cursor: pointer; position: relative; font-variant-numeric: tabular-nums; }
.day:hover:not([disabled]) { border-color: var(--ink); }
.day[disabled] { color: var(--ink-2); opacity: .35; cursor: default; }
.day.today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; transform: translateX(-50%); }
.day[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.times-title { font-size: 1.15rem; margin-bottom: 1rem; }
.times-title::first-letter, .cal-head h3::first-letter { text-transform: uppercase; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; min-height: 120px; align-content: start; }
.slot { min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; background: transparent; color: var(--ink); font: 600 .97rem var(--sans); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; font-variant-numeric: tabular-nums; transition: border-color .15s, background-color .15s; }
.slot small { font-weight: 400; font-size: .72rem; color: var(--ink-2); }
.slot:hover:not([disabled]) { border-color: var(--ink); }
.slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.slot[aria-pressed="true"] small { color: inherit; }
.slot[disabled] { text-decoration: line-through; opacity: .4; cursor: not-allowed; }
.empty { grid-column: 1 / -1; color: var(--ink-2); padding: 1.2rem; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.skeleton { height: 48px; border-radius: 12px; background: linear-gradient(90deg, var(--paper-2), var(--line), var(--paper-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.step-nav { display: flex; justify-content: space-between; gap: .75rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

.summary { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--accent-soft); margin-bottom: 1.6rem; font-size: .97rem; }
.summary strong { font-weight: 600; }
.fields { display: grid; gap: 1.1rem 1.4rem; }
@media (min-width: 680px) { .fields { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.req { color: var(--accent); }
.opt { font-weight: 400; color: var(--ink-2); }
.field input, .field textarea { width: 100%; min-height: 50px; padding: .75rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 400 16px/1.4 var(--sans); transition: border-color .15s; }
.field textarea { resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid color-mix(in srgb, var(--focus) 45%, transparent); outline-offset: 0; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .87rem; margin: .35rem 0 0; min-height: 0; }
.field-error:empty { display: none; }
.error-summary { border: 1.5px solid var(--danger); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.2rem; color: var(--danger); }
.error-summary ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.error-summary a { color: inherit; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.done { text-align: center; padding: 1.5rem 0; }
.done svg { color: var(--ok); margin: 0 auto 1rem; }
.done:focus { outline: none; }
.done-code { display: inline-block; font: 600 1.4rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; padding: .7rem 1.1rem; border: 1.5px dashed var(--ink); border-radius: 12px; margin: .4rem 0 1.2rem; }
.done-lines { display: grid; gap: .2rem; margin-bottom: 1.2rem; }

/* Contact */
.contact { background: var(--contact-bg); color: var(--contact-fg); }
.contact .eyebrow { color: color-mix(in srgb, var(--accent) 60%, var(--paper)); }
.contact .muted { color: var(--contact-muted); }
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; align-items: end; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; }
.contact-list li { border-top: 1px solid var(--contact-line); }
.contact-list a, .contact-list .row { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 0; text-decoration: none; min-height: 56px; overflow-wrap: anywhere; }
.contact-list a:hover .val { text-decoration: underline; text-underline-offset: 4px; }
.contact-list .lbl { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; width: 7.5rem; flex: none; }

/* Footer */
.site-footer { padding: 3rem 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9rem; color: var(--ink-2); }
.footer-inner p { margin: 0; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: .85rem 1.2rem; border-radius: 12px; font-size: .95rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); z-index: 60; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

.demo-banner { margin: 0; padding: .55rem 16px; text-align: center; font-size: .88rem; background: var(--accent-soft); color: var(--ink); }
.contact-list .hint { display: block; font-size: .82rem; opacity: .7; margin-top: .15rem; }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-links a { color: var(--ink-2); }

/* Account */
.acct-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 .9rem; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; font: 600 .9rem var(--sans); cursor: pointer; max-width: 11rem; }
.acct-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-btn:hover { border-color: var(--ink); }
.acct-btn.is-in { border-color: var(--accent); color: var(--accent); }
@media (max-width: 560px) { .acct-btn { padding: 0; width: 44px; justify-content: center; } .acct-btn span { display: none; } }
.acct-dialog { width: min(460px, calc(100% - 32px)); max-height: min(92dvh, 760px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); color: var(--ink); box-shadow: 0 24px 64px rgb(0 0 0 / .25); }
.acct-dialog::backdrop { background: rgb(20 17 15 / .55); }
.acct-dialog[open] { animation: dlg-in .22s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.acct-dialog > div { padding: 0 1.5rem 1.5rem; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.2rem .6rem 1.5rem !important; position: sticky; top: 0; background: var(--card); z-index: 1; }
.dlg-head h2 { font-size: 1.6rem; margin: 0; }
.dlg-intro { font-size: .95rem; }
.dlg-sub { font: 600 .8rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 1.2rem 0 .6rem; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--paper-2); padding: 4px; border-radius: 999px; margin-bottom: 1.2rem; }
.tabs button { min-height: 42px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 600 .93rem var(--sans); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.acct-dialog form { display: grid; gap: 1rem; }
.acct-dialog .field input { background: var(--paper); }
.btn-block { width: 100%; }
.form-error { color: var(--danger); font-size: .92rem; margin: 0; }
.form-error:empty { display: none; }
.helper { font-size: .85rem; color: var(--ink-2); margin: .35rem 0 0; }
.hello { font: 400 1.3rem var(--serif); margin: 0; }
.my-bk { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: center; padding: .85rem 0; border-top: 1px solid var(--line); }
.my-bk:last-child { border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; }
.my-bk strong { font-weight: 600; }
.my-bk small { color: var(--ink-2); grid-column: 1; }
.my-bk .code { font: 600 .85rem ui-monospace, Menlo, monospace; letter-spacing: .05em; }
.my-bk .acts { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.my-empty { color: var(--ink-2); padding: 1rem; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; margin-bottom: 1.2rem; font-size: .95rem; }
.edit-profile { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.edit-profile summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.edit-profile form { margin-top: .6rem; }
.logout { margin-top: .6rem; color: var(--ink-2); }
.link-btn.inline { min-height: 0; padding: 0; display: inline; }
.acct-note { margin: 0 0 1.2rem; font-size: .95rem; color: var(--ink-2); }
.acct-note:empty { display: none; }
.acct-note strong { color: var(--ink); }
.acct-note .link-btn { min-height: 0; padding: 0; display: inline; }
.create-acct { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; display: grid; gap: 1rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; font-weight: 500; font-size: .97rem; }
.check input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--accent); flex: none; }
.done-code { letter-spacing: .08em; }

/* ---------- Mejoras: cifras, sedes, Instagram, FAQ, barra de acciones ---------- */
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); max-width: 34rem; }
.proof div { min-width: 0; }
.proof dt { font: 400 clamp(1.7rem, 2.4vw + .6rem, 2.3rem)/1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.proof dd { margin: .45rem 0 0; font-size: .88rem; line-height: 1.4; color: var(--ink-2); }
@media (max-width: 420px) { .proof { gap: .7rem; } .proof dd { font-size: .8rem; } }

.sedes { background: var(--paper-2); }
.sedes-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.sede-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem 1.6rem 1.6rem; display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.sede-num { font: italic 400 3.2rem/1 var(--serif); color: var(--accent); opacity: .9; margin-bottom: .4rem; }
.sede-card p { color: var(--ink-2); margin-bottom: 1.2rem; overflow-wrap: anywhere; }
.sede-acts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; }

.sede-pick { border: 0; padding: 0; margin: 0; min-width: 0; }
.sede-pick legend { font-weight: 600; font-size: .95rem; margin-bottom: .5rem; padding: 0; }
.sede-options { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.sede-opt { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.sede-opt:hover { border-color: var(--ink-2); }
.sede-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.sede-opt input { width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--accent); flex: none; }
.sede-opt span { display: flex; flex-direction: column; min-width: 0; }
.sede-opt small { color: var(--ink-2); font-size: .86rem; overflow-wrap: anywhere; }

.insta-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .insta-grid { grid-template-columns: 1fr 1.3fr; gap: 4rem; } }
.insta-copy p { max-width: 40ch; }
.insta-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.insta-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.insta-photos li:nth-child(1) img { object-position: 65% 30%; }

.faq-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; } }
.faq-list { display: grid; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 60px; padding: .9rem 0; font-weight: 600; font-size: 1.02rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font: 300 1.6rem/1 var(--sans); color: var(--accent); transition: transform .2s var(--ease); flex: none; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--ink-2); margin: 0 0 1.2rem; max-width: 62ch; }

.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 5.5rem !important; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-height: 42px; padding: 0 .9rem; border: 0; border-radius: 10px; background: transparent; color: var(--accent); font: 600 .88rem var(--sans); cursor: pointer; }
.pw-toggle:hover { background: var(--accent-soft); }

.wa-fab { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 45; display: inline-flex; align-items: center; gap: .5rem; min-height: 52px; padding: 0 1.2rem 0 1rem; border-radius: 999px; background: var(--wa); color: var(--wa-ink); font: 600 .95rem var(--sans); text-decoration: none; box-shadow: 0 10px 28px rgb(0 0 0 / .2); transition: transform .2s var(--ease); }
.wa-fab:hover { transform: translateY(-2px); }
.action-bar { display: none; }
@media (max-width: 767px) {
  .wa-fab { display: none; }
  .action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1.3fr; gap: .6rem; padding: .7rem max(16px, env(safe-area-inset-right, 0px)) calc(.7rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .action-bar .btn { --h: 48px; padding: 0 .8rem; }
  .action-bar .btn svg { margin-right: .1rem; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}

.pick-group { border: 0; padding: 0; margin: 0 0 1.6rem; min-width: 0; }
.pick-group:last-child { margin-bottom: 0; }
.pick-group legend { font: 600 .8rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .8rem; padding: 0; }
.pick-group .field-error { margin: 0 0 .6rem; }
.stepper b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .stepper li.is-active { flex: 2.6; } }

/* Reprogramar */
.resched-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; padding: .9rem 1.1rem; margin-bottom: 1.6rem; border-radius: var(--radius); background: var(--accent-soft); }
.resched-banner p { margin: 0; flex: 1 1 18rem; min-width: 0; }
.my-bk .acts .btn { --h: 40px; padding: 0 .85rem; }

/* ---------- Editor del sitio (panel) ---------- */
.ed-layout { display: grid; gap: 1.5rem; margin-top: 1.2rem; padding-bottom: 6rem; }
@media (min-width: 980px) { .ed-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 2.5rem; align-items: start; } }
.ed-nav { display: flex; flex-wrap: wrap; gap: .4rem; }
@media (min-width: 980px) { .ed-nav { position: sticky; top: calc(1rem + env(safe-area-inset-top, 0px)); flex-direction: column; } }
.ed-nav a { padding: .55rem .9rem; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .93rem; color: var(--ink-2); border: 1px solid var(--line); background: var(--card); }
@media (min-width: 980px) { .ed-nav a { border-color: transparent; background: transparent; } }
.ed-nav a:hover { color: var(--ink); background: var(--paper-2); }
.ed-main { display: grid; gap: 1.5rem; min-width: 0; }
.ed-sec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.1rem, 3vw, 1.8rem); min-width: 0; scroll-margin-top: 1rem; }
.ed-sec > h2 { font-size: 1.6rem; margin-bottom: .4rem; }
.ed-sec > h2:focus { outline: none; }
.ed-sec > p.muted { font-size: .95rem; max-width: 70ch; }
.ed-sec code { font-size: .88em; background: var(--paper-2); padding: .05rem .35rem; border-radius: 6px; }
.ed-sub { font: 600 1rem var(--sans); margin: 1.6rem 0 .3rem; }
.ed-fields { display: grid; gap: 1rem; }
.ed-fields.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.ed-fields .field-wide { grid-column: 1 / -1; }
.ed-sec .field input, .ed-sec .field textarea, .ed-sec .field select, .ed-day input, .ed-add-date input { width: 100%; min-height: 46px; padding: .6rem .85rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 400 16px/1.4 var(--sans); }
.ed-sec .field textarea { resize: vertical; }
.ed-sec [aria-invalid="true"] { border-color: var(--danger) !important; }
.ed-group { border-top: 1px solid var(--line); }
.ed-group:last-child { border-bottom: 1px solid var(--line); }
.ed-group summary { cursor: pointer; min-height: 52px; display: flex; align-items: center; font-weight: 600; }
.ed-group .ed-fields { padding-bottom: 1.2rem; }
.ed-badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); vertical-align: middle; }
.ed-reset { min-height: 36px; padding: .2rem 0; font-size: .88rem; }
.ed-photos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.ed-photo { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); position: relative; }
.ed-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.ed-photo.busy::after { content: "Subiendo…"; position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--card) 80%, transparent); font-weight: 600; }
.ed-photo figcaption { padding: .8rem .9rem 1rem; display: grid; gap: .2rem; }
.ed-photo small { color: var(--ink-2); }
.ed-photo-acts { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .5rem; }
.ed-photo-acts label { cursor: pointer; }
.ed-photo-acts label:focus-within, .ed-photo-acts input:focus-visible + label { outline: 3px solid var(--focus); }
.ed-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 1rem; background: var(--paper); display: grid; gap: 1rem; min-width: 0; }
.ed-card .field input, .ed-card .field textarea, .ed-card .field select, .ed-card .ed-day input { background: var(--card); }
.ed-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; }
.ed-card-head h3 { margin: 0; font-size: 1.2rem; }
.ed-week { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; min-width: 0; }
.ed-week legend { font-weight: 600; margin-bottom: .4rem; padding: 0; }
.ed-day { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: center; gap: .3rem .8rem; }
.ed-day label { font-size: .93rem; color: var(--ink-2); }
.ed-day .field-error { grid-column: 2; margin: 0; }
.ed-card-foot { display: flex; justify-content: flex-end; }
.ed-danger { color: var(--danger); }
.ed-confirm { display: inline-flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: flex-end; font-size: .93rem; }
.ed-chips { list-style: none; padding: 0; margin: .6rem 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.ed-chips li { display: inline-flex; align-items: center; gap: .2rem; padding: .2rem .25rem .2rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .92rem; }
.ed-chips button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); font-size: 1.2rem; cursor: pointer; }
.ed-chips button:hover { background: var(--paper-2); color: var(--danger); }
.ed-add-date { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.ed-add-date input { width: auto; flex: 0 1 14rem; }
.ed-savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; padding: .8rem max(16px, env(safe-area-inset-right, 0px)) calc(.8rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgb(0 0 0 / .06); }
.ed-savebar p { margin: 0; font-weight: 600; color: var(--ink-2); }
.ed-savebar.dirty p { color: var(--accent); }
.ed-savebar > div { display: flex; gap: .5rem; }
#siteView[hidden] .ed-savebar { display: none; }

/* Botones flotantes fuera de la vista mientras se reserva */
.wa-fab, .action-bar { transition: transform .25s var(--ease), opacity .25s var(--ease), visibility .25s; }
body.booking-in-view .wa-fab { transform: translateY(150%); opacity: 0; visibility: hidden; }
body.booking-in-view .action-bar { transform: translateY(110%); visibility: hidden; }
