/* =========================================================================
   Clínica Verdeal · estilos
   Una tinta verde oliva sobre papel de lámina botánica. Sin sombras,
   sin degradés, sin bordes finos: superficies planas y tipografía.
   ========================================================================= */

:root {
  --paper: #e9eae4;
  --paper-2: #dfe0d8;
  --paper-3: #d2d4ca;
  --ink: #1e3a2f;
  --ink-hover: #2b4d3f;
  --soft: #4a5e54;
  --on-ink: #e9eae4;
  --on-ink-soft: #cfd9d1;
  --ok: #2c6a45;
  --error: #9a2b1e;
  --amber: #7a5a0c;
  --blue: #1f5a85;

  --f-text: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --f-ui: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;

  --s-small: clamp(var(--s-small), 0.85rem + 0.1vw, 1rem);
  --s-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --s-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --s-head: clamp(2rem, 1.4rem + 1.6vw, 2.75rem);

  --pad-x: clamp(20px, 4.5vw, 72px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--s-body);
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
::selection { background: var(--ink); color: var(--on-ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.faq-field :focus-visible, .owner-studio :focus-visible, .mbar :focus-visible, .row-greet:focus-visible { outline-color: var(--on-ink); }
[hidden] { display: none !important; }
.tnum { font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  background: var(--ink); color: var(--on-ink); padding: 12px 18px;
  font-family: var(--f-ui); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------------------------------------------------------------- texto */
.head {
  font-family: var(--f-ui); font-weight: 700;
  font-size: var(--s-head); line-height: 1.02; letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.block-lead { max-width: 46ch; margin-bottom: 28px; }
.label { font-family: var(--f-ui); font-weight: 600; font-size: var(--s-small); letter-spacing: 0; }
.optional { font-weight: 400; color: var(--soft); }
.fine, .demo-note { font-size: var(--s-small); color: var(--soft); }
.demo-note { display: block; margin-top: 6px; }
.prose a, .block-lead a { font-weight: 600; }

/* ---------------------------------------------------------------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  background: var(--ink); color: var(--on-ink);
  border: 0; border-radius: 0;
  font-family: var(--f-ui); font-weight: 600; font-size: 1rem; letter-spacing: 0;
  text-decoration: none; text-align: center; line-height: 1.2;
  transition: background-color 160ms ease, transform 140ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--ink-hover); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-lg { min-height: 58px; padding: 0 36px; }
.btn-quiet { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--on-ink); }
.btn-paper { background: var(--on-ink); color: var(--ink); }
.btn-paper:hover { background: #fff; }
.btn-block { display: flex; width: 100%; }
.btn.is-loading { opacity: 0.8; cursor: progress; }

.link, .link-plain {
  background: none; border: 0; padding: 0; color: inherit; font: inherit;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
  cursor: pointer;
}
.link { font-weight: 600; }
.link:hover, .link-plain:hover { text-decoration-thickness: 3px; }
.link:disabled { opacity: 0.5; cursor: default; text-decoration: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: var(--paper); color: var(--ink); border: 0;
  transition: background-color 160ms ease, transform 140ms var(--ease-out);
}
.icon-btn:hover { background: var(--paper-3); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.toggles { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.toggle {
  min-height: 44px; padding: 0 16px;
  background: var(--paper-2); color: var(--ink); border: 0;
  font-family: var(--f-ui); font-weight: 600; font-size: 1rem;
  transition: background-color 160ms ease, transform 140ms var(--ease-out);
}
.toggle:hover { background: var(--paper-3); }
.toggle:active { transform: scale(0.97); }
.toggle[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }

/* ================================================================ página partida */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.read { container-type: inline-size; padding: 0 var(--pad-x) 96px; min-width: 0; }
.stage-col { padding: 12px 12px 12px 0; align-self: stretch; }
.split-flip .stage-col { padding: 12px 0 12px 12px; }
.stage { position: sticky; top: 12px; height: calc(100svh - 24px); display: flex; flex-direction: column; }
.stage-frame { position: relative; flex: 1; overflow: hidden; background: #e9dfc9; }
.plate {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 40%;
  opacity: 0; transition: opacity 1.6s ease;
}
.plate.is-on { opacity: 1; animation: drift 26s ease-in-out infinite alternate; }
.stage-street .plate { filter: grayscale(1) contrast(1.06); object-position: 50% 55%; }
.stage-bar {
  min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 18px; background: var(--paper-2);
  font-family: var(--f-ui); font-size: var(--s-small); font-weight: 600; line-height: 1.3;
}
.stage-place { color: var(--soft); font-weight: 600; text-align: right; }
.stage-status { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; min-height: 44px; white-space: nowrap; flex: none; }
.stage-status:hover span:last-child { text-decoration: underline; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.stage-status.is-open { color: var(--ok); }
.stage-status.is-closed { color: var(--soft); }

/* ================================================================ hero (hoja de menú) */
.sheet { min-height: 100svh; display: flex; flex-direction: column; text-align: center; padding: 24px 0 64px; }
.sheet-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.sheet-links { display: flex; gap: 20px; font-family: var(--f-ui); font-weight: 600; font-size: 1rem; }
.sheet-links:first-child { justify-content: flex-start; }
.sheet-links:last-child { justify-content: flex-end; }
.sheet-links a { text-decoration: none; padding: 12px 0; white-space: nowrap; }
.sheet-links a:hover { text-decoration: underline; }
.wordmark { display: grid; justify-items: center; text-decoration: none; line-height: 1; padding: 6px 0; }
.wordmark-small { font-family: var(--f-text); font-style: italic; font-size: var(--s-body); margin-bottom: 4px; }
.wordmark-big { font-family: var(--f-ui); font-weight: 700; text-transform: uppercase; font-size: var(--s-head); letter-spacing: -0.035em; line-height: 0.88; }

.hero-body { margin-top: clamp(64px, 16svh, 150px); display: grid; justify-items: center; }
.hero-title {
  font-family: var(--f-ui); font-weight: 700;
  font-size: clamp(2.5rem, 3.6vw, 3.5rem); line-height: 1; letter-spacing: -0.035em;
  max-width: 13em; text-wrap: balance;
}
.hero-sub { max-width: 40ch; margin: 22px 0 30px; }
.next { margin-top: 48px; display: grid; justify-items: center; gap: 2px; }
.next-label { font-family: var(--f-ui); font-weight: 600; font-size: var(--s-small); color: var(--soft); }
.next-when { font-family: var(--f-ui); font-weight: 700; font-size: var(--s-lead); letter-spacing: -0.02em; }
.next-who { max-width: 40ch; }
.next-what { color: var(--soft); }
.next .link { margin-top: 8px; min-height: 44px; }
.today { margin-top: 40px; width: min(100%, 440px); }
.today-title { font-family: var(--f-ui); font-weight: 600; font-size: var(--s-small); color: var(--soft); }
.today-status { margin: 2px 0 10px; font-size: var(--s-small); }
.rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 7px 0; text-align: left; }
.rows dt { font-family: var(--f-ui); font-weight: 600; font-size: 1rem; }
.rows dd { color: var(--soft); text-align: right; font-size: 1rem; }
.rows dd.is-ok { color: var(--ink); font-weight: 600; }

.hero-body > [data-in] { animation: rise 900ms var(--ease-out) both; }
.hero-body > :nth-child(2) { animation-delay: 80ms; }
.hero-body > :nth-child(3) { animation-delay: 160ms; }
.hero-body > :nth-child(4) { animation-delay: 260ms; }
.hero-body > :nth-child(5) { animation-delay: 340ms; }
.sheet-top { animation: fade 700ms ease both; }

/* ================================================================ bloques de la columna */
.block { padding-top: clamp(72px, 10vw, 128px); }

/* Aranceles: palabra gigante + barras */
.giant {
  font-family: var(--f-ui); font-weight: 700; text-transform: uppercase;
  font-size: 16.6cqw; line-height: 0.8; letter-spacing: -0.035em;
  white-space: nowrap; margin: 0 0 20px -0.04em;
}
.bars { display: grid; gap: 6px; }
.bar { background: var(--paper-2); }
.bar > summary {
  list-style: none; display: flex; align-items: center; gap: 16px;
  min-height: 56px; padding: 0 18px;
  font-family: var(--f-ui); font-weight: 600; font-size: 1rem;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease;
}
.bar > summary::-webkit-details-marker { display: none; }
.bar > summary:hover { background: var(--paper-3); }
.bar-from { margin-left: auto; color: var(--soft); font-weight: 600; font-size: 1rem; }
.plus { position: relative; width: 14px; height: 14px; flex: none; }
.plus::before, .plus::after { content: ''; position: absolute; background: currentColor; transition: transform 240ms var(--ease-out); }
.plus::before { left: 0; right: 0; top: 6px; height: 2px; }
.plus::after { top: 0; bottom: 0; left: 6px; width: 2px; }
details[open] > summary .plus::after { transform: scaleY(0); }
.bar-body { padding: 4px 20px 22px; }
.bar[open] .bar-body { animation: open 360ms var(--ease-out); }
.bar-summary { margin-bottom: 10px; }
.items li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 7px 0; }
.item-name { font-size: 1rem; }
.item-desc { display: block; font-size: var(--s-small); color: var(--soft); }
.item-price { font-family: var(--f-ui); font-weight: 600; font-size: 1rem; white-space: nowrap; }
.bar-note { margin: 12px 0 18px; font-size: 1rem; }
.bar-note strong { font-family: var(--f-ui); font-size: 1rem; }

/* Directorio del equipo */
.directory { margin-top: 12px; }
.group { margin-top: 36px; transition: opacity 320ms ease, transform 420ms var(--ease-out); }
.group.is-entering { opacity: 0; transform: translateY(10px); }
.group-name { font-family: var(--f-ui); font-weight: 600; font-size: 1rem; color: var(--soft); margin-bottom: 6px; }
.person > summary {
  list-style: none; display: grid; grid-template-columns: 16px 1fr auto; gap: 8px 10px; align-items: baseline;
  padding: 9px 0; min-height: 44px; cursor: pointer;
}
.person > summary::-webkit-details-marker { display: none; }
.person-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); align-self: center; transition: transform 220ms var(--ease-out); }
.person > summary:hover .person-name { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.person[open] .person-dot { transform: scale(1.5); }
.person-name { font-family: var(--f-ui); font-weight: 600; font-size: 1rem; line-height: 1.35; }
.person-role { display: block; font-family: var(--f-text); font-weight: 400; font-size: var(--s-small); color: var(--soft); }
.person-days { font-family: var(--f-ui); font-size: var(--s-small); color: var(--soft); white-space: nowrap; }
.person-body { padding: 2px 0 20px 26px; display: grid; gap: 10px; justify-items: start; animation: open 320ms var(--ease-out); }
.person-body .rows { width: 100%; }
.person-body .rows > div { padding: 4px 0; }

/* Antes de venir: columna angosta */
.narrow .prose { max-width: 340px; }
.prose p { color: var(--soft); margin-bottom: 1.1em; line-height: 1.55; }
.prose p.first { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); }

/* Horarios */
.status-line { font-family: var(--f-ui); font-weight: 600; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--soft); }
.status-line::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.status-line.is-open { color: var(--ok); }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 8px 0; text-align: left; font-weight: 400; }
.hours td { text-align: right; font-family: var(--f-ui); font-size: 1rem; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 600; }
.today-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; background: var(--ink); color: var(--on-ink); font-family: var(--f-ui); font-size: var(--s-small); font-weight: 600; }
.special { margin-top: 14px; display: grid; gap: 4px; }
.special li { display: flex; justify-content: space-between; gap: 16px; font-size: var(--s-small); color: var(--soft); }
.urgent { margin-top: 36px; padding: 26px 26px 28px; background: var(--paper-2); }
.urgent-title { text-wrap: balance; font-family: var(--f-ui); font-weight: 700; font-size: var(--s-lead); letter-spacing: -0.02em; margin-bottom: 10px; }
.urgent p { margin-bottom: 12px; font-size: 1rem; }
.urgent .btn { margin-top: 6px; }

