/* Layout: brand-book pages translated to web — arched hero photo inside the gold sun-orbit,
   quiet cream sections, then the booking module as the one dense, working surface. */
:root {
  --cream: #f7f0e4;
  --paper: #fcf8f1;
  --sand: #efe4d2;
  --forest: #1f3b2c;
  --forest-ink: #24352b;
  --gold: #b0843a;
  --gold-soft: #d8b878;
  --ink: #2c2a22;
  --muted: #6f6a5a;
  --line: rgba(176, 132, 58, .32);
  --line-soft: rgba(44, 42, 34, .1);
  --on-forest: #f7f0e4;
  --ok: #3f6b4c;
  --warn: #9a6a1e;
  --danger: #a3473a;
  --shadow: 0 18px 50px -28px rgba(31, 59, 44, .45);
  --on-gold: #fffaf0;
  --green-deep: #1f3b2c;
  --green-mid: #2c4f3b;
  --on-green: #f3ead8;
  --head-h: 76px;

  /* Closest free matches to the brand book: a moderate-contrast book serif, and an Avenir-like humanist sans */
  --f-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  /* Buttons (Figma "Botones", node 154:166). */
  --btn-gold: #e2ac48;
  --btn-gold-off: #d1c4ad;
  --btn-forest: #203b2c;
  --btn-forest-off: #8aa094;
  --btn-ink: #383838;
  --f-btn: "Montserrat", var(--f-sans);
  --f-sans: "Nunito Sans", "Avenir Next", "Avenir", "Segoe UI", system-ui, sans-serif;

  --step--1: .82rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.7rem;
  --step-3: clamp(2rem, 4vw, 2.8rem);
  --step-4: clamp(2.5rem, 5.6vw, 4.2rem);
  --track: .28em;

  /* Motion: one easing family, three durations. Only transform/opacity (and clip-path where it earns it). */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-1: 180ms;
  --dur-2: 320ms;
  --dur-3: 700ms;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream: #13241b; --paper: #182c21; --sand: #1d3326;
    --forest: #d9c391; --forest-ink: #efe6d3;
    --gold: #d2ab62; --gold-soft: #b8924c;
    --ink: #efe6d3; --muted: #b3ab96;
    --line: rgba(210, 171, 98, .35); --line-soft: rgba(239, 230, 211, .12);
    --on-forest: #13241b;
    --ok: #8fc29d; --warn: #e0b765; --danger: #e48f80;
    --shadow: 0 18px 50px -28px rgba(0, 0, 0, .7);
    --on-gold: #13241b;
    --green-deep: #0d1a13; --green-mid: #1a3125;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --cream: #13241b; --paper: #182c21; --sand: #1d3326;
  --forest: #d9c391; --forest-ink: #efe6d3;
  --gold: #d2ab62; --gold-soft: #b8924c;
  --ink: #efe6d3; --muted: #b3ab96;
  --line: rgba(210, 171, 98, .35); --line-soft: rgba(239, 230, 211, .12);
  --on-forest: #13241b;
  --ok: #8fc29d; --warn: #e0b765; --danger: #e48f80;
  --shadow: 0 18px 50px -28px rgba(0, 0, 0, .7);
  --on-gold: #13241b;
  --green-deep: #0d1a13; --green-mid: #1a3125;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--cream); color: var(--ink);
  font-family: var(--f-sans); font-weight: 400; font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; color: var(--forest-ink); }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: var(--step--1); letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); font-weight: 400; }
