:root {
  --ink: #101010;
  --ink-2: #1a1a1a;
  --paper: #f4f2ec;
  --card: #ffffff;
  --gold: #ffd100;
  --gold-soft: #fffbe3;
  --line: #e2dfd6;
  --line-strong: #c9c5b8;
  --muted: #6a6a63;
  --danger: #a33232;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(16, 16, 16, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
b { color: var(--ink); }
.hidden { display: none !important; }

.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 50;
  background: var(--gold);
  color: #111;
  padding: 12px 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

/* Barra superior */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
  padding: 10px clamp(18px, 4vw, 40px);
  background: rgba(16, 16, 16, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
}
.brand img { width: 168px; height: auto; }
.top-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d8d6cf;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.top-link:hover { color: #fff; }
.top-link svg { width: 15px; height: 15px; }

/* Estructura */
.layout {
  display: grid;
  grid-template-columns: minmax(340px, 430px) 1fr;
  min-height: calc(100dvh - 66px);
}

/* Panel oscuro de resumen */
.aside {
  position: sticky;
  top: 66px;
  align-self: start;
  height: calc(100dvh - 66px);
  overflow-y: auto;
  color: #f4f2ec;
  background: #101010;
  border-right: 1px solid rgba(255, 255, 255, .08);
}
.aside-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(28px, 4vw, 46px) clamp(24px, 3.4vw, 42px);
}
.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.aside h1 {
  margin: 14px 0 14px;
  font-size: clamp(30px, 3vw, 41px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.04em;
}
.lede {
  max-width: 36ch;
  margin: 0;
  color: #b9b7af;
  font-size: 14.5px;
  line-height: 1.6;
}

.ticket {
  margin-top: 30px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  background: rgba(255, 255, 255, .055);
  padding: 4px 16px;
}
.ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #d9d7d0;
}
.ticket-top span:last-child { color: var(--gold); }
.ticket dl { margin: 0; }
.ticket-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .12);
}
.ticket-row:last-child { border-bottom: 0; }
.ticket dt {
  color: #8f8d86;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ticket dd {
  margin: 0;
  text-align: right;
  color: #f4f2ec;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.ticket dd.is-empty { color: #85837c; font-weight: 500; }

.aside-foot { margin-top: auto; padding-top: 30px; }
.aside-foot p { margin: 0 0 8px; color: #8f8d86; font-size: 12px; }
.wa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 209, 0, .4);
  padding-bottom: 2px;
}
.wa:hover { border-bottom-color: var(--gold); }
.wa svg { width: 13px; height: 13px; }

