/* Sistema visual de Turnos (carbón + un acento verde azulado + DM Sans). Ver diseño de etapa 2. */
:root {
  --bg: #12171A; --surface: #171E22; --line: #263035; --border: #5C7074; --data: #4F6F73;
  --muted: #8DA0A4; --text: #E6EDEE; --accent: #4DB6A9; --accent-tint: #162B2B; --steel: #6FA3B5;
  --err: #F28B82; --err-tint: #2A1B1C;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'DM Sans', system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
h1 { margin: 0; font-weight: 400; font-size: 34px; line-height: 40px; letter-spacing: -0.02em; }
h2 { margin: 0; font-weight: 500; font-size: 22px; line-height: 28px; }
p { margin: 0; }
a { color: var(--accent); }
.wrap { max-width: 430px; margin: 0 auto; padding: 28px 24px 120px; display: flex; flex-direction: column; gap: 22px; min-height: 100vh; }
.wrap.wide { max-width: 980px; padding-bottom: 48px; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 18px; }
.eyebrow { font-weight: 600; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.head { display: flex; align-items: center; gap: 12px; }
.logo { width: 44px; height: 44px; border-radius: 12px; background: var(--line); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 20px; flex: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row.between { justify-content: space-between; }
.time { font-weight: 300; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.btn { min-height: 52px; padding: 0 24px; border-radius: 16px; border: 1.5px solid transparent; font: 600 17px 'DM Sans', system-ui, sans-serif; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-secondary { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-danger { background: transparent; border-color: var(--border); color: var(--err); }
.btn.block { width: 100%; }
.btn.small-btn { min-height: 44px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn[disabled] { background: var(--line); border-color: transparent; color: var(--muted); cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--steel); outline-offset: 2px; }
.days { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.day { min-height: 68px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: 400 12px 'DM Sans', system-ui, sans-serif; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.day b { font-weight: 300; font-size: 22px; line-height: 26px; }
.day[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-tint); color: var(--accent); }
.day[disabled] { border-color: var(--line); background: transparent; color: #5C7074; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slot { min-height: 52px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: 300 20px 'DM Sans', system-ui, sans-serif; cursor: pointer; font-variant-numeric: tabular-nums; }
.slot[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-tint); color: var(--accent); font-weight: 400; }
.slot[disabled] { border-color: var(--line); background: transparent; color: #5C7074; text-decoration: line-through; cursor: not-allowed; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: 500 15px 'DM Sans', system-ui, sans-serif; cursor: pointer; }
.pill[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-tint); color: var(--accent); }
label.lbl { font-weight: 500; font-size: 15px; display: block; margin-bottom: 6px; }
.input { width: 100%; min-height: 56px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); padding: 0 14px; font: 400 17px 'DM Sans', system-ui, sans-serif; }
.input[aria-invalid="true"] { border-color: var(--err); }
.input[readonly] { background: var(--bg); }
.row .input { flex: 1 1 240px; width: auto; min-width: 0; }
.err-text { display: flex; gap: 6px; align-items: flex-start; color: var(--err); font-size: 14px; line-height: 20px; margin-top: 6px; }
.alert { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 12px 14px; font-size: 15px; line-height: 22px; }
.alert.error { background: var(--err-tint); }
.alert.error b { color: var(--err); font-weight: 500; }
.alert.info { border: 1px solid var(--line); background: var(--surface); }
.alert.ok { background: var(--accent-tint); color: var(--accent); font-weight: 500; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 14px 24px 18px; }
.bar > div { max-width: 382px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.dot { width: 12px; height: 12px; border-radius: 999px; background: var(--accent); display: inline-block; flex: none; }
.dot.hollow { background: transparent; border: 2px solid var(--steel); }
.dot.grey { background: var(--muted); }
.dot.red { background: var(--err); }
.demo-note { text-align: center; color: var(--muted); font-size: 12px; line-height: 16px; }
.sim { border: 1.5px dashed var(--steel); color: var(--steel); border-radius: 12px; padding: 10px 14px; font-size: 14px; line-height: 20px; }
/* Agenda del profesional */
.agenda { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.item { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item .t { width: 84px; font-size: 30px; line-height: 34px; }
.item .who { flex: 1 1 200px; min-width: 0; }
.item .who b { font-weight: 500; font-size: 17px; overflow-wrap: anywhere; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.empty { padding: 36px 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
@media (max-width: 520px) { .item .t { width: 100%; } .wrap.wide { padding: 24px 16px 40px; } }
@media (prefers-reduced-motion: no-preference) { .btn, .slot, .day, .pill { transition: border-color .12s, background-color .12s; } }
/* Navegación y configuración del profesional */
.stack { display: flex; flex-direction: column; gap: 16px; }
h3 { margin: 0; font-weight: 500; font-size: 18px; line-height: 24px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: 500 15px 'DM Sans', system-ui, sans-serif; cursor: pointer; }
.tab[aria-current="page"] { border-color: var(--accent); background: var(--accent-tint); color: var(--accent); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.steps li { display: flex; gap: 10px; align-items: flex-start; }
.steps .dot { margin-top: 6px; }
fieldset.plain { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.plain legend { padding: 0; }
.chk { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 500; }
.chk input { width: 18px; height: 18px; accent-color: var(--accent); }
.chk:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
input[type="time"], input[type="date"] { color-scheme: dark; }
.range { font-size: 26px; line-height: 30px; white-space: nowrap; }