.rule { width: 44px; height: 2px; background: var(--gold); border: 0; margin: 14px 0 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: 12px 28px; border-radius: 66px; border: 1px solid transparent; cursor: pointer; text-decoration: none; font-family: var(--f-btn); font-size: .9265rem; font-weight: 600; line-height: 1.2; letter-spacing: 0; text-transform: none; transition: background-color var(--dur-1), color var(--dur-1), border-color var(--dur-1), transform 100ms ease-out; }
/* Press feedback lives on pointer-down and is instant */
.btn:active:not([disabled]) { transform: scale(.97); }
.btn-primary { background: var(--btn-forest); color: #fff; }
.btn-primary:hover { background: #2c4d3b; }
.btn-ghost { border-color: var(--btn-gold); color: var(--btn-ink); background: transparent; }
.btn-ghost:hover { background: rgba(226, 172, 72, .14); }
/* Inactive: solid muted fill + white text (no opacity), per the Figma sheet. */
.btn[disabled] { cursor: not-allowed; transform: none; }
.btn-primary[disabled], .btn-primary[disabled]:hover { background: var(--btn-forest-off); color: #fff; }
.btn-gold[disabled], .btn-gold[disabled]:hover { background: var(--btn-gold-off); color: #fff; box-shadow: none; }
.btn-ghost[disabled], .btn-ghost[disabled]:hover { background: transparent; border-color: var(--btn-gold-off); color: var(--btn-gold-off); }
/* Gated (premises not met): looks inactive but stays focusable; its .gate-hint says what is missing. */
.btn[aria-disabled="true"] { cursor: not-allowed; transform: none; }
.btn[aria-disabled="true"]:active { transform: none; }
.btn-primary[aria-disabled="true"], .btn-primary[aria-disabled="true"]:hover { background: var(--btn-forest-off); color: #fff; }
.btn-gold[aria-disabled="true"], .btn-gold[aria-disabled="true"]:hover { background: var(--btn-gold-off); color: #fff; box-shadow: none; }
.btn-ghost[aria-disabled="true"], .btn-ghost[aria-disabled="true"]:hover { background: transparent; border-color: var(--btn-gold-off); color: var(--btn-gold-off); }
.gate-hint { margin: 8px 0 0; font-size: .82rem; line-height: 1.35; color: var(--muted); }
.gate-hint:empty { margin: 0; }
.bk-sum .gate-hint { color: inherit; opacity: .85; text-align: center; }
.btn-link { background: none; border: 0; padding: 0; color: var(--btn-ink); cursor: pointer; font-family: var(--f-btn); font-weight: 600; font-size: .9265rem; letter-spacing: 0; text-transform: none; }

/* Test-mode ribbon: only shown when the backend runs the fake payment gateway */
.demo { background: var(--forest); color: var(--on-forest); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; text-align: center; padding-block: 7px; }

/* Header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
/* The bar is a material layer that is always there and only fades: animating backdrop-filter itself janks */
.site-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--paper) 82%, transparent); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); border-bottom: 1px solid var(--line-soft); transition: opacity var(--dur-2) var(--ease-out); }
.site-head.is-top::before { opacity: 0; }
@media (prefers-reduced-transparency: reduce) { .site-head::before { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--forest-ink); }
.brand svg { width: 32px; height: 36px; flex: none; }
.brand svg.brand-word { width: 112px; height: 31px; }
.brand-name { display: grid; line-height: 1.05; }
.brand-name small { font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; }
.brand-name b { font-weight: 400; font-size: 1.12rem; letter-spacing: .1em; }
.brand-sep { width: 1px; height: 32px; background: var(--forest-ink); opacity: .5; }
.brand-spa { display: grid; line-height: 1.15; letter-spacing: .3em; font-size: .8rem; }
.brand-spa span:last-child { font-size: .62rem; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { text-decoration: none; }
/* Text links only: buttons in the nav keep the button styles. */
.nav a:not(.btn) { color: var(--btn-ink); font-family: var(--f-btn); font-size: .875rem; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }
.nav a:not(.btn):hover { color: var(--gold); }
/* Figma "Menú": the active link is bold, the rest regular. */
.nav a:not(.btn)[aria-current] { font-weight: 700; }
/* Header CTA (Figma 154:268): uppercase, 14px, light tracking. */
.nav .btn { font-size: .875rem; letter-spacing: .04em; text-transform: uppercase; padding: 12px 24px; min-height: 46px; }
@media (max-width: 860px) { .nav a:not(.btn):not(.nav-keep) { display: none; } .brand-sep, .brand-spa { display: none; } }
/* Secondary header buttons drop on small screens; the logo already links home. */
@media (max-width: 860px) { .nav .nav-wide { display: none; } }
@media (max-width: 860px) { .nav { gap: 16px; } .nav a.nav-keep { font-size: .8rem; white-space: nowrap; } }

/* Hero — full-bleed photo in parallax layers: photo (slow), gold orbit (slower), copy, waves (front) */
.btn-gold { background: var(--btn-gold); color: var(--btn-ink); }
.btn-gold:hover { background: #d69c33; }
.btn .chev { display: inline-block; font-size: 1.15em; line-height: 1; transition: translate var(--dur-2) var(--ease-out); }
.btn:hover .chev { translate: 3px 0; }
.hero { --wave-h: clamp(70px, 10vw, 150px); position: relative; overflow: hidden; isolation: isolate; margin-top: calc(-1 * var(--head-h)); min-height: clamp(700px, 94vh, 920px); display: grid; align-items: center; background: var(--cream); }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.layer { position: absolute; inset: 0; will-change: transform; }
.layer-photo { inset: -32px; }
.layer-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 42%; animation: settle 1.8s var(--ease-out) both; }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }
.layer-veil {
  background:
    linear-gradient(90deg, var(--cream) 0%, color-mix(in srgb, var(--cream) 86%, transparent) 26%, color-mix(in srgb, var(--cream) 30%, transparent) 46%, transparent 64%),
    linear-gradient(180deg, color-mix(in srgb, var(--cream) 78%, transparent) 0%, transparent 20%);
}
/* Orbit: the ring draws itself in, then a sun with a light trail circles it; an inner ring turns the other way */
.orbit { position: absolute; width: min(66vh, 600px); aspect-ratio: 1; max-width: 100%; right: 3%; top: 7%; }
.orbit-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.orbit-ring circle { fill: none; stroke: var(--gold-soft); stroke-width: 1.2px; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s .35s var(--ease-in-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.orbit-inner { position: absolute; inset: 11%; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--gold-soft) 55%, transparent); opacity: 0; animation: fade 1.2s 1.4s forwards, spin 120s linear infinite reverse; }
.orbit-spin { position: absolute; inset: 0; border-radius: 50%; opacity: 0; animation: fade 1.2s 1.7s forwards, spin 32s linear infinite; }
.orbit-spin.slow { inset: 11%; animation: fade 1.2s 1.9s forwards, spin 90s linear infinite reverse; }
.orbit-trail { position: absolute; inset: -1px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0turn, transparent .68turn, rgba(255, 214, 140, .95) 1turn); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); filter: drop-shadow(0 0 6px rgba(255, 196, 100, .9)); }
.orbit-sun { position: absolute; top: -7px; left: calc(50% - 7px); width: 14px; height: 14px; border-radius: 50%; background: #fff8e6; box-shadow: 0 0 0 4px rgba(255, 220, 150, .35), 0 0 26px 10px rgba(255, 196, 100, .7); }
.orbit-spin.slow i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #ffe2a8; box-shadow: 0 0 10px 3px rgba(255, 196, 100, .7); }
.orbit-spin.slow i:nth-child(1) { top: -2.5px; left: calc(50% - 2.5px); }
.orbit-spin.slow i:nth-child(2) { top: calc(75% - 2.5px); left: calc(93.3% - 2.5px); }
.orbit-spin.slow i:nth-child(3) { top: calc(75% - 2.5px); left: calc(6.7% - 2.5px); }
@keyframes spin { to { rotate: 360deg; } }
@keyframes fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .orbit-ring circle { stroke-dashoffset: 0; }
  .orbit-inner, .orbit-spin { opacity: 1; }
}
.hero-inner { position: relative; padding-block: calc(var(--head-h) + 48px) 120px; will-change: transform; }
.hero-copy { display: grid; gap: 24px; max-width: 560px; min-width: 0; }
@keyframes rise { from { opacity: .001; transform: translateY(22px); } }
@keyframes rise-in { from { opacity: 0; translate: 0 14px; } }
.hero h1 .ln { display: block; }
.hero h1 .ln > span { display: inline-block; }
/* Hero entrance — the one signature moment. Hidden states exist only under .js-motion (set by motion.js in <head>)
   and only as animation keyframes, so content is visible without JS and under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .js-motion .hero h1 .ln { overflow: hidden; padding: .06em .14em .18em; margin: -.06em -.14em -.18em; }
  .js-motion .hero h1 .ln > span { animation: line-up 900ms var(--ease-out) 120ms both; }
  .js-motion .hero h1 .ln + .ln > span { animation-delay: 210ms; }
  .js-motion .hero-copy > .eyebrow { animation: rise-in var(--dur-3) var(--ease-out) 40ms both; }
  .js-motion .hero-lead { animation: rise-in var(--dur-3) var(--ease-out) 380ms both; }
  .js-motion .hero-actions { animation: rise-in var(--dur-3) var(--ease-out) 480ms both; }
  /* Arrives from the API at an unknown time; it never jumps ahead of the sequence (an animation restarts when [hidden] lifts) */
  .js-motion .next-slot { animation: rise-in var(--dur-3) var(--ease-out) 580ms both; }
  .js-motion .hero-waves .wave-lines { animation: wipe 1.8s var(--ease-out) 500ms both; }
  .js-motion .chat-fab { animation: rise-in var(--dur-3) var(--ease-out) 1.3s both; }
}
@keyframes line-up { from { transform: translateY(120%); } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.hero h1 { font-size: clamp(3.1rem, 7.4vw, 6.1rem); font-style: italic; font-weight: 400; line-height: .98; letter-spacing: -.02em; color: var(--forest-ink); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 34ch; color: var(--ink); opacity: .82; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.next-slot { justify-self: start; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .86rem; color: var(--ink); text-decoration: none; padding: 8px 16px 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 72%, transparent); backdrop-filter: blur(8px); transition: border-color var(--dur-1); }
.next-slot b { font-weight: 500; color: var(--forest-ink); }
.next-slot:hover { border-color: var(--gold); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); animation: pulse 2.4s ease-out 1s 2; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero-waves { position: absolute; z-index: 4; left: 0; right: 0; bottom: -1px; width: 100%; height: var(--wave-h); pointer-events: none; }
@media (max-width: 760px) {
  .hero { min-height: 760px; align-items: start; }
  .layer-photo img { object-position: 76% 50%; }
  .layer-veil { background: linear-gradient(180deg, var(--cream) 0%, color-mix(in srgb, var(--cream) 88%, transparent) 36%, transparent 60%); }
  .hero-inner { padding-block: calc(var(--head-h) + 28px) 120px; }
  .orbit { width: 86vw; right: -24vw; top: 40%; }
}

/* Hero slider (assets/hero.js): slide 1 is the hero itself (.hero-slide), slides 2..N are the machines.
   Without JS, or when the therapies fail to load, none of this applies and the hero is a plain static hero.
   Machine slides are photo-led and dark-scrimmed so cream text clears 4.5:1 on any photo. */
.hero-slide { position: relative; display: grid; align-items: inherit; align-self: stretch; min-width: 0; }
.hero.is-slider { touch-action: pan-y; cursor: grab; }
.hero.is-slider.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.hero.is-slider .hero-slide, .hero.is-slider .hc-slide { will-change: transform; }
.tcard { scroll-margin-top: calc(var(--head-h) + 16px); }
.site-head .brand, .site-head .nav a:not(.btn), .site-head .brand-sep { transition: color var(--dur-2), background-color var(--dur-2); }
/* Over a machine photo the transparent header needs light ink (hero.js toggles .on-dark) */
.site-head.is-top.on-dark .brand, .site-head.is-top.on-dark .nav a:not(.btn) { color: #fbf5e8; }
.site-head.is-top.on-dark .brand-sep { background: #fbf5e8; }

.hc-slide { position: absolute; inset: 0; overflow: hidden; background: var(--green-deep); color: #fbf5e8; display: grid; align-items: end; }
.hc-slide img { position: absolute; top: 0; left: -8%; width: 116%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.hc-scrim { position: absolute; inset: 0; background:
  /* Shade only where text sits (header strip, left copy column, bottom controls) so the photo stays visible. */
  linear-gradient(180deg, rgba(13, 26, 19, .5) 0, rgba(13, 26, 19, 0) 20%),
  linear-gradient(90deg, rgba(13, 26, 19, .8) 0, rgba(13, 26, 19, .55) 30%, rgba(13, 26, 19, 0) 58%),
  linear-gradient(0deg, rgba(13, 26, 19, .6) 0, rgba(13, 26, 19, 0) 30%); }
.hc-copy { position: relative; padding-bottom: calc(var(--wave-h) + 92px); text-shadow: 0 1px 14px rgba(8, 16, 12, .5); }
.hc-text { display: grid; gap: 14px; max-width: 580px; min-width: 0; justify-items: start; }
.hc-tag { display: flex; align-items: center; gap: 12px; font-size: .74rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-soft); }
.hc-tag::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hc-name { font-size: clamp(2.3rem, 5.4vw, 4.4rem); font-style: italic; font-weight: 400; line-height: 1; letter-spacing: -.02em; color: #fbf5e8; max-width: 15ch; }
.hc-short { font-size: clamp(1.02rem, 1.5vw, 1.2rem); max-width: 36ch; color: rgba(251, 245, 232, .92); }
.hc-actions { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 6px; text-shadow: none; }
.btn-ghost-light { border-color: rgba(251, 245, 232, .6); color: #fbf5e8; background: transparent; }
.btn-ghost-light:hover { background: #fbf5e8; color: var(--forest-ink); border-color: #fbf5e8; }
/* In dark mode --forest-ink is light cream; the hover fill is cream, so pin the text to the deep green */
:root[data-theme="dark"] .btn-ghost-light:hover { color: #1f3b2c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-ghost-light:hover { color: #1f3b2c; } }


/* Controls: one quiet pill sitting on the wave fill, below the hero copy; its own dark backing keeps it legible over the cream hero too */
.hc-ui { position: absolute; z-index: 5; left: 0; right: 0; bottom: 12px; pointer-events: none; animation: hc-in var(--dur-3) var(--ease-out) both; }
@keyframes hc-in { from { opacity: 0; } }
.hc-bar { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; pointer-events: auto; width: max-content; max-width: 100%; color: #fbf5e8; background: rgba(13, 26, 19, .62); border: 1px solid rgba(251, 245, 232, .3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hc-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; padding: 0; border-radius: 50%; cursor: pointer; color: #fbf5e8; background: transparent; border: 1px solid transparent; transition: background-color var(--dur-1), border-color var(--dur-1), transform 100ms ease-out; }
.hc-btn:hover { background: rgba(251, 245, 232, .14); border-color: var(--gold-soft); }
.hc-btn:active { transform: scale(.94); }
.hc-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hc-btn svg .fill { fill: currentColor; stroke-width: 1; }
.hc-btn .i-pause, .hc-btn .i-play { display: grid; place-items: center; }
.hc-btn .i-play, .hero.is-paused .hc-btn .i-pause { display: none; }
.hero.is-paused .hc-btn .i-play { display: grid; }
.hc-segs { display: flex; align-items: center; margin-inline: 4px; }
.hc-seg { width: 30px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.hc-seg i { position: relative; display: block; height: 3px; margin-inline: 2px; border-radius: 2px; background: rgba(251, 245, 232, .5); overflow: hidden; }
.hc-seg i::after { content: ""; position: absolute; inset: 0; background: var(--gold-soft); transform-origin: left center; transform: scaleX(0); }
.hc-seg[aria-current] i::after { transform: scaleX(var(--p, 0)); }
/* With autoplay off there is no clock to show: the current slide is simply marked */
.hero.is-paused .hc-seg[aria-current] i::after { transform: scaleX(1); }
.hc-seg:hover i { background: rgba(251, 245, 232, .8); }
@media (min-width: 761px) { .hc-btn { width: 44px; height: 44px; } .hc-seg { width: 46px; } }
/* On phones the pill stops short of the concierge launcher (bottom right) */
@media (max-width: 760px) { .hc-btn { width: 36px; height: 36px; } .hc-seg { width: 24px; height: 36px; } }
@media (max-width: 760px) { .hc-name { font-size: clamp(2.1rem, 9.5vw, 2.9rem); } .hc-scrim { background: linear-gradient(180deg, rgba(13, 26, 19, .55) 0, rgba(13, 26, 19, 0) 18%), linear-gradient(0deg, rgba(13, 26, 19, .9) 0, rgba(13, 26, 19, .72) 38%, rgba(13, 26, 19, 0) 66%); } }
@media (prefers-reduced-transparency: reduce) { .hc-bar { background: rgb(13, 26, 19); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) { .hc-btn { border-color: #fbf5e8; } .hc-seg i { background: #fbf5e8; } }

/* Pillars — the green band the hero wave pours into */
.pillars { position: relative; margin-top: -1px; padding-block: 30px 54px; background: var(--green-deep); color: var(--on-green); }
.pillars ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.pillars li { display: grid; justify-items: center; gap: 12px; padding: 6px 10px; text-align: center; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--on-green); }
.pillars li + li { border-left: 1px solid rgba(216, 184, 120, .3); }
.pillars svg { width: 36px; height: 36px; stroke: #d8b878; fill: none; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; transition: translate var(--dur-2) var(--ease-out); }
.pillars li:hover svg { translate: 0 -3px; }
@media (max-width: 640px) { .pillars ul { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; } .pillars li { padding-inline: 4px; font-size: .68rem; letter-spacing: .1em; overflow-wrap: anywhere; } .pillars li:nth-child(4) { border-left: 0; } }

/* Section heads */
.section { padding-block: 88px; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); max-width: 52ch; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; gap: 16px; } .section { padding-block: 64px; } }

/* Therapy catalogue — photo-led cards; one featured, the rest read in a glance: name, one line, time, price */
.therapies { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 290px; gap: 16px; }
.tcard { position: relative; overflow: hidden; border-radius: 18px; background: var(--green-deep); color: #f6eedd; isolation: isolate; min-width: 0; }
.tcard.featured { grid-column: span 2; grid-row: span 2; }
.tcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.tcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 26, 19, 0) 12%, rgba(13, 26, 19, .62) 38%, rgba(13, 26, 19, .9) 58%, rgba(13, 26, 19, .96) 100%); }
.tcard-body { text-shadow: 0 1px 12px rgba(8, 16, 12, .55); }
.tcard:hover img, .tcard:focus-within img { transform: scale(1.05); }
.tcard-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; display: grid; gap: 6px; transition: translate var(--dur-2) var(--ease-out); }
/* Hover and keyboard focus get the same treatment; press answers on pointer-down */
.tcard { transition: scale 100ms ease-out; }
.tcard:focus-within .tcard-body { translate: 0 -4px; }
.tcard:focus-within .tcard-cta::after { translate: 4px 0; }
@media (hover: hover) {
  .tcard:hover .tcard-body { translate: 0 -4px; }
  .tcard:hover .tcard-cta::after { translate: 4px 0; }
}
.tcard:has(.tcard-link:active) { scale: .985; }
.tcard .tag { justify-self: start; font-size: .68rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: #f0d9a8; background: rgba(13, 26, 19, .6); padding: 4px 10px; border-radius: 999px; text-shadow: none; }
.tcard .tags { display: flex; flex-wrap: wrap; gap: 6px; justify-self: start; }
.tcard h3 { color: #fbf5e8; font-size: 1.7rem; }
.tcard.featured h3 { font-size: clamp(2.2rem, 3.6vw, 3.1rem); }
.tcard.featured .tcard-body { padding: 32px 34px; gap: 10px; }
.tcard p { font-size: .95rem; color: rgba(251, 245, 232, .86); }
.tcard.featured p { font-size: 1.1rem; max-width: 34ch; }
.tcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 12px; border-top: 1px solid rgba(226, 197, 138, .35); font-variant-numeric: tabular-nums; }
.tcard-foot span { font-size: .88rem; color: rgba(251, 245, 232, .86); }
.tcard-foot b { font-family: var(--f-display); font-weight: 500; font-size: 1.3rem; color: #fbf5e8; margin-left: 10px; }
.tcard-cta { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #e2c58a; white-space: nowrap; }
.tcard-cta::after { content: "→"; display: inline-block; margin-left: .45em; transition: translate var(--dur-2) var(--ease-out); }
/* The name is the real control; its ::after stretches over the whole card */
.tcard-link { all: unset; cursor: pointer; }
.tcard-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tcard-link:focus-visible::after { outline: 2px solid #e2c58a; outline-offset: -4px; }
@media (max-width: 960px) {
  .therapies { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
  .tcard.featured { grid-column: 1 / -1; grid-row: span 2; }
  .therapies > .tcard:nth-child(6) { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .therapies { grid-template-columns: 1fr; grid-auto-rows: 230px; gap: 12px; }
  .tcard.featured { grid-row: span 2; }
  .tcard-body, .tcard.featured .tcard-body { padding: 18px 20px; }
}

/* Photo band */
.band { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; min-height: 340px; }
.band img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 260px; }
.band-copy { background: var(--forest); color: var(--on-forest); display: grid; align-content: center; gap: 18px; padding: 40px max(24px, 4vw); }
.band-copy h2 { color: var(--on-forest); font-size: var(--step-3); font-style: italic; }
.band-copy .eyebrow { color: var(--gold-soft); }
.band-copy p { opacity: .85; max-width: 38ch; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr 1fr; } .band-copy { grid-column: 1 / -1; order: -1; } }

/* Booking module */
.booking { background: var(--sand); }
/* Landing call-to-action: one headline, one line, one button. */
/* The booking page: the module sits right under the fixed header. */
.panel { scroll-margin-top: calc(var(--head-h) + 16px); background: var(--paper); border: 1px solid var(--line-soft); border-radius: 22px; padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow); min-width: 0; }

/* The connector before a reached step fills with gold, left to right */


.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 16px; cursor: pointer; display: grid; text-align: left; line-height: 1.25; transition: background-color var(--dur-1), border-color var(--dur-1), color var(--dur-1), transform 100ms ease-out; }
.chip:active { transform: scale(.97); }
.chip small { font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--on-forest); }
.chip[aria-pressed="true"] small { color: inherit; opacity: .75; }


/* Selection mark: a short gold rule draws out from the centre when a day or time becomes the choice */
@keyframes mark-in { from { scale: 0 1; } }
.chip[disabled] { opacity: .45; cursor: not-allowed; border-style: dashed; }
.chip[disabled]:hover { border-color: var(--line); }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--ink); font-size: .9rem; margin-bottom: 22px; }

/* Summary aside */
.kv { display: grid; gap: 10px; margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 14px; font-size: .92rem; border-bottom: 1px solid var(--line-soft); padding-bottom: 9px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; color: var(--forest-ink); }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.total span { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.total b { font-family: var(--f-display); font-size: 2rem; font-weight: 500; color: var(--forest-ink); font-variant-numeric: tabular-nums; }

/* Floating concierge chat */
.chat-fab { position: fixed; z-index: 40; right: calc(env(safe-area-inset-right, 0px) + 20px); bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); display: flex; align-items: center; gap: 12px; }
.fab-hint { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 16px 16px 4px 16px; padding: 10px 14px; font-size: .86rem; box-shadow: var(--shadow); max-width: 220px; animation: rise-in var(--dur-3) var(--ease-out) 1.6s both; }
.fab-btn { position: relative; width: 62px; height: 62px; border-radius: 50%; border: 1px solid #d8b878; background: var(--green-deep); color: #d8b878; display: grid; place-items: center; cursor: pointer; box-shadow: 0 16px 34px -14px rgba(13, 26, 19, .8); transition: transform var(--dur-1) var(--ease-out); }
@media (hover: hover) { .fab-btn:hover { transform: translateY(-2px); } }
.fab-btn:active { transform: scale(.96); transition-duration: 100ms; }
.fab-btn svg { width: 28px; height: 28px; }
.fab-dot { position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: #7fc48f; border: 2px solid var(--green-deep); }
.chat-fab.open .fab-hint { display: none; }
@media (max-width: 520px) { .fab-hint { display: none; } }

.chat { position: fixed; z-index: 41; right: calc(env(safe-area-inset-right, 0px) + 20px); bottom: calc(env(safe-area-inset-bottom, 0px) + 96px); width: min(384px, calc(100vw - 32px)); height: min(580px, calc(100vh - 150px)); display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(13, 26, 19, .6); transform-origin: bottom right; transition: opacity var(--dur-1) ease-out, transform var(--dur-2) var(--ease-out), display var(--dur-2) allow-discrete; }
.chat[hidden] { opacity: 0; transform: translateY(10px) scale(.96); }
@starting-style { .chat:not([hidden]) { opacity: 0; transform: translateY(10px) scale(.96); } }
@media (max-width: 520px) { .chat { right: 16px; left: 16px; width: auto; } }
.chat-head { background: var(--green-deep); color: var(--on-green); padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.chat-head .av { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #d8b878; display: grid; place-items: center; color: #d8b878; flex: none; }
.chat-head .av svg { width: 20px; height: 24px; }
.chat-head b { font-weight: 400; display: block; font-family: var(--f-display); font-size: 1.3rem; line-height: 1.1; }
.chat-head small { font-size: .74rem; opacity: .75; display: inline-flex; align-items: center; gap: 6px; }
.chat-head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7fc48f; }
.chat-close { margin-left: auto; background: none; border: 0; color: var(--on-green); font-size: 1.5rem; line-height: 1; cursor: pointer; opacity: .8; padding: 4px 8px; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--cream); }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.45; animation: rise .3s both; }
.msg.bot { align-self: flex-start; background: var(--paper); border: 1px solid var(--line-soft); border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; background: var(--green-deep); color: var(--on-green); border-bottom-right-radius: 4px; }
.msg ul { margin: 6px 0 0; padding-left: 18px; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 100%; }
.msg-actions button { border: 1px solid var(--gold); background: var(--paper); color: var(--forest-ink); border-radius: 999px; padding: 6px 12px; font-size: .82rem; cursor: pointer; }
.msg-actions button:hover { background: var(--gold); color: var(--on-gold); }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: var(--paper); border-radius: 16px; border: 1px solid var(--line-soft); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 40% { opacity: .2; transform: translateY(-2px); } }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line-soft); background: var(--paper); }
.chat-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; background: var(--cream); }
.chat-form input:focus { outline: none; border-color: var(--gold); }
.chat-form button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--gold); color: var(--on-gold); cursor: pointer; display: grid; place-items: center; flex: none; }
.chat-form button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.chat-foot { font-size: .7rem; color: var(--muted); text-align: center; padding: 0 12px 10px; background: var(--paper); }

/* Checkout form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .lbl { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); background: var(--cream); border-radius: 12px; padding: 12px 14px; font-weight: 400; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
.field .err { font-size: .8rem; color: var(--danger); min-height: 0; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .pay-opts { grid-template-columns: 1fr; } }
.pay-opt { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 14px 44px; cursor: pointer; display: grid; gap: 2px; }
.pay-opt input { position: absolute; left: 16px; top: 17px; accent-color: var(--forest); width: 16px; height: 16px; }
.pay-opt b { font-weight: 400; }
.pay-opt small { color: var(--muted); font-size: .8rem; }
.pay-opt:has(input:checked) { border-color: var(--forest); background: var(--cream); }
.pay-opt.is-disabled { cursor: not-allowed; opacity: .55; }
/* "Pagar en recepción": one-time code to confirm the titular's email. */
.rcode { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); }
.rcode-lead { margin: 0; font-size: .92rem; overflow-wrap: anywhere; }
.rcode-row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.rcode-field { flex: 0 1 220px; }
.rcode-field input { font-size: 1.25rem; letter-spacing: .4em; font-variant-numeric: tabular-nums; }
.rcode-verify { white-space: nowrap; min-height: 46px; }
.rcode .err:empty { display: none; }
.rcode .err { margin: 0; font-size: .85rem; color: var(--danger); }
.rcode .btn-link { justify-self: start; }
.rcode .btn-link[aria-disabled="true"] { opacity: .6; cursor: default; text-decoration: none; }
.rcode-ok { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--forest); font-size: .92rem; }
@media (max-width: 480px) { .rcode-field { flex: 1 1 100%; } .rcode-verify { width: 100%; } }
.card-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .card-row { grid-template-columns: 1fr 1fr; } .card-row .field:first-child { grid-column: 1 / -1; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check a { color: var(--gold); text-underline-offset: 3px; }
.check input { margin-top: 4px; accent-color: var(--forest); width: 16px; height: 16px; flex: none; }
.secure { font-size: .78rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }

/* Confirmation */
.confirm { display: grid; gap: 22px; }
.confirm-head { display: grid; gap: 12px; }
.seal { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; animation: seal-in var(--dur-3) var(--ease-out) both; }
.seal svg { width: 28px; height: 28px; stroke: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* The check draws once (path length ≈ 20 user units) */
.seal path { stroke-dasharray: 22; stroke-dashoffset: 0; animation: check-draw 600ms var(--ease-out) 240ms both; }
@keyframes seal-in { from { opacity: 0; scale: .92; } }
@keyframes check-draw { from { stroke-dashoffset: 22; } }
.confirm h3 { font-size: var(--step-3); }
.folio { font-variant-numeric: tabular-nums; letter-spacing: .14em; color: var(--gold); font-size: .9rem; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 50%, transparent); border-radius: 999px; padding: 4px 12px; justify-self: start; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.prep-box { background: var(--cream); border-radius: 14px; padding: 18px 20px; display: grid; gap: 8px; border-left: 3px solid var(--gold); }
.prep-box h4 { margin: 0; font-weight: 400; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.mock-note { font-size: .8rem; color: var(--muted); }

/* Visit + footer */
.visit { position: relative; color: #f7f0e4; overflow: hidden; }
.visit img { width: 100%; height: 340px; object-fit: cover; display: block; }
.visit .over { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: linear-gradient(180deg, rgba(19, 36, 27, .05), rgba(19, 36, 27, .55)); }
.visit .over p { font-size: clamp(.9rem, 2.4vw, 1.2rem); letter-spacing: .4em; text-transform: uppercase; }
.foot { background: #142a1f; color: #e9dfc9; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: 52px; }
.foot h4 { margin: 0 0 10px; font-weight: 400; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: #d2ab62; }
.foot p, .foot li { font-size: .9rem; opacity: .85; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot .brand { color: #f7f0e4; }
.foot .brand-sep { background: #f7f0e4; }
.foot-base { border-top: 1px solid rgba(210, 171, 98, .25); }
.foot-base .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block: 18px; grid-template-columns: none; font-size: .76rem; opacity: .7; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr 1fr; } .foot .wrap > :first-child { grid-column: 1 / -1; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Live-data additions ---------- */
[hidden] { display: none !important; }
.sr-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Skeletons */
@keyframes shimmer { to { background-position: -200% 0; } }
.skel { background: linear-gradient(100deg, var(--sand) 30%, color-mix(in srgb, var(--paper) 70%, var(--sand)) 50%, var(--sand) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 12px; }
.tcard.skel-card { background: var(--sand); }
.tcard.skel-card::before { display: none; }
.chips .skel { width: 190px; height: 52px; border-radius: 999px; }

/* Error + inline messages */
.load-error { display: grid; gap: 12px; justify-items: start; padding: 22px; border: 1px dashed var(--danger); border-radius: 14px; background: color-mix(in srgb, var(--danger) 7%, transparent); color: var(--ink); grid-column: 1 / -1; }
.load-error p { font-size: .95rem; }
.form-error { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--ink); font-size: .9rem; margin-top: 14px; }
.test-note { display: inline-flex; align-items: center; gap: 8px; justify-self: start; font-size: .8rem; color: var(--warn); border: 1px dashed color-mix(in srgb, var(--warn) 55%, transparent); border-radius: 999px; padding: 4px 12px; }
.soft-note { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 12%, transparent); font-size: .9rem; border-left: 3px solid var(--gold); }
.policy { font-size: .84rem; color: var(--muted); }

/* "Antes de reservar" checklist */
.health-list { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.health-item { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; border: 1px solid var(--line-soft); border-radius: 12px; font-size: .92rem; cursor: pointer; background: var(--cream); }
.health-item input { margin-top: 4px; accent-color: var(--forest); width: 16px; height: 16px; flex: none; }
.health-item:has(input:checked) { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--cream)); }
.health-item small { display: block; color: var(--muted); font-size: .76rem; }

/* Manage page */
.manage-main { min-height: 70vh; background: var(--sand); padding-block: calc(var(--head-h) + 20px) 80px; margin-top: calc(-1 * var(--head-h)); }
.manage-main .panel { max-width: 720px; margin-inline: auto; }
.page-head { background: var(--cream); }
.status.pending { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 50%, transparent); }
.status.pending::before { background: var(--warn); }
.status.off { color: var(--muted); border-color: var(--line); }
.status.off::before { background: var(--muted); }
.status.bad { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 50%, transparent); }
.status.bad::before { background: var(--danger); }
.cancel-box { display: grid; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.cancel-box h4 { margin: 0; font-weight: 400; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.cancel-box textarea { width: 100%; min-height: 96px; border: 1px solid var(--line); background: var(--cream); border-radius: 12px; padding: 12px 14px; resize: vertical; }
.cancel-box textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
.page-nav { display: flex; gap: 20px; align-items: center; }

/* ---------- Scroll reveals ----------
   motion.js adds .rv to targets and .motion-ready to <html> only once its observer is running and only without
   reduced motion; elements already on screen get .is-in in the same frame, so nothing flashes. */
@media (prefers-reduced-motion: no-preference) {
  .rv .eyebrow, .rv h2, .section-head.rv > p, .band-copy.rv > *, .booker.rv > .panel, .tcard.rv {
    transition: opacity var(--dur-3) var(--ease-out), translate var(--dur-3) var(--ease-out);
  }
  .tcard.rv { transition: opacity var(--dur-3) var(--ease-out) var(--rv-delay, 0ms), translate var(--dur-3) var(--ease-out) var(--rv-delay, 0ms), scale 100ms ease-out; }
  .section-head.rv .rule { transform-origin: left center; transition: scale var(--dur-3) var(--ease-out) 120ms; }
  .section-head.rv h2 { transition-delay: 180ms; }
  .section-head.rv > p { transition-delay: 280ms; }
  .band-copy.rv > :nth-child(2) { transition-delay: 90ms; }
  .band-copy.rv > :nth-child(3) { transition-delay: 180ms; }
  .visit .over.rv p { clip-path: inset(0 0 0 0); transition: opacity 1.2s var(--ease-out), clip-path 1.4s var(--ease-out); }

  .motion-ready .rv:not(.is-in) :is(.eyebrow, h2), .motion-ready .section-head.rv:not(.is-in) > p,
  .motion-ready .band-copy.rv:not(.is-in) > *, .motion-ready .tcard.rv:not(.is-in) { opacity: 0; translate: 0 18px; }
  .motion-ready .section-head.rv:not(.is-in) .rule { scale: 0 1; }
  /* The valley tagline opens from the centre, like the horizon at sunrise. The observed element is .over:
     a target clipped to zero width never reports an intersection. */
  .motion-ready .visit .over.rv:not(.is-in) p { opacity: 0; clip-path: inset(0 50% 0 50%); }
}

/* Legal pages (terminos.html, privacidad.html) */
.manage-main .panel.legal { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 30px; }
.legal p, .legal li { font-size: .96rem; line-height: 1.65; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal .draft { margin: 18px 0 6px; }
.legal .updated { color: var(--muted); font-size: .82rem; }
.foot-base a { color: inherit; text-underline-offset: 3px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Cart (multi-therapy booking) ---------- */
@media (max-width: 520px) {
}
.health-groups { display: grid; gap: 18px; }
.health-groups legend { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding: 0; }
.health-groups fieldset { border: 0; padding: 0; margin: 0; }
.confirm-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: ci; }
.confirm-items li { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 12px; font-size: .9rem; font-variant-numeric: tabular-nums; }
.confirm-items li b { font-weight: 500; color: var(--forest-ink); }
.confirm-items li span { color: var(--muted); }
.confirm-items li.is-off { opacity: .6; }
.confirm-items li.is-off b { text-decoration: line-through; }
.item-pick { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.item-pick input { margin-top: 4px; accent-color: var(--forest); width: 16px; height: 16px; flex: none; }

/* ---------- Mis citas (customer login + bookings) ---------- */
.mc-panel { display: grid; gap: 22px; }
.mc-panel h2 { font-size: var(--step-3); font-weight: 400; }
.mc-lead { color: var(--muted); max-width: 52ch; }
.mc-form { display: grid; gap: 16px; max-width: 420px; }
.mc-code { font-family: var(--f-display); font-size: 2rem; letter-spacing: .5em; text-align: center; padding-left: calc(14px + .5em) !important; font-variant-numeric: tabular-nums; }
.mc-row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.mc-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.mc-head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mc-tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line-soft); padding-bottom: 12px; }
.mc-tabs button { background: none; border: 1px solid transparent; border-radius: 999px; min-height: 40px; padding: 0 1.1em; cursor: pointer; color: var(--muted); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; }
.mc-tabs button[aria-selected="true"] { color: var(--forest-ink); border-color: var(--gold); }
.mc-list { display: grid; gap: 18px; }
.mc-card { display: grid; gap: 16px; padding: clamp(16px, 2.4vw, 24px); border: 1px solid var(--line-soft); border-radius: 18px; background: var(--cream); min-width: 0; }
.mc-card-head { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: space-between; align-items: center; }
.mc-empty { padding: 22px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); display: grid; gap: 12px; justify-items: start; }
.mc-card details > summary { cursor: pointer; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); min-height: 36px; display: flex; align-items: center; }
.mc-card .cancel-box { margin-top: 10px; }
.mc-ok { color: var(--ok); font-size: .9rem; }
@media (max-width: 520px) { .mc-code { font-size: 1.6rem; letter-spacing: .35em; } .mc-form { max-width: none; } }
.mc-wallet { display: grid; gap: 8px; padding: clamp(16px, 2.4vw, 22px); border: 1px solid var(--line-soft); border-radius: 18px; background: var(--cream); }
.mc-wallet h3 { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.mc-wallet-balance { font-family: var(--f-display); font-size: var(--step-3); color: var(--forest-ink); font-variant-numeric: tabular-nums; }
.mc-wallet details > summary { cursor: pointer; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); min-height: 36px; display: flex; align-items: center; }
.mc-wallet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.mc-wallet-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; border-top: 1px solid var(--line-soft); padding-top: 6px; }
.mc-panel a:not(.btn) { color: var(--forest-ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
/* Phones: the brand, "Mis citas" and the action button must fit on one row (320px and up). */
@media (max-width: 520px) {
  .site-head .wrap { gap: 10px; }
  .brand { gap: 8px; }
  .brand svg { width: 26px; height: 30px; }
  .brand svg.brand-word { width: 88px; height: 24px; }
  .nav { gap: 10px; }
  .nav .btn { min-height: 40px; padding: 10px 18px; font-size: .8rem; }
  .nav a.nav-keep { font-size: .75rem; letter-spacing: .02em; }
}

/* ---------- Booking UX pass: picks, action bar, chips ---------- */
.chip { display: flex; align-items: center; gap: 8px; }
.chip-text { display: grid; line-height: 1.25; }
.chip:focus-visible, .btn-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Action bar: inline on desktop, sticky at the bottom of the screen on phones */
.bar-sum { display: grid; gap: 1px; margin-right: auto; }
.bar-sum span { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.bar-sum b { font-family: var(--f-display); font-size: 1.7rem; font-weight: 500; line-height: 1.1; color: var(--forest-ink); font-variant-numeric: tabular-nums; }
/* Space between the last block and the step 1 action (the mobile sticky bar overrides it). */
.panel .btn-link { color: var(--forest-ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.panel .btn-link:hover { color: var(--gold); }
.secure { margin: 0; }
@media (max-width: 380px) { .bar-sum b { font-size: 1.35rem; } .panel { padding: 16px; } }

/* Conekta Web Checkout Tokenizer: the hosted card form (an iframe from pay.conekta.com). */
.conekta-card { min-height: 440px; max-width: 520px; }
.conekta-card[hidden] { display: none; }
.conekta-card iframe { width: 100%; min-height: 440px; border: 0; }
.conekta-err { margin: 6px 0 0; }
.conekta-err:empty { display: none; }

/* ---------- Booking redesign (Figma 249:1090 landing widget, 249:1007 Mi cuenta, 249:741 / 854 / 935 steps) ---------- */
:root {
  --bk-page: #f8f0e8; --bk-card: #fcf8f1; --bk-item: #fbf4eb; --bk-box: #fbf4ed; --bk-line: #ebe1d3; --bk-select-line: #d8cebf;
  --bk-divider: #f3efe9; --bk-ink: #383838; --bk-green: #203b2c; --bk-sum: #1d3628; --bk-muted: #8b8474; --bk-soft: #707070;
  --bk-menu: #fff; --bk-input: #f6eee3; --bk-pick: #f6ece0; --bk-pick-line: #b9a88f;
  --bk-cal-ink: #141414; --bk-cal-wk: #3d2f1f; --bk-cal-out: #a3998b; --bk-cal-gold: #a46c14; --bk-cal-legend: #373432;
  --bk-cal-sel: #1a3c29; --bk-cal-on-sel: #fff; --bk-cal-avail: #1a412b; --bk-cal-low: #f1f0e1; --bk-cal-low-dot: #a8be92; --bk-cal-none: #f2e4d2; --bk-cal-ring: transparent;
  --bk-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 9.8 6.13'%3E%3Cpath d='M.9 1.27 4.86 5.23M5.17 5 8.9 1.27' fill='none' stroke='%23945B0D' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bk-page: #13241b; --bk-card: #182c21; --bk-item: #1d3326; --bk-box: #1a2f23; --bk-line: rgba(239, 230, 211, .14); --bk-select-line: rgba(239, 230, 211, .24);
    --bk-divider: rgba(239, 230, 211, .1); --bk-ink: #efe6d3; --bk-green: #d9c391; --bk-sum: #0d1a13; --bk-muted: #b3ab96; --bk-soft: #b3ab96;
    --bk-menu: #182c21; --bk-input: #13241b; --bk-pick: #1d3326; --bk-pick-line: #d2ab62;
    --bk-cal-ink: #efe6d3; --bk-cal-wk: #d9cdb4; --bk-cal-out: #7f7a6b; --bk-cal-gold: #d2ab62; --bk-cal-legend: #d9cdb4;
    --bk-cal-sel: #d9c391; --bk-cal-on-sel: #13241b; --bk-cal-avail: #8fc29d; --bk-cal-low: rgba(168, 190, 146, .2); --bk-cal-low-dot: #6b8a5c; --bk-cal-none: rgba(242, 228, 210, .13); --bk-cal-ring: var(--bk-line);
  }
}
:root[data-theme="dark"] {
  --bk-page: #13241b; --bk-card: #182c21; --bk-item: #1d3326; --bk-box: #1a2f23; --bk-line: rgba(239, 230, 211, .14); --bk-select-line: rgba(239, 230, 211, .24);
  --bk-divider: rgba(239, 230, 211, .1); --bk-ink: #efe6d3; --bk-green: #d9c391; --bk-sum: #0d1a13; --bk-muted: #b3ab96; --bk-soft: #b3ab96;
  --bk-menu: #182c21; --bk-input: #13241b; --bk-pick: #1d3326; --bk-pick-line: #d2ab62;
  --bk-cal-ink: #efe6d3; --bk-cal-wk: #d9cdb4; --bk-cal-out: #7f7a6b; --bk-cal-gold: #d2ab62; --bk-cal-legend: #d9cdb4;
  --bk-cal-sel: #d9c391; --bk-cal-on-sel: #13241b; --bk-cal-avail: #8fc29d; --bk-cal-low: rgba(168, 190, 146, .2); --bk-cal-low-dot: #6b8a5c; --bk-cal-none: rgba(242, 228, 210, .13); --bk-cal-ring: var(--bk-line);
}

/* Header (Figma "Menú"): medium uppercase links, a divider, MI CUENTA (outline) and RESERVAR (gold). */
.nav a:not(.btn) { font-weight: 500; }
.nav .btn { font-weight: 700; }
.nav-sep { font-family: var(--f-btn); font-size: .875rem; font-weight: 500; color: var(--btn-ink); }
.acct { position: relative; }
.acct-btn { min-width: 132px; font-size: .9265rem; }
.site-head.is-top .acct-btn { background: rgba(255, 255, 255, .3); }
.acct-btn[aria-expanded="true"] { background: rgba(226, 172, 72, .14); }
.acct-menu { position: absolute; top: calc(100% + 28px); left: 50%; translate: -50% 0; width: 352px; z-index: 30; display: grid; gap: 0; padding: 24px 25px 18px; border-radius: 16px; background: var(--bk-menu); box-shadow: 0 8px 16px rgba(0, 0, 0, .16); color: var(--bk-ink); }
.acct-menu::before { content: ""; position: absolute; top: -12px; left: 50%; width: 24px; height: 24px; background: inherit; rotate: 45deg; translate: -50% 0; border-radius: 2px; }
.acct-title { font-family: var(--f-display); font-size: 1.75rem; line-height: 1.15; color: var(--bk-green); }
.acct-lead { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; font-family: var(--f-btn); font-weight: 600; font-size: .875rem; line-height: 1.25; color: var(--bk-soft); }
.acct-lead svg { flex: none; color: var(--bk-ink); }
.acct-cta { margin-top: 18px; width: 100%; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .875rem; }
.acct-rule { border: 0; height: 2px; background: var(--bk-divider); margin: 30px 0 8px; }
.acct-link { display: flex; align-items: center; gap: 12px; min-height: 40px; text-decoration: none; color: var(--bk-ink); font-family: var(--f-btn); font-weight: 700; font-size: .875rem; text-transform: uppercase; border-radius: 8px; }
.acct-link:hover { color: var(--gold); }
.acct-link svg { flex: none; }
@media (max-width: 860px) {
  .nav-sep { display: none; }
  .acct { position: static; }
  .acct-menu { position: fixed; top: calc(env(safe-area-inset-top, 0px) + var(--head-h) + 8px); left: 16px; right: 16px; width: auto; translate: none; max-width: 420px; margin-left: auto; }
  .acct-menu::before { left: auto; right: 96px; translate: none; }
  .nav .btn { padding-inline: 16px; }
  .acct-btn { min-width: 0; }
}
@media (max-width: 520px) { .nav .btn { padding-inline: 14px; } .acct-menu::before { right: 104px; } }

/* Shared form controls */
.bk-select { appearance: none; -webkit-appearance: none; width: 100%; min-width: 0; height: 44px; padding: 0 40px 0 21px; border: 1px solid var(--bk-select-line); border-radius: 8px; background: var(--bk-item) var(--bk-chev) no-repeat right 21px center; font-family: var(--f-btn); font-weight: 600; font-size: .875rem; color: var(--bk-ink); cursor: pointer; text-overflow: ellipsis; }
.bk-select:disabled { cursor: not-allowed; color: var(--bk-muted); }
.bk-select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.bk-select-pill { height: 34px; border-radius: 66px; border-color: var(--btn-gold); background-color: var(--bk-card); }

/* Steps indicator (1 Agenda — 2 Fecha y hora — 3 Tus datos — 4 Pago) */
.bk-steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; counter-reset: bks; font-family: var(--f-btn); font-size: .875rem; font-weight: 500; color: var(--bk-ink); white-space: nowrap; }
.bk-steps li { counter-increment: bks; display: flex; align-items: center; gap: 16px; }
.bk-steps li + li { margin-left: 20px; }
.bk-steps li::before { content: counter(bks); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--btn-gold); font-weight: 400; box-sizing: border-box; }
.bk-steps li + li::after { content: ""; order: -1; width: 26px; height: 1px; background: var(--btn-gold); margin-right: 4px; }
.bk-steps li[aria-current="step"] { color: var(--bk-green); font-weight: 600; }
.bk-steps li[aria-current="step"]::before { background: var(--btn-forest); border-color: var(--btn-forest); color: #fff; font-weight: 500; }
@media (max-width: 760px) {
  .bk-steps li + li { margin-left: 10px; }
  .bk-steps li { gap: 8px; }
  .bk-steps li + li::after { width: 14px; margin-right: 2px; }
  .bk-steps li:not([aria-current="step"]) { font-size: 0; gap: 0; }
  .bk-steps li:not([aria-current="step"])::before { font-size: .875rem; }
  .bk-steps li:not([aria-current="step"]) + li::after, .bk-steps li + li:not([aria-current="step"])::after { margin-right: 8px; }
}

/* Step 1 widget ("Elige tu experiencia, tu día y tu hora") */
.sel-section { padding-block: 64px 108px; }
.sel-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 47px; }
.sel-head h2 { margin-top: 18px; font-size: clamp(2.2rem, 4.4vw, 3rem); line-height: 1.17; color: var(--bk-green); }
.sel-head > p { font-family: var(--f-btn); font-weight: 500; font-size: .9375rem; line-height: 1.22; color: var(--bk-muted); max-width: 441px; justify-self: end; margin-top: 28px; }
.sel { display: grid; grid-template-columns: minmax(0, 1fr) 347px; gap: 2px; align-items: stretch; }
.sel-main, .sel-side { background: var(--bk-card); border-radius: 24px; box-shadow: 0 16px 8px rgba(0, 0, 0, .08); min-width: 0; }
.sel-main { padding: 36px 41px 46px; display: grid; align-content: start; }
.sel-main > .bk-steps { margin-bottom: 40px; }
.sel-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.sel-title h3 { font-size: 1.6rem; color: var(--bk-green); }
.sel-hint { font-size: .82rem; color: var(--bk-muted); }
.sel-hint.is-error { color: var(--danger); }
.sel-chips .chip, .bk-picker .chip { border: 1.5px solid #eadfcb; background: var(--bk-card); padding: 7px 17px 8px; color: var(--bk-ink); font-size: 1rem; }
.sel-chips .chip small, .bk-picker .chip small { font-size: .75rem; color: var(--bk-muted); }
.sel-chips .chip[aria-pressed="true"], .bk-picker .chip[aria-pressed="true"] { background: var(--btn-forest); border-color: var(--btn-forest); color: #fcf8f1; }
.sel-chips .chip[aria-pressed="true"] small, .bk-picker .chip[aria-pressed="true"] small { color: rgba(252, 248, 241, .72); opacity: 1; }
.sel-chips .chip:focus-visible, .bk-picker .chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sel-rule { border: 0; height: 2px; background: var(--bk-divider); margin: 30px 0 28px; }
.sel-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sel-field { display: grid; gap: 9px; }
.sel-field label { font-family: var(--f-btn); font-weight: 600; font-size: .875rem; color: var(--bk-ink); }
.sel-side { padding: 21px 22px 31px; display: grid; align-content: start; }
.sel-photo { height: 139px; border-radius: 16px; overflow: hidden; background: var(--sand); }
.sel-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sel-side h3 { margin: 18px 0 10px; font-size: 1.75rem; color: var(--bk-green); }
.sel-kv { margin: 0; display: grid; }
.sel-kv div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; font-family: var(--f-btn); font-size: .875rem; color: var(--bk-ink); }
.sel-kv div + div { border-top: 2px solid var(--bk-divider); }
.sel-kv dt { font-weight: 500; }
.sel-kv dd { margin: 0; font-weight: 700; text-align: right; }
.sel-go { margin-top: 16px; width: 100%; font-size: .9265rem; letter-spacing: 0; text-transform: uppercase; }
.sel-chev { color: currentColor; }
.sel .chips .skel { width: 170px; height: 54px; }
@media (max-width: 960px) { .sel { grid-template-columns: 1fr; gap: 12px; } }
@media (max-width: 760px) {
  .sel-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 28px; }
  .sel-head > p { justify-self: start; margin-top: 0; }
  .sel-main { padding: 24px 20px 28px; }
  .sel-main > .bk-steps { margin-bottom: 26px; }
  .sel-fields { grid-template-columns: 1fr; gap: 16px; }
  .sel-side { padding: 16px 16px 22px; }
  .sel-section { padding-block: 56px 72px; }
}

/* Booking page */
main.bk { background: var(--bk-page); padding: 48px 0 80px; }
.bk .wrap { max-width: 1229px; }
.bk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px 40px; margin-bottom: 31px; }
.bk-head .eyebrow { margin-top: 12px; }
.bk-titles h1 { margin-top: 18px; font-size: clamp(2.1rem, 4.4vw, 3rem); color: var(--bk-green); outline: none; }
.bk-lead { margin-top: 6px; font-size: 1.125rem; color: var(--bk-ink); }
.bk-step1 { margin-top: 0; }
.bk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 459px; gap: 26px; align-items: start; }
.bk-card { background: var(--bk-card); border-radius: 24px; box-shadow: 0 8px 16px rgba(0, 0, 0, .08); padding: 25px 38px 30px 42px; min-width: 0; scroll-margin-top: calc(var(--head-h) + 16px); }
.bk-card .notice { margin: 0 0 18px; }
.bk-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 2px solid var(--bk-divider); }
.bk-card-head h2 { font-size: 1.75rem; color: var(--bk-green); }
.bk-card .btn-link { color: var(--bk-ink); text-decoration: underline; text-decoration-color: var(--btn-gold); text-underline-offset: 4px; font-size: .875rem; min-height: 32px; }
.bk-card .btn-link:hover { color: var(--gold); }
.bk-card .btn-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.bk-add-person { min-width: min(343px, 100%); background: var(--bk-card); color: var(--bk-green); text-transform: uppercase; font-size: .9265rem; }
.bk-add-person svg { color: #383939; }
.bk-add-person[disabled] svg { color: inherit; }

/* Step 2: people and their experiences */
.bk-person { padding-top: 26px; }
.bk-person + .bk-person { margin-top: 28px; border-top: 2px solid var(--bk-divider); }
.bk-person-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.bk-person-head h3 { font-size: 1.5rem; font-weight: 600; color: var(--bk-green); outline: none; }
.bk-person-box { background: var(--bk-box); border-radius: 8px; padding: 10px 12px 12px; margin-left: -8px; max-width: 556px; }
.bk-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bk-item { position: relative; display: grid; grid-template-columns: 103px minmax(0, 1fr) auto 30px; grid-template-areas: "img info price more" "img when when when" "err err err err"; column-gap: 16px; row-gap: 12px; align-items: center; padding: 7px 14px 14px 8px; background: var(--bk-item); border: 1px solid var(--bk-line); border-radius: 16px; }
.bk-item.has-error { border-color: var(--danger); }
.bk-item-img { grid-area: img; align-self: start; width: 103px; height: 80px; border-radius: 12px; object-fit: cover; display: block; }
.bk-item-info { grid-area: info; min-width: 0; padding-top: 6px; }
.bk-item-info h4 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 1.375rem; line-height: 1.2; color: var(--bk-green); }
.bk-item-info p { font-size: 1rem; color: var(--bk-muted); }
.bk-item-price { grid-area: price; font-size: 1.25rem; color: var(--bk-green); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bk-item-price small { font-size: .85em; }
.bk-more { grid-area: more; position: relative; justify-self: end; }
.bk-more-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--bk-select-line); background: var(--bk-card); color: var(--bk-ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.bk-more-btn:hover, .bk-more-btn[aria-expanded="true"] { border-color: var(--btn-gold); }
.bk-more-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.bk-more-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 6; min-width: 180px; display: grid; padding: 6px; border-radius: 12px; background: var(--bk-menu); box-shadow: 0 8px 16px rgba(0, 0, 0, .16); }
.bk-more-menu button { text-align: left; padding: 10px 12px; border: 0; border-radius: 8px; background: none; cursor: pointer; font-family: var(--f-btn); font-weight: 500; font-size: .875rem; color: var(--bk-ink); }
.bk-more-menu button:hover, .bk-more-menu button:focus-visible { background: var(--bk-item); outline: none; color: var(--bk-green); }
.bk-item-when { grid-area: when; display: flex; gap: 15px; }
.bk-item-when .bk-select { flex: 0 1 189px; }
.bk-item-err { grid-area: err; margin: -4px 0 0; color: var(--danger); font-size: .85rem; }
.bk-item-err:empty { display: none; }
/* Day trigger + calendar (Figma 250:1227 "Selecciona una fecha"): popover on desktop, bottom sheet on phones. */
.bk-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bk-day-btn { text-align: left; white-space: nowrap; overflow: hidden; line-height: 42px; }
.bk-day-btn[aria-expanded="true"] { border-color: var(--btn-gold); }
.bk-cal-backdrop { position: fixed; inset: 0; z-index: 59; background: rgba(13, 26, 19, .42); }
.bk-cal { position: absolute; z-index: 60; width: 352px; padding: 22px 15px 26px; border-radius: 16px; background: var(--bk-card); box-shadow: 0 8px 16px rgba(0, 0, 0, .08), 0 0 0 1px var(--bk-cal-ring); color: var(--bk-cal-ink); }
.bk-cal:not([hidden]) { display: block; animation: bk-cal-in var(--dur-1) var(--ease-out) both; }
@keyframes bk-cal-in { from { opacity: 0; transform: translateY(-6px); } }
.bk-cal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-left: 11px; }
.bk-cal-title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; color: var(--bk-green); }
.bk-cal-close { display: none; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--bk-cal-ink); cursor: pointer; padding: 0; }
.bk-cal-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin-top: 16px; padding-inline: 4px; }
.bk-cal-month { margin: 0; text-align: center; font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; line-height: 1.2; color: var(--bk-cal-ink); }
.bk-cal-nav { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--bk-cal-gold); cursor: pointer; padding: 0; }
.bk-cal-nav:hover:not(:disabled) { background: var(--bk-item); }
.bk-cal-nav:disabled { opacity: .3; cursor: default; }
.bk-cal-grid { display: grid; row-gap: 3px; width: 318px; margin: 6px auto 0; }
.bk-cal-row { display: grid; grid-template-columns: repeat(7, 42px); column-gap: 4px; }
.bk-cal-wk { margin-bottom: 4px; }
.bk-cal-wk > span { height: 38px; display: grid; place-items: center; font-family: var(--f-sans); font-size: .9375rem; color: var(--bk-cal-wk); }
.bk-cal-day { position: relative; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; font-family: var(--f-sans); font-weight: 600; font-size: 1rem; font-variant-numeric: tabular-nums; color: var(--bk-cal-ink); }
button.bk-cal-day { cursor: pointer; }
.bk-cal-day.is-out, .bk-cal-day.is-off { font-weight: 500; color: var(--bk-cal-out); }
.bk-cal-day.is-none { background: var(--bk-cal-none); color: var(--bk-cal-out); }
.bk-cal-day.is-low { background: var(--bk-cal-low); }
.bk-cal-day.is-available::after, .bk-cal-day.is-low::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--bk-cal-avail); }
.bk-cal-day.is-low::after { background: var(--bk-cal-low-dot); }
.bk-cal-day.is-selected { background: var(--bk-cal-sel); color: var(--bk-cal-on-sel); }
.bk-cal-day[aria-disabled="true"] { cursor: default; }
.bk-cal-day.is-available:hover, .bk-cal-day.is-low:hover { box-shadow: inset 0 0 0 1px var(--btn-gold); }
.bk-cal-day:focus-visible, .bk-cal-nav:focus-visible, .bk-cal-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.bk-cal-legend { list-style: none; margin: 44px 0 0; padding: 0 0 0 11px; display: grid; grid-template-columns: 150px 1fr; row-gap: 13px; font-family: var(--f-sans); font-size: .8125rem; line-height: 18px; color: var(--bk-cal-legend); }
.bk-cal-legend li { display: flex; align-items: center; gap: 13px; }
.bk-cal-legend i { flex: none; width: 12px; height: 12px; border-radius: 50%; }
.bk-cal-legend .is-available { background: var(--bk-cal-avail); }
.bk-cal-legend .is-low { background: var(--bk-cal-low-dot); }
.bk-cal-legend .is-none { background: var(--bk-cal-none); box-shadow: inset 0 0 0 1px var(--bk-line); }
.bk-cal.is-sheet { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: calc(100dvh - 24px); overflow-y: auto; border-radius: 16px 16px 0 0; padding: 18px 16px calc(24px + env(safe-area-inset-bottom, 0px)); animation-name: bk-sheet-in; animation-duration: var(--dur-2); }
.bk-cal.is-sheet .bk-cal-close { display: grid; }
.bk-cal.is-sheet .bk-cal-legend { width: 318px; margin-inline: auto; padding-left: 0; margin-top: 28px; }
@keyframes bk-sheet-in { from { transform: translateY(100%); } }
html.cal-locked { overflow: hidden; }
.bk-picker { display: grid; gap: 12px; grid-template-columns: 1fr; grid-template-areas: none; padding: 16px; }
.bk-picker-title { font-size: .95rem; color: var(--bk-ink); }
.bk-picker .btn-link { justify-self: start; }
.bk-add-item { margin-top: 10px; width: 100%; min-height: 50px; display: flex; align-items: center; gap: 16px; padding: 0 20px; border: 1px solid var(--bk-select-line); border-radius: 8px; background: var(--bk-item); color: var(--bk-ink); font-size: 1.0625rem; cursor: pointer; text-align: left; }
.bk-add-item svg { flex: none; color: var(--gold); }
.bk-add-item:hover { border-color: var(--btn-gold); }
.bk-add-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.bk-cap { margin-top: 10px; }
@media (max-width: 560px) {
  .bk-person-box { margin-left: 0; padding: 8px; }
  .bk-item { grid-template-columns: 72px minmax(0, 1fr) 30px; grid-template-areas: "img info more" "img price price" "when when when" "err err err"; column-gap: 12px; row-gap: 8px; padding: 8px 10px 12px 8px; }
  .bk-item-img { width: 72px; height: 64px; grid-row: 1 / span 2; }
  .bk-item-info h4 { font-size: 1.15rem; }
  .bk-item-info p { font-size: .9rem; }
  .bk-item-price { font-size: 1.05rem; align-self: start; }
  .bk-item-when { gap: 8px; }
  .bk-item-when .bk-select { flex: 1 1 0; padding-left: 12px; padding-right: 30px; background-position: right 12px center; }
  .bk-add-item { padding: 0 14px; gap: 10px; font-size: .95rem; }
  .bk-card-head .bk-add-person { width: 100%; }
}