/* Contacto en filas grandes */
.rows-display { display: grid; gap: 6px; }
.rows-display > div { display: grid; gap: 6px; }
.row-d {
  display: flex; align-items: flex-end; gap: 0.4em;
  min-height: 2.3em; padding: 0 20px 0.32em;
  background: var(--paper-2); color: var(--ink);
  font-family: var(--f-text); font-weight: 400;
  font-size: min(var(--s-head), 7.6cqw); line-height: 1; letter-spacing: -0.02em;
  text-decoration: none;
  transition: background-color 160ms ease;
}
a.row-d:hover { background: var(--paper-3); }
a.row-d:hover span:first-child { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.row-greet { background: var(--ink); color: var(--on-ink); align-items: center; padding-bottom: 0; }
a.row-greet:hover { background: var(--ink-hover); }
.round {
  display: inline-grid; place-items: center; width: 0.9em; height: 0.9em; margin-left: 0.25em;
  border-radius: 50%; background: var(--on-ink); color: var(--ink);
  transition: transform 260ms var(--ease-out);
}
.round .ic { width: 0.45em; height: 0.45em; }
.row-greet:hover .round { transform: translateX(6px); }
.arrival { margin-top: 24px; display: grid; gap: 8px; max-width: 46ch; }
.arrival li { font-size: 1rem; }
.contact-mail { margin-top: 16px; font-size: 1rem; }

/* ================================================================ agenda a todo el ancho */
.booking-band { background: var(--paper-2); padding: clamp(64px, 8vw, 120px) var(--pad-x); }
.booking-intro { max-width: 640px; margin-bottom: 32px; }
.booking-intro .block-lead { margin-bottom: 0; }
.stepper { display: flex; gap: 6px; max-width: 1240px; }
.stepper li { flex: 1; min-width: 0; }
.stepper button {
  width: 100%; min-height: 48px; padding: 10px 14px; text-align: left;
  background: var(--paper-3); color: var(--ink); border: 0;
  font-family: var(--f-ui); font-weight: 600; font-size: 1rem; line-height: 1.2;
  transition: background-color 160ms ease, transform 140ms var(--ease-out);
}
.stepper button:not(:disabled):hover { background: var(--paper); }
.stepper button:not(:disabled):active { transform: scale(0.98); }
.stepper button.is-done { background: var(--paper); }
.stepper button[aria-current="step"] { background: var(--ink); color: var(--on-ink); }
.stepper button:disabled:not([aria-current]) { color: var(--soft); cursor: not-allowed; }

.booking-body { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: clamp(32px, 4vw, 72px); align-items: start; max-width: 1240px; margin-top: 8px; }
.step { animation: stepin 380ms var(--ease-out); }
.step.is-back { animation-name: stepback; }
.step-title { font-family: var(--f-ui); font-weight: 700; font-size: var(--s-lead); letter-spacing: -0.02em; margin: 32px 0 18px; }
.step-title:focus { outline: none; }
.step-title:focus-visible { outline: 3px solid var(--ink); }

.opt {
  display: grid; gap: 2px; width: 100%; text-align: left;
  min-height: 56px; padding: 14px 18px;
  background: var(--paper); color: var(--ink); border: 0;
  transition: background-color 160ms ease, transform 140ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.opt:hover { background: #f8f5ee; }
.opt:active { transform: scale(0.99); }
.opt[aria-checked="true"] { background: var(--ink); color: var(--on-ink); }
.opt-title { font-family: var(--f-ui); font-weight: 600; font-size: 1rem; }
.opt-sub { font-size: var(--s-small); color: var(--soft); }
.opt[aria-checked="true"] .opt-sub, .opt[aria-checked="true"] .pro-opt-next, .opt[aria-checked="true"] .motive-min { color: var(--on-ink-soft); }
.area-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.motives { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }
.motives legend { padding: 0; margin-bottom: 8px; }
.motive-list { display: grid; gap: 6px; }
.motive { grid-template-columns: 1fr auto; column-gap: 20px; }
.motive .opt-title, .motive .opt-sub { grid-column: 1; }
.motive-meta { grid-column: 2; grid-row: 1 / span 2; display: grid; justify-items: end; align-content: center; }
.motive-fee { font-family: var(--f-ui); font-weight: 700; }
.motive-min { font-size: var(--s-small); color: var(--soft); }
.slots-hint { color: var(--soft); font-size: 1rem; margin-bottom: 10px; }
.pro-list { display: grid; gap: 6px; }
.pro-opt-next { display: block; margin-top: 4px; font-family: var(--f-ui); font-weight: 600; font-size: var(--s-small); }
.pro-opt-next.is-none { font-weight: 400; color: var(--soft); }

.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }

/* Calendario y horarios */
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-month { font-family: var(--f-ui); font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-family: var(--f-ui); font-size: var(--s-small); color: var(--soft); padding-bottom: 4px; }
.day {
  min-height: 44px; aspect-ratio: 1; padding: 0;
  background: var(--paper); color: var(--ink); border: 0;
  font-family: var(--f-ui); font-weight: 700; font-size: 1rem;
  transition: background-color 160ms ease, transform 140ms var(--ease-out);
}
.day:not(:disabled):hover { background: #f8f5ee; }
.day:not(:disabled):active { transform: scale(0.94); }
.day:disabled { background: transparent; color: var(--soft); font-weight: 400; cursor: not-allowed; }
.day.is-pad { background: transparent; }
.day.is-today { text-decoration: none; border-bottom: 4px solid var(--paper-3); }
.day.is-special { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.day[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-bottom-color: var(--ink); }
.cal-legend { margin-top: 10px; font-size: var(--s-small); color: var(--soft); }
.slots-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.slots-head .muted { color: var(--soft); font-size: var(--s-small); }
.slots-day { font-family: var(--f-ui); font-weight: 600; }
.slots-note { background: var(--paper); padding: 10px 14px; font-size: var(--s-small); margin-bottom: 10px; }
.slots-empty { color: var(--soft); }
.slot-group { margin-top: 12px; }
.slot-group h4 { font-family: var(--f-ui); font-weight: 600; font-size: var(--s-small); color: var(--soft); margin-bottom: 6px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.slot {
  min-height: 44px; background: var(--paper); color: var(--ink); border: 0;
  font-family: var(--f-ui); font-weight: 600; font-size: 1rem;
  transition: background-color 160ms ease, transform 140ms var(--ease-out);
}
.slot:hover { background: #f8f5ee; }
.slot:active { transform: scale(0.95); }
.slot[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.slot-who { margin-top: 12px; min-height: 1.5em; font-size: 1rem; }
.skeleton { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.skeleton span { height: 44px; background: var(--paper-3); animation: breathe 1.1s ease-in-out infinite alternate; }

/* Formulario */
.form { display: grid; gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--paper); color: var(--ink);
  border: 0; border-bottom: 2px solid var(--ink); border-radius: 0;
  font-family: var(--f-text); font-size: var(--s-body);
  transition: background-color 160ms ease;
}
.field input:focus, .field textarea:focus { background: #fbf9f4; }
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder { color: #7a857d; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--error); }
.err { color: var(--error); font-family: var(--f-ui); font-weight: 600; font-size: var(--s-small); min-height: 0; }
.err:empty { display: none; }
.help { font-size: var(--s-small); color: var(--soft); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px;
  background: var(--paper); cursor: pointer;
  font-family: var(--f-ui); font-weight: 600; font-size: 1rem;
  transition: background-color 160ms ease;
}
.seg label:has(input:checked) { background: var(--ink); color: var(--on-ink); }
.seg input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.seg label:has(input:checked) input { accent-color: var(--on-ink); }
.consents { display: grid; gap: 10px; margin-top: 6px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 1rem; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--ink); }
.form-msg { color: var(--error); font-family: var(--f-ui); font-weight: 600; }
.form-msg:empty { display: none; }
.form-msg.is-ok { color: var(--ok); }
.hp { position: absolute !important; left: -10000px; opacity: 0; }
.wa-fallback { margin-top: 4px; }

/* Confirmación */
.confirm .code { font-family: var(--f-ui); font-size: var(--s-lead); margin-bottom: 20px; }
.confirm .code strong { font-weight: 700; letter-spacing: 0.02em; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.bring { margin-bottom: 24px; }
.bring ul { margin-top: 8px; display: grid; gap: 4px; }
.bring li::before { content: '·'; margin-right: 10px; font-weight: 700; }
.confirm .link { min-height: 44px; }

/* El papel del turno */
.slip { position: sticky; top: 24px; margin-top: 32px; }
.slip-paper {
  background: var(--paper); padding: 28px 28px 44px;
  clip-path: polygon(100% 0, 100% calc(100% - 10px), 97.5% 100%, 95% calc(100% - 10px), 92.5% 100%, 90% calc(100% - 10px), 87.5% 100%, 85% calc(100% - 10px), 82.5% 100%, 80% calc(100% - 10px), 77.5% 100%, 75% calc(100% - 10px), 72.5% 100%, 70% calc(100% - 10px), 67.5% 100%, 65% calc(100% - 10px), 62.5% 100%, 60% calc(100% - 10px), 57.5% 100%, 55% calc(100% - 10px), 52.5% 100%, 50% calc(100% - 10px), 47.5% 100%, 45% calc(100% - 10px), 42.5% 100%, 40% calc(100% - 10px), 37.5% 100%, 35% calc(100% - 10px), 32.5% 100%, 30% calc(100% - 10px), 27.5% 100%, 25% calc(100% - 10px), 22.5% 100%, 20% calc(100% - 10px), 17.5% 100%, 15% calc(100% - 10px), 12.5% 100%, 10% calc(100% - 10px), 7.5% 100%, 5% calc(100% - 10px), 2.5% 100%, 0% calc(100% - 10px), 0 0);
}
.slip-title { font-family: var(--f-ui); font-weight: 700; font-size: var(--s-lead); letter-spacing: -0.02em; margin-bottom: 16px; }
.slip-list > div { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; font-size: 1rem; }
.slip-list dt { display: flex; align-items: baseline; gap: 10px; flex: 1 1 auto; min-width: 5.5em; font-family: var(--f-ui); font-weight: 600; font-size: 1rem; }
.slip-list dt::after { content: ''; flex: 1; min-width: 12px; border-bottom: 4px dotted var(--paper-3); transform: translateY(-4px); }
.slip-list dd { text-align: right; max-width: 62%; }
.slip-list dd.is-empty { color: var(--soft); font-style: italic; }
.slip-list .total { margin: 14px -28px 0; padding: 0 28px; min-height: 48px; align-items: center; background: var(--ink); color: var(--on-ink); }
.slip-list .total dt::after { display: none; }
.slip-list .total dd { font-family: var(--f-ui); font-weight: 700; }
.slip-note { margin-top: 16px; font-size: var(--s-small); color: var(--soft); }

/* ================================================================ preguntas */
.faq-field {
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 96px);
  background: var(--ink); color: var(--on-ink);
  padding: 0 var(--pad-x) 0; margin-top: 12px;
}
.faq-col { padding: clamp(72px, 9vw, 128px) 0; }
.faq-col .head { max-width: 14em; }
.facts { margin: 8px 0 36px; display: grid; gap: 4px; }
.faq details { margin-bottom: 22px; }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 44px; cursor: pointer;
  font-family: var(--f-ui); font-weight: 600; font-size: var(--s-lead); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; width: 10px; height: 10px; flex: none; margin-right: 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg); transition: transform 260ms var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq summary:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.faq details > div { padding-top: 6px; color: var(--on-ink-soft); max-width: 52ch; animation: open 320ms var(--ease-out); }
.faq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; }
.faq-actions .link-plain { min-height: 44px; display: inline-flex; align-items: center; font-family: var(--f-ui); font-weight: 600; }
.faq-photos { position: relative; padding-bottom: 80px; align-self: start; }
.faq-tall { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 60% 50%; filter: grayscale(1) contrast(1.05); }
.faq-square {
  position: absolute; left: -40px; bottom: 40px; width: 36%; aspect-ratio: 1;
  object-fit: cover; filter: grayscale(1) contrast(1.05);
  outline: 10px solid var(--ink);
}

/* ================================================================ pie */
.site-footer { padding: clamp(120px, 24svh, 260px) var(--pad-x) 30px; }
.credits { max-width: 72ch; font-size: var(--s-small); color: var(--soft); margin-bottom: 48px; }
.credits a { color: var(--ink); }
.foot-line { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; font-family: var(--f-ui); font-size: 1rem; }
.foot-what { color: var(--soft); }
.foot-links { display: flex; gap: 24px; justify-content: center; }
.foot-links .link-plain { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.foot-studio { text-align: right; color: var(--soft); }
.foot-studio .link-plain { color: var(--ink); }

/* ================================================================ barra móvil, toast, diálogos */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) 18px;
  background: var(--ink); color: var(--on-ink);
  transform: translateY(110%); transition: transform 320ms var(--ease-out);
}
.mbar.is-shown { transform: translateY(0); }
.mbar-info { min-width: 0; }
.mbar-top { font-family: var(--f-ui); font-weight: 600; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbar-sub { font-size: var(--s-small); color: var(--on-ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbar .btn { min-height: 48px; padding: 0 20px; flex: none; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 40; max-width: min(92vw, 460px);
  padding: 14px 20px; background: var(--ink); color: var(--on-ink);
  font-family: var(--f-ui); font-weight: 600; font-size: 1rem;
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity 220ms ease, transform 320ms var(--ease-out);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

.dialog { border: 0; padding: 0; max-width: min(640px, 92vw); max-height: 86svh; background: var(--paper); color: var(--ink); }
.dialog::backdrop { background: rgba(18, 32, 26, 0.6); }
.dialog[open] { animation: rise 320ms var(--ease-out); }
.dialog-body { padding: 32px 32px 8px; overflow: auto; max-height: calc(86svh - 90px); }
.dialog-body p { margin-bottom: 14px; font-size: 1rem; }
.dialog-title { font-family: var(--f-ui); font-weight: 700; font-size: var(--s-lead); letter-spacing: -0.02em; margin-bottom: 18px; }
.dialog-foot { padding: 16px 32px 28px; }

/* ================================================================ modo secretaría */
.owner { padding: 24px var(--pad-x) 96px; }
.owner-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 12px 0 28px; font-family: var(--f-ui); font-size: 1rem; }
.owner-brand { font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; }
.owner-source { color: var(--soft); flex: 1; min-width: 240px; }
.owner-top .link-plain { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.owner-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.owner-title { font-family: var(--f-ui); font-weight: 700; font-size: var(--s-head); letter-spacing: -0.035em; line-height: 1; }
.owner-date { display: flex; align-items: center; gap: 6px; }
.owner-date .icon-btn { background: var(--paper-2); }
.owner-date-label { font-family: var(--f-ui); font-weight: 600; min-width: 15em; text-align: center; }
.owner-date .btn { min-height: 44px; padding: 0 18px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 6px; margin-bottom: 10px; }
.metric { background: var(--paper-2); padding: 14px 18px; }
.metric dt { font-family: var(--f-ui); font-weight: 600; font-size: var(--s-small); color: var(--soft); }
.metric dd { font-family: var(--f-ui); font-weight: 700; font-size: var(--s-lead); white-space: nowrap; letter-spacing: -0.02em; }
[data-owner-metrics] .fine { margin-bottom: 14px; }
.owner .toggles { margin: 14px 0 12px; }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 6px; align-items: start; }
.col { background: var(--paper-2); padding: 16px; }
.col-head { margin-bottom: 8px; }
.col-name { font-family: var(--f-ui); font-weight: 700; }
.col-meta { font-size: var(--s-small); color: var(--soft); }
.col-empty { color: var(--soft); font-size: 1rem; }
.appt { background: var(--paper); padding: 12px 14px 14px 16px; margin-top: 6px; border-left: 4px solid var(--ink); }
.appt[data-st="En sala de espera"] { border-left-color: var(--amber); }
.appt[data-st="En consulta"] { border-left-color: var(--blue); }
.appt[data-st="Finalizado"] { border-left-color: var(--paper-3); }
.appt[data-st="Cancelado"], .appt[data-st="Reprogramado"] { border-left-color: var(--error); }
.appt[data-st="Cancelado"] .appt-name, .appt[data-st="Reprogramado"] .appt-name { text-decoration: line-through; color: var(--soft); }
.appt-top { display: flex; justify-content: space-between; font-family: var(--f-ui); font-weight: 600; font-size: 1rem; }
.appt-top .muted { color: var(--soft); }
.appt-name { font-family: var(--f-ui); font-weight: 600; margin-top: 2px; }
.appt-meta { font-size: var(--s-small); color: var(--soft); margin: 2px 0 8px; }
.appt select {
  width: 100%; min-height: 44px; padding: 0 12px;
  background: var(--paper-2); border: 0; border-bottom: 2px solid var(--ink); border-radius: 0;
  font-family: var(--f-ui); font-weight: 600; font-size: 1rem;
}
.owner-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 32px; }
.owner-block { background: var(--paper-2); padding: 28px; display: grid; gap: 14px; align-content: start; }
.owner-h2 { font-family: var(--f-ui); font-weight: 700; font-size: var(--s-lead); letter-spacing: -0.02em; }
.owner-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.owner-key { display: grid; gap: 12px; justify-items: start; }
.owner-key .field { width: min(100%, 360px); }
.owner-studio { background: var(--ink); color: var(--on-ink); }
.owner-studio .link-plain { min-height: 44px; display: inline-flex; align-items: center; }

/* ================================================================ movimiento */
[data-reveal] { transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); }
[data-reveal].is-pending { opacity: 0; transform: translateY(24px); }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06) translateY(-1.2%); } }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes stepin { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes stepback { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes breathe { from { opacity: 0.55; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .plate.is-on { animation: none; }
  [data-reveal].is-pending { opacity: 1; transform: none; }
}

/* ================================================================ responsive */
@media (max-width: 1180px) {
  .booking-body { grid-template-columns: minmax(0, 1fr) 360px; }
  .cal-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .stage-col, .split-flip .stage-col { order: -1; position: sticky; top: 0; z-index: 0; padding: 12px; }
  .stage { position: relative; top: 0; height: 56svh; }
  .read { position: relative; z-index: 1; background: var(--paper); padding: 0 20px 72px; }
  .sheet { min-height: 0; padding: 24px 0 72px; }
  .sheet-top { grid-template-columns: 1fr; justify-items: center; gap: 4px; }
  .sheet-top .wordmark { order: -1; }
  .sheet-links { gap: 20px; justify-content: center !important; }
  .sheet-top > .sheet-links:first-child { grid-row: 2; }
  .sheet-top { grid-template-areas: none; }
  .wordmark-big { font-size: 13vw; }
  .hero-body { margin-top: 36px; }
  .hero-title { font-size: 9vw; }
  .hero-body .btn-lg { width: 100%; }
  .booking-body { grid-template-columns: 1fr; }
  .slip { position: static; margin-top: 8px; }
  .faq-field { grid-template-columns: 1fr; padding: 0 20px; gap: 0; }
  .faq-photos { order: -1; padding: 0 0 48px; margin: 0 -20px; }
  .faq-tall { aspect-ratio: 4 / 5; }
  .faq-square { left: auto; right: 20px; bottom: 16px; width: 38%; }
  .faq-col { padding: 24px 0 72px; }
  .faq-col .head { font-size: 2rem; }
  .faq details { margin-bottom: 16px; }
  .faq-actions .btn { width: 100%; }
  .site-footer { padding: 20svh 20px calc(96px + env(safe-area-inset-bottom)); }
  .foot-line { grid-template-columns: 1fr; gap: 8px; }
  .foot-links { justify-content: flex-start; flex-wrap: wrap; gap: 0 24px; }
  .foot-studio { text-align: left; }
  .mbar { display: flex; }
  .owner-foot { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .area-pick { grid-template-columns: 1fr 1fr; }
  .stepper { display: grid; grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .person > summary { grid-template-columns: 16px 1fr; }
  .person-days { grid-column: 2; }
  .items li { flex-wrap: wrap; gap: 2px 16px; }
  .bar-body { padding: 4px 16px 20px; }
  .rows-display .row-d { padding: 0 16px 0.32em; }
  .step-nav .btn { flex: 1; }
  .confirm-actions .btn { width: 100%; }
  .owner-date-label { min-width: 0; flex: 1; }
  .owner-date { width: 100%; }
}

@media print {
  .stage-col, .mbar, .toast, .faq-photos, .booking-band .stepper { display: none !important; }
  .split { display: block; }
  body { background: #fff; }
}

/* Paneles cerrados: fuera del layout (no solo invisibles). */
.bar:not([open]) > .bar-body, .person:not([open]) > .person-body, .faq details:not([open]) > div { display: none; }
@media (max-width: 640px) {
  .stage-bar { padding: 6px 14px; }
  .cap-note { display: none; }
}
/* Firma del estudio: chica, en la tinta suave del pie; el cuadrado naranja es parte del logo. */
.foot-studio { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.studio-by { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--soft); text-decoration: none; font-size: var(--s-small); transition: color .2s ease; }
.studio-by:hover, .studio-by:focus-visible { color: var(--ink); }
.studio-mark { height: 15px; width: auto; display: block; transform: translateY(2px); }
@media (max-width: 960px) { .foot-studio { align-items: flex-start; } }