/* Panel del formulario */
.panel {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(24px, 4.5vw, 54px) clamp(20px, 5vw, 68px) 40px;
}
.panel-head { margin-bottom: clamp(24px, 3.5vw, 38px); }
.progress {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: #e3e0d6;
}
.progress span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
  transition: width .4s cubic-bezier(.22, 1, .36, 1);
}
.step-counter {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.step { display: none; }
.step.active { display: block; animation: step-in .42s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes step-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.step-head { margin-bottom: 26px; }
.step-kicker {
  display: inline-block;
  color: #9a978d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.step h2 {
  max-width: 21ch;
  margin: 8px 0 10px;
  font-size: clamp(27px, 3.4vw, 39px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.035em;
}
.step-hint {
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Opciones */
.options { display: grid; gap: 10px; }
.options.branches { grid-template-columns: 1fr; }
.options.services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  width: 100%;
  min-height: 66px;
  padding: 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  text-align: left;
  transition: border-color .16s, box-shadow .16s, transform .16s, background .16s;
}
.option:hover { border-color: #b8b4a7; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(16, 16, 16, .06); }
.option:focus-visible { outline: 3px solid rgba(16, 16, 16, .18); outline-offset: 2px; }
.option.selected { border-color: var(--ink); background: var(--gold-soft); box-shadow: 0 0 0 3px rgba(16, 16, 16, .05); }
.option-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #f1efe8;
  color: var(--ink);
}
.option-icon svg { width: 21px; height: 21px; }
.option.selected .option-icon { background: var(--ink); color: var(--gold); }
.option-body { display: grid; gap: 2px; padding-right: 26px; min-width: 0; }
.option-body strong { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.option-body small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.option-body em { margin-top: 3px; color: #8a877d; font-size: 11px; font-style: normal; font-weight: 600; }
.check {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: transparent;
  transition: background .16s, border-color .16s, color .16s;
}
.check svg { width: 12px; height: 12px; }
.option.selected .check { border-color: var(--ink); background: var(--ink); color: var(--gold); }

/* Buscador de servicios */
.catalog-tools { display: grid; gap: 12px; margin-bottom: 16px; }
.catalog-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.catalog-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(16, 16, 16, .05); }
.catalog-search svg { flex: 0 0 18px; width: 18px; height: 18px; color: #8b887e; }
.catalog-search input {
  width: 100%;
  min-height: 47px;
  border: 0;
  background: transparent;
  outline: 0;
  color: var(--ink);
  font-size: 14.5px;
}
.catalog-search input::placeholder { color: #9a978e; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  min-height: 33px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: #4c4a43;
  font-size: 12px;
  font-weight: 600;
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: #b8b4a7; background: #fff; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.catalog-empty {
  margin: 16px 0 0;
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Campos */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span {
  color: #56544d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.field > span em { color: #9a978e; font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 50px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  padding: 12px 14px;
  outline: 0;
  font-size: 15.5px;
  transition: border-color .16s, box-shadow .16s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(16, 16, 16, .05); }
.field input::placeholder, .field textarea::placeholder { color: #a5a298; }
.field textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.field-full { grid-column: 1 / -1; }
.phone-input { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.phone-input select { flex: 0 0 132px; width: 132px; min-width: 132px; }
.phone-input input { flex: 1 1 0; width: auto; min-width: 0; }
.field-note.phone-detected { margin: 2px 0 0; color: #1d6b3a; font-size: 11.5px; font-weight: 600; line-height: 1.4; }
.field-note.phone-detected.is-error { color: var(--danger); }
.field-date { max-width: 240px; }
.field-note { margin: 12px 0 0; color: #8a877d; font-size: 12px; line-height: 1.5; }
.field-note.slot-warning { color: var(--danger); }
.field-note.plate-note { margin: 2px 0 0; font-size: 11.5px; font-weight: 600; }
.field-note.plate-note.is-warning { color: #8a6d1d; }
.field-note.plate-note:empty { display: none; }
.field input.invalid, .field textarea.invalid, .field select.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(163, 50, 50, .12); }
.step h2:focus, .done:focus { outline: none; }

.slots-title {
  margin: 24px 0 10px;
  color: #56544d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot {
  min-height: 42px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: #35332d;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background .15s, border-color .15s, color .15s;
}
.slot:hover:not(:disabled) { border-color: #b8b4a7; }
.slot:focus-visible { outline: 3px solid rgba(16, 16, 16, .18); outline-offset: 2px; }
.slot[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.slot:disabled { opacity: .35; cursor: not-allowed; }

/* Resumen final */
.review {
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.review-head {
  margin-bottom: 6px;
  color: #9a978d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.review-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.review-row:last-child { border-bottom: 0; }
.review-row span { color: var(--muted); }
.review-row strong { text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.branch-map-link { display: inline-block; margin-top: 12px; color: var(--ink); font-size: 12.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.branch-map-link::after { content: " ↗"; text-decoration: none; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: #4c4a43;
  font-size: 13px;
  line-height: 1.45;
}
.consent input { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }

/* Navegación */
.form-nav {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding: 16px 0 6px;
  border-top: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(244, 242, 236, .6), var(--paper) 35%);
  backdrop-filter: blur(6px);
}
.form-error { flex: 1; min-height: 18px; margin: 0; color: var(--danger); font-size: 12.5px; line-height: 1.35; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .16s, border-color .16s, transform .16s, opacity .16s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #2c2c2c; }
.btn-primary:disabled { opacity: .45; cursor: default; }
.btn-ghost { border-color: var(--line); background: var(--card); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { border-color: #b8b4a7; }
.btn-ghost:disabled { opacity: .4; cursor: default; }
.btn:focus-visible { outline: 3px solid rgba(16, 16, 16, .2); outline-offset: 2px; }

/* Éxito */
.done { max-width: 620px; padding-top: 6px; }
.done-badge {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
}
.done-badge svg { width: 26px; height: 26px; }
.done h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.035em;
}
.done-text { max-width: 48ch; margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0;
  padding: 15px 18px;
  border: 1.5px dashed #cfc9b0;
  border-radius: 13px;
  background: var(--gold-soft);
}
.code-box span { color: #6b6752; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.code-box strong { font-size: 20px; font-weight: 800; letter-spacing: .14em; }
.done-summary {
  display: grid;
  gap: 2px;
  padding: 6px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn-wa { background: #1faa53; color: #fff; }
.btn-wa:hover { background: #178f45; }
.btn-wa svg { width: 18px; height: 18px; }
.link-button {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-button:hover { color: var(--ink); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* Disponibilidad (días y horas) */
.availability-title {
  margin: 0 0 10px;
  color: #56544d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.day-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}
.day-cell {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 10px 4px 9px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  text-align: center;
  transition: border-color .15s, background .15s, transform .15s, color .15s;
}
.day-cell .d-week { color: #8a877d; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.day-cell .d-num { color: inherit; font-size: 20px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.day-cell .d-month { color: #9a978d; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.day-cell .d-slots { margin-top: 2px; color: #8a877d; font-size: 9px; font-weight: 600; }
.day-cell:hover:not(:disabled) { border-color: #b8b4a7; transform: translateY(-1px); }
.day-cell:focus-visible { outline: 3px solid rgba(16, 16, 16, .18); outline-offset: 2px; }
.day-cell[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.day-cell[aria-checked="true"] .d-week,
.day-cell[aria-checked="true"] .d-month { color: var(--gold); }
.day-cell[aria-checked="true"] .d-slots { color: rgba(255, 255, 255, .72); }
.day-cell:disabled { opacity: .45; cursor: not-allowed; transform: none; background: #f7f5ef; }
.day-cell:disabled .d-num { color: #8a877d; }
.schedule-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.schedule-range { margin: 4px 0 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.schedule-legend { display: inline-flex; align-items: center; gap: 6px; color: #8a877d; font-size: 10px; font-weight: 600; white-space: nowrap; }
.schedule-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.time-card { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.time-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.time-head .slots-title { margin: 0; }
.time-day { margin: 5px 0 0; color: var(--ink); font-size: 13px; font-weight: 600; text-transform: capitalize; }
.slots-count { color: #8a877d; font-size: 11px; font-weight: 600; }
.slots .slot {
  display: grid;
  place-items: center;
  gap: 0;
  min-height: 58px;
  padding: 6px 4px;
}
.slots .slot span { font-size: 15px; font-weight: 700; }
.slots .slot small { color: #8a877d; font-size: 10px; font-weight: 600; }
.slots .slot[aria-checked="true"] small { color: rgba(255, 255, 255, .75); }
.help-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.help-link:hover { color: #000; }

/* Tipo de servicio */
.type-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.type-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  text-align: left;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.type-card:hover { border-color: #b8b4a7; }
.type-card:focus-visible { outline: 3px solid rgba(16, 16, 16, .18); outline-offset: 2px; }
.type-card[aria-checked="true"] { border-color: var(--ink); background: var(--gold-soft); box-shadow: 0 0 0 3px rgba(16, 16, 16, .05); }
.type-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f1efe8;
  color: var(--ink);
}
.type-icon svg { width: 20px; height: 20px; }
.type-card[aria-checked="true"] .type-icon { background: var(--ink); color: var(--gold); }
.type-card strong { display: block; font-size: 14px; font-weight: 700; }
.type-card small { color: var(--muted); font-size: 12px; line-height: 1.4; }

/* Catálogo compacto */
.options.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.compact .option { min-height: 58px; padding: 12px 14px; gap: 11px; }
.compact .option-icon { flex-basis: 34px; width: 34px; height: 34px; border-radius: 9px; }
.compact .option-icon svg { width: 18px; height: 18px; }
.compact .option-body strong { font-size: 13.5px; line-height: 1.3; }
.compact .option-body small { font-size: 11.5px; }
.code-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #f1efe8;
  color: #77746a;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .04em;
  vertical-align: 1px;
}
.more {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: #55534b;
  font-size: 12.5px;
  font-weight: 700;
}
.more:hover { background: #fff; border-color: #b8b4a7; }
.service-detail { margin-top: 16px; }

/* Datos y confirmación */
.service-help { margin: 16px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }\n.service-help a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }\n.registered-help {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}
.registered-help a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.policy {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #faf8f2;
}
.policy p { margin: 0; color: #625f56; font-size: 12px; line-height: 1.55; }
.policy p + p { margin-top: 6px; }
.policy strong { color: var(--ink); }
.policy-important { padding: 18px 20px; border-width: 2px; border-color: #e6d59a; background: #fffbed; }
.policy-important p { color: #3f3c33; font-size: 15px; line-height: 1.6; }
.policy-important strong { font-size: 16px; }
.compact-policy { margin-top: 18px; }
.compact-policy.policy-important p { font-size: 14px; }

/* Servicio: menú lateral + selección múltiple */
.service-layout {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.service-menu-wrap { position: sticky; top: 84px; }
.service-menu-title {
  margin: 0 0 8px;
  color: #8a877d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.service-menu { display: grid; gap: 3px; }
.service-menu-mobile { display: none; }
.menu-item {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #4c4a43;
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  transition: background .15s, color .15s, border-color .15s;
}
.menu-item:hover { background: #fff; border-color: var(--line); }
.menu-item.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.menu-item:focus-visible { outline: 3px solid rgba(16, 16, 16, .18); outline-offset: 2px; }
.service-panel { min-width: 0; }
.services-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 10px;
}
.services-selected { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.services-clear {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.services-clear:disabled { opacity: .35; cursor: default; text-decoration: none; }
.options.multi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.options.multi .option { min-height: 66px; padding: 13px 14px; gap: 11px; }
.options.multi .option-icon { flex-basis: 36px; width: 36px; height: 36px; }
.options.multi .option-icon svg { width: 19px; height: 19px; }
.options.multi .option-body strong { font-size: 13.5px; line-height: 1.3; }
.options.multi .option-body small { font-size: 11.5px; }
.options.multi .check { border-radius: 6px; }
.service-comment { margin-top: 18px; }

/* Identificación y consulta de cliente */
.lookup-mode {
  display: flex;
  gap: 5px;
  width: max-content;
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #eae7de;
}
.mode-btn {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #5d5a52;
  font-size: 12.5px;
  font-weight: 700;
}
.mode-btn[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.lookup-card { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.lookup-card .fields { margin-bottom: 14px; }
.lookup-btn { width: 100%; }
.new-note { color: #6b6752; }
.lookup-result { margin-top: 16px; }
.match-card { padding: 18px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); }
.match-card.is-empty { border-style: dashed; background: #faf8f2; }
.match-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.match-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 99px; background: #eaf7ee; color: #1d6b3a; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.match-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #1faa53; }
.match-source { color: #8a877d; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.match-card h3 { margin: 0 0 12px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.match-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.match-item { display: grid; gap: 2px; }
.match-item span { color: #8a877d; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.match-item strong { font-size: 13px; font-weight: 600; }
.match-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.match-actions .btn { min-height: 42px; font-size: 13px; }
.match-actions .link-button { margin-top: 0; }
.match-confirmed { display: inline-flex; align-items: center; gap: 6px; color: #1d6b3a; font-size: 13px; font-weight: 700; }
.match-confirmed::before { content: "✓"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #eaf7ee; }
.match-card > strong { display: block; margin-bottom: 4px; font-size: 16px; }
.match-card > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.match-verified { margin: 0 0 12px !important; color: #1d6b3a !important; font-size: 13px !important; font-weight: 700; line-height: 1.45; }
.match-warning { margin: 0 0 12px !important; color: #7a5a1c !important; font-size: 12.5px !important; line-height: 1.5; }

/* Registro de cliente nuevo */
.register-card { margin-top: 16px; }
.register-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.register-head h3 { margin: 4px 0 0; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.switch-row { position: relative; display: inline-flex; align-items: center; gap: 9px; margin: 0 0 16px; color: #56544d; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; user-select: none; }
.switch-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-row .switch { position: relative; width: 38px; height: 22px; border-radius: 99px; background: #d8d4c8; transition: background .16s; }
.switch-row .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .16s; }
.switch-row input:checked + .switch { background: var(--ink); }
.switch-row input:checked + .switch::after { transform: translateX(16px); }
.switch-row input:focus-visible + .switch { outline: 3px solid rgba(16, 16, 16, .18); outline-offset: 2px; }
.register-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.register-error { min-height: 18px; color: var(--danger); }
.register-error:empty { display: none; }
#register-skip { margin-top: 14px; }

.registered-card { margin-top: 16px; }
.registered-card .field-note:first-child { color: var(--ink); font-size: 14px; font-weight: 600; }
.registered-confirm-note { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: #eaf7ee; color: #1d6b3a; font-size: 13px; font-weight: 700; }
.contact-confirm { margin: 18px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #faf8f2; }
.contact-confirm-text { margin: 0; color: #56544d; font-size: 13px; line-height: 1.5; }
.contact-confirm-text strong { color: var(--ink); font-weight: 700; }
.contact-confirm-text .link-button { margin-left: 6px; }
.contact-edit { margin-top: 12px; }
.contact-edit .field { max-width: 320px; }
.contact-edit-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.contact-error { min-height: 16px; color: var(--danger); }
.contact-error:empty { display: none; }

/* Responsive */
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .aside { display: none; }
  .panel { max-width: none; margin: 0 auto; padding: 22px 20px 34px; }
  .options.services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-layout { grid-template-columns: 1fr; gap: 12px; }
  .service-menu-wrap { position: static; }
  .service-menu-title { display: none; }
  .service-menu { display: none; }
  .service-menu-mobile { display: grid; gap: 5px; margin-bottom: 10px; }
  .service-menu-mobile > span { color: #56544d; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .service-menu-mobile select {
    min-height: 44px;
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    color: var(--ink);
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
  }
  .options.multi { grid-template-columns: 1fr; }
  .options.multi .option { min-height: 58px; padding: 11px 12px; gap: 9px; }
  .options.multi .option-icon { flex-basis: 34px; width: 34px; height: 34px; }
  .options.multi .option-icon svg { width: 18px; height: 18px; }
  .options.multi .option-body strong { font-size: 13px; }
  .options.multi .option-body small { font-size: 11px; line-height: 1.35; }
  .services-head { margin-top: 4px; }
}

@media (max-width: 620px) {
  .topbar { min-height: 60px; padding: 9px 16px; }
  .brand img { width: 138px; }
  .top-link { font-size: 0; gap: 0; }
  .top-link svg { width: 18px; height: 18px; }
  .layout { min-height: calc(100dvh - 60px); }
  .aside-inner { padding: 22px 16px 20px; }
  .aside h1 { max-width: none; margin: 10px 0 10px; font-size: 28px; }
  .lede { font-size: 13.5px; }
  .panel { padding: 22px 20px 30px; }
  .panel-head { margin-bottom: 22px; }
  .step-head { margin-bottom: 20px; }
  .step h2 { max-width: none; font-size: 25px; }
  .step-hint { font-size: 13px; }
  .options.services, .options.compact { grid-template-columns: 1fr; }
  .day-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .day-cell { padding: 8px 2px; }
  .day-cell .d-num { font-size: 18px; }
  .time-card { padding: 14px; }
  .lookup-mode { width: 100%; }
  .mode-btn { flex: 1; }
  .lookup-card { padding: 14px; }
  .match-grid { grid-template-columns: 1fr; }
  .match-actions .btn, .register-actions .btn, .contact-edit-actions .btn { flex: 1 1 100%; }
  .option { padding: 14px; }
  .fields { grid-template-columns: 1fr; gap: 12px; }
  .phone-input { flex-direction: column; }
  .phone-input select { width: 100%; flex-basis: auto; }
  .field-date { max-width: none; }
  .review-row { grid-template-columns: 78px 1fr; font-size: 12.5px; }
  .form-nav { flex-wrap: wrap; gap: 8px; padding-top: 14px; }
  .form-error { order: -1; flex-basis: 100%; min-height: 0; }
  #back { flex: 0 0 auto; }
  #next { flex: 1; }
  .done-actions .btn { flex: 1 1 100%; }
  .code-box { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .step.active { animation: none; }
  .progress span, .option, .slot, .btn, .chip { transition: none; }
}