/* Step 3: participants' data */
.bk-pform { border: 0; margin: 0; padding: 26px 0 0; min-width: 0; }
.bk-pform + .bk-pform { margin-top: 32px; border-top: 2px solid var(--bk-divider); }
.bk-pform > legend { float: left; width: 100%; padding: 0; }
.bk-pform > legend + * { clear: both; }
.bk-titular { display: inline-flex; align-items: center; height: 28px; padding: 0 16px; border: 1px solid #dbdbdb; border-radius: 66px; background: #fff; opacity: .8; font-family: var(--f-btn); font-size: .75rem; color: #383838; white-space: nowrap; }
.bk-card .field label { font-size: .7rem; letter-spacing: .18em; color: var(--bk-soft); }
.bk-card .field label .opt { text-transform: none; letter-spacing: 0; }
.bk-card .field input, .bk-card .field textarea { background: var(--bk-input); border-color: var(--bk-line); border-radius: 8px; min-height: 46px; }
.bk-card .form-grid { gap: 18px 16px; }
.bk-block { margin-top: 32px; padding-top: 30px; border-top: 2px solid var(--bk-divider); display: grid; gap: 12px; }
.bk-block-title { font-size: 1.75rem; color: var(--bk-green); }
.bk-card .health-groups legend { font-family: var(--f-btn); font-size: .7rem; color: var(--bk-soft); }
.bk-card .health-item { background: var(--bk-item); border-color: var(--bk-line); border-radius: 8px; }

/* Step 4: payment */
.bk-pay { display: grid; gap: 16px; padding-top: 30px; }
.bk-card .pay-opts { gap: 10px; }
.bk-card .pay-opt { border-radius: 8px; border-color: var(--bk-line); background: var(--bk-card); padding: 18px 18px 16px 44px; min-height: 88px; align-content: start; }
.bk-card .pay-opt:has(input:checked) { border-color: var(--bk-pick-line); background: var(--bk-pick); }
.bk-card .pay-opt b { font-size: .95rem; color: var(--bk-ink); }
.bk-card .pay-opt small { font-size: .78rem; color: var(--bk-muted); }
.bk-card .pay-opt input { top: 20px; }
.bk-card .rcode { border-radius: 8px; border-color: var(--bk-pick-line); background: var(--bk-pick); color: var(--bk-ink); }
.bk-card .check { font-size: .82rem; }
.bk-card .check a { color: var(--gold); }
#terms-err { color: var(--danger); font-size: .8rem; }
#terms-err:empty { display: none; }
.bk-card .conekta-card { max-width: none; }
.bk-pay-btn { width: 100%; margin-top: 6px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; font-size: .875rem; }

/* Step 5: confirmation */
.bk-card .confirm h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--bk-green); }
.bk-conf-items { list-style: none; margin: 0; padding: 0; display: grid; }
.bk-conf-items li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-bottom: 2px solid var(--bk-divider); }
.bk-conf-items li:first-child { border-top: 2px solid var(--bk-divider); }
.bk-conf-time { font-size: 1.1rem; font-weight: 600; color: var(--bk-green); font-variant-numeric: tabular-nums; display: grid; }
.bk-conf-time small, .bk-conf-what small { font-size: .82rem; font-weight: 400; color: var(--bk-muted); }
.bk-conf-what { display: grid; gap: 2px; }
.bk-conf-what b { font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; color: var(--bk-green); }
.who { font-size: .86rem; color: var(--gold) !important; font-weight: 600; }
.bk-conf-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bk-card .confirm .policy a { color: var(--gold); }
@media (max-width: 560px) { .bk-conf-items li { grid-template-columns: 1fr; } }

/* Summary (dark green card) */
.bk-sum { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--head-h) + 16px); background: var(--bk-sum); color: #f3ead8; border-radius: 16px; overflow: hidden; min-width: 0; }
.bk-sum:empty { display: none; }
.bk-sum-img { display: block; width: 100%; height: 113px; object-fit: cover; }
.bk-sum-img-end { height: 153px; }
.bk-sum-body { padding: 22px 30px 30px; }
.bk-sum h2 { font-size: 1.75rem; color: #f3ead8; padding-bottom: 10px; border-bottom: 1px solid rgba(243, 234, 216, .24); }
.bk-sum h3 { margin: 22px 0 10px; font-size: 1.5rem; color: #f3ead8; }
.bk-sum-kv { margin: 0; display: grid; }
.bk-sum-kv div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(243, 234, 216, .24); font-size: 1rem; }
.bk-sum-kv dt { display: flex; align-items: center; gap: 22px; }
.bk-sum-kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.bk-sum-kv svg, .bk-hold svg { width: 26px; height: 26px; flex: none; fill: none; stroke: #e2ac48; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bk-sum-kv-top { margin-top: 14px; border-top: 1px solid rgba(243, 234, 216, .24); }
.bk-sum-exp { list-style: none; margin: 0; padding: 0; display: grid; }
.bk-sum-exp li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 8px 0 10px; border-bottom: 1px solid rgba(243, 234, 216, .24); }
.bk-sum-exp img { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; }
.bk-sum-exp b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; line-height: 1.2; }
.bk-sum-exp small { font-size: .875rem; opacity: .85; }
.bk-sum-exp em { font-style: normal; font-size: 1.2rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bk-sum-exp em small { font-size: .8em; opacity: 1; }
.bk-sum-empty { font-size: .9rem; opacity: .75; padding-bottom: 6px; }
.bk-tl-day { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; margin: 10px 0 4px; }
.bk-tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; }
.bk-tl::before { content: ""; position: absolute; left: 12px; top: 14px; bottom: 14px; width: 2px; background: #c9a25a; }
.bk-tl li { display: grid; grid-template-columns: 26px 128px minmax(0, 1fr); gap: 16px; align-items: center; position: relative; }
.bk-tl li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #e2ac48; justify-self: center; position: relative; box-shadow: 0 0 0 3px var(--bk-sum); }
.bk-tl-time { font-size: 1.1rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bk-tl-what { display: grid; line-height: 1.25; }
.bk-tl-what b { font-family: var(--f-display); font-weight: 500; font-size: 1.1rem; }
.bk-tl-what small { font-size: .85rem; opacity: .85; }
.bk-sum-costs { list-style: none; margin: 0; padding: 0 0 12px 10px; display: grid; gap: 4px; border-bottom: 1px solid rgba(243, 234, 216, .24); }
.bk-sum-costs li { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; font-variant-numeric: tabular-nums; }
.bk-sum-total { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 20px 0 24px; }
.bk-sum-total span { font-family: var(--f-display); font-size: 1.375rem; }
.bk-sum-total b { font-family: var(--f-display); font-weight: 400; font-size: 2.75rem; line-height: 1; color: #e2ac48; font-variant-numeric: lining-nums; white-space: nowrap; }
.bk-sum-total b small { font-size: 1.6rem; }
.bk-go { width: 100%; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; font-size: .875rem; }
.bk-go[disabled], .bk-go[aria-disabled="true"] { background: var(--btn-gold-off); color: #fff; }
.bk-sum-fine { margin-top: 12px; font-size: .8rem; opacity: .75; }
.bk-hold { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: .88rem; opacity: .9; }
.bk-hold b { font-variant-numeric: tabular-nums; color: #e2ac48; font-weight: 600; }

/* Phones: summary under the content, a sticky bar with the total and the step's action. */
.bk-bar { display: none; }
@media (max-width: 960px) {
  .bk-grid { grid-template-columns: 1fr; gap: 20px; }
  .bk-sum { position: static; }
  .bk-head { flex-direction: column-reverse; }
  .bk-bar:not([hidden]) { display: flex; align-items: center; gap: 14px; position: sticky; bottom: 0; z-index: 15; margin-top: 20px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--bk-card); border-top: 1px solid var(--bk-line); box-shadow: 0 -10px 24px -18px rgba(31, 59, 44, .5); }
  .bk-bar .bar-sum { margin-right: auto; }
  .bk-bar .bar-sum b { color: var(--bk-green); }
  .bk-bar .btn { flex: 0 1 auto; min-width: 0; text-transform: uppercase; font-weight: 700; font-size: .85rem; letter-spacing: .04em; }
  .bk-bar:not([hidden]) { flex-wrap: wrap; }
  .bk-bar .bar-hint { flex: 1 0 100%; order: 3; margin: 0; text-align: right; }
  .bk-bar .bar-hint:empty { display: none; }
  main.bk { padding-bottom: 0; }
  body.in-booking.has-bar .chat-fab { bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); }
}
@media (max-width: 760px) {
  main.bk { padding-top: 28px; }
  .bk-card { padding: 20px 16px 24px; border-radius: 20px; }
  .bk-sum-body { padding: 20px 18px 24px; }
  .bk-tl li { grid-template-columns: 26px 110px minmax(0, 1fr); gap: 10px; }
  .bk-tl-time { font-size: 1rem; }
  .bk-sum-total b { font-size: 2.2rem; }
}
.nav .acct-menu a.acct-link:not(.btn) { display: flex; }
.acct-btn { white-space: nowrap; }
.bk-head { position: relative; display: block; }
.bk-head > .bk-steps { position: absolute; top: 0; right: 16px; }
.bk-sum-total { flex-wrap: nowrap; }
.bk-sum-total span { font-size: 1.3rem; }
.bk-sum-total b { font-size: 2.5rem; }
.bk-sum-total b small { font-size: 1.5rem; }
@media (max-width: 960px) { .bk-head { display: flex; flex-direction: column-reverse; gap: 20px; } .bk-head > .bk-steps { position: static; } }
@media (max-width: 760px) {
  .bk-sum-total { flex-wrap: wrap; }
  .bk-sum-exp li { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; }
  .bk-sum-exp img { width: 52px; height: 40px; }
  .bk-sum-exp em { font-size: 1rem; }
}
/* The landscape fades out of the green card, as in the Figma. */
.bk-sum-img-end { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 45%); mask-image: linear-gradient(to bottom, transparent 0, #000 45%); margin-top: -40px; }
.bk-sum-costs li span:last-child { white-space: nowrap; }

/* ---------- "Cambiar fecha" (calendar.js on reserva.html and mis-citas.html): the booking calendar, inline ---------- */
.rs-panel { display: grid; gap: 14px; margin-top: 10px; padding: 18px 16px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--bk-card); }
.rs-panel h4 { margin: 0; }
.rs-panel .policy { margin: 0; }
.bk-cal.is-inline { position: static; z-index: auto; width: 100%; max-width: 352px; padding: 6px 0 8px; box-shadow: none; background: none; animation: none; }
.bk-cal.is-inline .bk-cal-head { margin-top: 0; }
.bk-cal.is-inline .bk-cal-grid { width: 100%; max-width: 318px; }
.bk-cal.is-inline .bk-cal-row { grid-template-columns: repeat(7, minmax(0, 42px)); justify-content: center; }
.bk-cal.is-inline .bk-cal-day { width: 100%; max-width: 42px; height: auto; aspect-ratio: 1; }
.bk-cal.is-inline .bk-cal-legend { margin-top: 18px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); padding-left: 0; }
.rs-panel .bk-select { max-width: 240px; }
.rs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.rs-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.rs-line .btn-link { font-size: .875rem; }
.rs-note { font-size: .8125rem; color: var(--muted); }
.confirm-items .bk-cal-legend li { display: flex; padding: 0; border: 0; border-radius: 0; }

/* ======================================================================================================
   Phone layout (client mobile mockups). Everything below lives inside max-width queries, so desktop is
   untouched. Tokens and classes are the ones above; nothing here changes behaviour (booking.js is as is).
   ====================================================================================================== */

/* Header: logo + "Longevity Spa", an account icon and a hamburger (assets/common.js builds the panel). */
.nav-toggle, .nav-menu { display: none; }
@media (max-width: 860px) {
  :root { --head-h: 64px; }
  .site-head .wrap { gap: 8px; }
  .brand { min-height: 44px; }
  .nav { gap: 4px; }
  .nav.has-toggle > a.btn { display: none; }
  .nav .acct-btn, .nav .nav-toggle { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; font-size: 0; line-height: 0; color: var(--btn-ink); background: transparent; cursor: pointer; }
  .nav .acct-btn { border: 1.5px solid currentColor; border-radius: 50%; }
  .site-head.is-top .acct-btn { background: transparent; }
  .nav .nav-toggle { border: 0; border-radius: 12px; }
  .acct-btn::before, .nav-toggle::before { content: ""; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
  .acct-btn { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8.6' r='3.4'/%3E%3Cpath d='M5.6 19.6c1.3-3.3 3.6-4.8 6.4-4.8s5.1 1.5 6.4 4.8'/%3E%3C/svg%3E"); }
  .nav-toggle { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E"); }
  .nav-toggle[aria-expanded="true"] { background: rgba(226, 172, 72, .16); }
  .site-head.is-top.on-dark .acct-btn, .site-head.is-top.on-dark .nav-toggle { color: #fbf5e8; }
  .acct-btn[aria-expanded="true"] { background: rgba(226, 172, 72, .16); }
  .nav-menu:not([hidden]) { position: fixed; z-index: 30; top: calc(env(safe-area-inset-top, 0px) + var(--head-h) + 8px); left: 16px; right: 16px; max-width: 420px; margin-left: auto; display: grid; gap: 2px; padding: 8px; border-radius: 16px; background: var(--bk-menu); box-shadow: 0 8px 16px rgba(0, 0, 0, .16); color: var(--bk-ink); }
  .nav-menu-link { display: flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 10px; text-decoration: none; font-family: var(--f-btn); font-weight: 600; font-size: .875rem; letter-spacing: .04em; text-transform: uppercase; color: var(--bk-ink); }
  .nav-menu-link:hover, .nav-menu-link:focus-visible { background: var(--bk-item); color: var(--bk-green); outline: none; }
  .nav-menu-cta { margin-top: 6px; width: 100%; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .875rem; }
  .acct-menu::before { right: 62px; }
}
/* The "Longevity Spa" lockup fits next to the two icons from ~380px up. */
@media (min-width: 380px) and (max-width: 860px) {
  .site-head .brand { gap: 10px; }
  .site-head .brand svg { width: 28px; height: 32px; }
  .site-head .brand svg.brand-word { width: 92px; height: 26px; }
  .site-head .brand-sep { display: block; height: 28px; }
  .site-head .brand-spa { display: grid; font-size: .6rem; letter-spacing: .24em; }
  .site-head .brand-spa span:last-child { font-size: .56rem; }
}

@media (max-width: 760px) {
  /* ---- Home: hero ---- */
  .hero-copy { gap: 18px; }
  .hero-actions { flex-direction: column; flex-wrap: nowrap; gap: 12px; }
  .hero-copy .hero-actions .btn { width: 100%; }
  .hero-copy .hero-actions .btn-ghost { border-color: var(--forest-ink); background: color-mix(in srgb, var(--paper) 55%, transparent); }
  .next-slot { display: block; min-height: 44px; font-size: .8rem; line-height: 1.35; padding: 13px 14px; border-radius: 22px; }
  .next-slot b { margin-left: .3em; }
  .next-slot .pulse { display: inline-block; margin-right: 8px; vertical-align: middle; }
  .next-slot > span { display: inline; }
  .hc-btn { width: 44px; height: 44px; }
  .hc-seg { width: 24px; height: 44px; }
  /* The slide dots would be 24px targets: phones keep pause / previous / next at 44px and drop them. */
  .hc-segs { display: none; }

  /* ---- Home: five pillars in ONE row on the green band ---- */
  .pillars { padding-block: 22px 28px; }
  .pillars .wrap { padding-inline: 8px; }
  .pillars ul { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 0; }
  .pillars li { gap: 8px; padding: 4px 2px; font-size: clamp(.46rem, 2.1vw, .6rem); letter-spacing: .06em; overflow-wrap: normal; }
  .pillars li:nth-child(4) { border-left: 1px solid rgba(216, 184, 120, .3); }
  .pillars svg { width: 28px; height: 28px; }

  /* ---- Home: experience cards, horizontal (text left, photo fading in from the right) ---- */
  .therapies { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 10px; }
  .therapies > .tcard:nth-child(6) { grid-column: auto; }
  .tcard, .tcard.featured { grid-column: auto; grid-row: auto; border-radius: 16px; }
  .tcard:not(.featured) { min-height: 96px; }
  .tcard:not(.featured) .tcard-body { position: relative; padding: 12px 16px; gap: 3px; }
  .tcard:not(.featured) img { left: 36%; width: 64%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 55%); mask-image: linear-gradient(90deg, transparent 0, #000 55%); }
  .tcard:not(.featured)::before { background: linear-gradient(90deg, rgba(13, 26, 19, .96) 0, rgba(13, 26, 19, .86) 48%, rgba(13, 26, 19, .1) 100%); }
  .tcard:not(.featured) h3 { font-size: 1.2rem; }
  .tcard:not(.featured) p { font-size: .78rem; line-height: 1.35; max-width: 26ch; }
  .tcard:not(.featured) .tag { font-size: .58rem; padding: 2px 8px; background: none; padding-left: 0; }
  .tcard:not(.featured) .tcard-foot { margin-top: 4px; padding-top: 0; border-top: 0; justify-content: flex-start; }
  .tcard:not(.featured) .tcard-foot span { font-size: .72rem; }
  .tcard:not(.featured) .tcard-foot b { font-size: 1rem; margin-left: 6px; }
  .tcard:not(.featured) .tcard-cta { position: absolute; right: 16px; bottom: 12px; font-size: .62rem; }
  .tcard.featured { min-height: 230px; }
  .tcard.featured h3 { font-size: 1.7rem; }
  .tcard.featured p { font-size: .9rem; }

  /* ---- Home: "Vivir más" band: photo left, green panel right ---- */
  .band { grid-template-columns: 1fr 1fr; min-height: 0; }
  .band-copy { grid-column: auto; order: 0; padding: 20px 16px; gap: 10px; }
  .band-copy h2 { font-size: 1.55rem; }
  .band-copy p { font-size: .8rem; line-height: 1.45; }
  .band .eyebrow { font-size: .6rem; letter-spacing: .2em; }
  .band img { min-height: 220px; }
  .band > img:last-child { display: none; }

  /* ---- Home: booking widget ---- */
  .sel-main > .bk-steps { margin-bottom: 22px; width: 100%; justify-content: space-between; }
  .sel-main > .bk-steps li, .sel-main > .bk-steps li:not([aria-current="step"]) { position: relative; flex: 1 1 0; flex-direction: column; gap: 6px; margin: 0; font-size: .68rem; text-align: center; }
  .sel-main > .bk-steps li + li::after, .sel-main > .bk-steps li + li:not([aria-current="step"])::after { position: absolute; top: 16px; left: calc(-50% + 20px); width: calc(100% - 40px); margin: 0; order: 0; }
  .sel-main > .bk-steps li:not([aria-current="step"])::before { font-size: .875rem; }
  .sel { gap: 0; }
  .sel-main { border-radius: 24px 24px 0 0; box-shadow: none; }
  .sel-side { border-radius: 0 0 24px 24px; border-top: 2px solid var(--bk-divider); grid-template-columns: 116px minmax(0, 1fr); column-gap: 14px; grid-template-areas: "t t" "p k" "g g" "h h"; }
  .sel-side h3 { grid-area: t; margin: 0 0 12px; font-size: 1.4rem; }
  .sel-photo { grid-area: p; height: auto; min-height: 96px; }
  .sel-kv { grid-area: k; align-content: center; }
  .sel-kv div { padding: 7px 0; font-size: .78rem; }
  .sel-go { grid-area: g; margin-top: 16px; }
  .sel-side .gate-hint { grid-area: h; }
  .sel-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .sel-chips .chip { min-width: 0; min-height: 56px; border-radius: 24px; padding: 8px 14px; font-size: .9rem; }
  .sel-chips .chip small { font-size: .68rem; }
  .sel-fields { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sel-field label { font-size: .78rem; line-height: 1.2; }
  .sel-main { padding: 22px 16px 26px; }
  .sel-field .bk-select-pill { height: 44px; font-size: .78rem; padding-left: 34px; padding-right: 26px; background-position: left 11px center, right 11px center; background-size: 18px 18px, auto; background-repeat: no-repeat; }
  #sel-people { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23945B0D' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8.4' r='3.3'/%3E%3Cpath d='M5.6 19.6c1.3-3.3 3.6-4.8 6.4-4.8s5.1 1.5 6.4 4.8'/%3E%3C/svg%3E"), var(--bk-chev); }
  #sel-pay { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23945B0D' stroke-width='1.7' stroke-linecap='round'%3E%3Crect x='3' y='5.5' width='18' height='13' rx='2.4'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E"), var(--bk-chev); }

  /* ---- Footer: sunset band + compact columns ---- */
  .visit img { height: 150px; }
  .visit .over p { font-size: .72rem; letter-spacing: .3em; padding-inline: 16px; }
  .foot .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; padding-block: 30px; }
  .foot .wrap > :first-child { grid-column: 1 / -1; }
  .foot .wrap > :first-child p { margin-top: 10px !important; font-size: .82rem; }
  .foot h4 { font-size: .62rem; letter-spacing: .16em; }
  .foot li { font-size: .76rem; }
  .foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .foot-base .wrap { padding-block: 8px; gap: 0 14px; }

  /* ---- Booking pages: eyebrow, stepper, title (the mockups' order) ---- */
  .bk-head { flex-direction: column; gap: 0; margin-bottom: 18px; }
  .bk-titles { display: contents; }
  .bk-head .eyebrow { order: 1; margin-top: 0; font-size: .72rem; }
  .bk-head .rule { order: 2; margin: 10px 0 16px; }
  .bk-head > .bk-steps { order: 3; width: 100%; justify-content: space-between; margin-bottom: 18px; }
  .bk-titles h1 { order: 4; margin-top: 0; font-size: clamp(1.5rem, 6.4vw, 1.85rem); line-height: 1.15; }
  .bk-lead { order: 5; margin-top: 8px; font-size: 1rem; line-height: 1.4; }
  main.bk { padding-top: 16px; }

  /* ---- Booking pages: titled card heads ---- */
  .bk-card-head { padding-bottom: 16px; gap: 10px 12px; flex-wrap: nowrap; align-items: center; }
  .bk-card-head h2 { font-size: 1.5rem; }
  .bk-card-head:has(#back-2), .bk-card-head:has(#back-3) { flex-wrap: wrap; }
  .bk-card .btn-link { min-height: 44px; display: inline-flex; align-items: center; }

  /* ---- Booking pages: summary card ---- */
  .bk-sum-total { flex-wrap: nowrap; margin: 16px 0 18px; }
  .bk-sum-total span { font-size: 1.05rem; }
  .bk-sum-total b { font-size: 1.9rem; }
  .bk-sum-total b small { font-size: 1.1rem; }
  .bk-sum-kv dt { gap: 14px; }
  .bk-sum h2 { font-size: 1.55rem; }
  .bk-sum h3 { font-size: 1.3rem; margin-top: 18px; }
  .bk-go { min-height: 48px; }
}

/* Stepper on the booking pages: compact, every label visible (the narrowest phones keep only the current one). */
@media (min-width: 380px) and (max-width: 760px) {
  .bk-head > .bk-steps { font-family: var(--f-sans); font-size: .68rem; }
  .bk-head > .bk-steps li, .bk-head > .bk-steps li:not([aria-current="step"]) { gap: 5px; font-size: .68rem; }
  .bk-head > .bk-steps li::before, .bk-head > .bk-steps li:not([aria-current="step"])::before { width: 28px; height: 28px; font-size: .78rem; }
  .bk-head > .bk-steps li + li { margin-left: 0; }
  .bk-head > .bk-steps li + li::after, .bk-head > .bk-steps li + li:not([aria-current="step"])::after { width: 6px; margin: 0 0 0 2px; }
}
@media (max-width: 379px) {
  .bk-head > .bk-steps li + li { margin-left: 4px; }
  .bk-head > .bk-steps li + li::after, .bk-head > .bk-steps li + li:not([aria-current="step"])::after { width: 8px; margin: 0 0 0 0; }
  .bk-head > .bk-steps li::before, .bk-head > .bk-steps li:not([aria-current="step"])::before { width: 28px; height: 28px; }
}

/* Step 2 (participants): the add button sits beside the title; each experience is photo + text + price + menu,
   with Día / Hora beneath the text. */
@media (max-width: 560px) {
  .bk-card-head .bk-add-person { width: auto; flex: 0 1 190px; min-width: 0; padding: 6px 14px; font-size: .68rem; line-height: 1.15; gap: 8px; }
  .bk-add-person svg { width: 20px; height: 20px; flex: none; }
  .bk-person { padding-top: 18px; }
  .bk-person + .bk-person { margin-top: 20px; }
  .bk-person-head { margin-bottom: 10px; }
  .bk-person-head h3 { font-size: 1.3rem; }
  .bk-person-box { padding: 6px; border-radius: 12px; }
  .bk-item { column-gap: 12px; row-gap: 8px; padding: 8px 10px 10px 8px; }
  .bk-item-img { grid-row: 1 / span 2; }
  .bk-item-info { padding-top: 2px; }
  .bk-item-info h4 { font-size: 1.05rem; }
  .bk-item-info p { font-size: .82rem; }
  .bk-item-price { align-self: start; font-size: .95rem; }
  .bk-more-btn { position: absolute; inset: -7px; width: 44px; height: 44px; border-color: transparent; background: transparent; }
  .bk-more { width: 30px; height: 30px; align-self: start; }
  .bk-more-btn::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--bk-select-line); border-radius: 50%; background: var(--bk-card); }
  .bk-more-btn svg { position: relative; }
  .bk-item-when { gap: 8px; }
  .bk-item-when .bk-select { height: 44px; font-size: .76rem; padding-left: 32px; padding-right: 24px; background-repeat: no-repeat; background-position: left 10px center, right 9px center; background-size: 15px 15px, auto; }
  .bk-day-btn { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23945B0D' stroke-width='1.7' stroke-linecap='round'%3E%3Crect x='4' y='5.5' width='16' height='14' rx='2'/%3E%3Cpath d='M4 10h16M8.5 3.5v4M15.5 3.5v4'/%3E%3C/svg%3E"), var(--bk-chev); }
  .bk-item-when select.bk-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23945B0D' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E"), var(--bk-chev); }
  .bk-add-item { min-height: 48px; font-size: .88rem; padding: 0 12px; gap: 10px; }
}

/* Step 3 (datos): Nombre/Apellidos and Correo/Celular stay in two columns; the birth date takes half. */
@media (max-width: 560px) {
  .bk-card .form-grid { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .bk-card .form-grid .full { grid-column: 1 / -1; }
  .bk-card .field label { font-size: .64rem; letter-spacing: .14em; }
  .bk-card .field input, .bk-card .field textarea { padding: 10px 12px; font-size: 1rem; }
  .bk-pform { padding-top: 18px; }
  .bk-pform + .bk-pform { margin-top: 22px; }
  .bk-person-head .bk-titular { height: 28px; padding: 0 12px; font-size: .7rem; }
  .bk-block-title { font-size: 1.5rem; }
  .bk-card .health-item { min-height: 48px; padding: 10px 12px; font-size: .88rem; }
  .bk-card .health-item input { width: 20px; height: 20px; }
}

/* Step 4 (pago): radio cards, card fields (the Conekta iframe is only given room), gold full-width action. */
@media (max-width: 760px) {
  .bk-pay { gap: 14px; padding-top: 20px; }
  .bk-card .pay-opts { grid-template-columns: 1fr; gap: 10px; }
  .bk-card .pay-opt { min-height: 72px; align-content: center; padding: 14px 14px 14px 48px; }
  .bk-card .pay-opt b { font-weight: 600; }
  .bk-card .pay-opt input { top: 50%; translate: 0 -50%; left: 16px; width: 20px; height: 20px; }
  .bk-card .conekta-card { min-height: 0; }
  .bk-card .test-note { display: block; justify-self: stretch; padding: 10px 14px; border-radius: 10px; line-height: 1.4; }
  .bk-card .check { gap: 12px; }
  .bk-card .check input { width: 22px; height: 22px; margin-top: 1px; }
  .bk-pay-btn { min-height: 52px; }
}

/* Calendar sheet: fits narrow phones and keeps comfortable day targets. */
@media (max-width: 760px) {
  .bk-cal.is-sheet .bk-cal-close { width: 44px; height: 44px; }
  .bk-cal.is-sheet .bk-cal-grid { width: 100%; max-width: 330px; }
  .bk-cal.is-sheet .bk-cal-row { grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: 2px; }
  .bk-cal.is-sheet .bk-cal-day { width: 100%; max-width: 44px; height: 44px; justify-self: center; }
  .bk-cal.is-sheet .bk-cal-legend { width: auto; max-width: 330px; grid-template-columns: 1fr 1fr; }
}

/* Card on file consent ("Pagar en recepción") and the late-cancellation warning */
.card-consent{margin:14px 0 4px}
.card-consent .err{display:block}
.late-note{margin:12px 0 8px}

/* ---------- Satisfaction survey (encuesta.html) ---------- */
.survey-panel { max-width: 640px; margin: 0 auto; }
.survey-panel h2 { margin: 0 0 8px; }
.survey-panel .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; }
.rate { border: 0; padding: 0; margin: 20px 0 8px; }
.rate legend { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.rate-stars { display: flex; gap: 4px; }
.rate-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rate-stars label { font-size: 2.6rem; line-height: 1; color: var(--line); cursor: pointer; padding: 2px 4px; border-radius: 8px; transition: color var(--dur-1), transform 100ms ease-out; }
.rate-stars label.on { color: var(--gold); }
.rate-stars label:active { transform: scale(.92); }
.rate-stars input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.rate-word { min-height: 1.4em; color: var(--muted); font-size: .9rem; }
.survey-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; }
.survey-google { margin-top: 18px; }
.survey-foot { margin-top: 28px; font-size: .85rem; color: var(--muted); }
.survey-foot .btn-link { font-size: .85rem; color: var(--muted); text-decoration: underline; font-weight: 400; }
@media (prefers-reduced-motion: reduce) { .rate-stars label { transition: none; } }
