/* Buitrago Barber — identidad: poste de barbero (rojo, blanco, azul), titulares condensados y color en bloques grandes. */
:root {
  --bg: #f2f4fa; --surface: #ffffff; --ink: #0b1630; --muted: #55617a; --line: #dce1ec; --field: #f7f8fc;
  --blue: #1b3fae; --blue-soft: #e4eaff; --red: #d41f2b; --on-red: #ffffff;
  --ok: #17803d; --bad: #c0262d; --header-bg: rgba(242,244,250,.9);
  --hero-a: #0f2a7a; --hero-b: #1b3fae; --hero-ink: #ffffff; --hero-muted: #c9d4ff;
  --shadow: 0 12px 32px -14px rgba(15,42,122,.35);
  --radius: 18px; --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pole: repeating-linear-gradient(-45deg, #d41f2b 0 12px, #ffffff 12px 24px, #1b3fae 24px 36px, #ffffff 36px 48px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080d1c; --surface: #111936; --ink: #eef1f9; --muted: #9aa6c4; --line: #222c52; --field: #0c1229;
    --blue: #7b98ff; --blue-soft: #1a2552; --red: #ff4b57; --on-red: #1a0508;
    --ok: #55c27d; --bad: #ff7d85; --header-bg: rgba(8,13,28,.9);
    --hero-a: #0a1647; --hero-b: #16286b; --shadow: 0 12px 32px -14px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #080d1c; --surface: #111936; --ink: #eef1f9; --muted: #9aa6c4; --line: #222c52; --field: #0c1229;
  --blue: #7b98ff; --blue-soft: #1a2552; --red: #ff4b57; --on-red: #1a0508;
  --ok: #55c27d; --bad: #ff7d85; --header-bg: rgba(8,13,28,.9);
  --hero-a: #0a1647; --hero-b: #16286b; --shadow: 0 12px 32px -14px rgba(0,0,0,.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--display); line-height: 1; margin: 0 0 .4em; letter-spacing: .01em; }
h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.sr { position: absolute; left: -9999px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
::selection { background: var(--red); color: var(--on-red); }
* { scrollbar-color: var(--line) transparent; }

/* ---------- encabezado ---------- */
header.top { position: sticky; top: 0; z-index: 20; background: var(--header-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top::before { content: ""; display: block; height: 5px; background: var(--pole); background-size: 68px 68px; }
header.top .wrap { display: flex; align-items: center; gap: 14px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 1.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.brand b { color: var(--red); font-weight: 800; }
/* Poste de barbero del logo: tapas, vidrio con brillo y rayas que suben */
.mini-pole { position: relative; flex: none; display: block; width: 20px; height: 36px; animation: pole-pop .7s cubic-bezier(.2, 1.5, .4, 1) both; transition: transform .25s cubic-bezier(.2, 1.5, .4, 1); }
.mini-pole::before { content: ""; position: absolute; z-index: 1; inset: 6px 3px; border-radius: 4px; border: 2px solid var(--ink);
  background: repeating-linear-gradient(-45deg, #d41f2b 0 4px, #fff 4px 8px, #1b3fae 8px 12px, #fff 12px 16px); background-size: 22.63px 22.63px;
  box-shadow: inset 3px 0 3px rgba(255, 255, 255, .6), inset -3px 0 3px rgba(0, 0, 0, .2); animation: pole-climb 1s linear infinite; }
.mini-pole i { position: absolute; z-index: 2; left: 0; right: 0; height: 9px; border-radius: 4px; border: 1.5px solid var(--ink);
  background: linear-gradient(#f9fafe, #c4ccdf 55%, #8e99b3); box-shadow: 0 2px 3px -1px rgba(0, 0, 0, .45), inset 0 1px 0 #fff; }
.mini-pole .c1 { top: 0; }
.mini-pole .c2 { bottom: 0; box-shadow: 0 -2px 3px -1px rgba(0, 0, 0, .35), inset 0 1px 0 #fff; }
.brand:hover .mini-pole, .brand:focus-visible .mini-pole { transform: rotate(-10deg) scale(1.12); }
.brand:hover .mini-pole::before { animation-duration: .4s; }
@keyframes pole-climb { to { background-position: 0 22.63px; } }
@keyframes pole-pop { from { transform: translateY(-8px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
nav a:hover { color: var(--ink); }

/* ---------- botones y formularios ---------- */
button, .btn { font: inherit; font-weight: 700; cursor: pointer; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 12px; text-decoration: none; display: inline-block; transition: transform .15s, border-color .15s, box-shadow .15s; }
button:hover, .btn:hover { border-color: var(--blue); }
button:active, .btn:active { transform: translateY(1px); }
button.primary, .btn.primary { background: var(--red); color: var(--on-red); border-color: var(--red); box-shadow: 0 10px 22px -12px var(--red); }
button.primary:hover, .btn.primary:hover { filter: brightness(1.06); }
button.primary:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; filter: none; }
button.danger { color: var(--bad); }
button.small { padding: 6px 12px; font-size: .85rem; border-radius: 10px; }
.big { padding: 14px 24px; font-size: 1.05rem; border-radius: 14px; }
.btn.ghost { background: transparent; color: var(--hero-ink); border-color: rgba(255,255,255,.45); }
.btn.ghost:hover { border-color: #fff; }
label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin: 12px 0 4px; }
input, select { width: 100%; font: inherit; color: var(--ink); background: var(--field); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.msg { min-height: 1.4em; margin: 10px 0 0; color: var(--bad); font-size: .9rem; font-weight: 600; }
.msg.ok { color: var(--ok); }

/* ---------- portada ---------- */
.hero { position: relative; overflow: hidden; color: var(--hero-ink); background: radial-gradient(900px 420px at 85% 20%, var(--hero-b), transparent 70%), linear-gradient(160deg, var(--hero-a), #091a54); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: center; padding-block: 56px 48px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--hero-muted); margin-bottom: 14px; }
.kicker::before { content: ""; width: 26px; height: 4px; border-radius: 2px; background: var(--red); }
.hero h1 { font-size: clamp(3.4rem, 11vw, 7.2rem); font-weight: 900; text-transform: uppercase; margin-bottom: .18em; }
.hero h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 2px #fff; }
.lede { font-size: 1.15rem; color: var(--hero-muted); max-width: 34ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 28px; }
.facts { display: flex; gap: 12px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.facts li { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-size: .88rem; color: var(--hero-muted); }
.facts strong { color: #fff; }

.hero-art { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero-art .disc { position: absolute; width: min(360px, 82%); aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.07); border: 2px dashed rgba(255,255,255,.22); animation: spin 40s linear infinite; }
.pole-wrap { position: relative; width: 92px; display: flex; flex-direction: column; align-items: center; filter: drop-shadow(0 24px 30px rgba(0,0,0,.35)); }
.pole-cap { position: relative; z-index: 2; width: 112px; height: 28px; border-radius: 14px; background: linear-gradient(#f9fafe, #c4ccdf 55%, #8e99b3); box-shadow: 0 5px 8px -3px rgba(0, 0, 0, .45), inset 0 2px 0 rgba(255, 255, 255, .9); }
.pole-cap:last-child { box-shadow: 0 -4px 8px -3px rgba(0, 0, 0, .35), inset 0 2px 0 rgba(255, 255, 255, .9); }
.pole { position: relative; z-index: 1; width: 92px; height: 270px; margin: -10px 0; border-radius: 10px; border: 4px solid #e9edf8; background: var(--pole); background-size: 136px 136px; animation: climb 2.4s linear infinite; box-shadow: inset 12px 0 18px rgba(255,255,255,.35), inset -12px 0 18px rgba(0,0,0,.25); }
.badge { position: absolute; right: 2%; bottom: 4%; width: 128px; height: 128px; }
.badge svg { width: 100%; height: 100%; animation: spin 18s linear infinite reverse; }
.badge text { font: 800 11.5px var(--body); letter-spacing: .18em; fill: #fff; }
.badge .core { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.badge .core svg { width: 46px; height: 46px; animation: none; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.marquee { overflow: hidden; border-block: 2px solid rgba(255,255,255,.18); background: rgba(0,0,0,.18); padding: 12px 0; }
.ticker { display: flex; width: max-content; gap: 28px; animation: slide 28s linear infinite; font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.ticker i { display: inline-block; width: 12px; height: 12px; background: var(--red); transform: rotate(45deg); align-self: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes climb { to { background-position: 0 136px; } }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .disc, .pole, .badge svg, .ticker, .mini-pole, .mini-pole::before { animation: none; } html { scroll-behavior: auto; } .brand:hover .mini-pole { transform: none; } }

/* ---------- reserva ---------- */
section { padding: 64px 0; }
.sec-head { margin-bottom: 28px; }
.sec-head .kicker { color: var(--red); }
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.steps { display: grid; gap: 34px; counter-reset: step; min-width: 0; }
.step { min-width: 0; }
.step[hidden] { display: none; }
.step h3 { display: flex; align-items: center; gap: 12px; font-size: 1.6rem; counter-increment: step; }
.step h3::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 800 1.1rem var(--display); }
.svc-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.svc { position: relative; text-align: left; padding: 18px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 10px; min-height: 176px; }
.svc svg { width: 52px; height: 52px; fill: none; stroke: var(--blue); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.svc .name { font: 800 1.45rem/1.05 var(--display); letter-spacing: .01em; }
.svc .meta { display: flex; justify-content: space-between; align-items: end; margin-top: auto; }
.svc .price { font: 800 1.6rem var(--display); color: var(--ink); }
.svc .dur { font-size: .82rem; font-weight: 700; color: var(--muted); background: var(--field); border-radius: 999px; padding: 3px 10px; }
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue); }
.svc[aria-pressed="true"] { border-color: var(--red); box-shadow: var(--shadow); background: linear-gradient(180deg, var(--surface), var(--blue-soft)); }
.svc[aria-pressed="true"]::after { content: ""; position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; }
.chip[aria-pressed="true"], .day[aria-pressed="true"], .slot[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font: 800 1rem var(--display); }
.day-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; }
.day { flex: 0 0 68px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 10px 0; border-radius: 16px; line-height: 1.15; }
.day .wd { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.day .dn { font: 800 1.9rem var(--display); }
.day .mo { font-size: .72rem; font-weight: 700; opacity: .7; }
.day:disabled { opacity: .35; cursor: not-allowed; background: transparent; border-style: dashed; }
.day .hoy { font-size: .65rem; font-weight: 800; color: var(--red); }
.day[aria-pressed="true"] .hoy { color: inherit; }
.slot-group + .slot-group { margin-top: 16px; }
.slot-group h4 { margin: 0 0 8px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { padding: 9px 14px; border-radius: 10px; font-variant-numeric: tabular-nums; }
.note { display: inline-flex; gap: 8px; align-items: center; font-size: .85rem; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 999px; padding: 4px 12px; margin-top: 12px; }

.summary { position: sticky; top: 88px; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px; box-shadow: 8px 8px 0 var(--ink); }
.summary .kicker { color: var(--red); margin-bottom: 10px; }
.summary dl { margin: 0 0 14px; display: grid; gap: 10px; }
.summary dl > div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.summary dt { color: var(--muted); font-weight: 600; font-size: .9rem; }
.summary dd { margin: 0; font-weight: 800; text-align: right; }
.summary dd.empty { color: var(--muted); font-weight: 600; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.summary .total strong { font: 900 2.4rem var(--display); }
.summary button.primary { width: 100%; }

/* ---------- mis citas ---------- */
.ticket { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.ticket:last-child { border-bottom: 0; }
.ticket .date { flex: 0 0 64px; text-align: center; border-radius: 14px; background: var(--ink); color: var(--bg); padding: 6px 0; line-height: 1; }
.ticket .date b { display: block; font: 900 1.9rem var(--display); }
.ticket .date span { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ticket .grow { flex: 1; min-width: 180px; }
.ticket .grow strong { font-size: 1.05rem; }

/* ---------- horario y ubicación ---------- */
.info-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.open-now { display: flex; align-items: center; gap: 12px; margin: 14px 0 18px; padding: 12px 16px; border-radius: 14px; background: var(--field); border: 2px solid var(--line); }
.open-now strong { display: block; font-size: 1.05rem; }
.open-now small { display: block; color: var(--muted); font-weight: 600; }
.open-now .dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); }
.open-now.open { border-color: var(--ok); }
.open-now.open .dot { background: var(--ok); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ok) 25%, transparent); }
.open-now.closed .dot { background: var(--bad); }
.hours { margin: 0 0 18px; display: grid; gap: 0; }
.hours > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.hours dt { color: var(--muted); font-weight: 600; }
.hours dd { margin: 0; font-weight: 800; text-align: right; }
.card.place { display: flex; flex-direction: column; gap: 14px; justify-content: space-between; background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); color: var(--hero-ink); border: 0; }
.card.place h2, .card.place p { color: inherit; }
.card.place svg { width: 54px; height: 54px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
footer { background: var(--ink); color: var(--bg); padding: 28px 0; font-size: .92rem; }
footer::before { content: ""; display: block; height: 6px; background: var(--pole); background-size: 68px 68px; margin: -28px 0 24px; }
footer a { color: inherit; }

/* ---------- componentes compartidos (admin, agenda) ---------- */
.card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.price { color: var(--red); font-weight: 800; }
dialog { background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); max-width: 420px; width: calc(100% - 32px); padding: 24px; box-shadow: 8px 8px 0 var(--ink); }
dialog::backdrop { background: rgba(5,10,30,.7); }
.tabs { display: flex; gap: 8px; margin-bottom: 8px; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 160px; }
.tag { font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--muted); }
.tag.confirmed { color: var(--blue); border-color: var(--blue); }
.tag.completed { color: var(--ok); border-color: var(--ok); }
.tag.cancelled, .tag.no_show { color: var(--bad); border-color: var(--bad); }
#toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 14px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100% - 32px); z-index: 50; box-shadow: var(--shadow); }
#toast.show { opacity: 1; }
.theme-toggle { padding: 5px 12px; font-size: .85rem; }

.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.kpi .v { font: 900 clamp(1.8rem, 3vw, 2.5rem) var(--display); overflow-wrap: anywhere; }
.kpi .l { color: var(--muted); font-size: .85rem; font-weight: 600; }
.two { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.bars .b { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; padding: 4px 0; font-size: .9rem; }
.bars .track { height: 10px; background: var(--field); border-radius: 99px; overflow: hidden; }
.bars .fill { height: 100%; background: var(--blue); border-radius: 99px; min-width: 2px; }
.bars .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.chart { width: 100%; height: 180px; display: block; }
.chart rect { fill: var(--blue); }
.chart rect:hover { fill: var(--red); }
.chart text { fill: var(--muted); font-size: 10px; }
.filters { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-bottom: 16px; }
.filters > div { width: 160px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 700; }

@media (max-width: 860px) {
  .hero-grid, .book-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 300px; order: -1; }
  .pole { height: 200px; }
  .summary { position: static; }
  section { padding: 44px 0; }
}

/* ---------- inicio: cómo funciona ---------- */
.how { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; padding: 0; margin: 0; counter-reset: how; }
.how-card { counter-increment: how; position: relative; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.how-card::before { content: counter(how); position: absolute; top: 14px; right: 18px; font: 900 3.4rem/1 var(--display); color: var(--blue-soft); }
.how-card svg { width: 56px; height: 56px; fill: none; stroke: var(--blue); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.how-card h3 { margin: 0; font-size: 1.7rem; font-weight: 800; }

/* ---------- recorrido de reserva ---------- */
.flow { padding-block: 28px 72px; min-height: 70vh; }
.flow h1 { font-size: clamp(2.4rem, 7vw, 3.8rem); font-weight: 900; margin: 6px 0 22px; }
.stepper { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 26px; }
.stepper li { flex: 1; min-width: 0; }
.stepper a, .stepper span:not(.n):not(.lbl) { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; border: 2px solid var(--line); font-weight: 800; font-size: .85rem; text-decoration: none; color: var(--muted); background: var(--surface); }
.stepper .n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--line); color: var(--ink); font: 800 .95rem var(--display); }
.stepper a.done { color: var(--ink); }
.stepper a.done .n { background: var(--blue); color: #fff; }
.stepper span.now { border-color: var(--red); color: var(--ink); }
.stepper span.now .n { background: var(--red); color: var(--on-red); }
.stepper .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picked { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pick { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px; background: var(--blue-soft); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9rem; }
.pick small { color: var(--blue); font-weight: 800; }
.back { margin: 0 0 4px; }
.backlink, .mini-link { color: var(--blue); font-weight: 800; text-decoration: none; }
.backlink:hover, .mini-link:hover { text-decoration: underline; }
.mini-link { font-size: .78rem; margin-left: 6px; }
.big-chips .chip { padding: 14px 22px; font-size: 1.1rem; }
.day-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
.day-grid .day { flex: none; padding: 16px 0; }
.confirm { max-width: 520px; position: static; }
.empty { text-align: center; padding: 36px 18px; display: grid; gap: 14px; justify-items: center; }
.empty p { margin: 0; }
@media (max-width: 560px) {
  .stepper .lbl { display: none; }
  .stepper span.now .lbl { display: inline; }
  .stepper li:has(span.now) { flex: 3; }
}

.day .cap { font-size: .62rem; font-weight: 800; color: var(--bad); margin-top: 2px; }
.hint { font-size: .82rem; margin: 10px 0 0; }
#auth-dialog [hidden] { display: none; }

/* ---------- formulario en una fila (campo + botón) ---------- */
.inline-form { display: grid; grid-template-columns: minmax(0, 260px) auto; gap: 12px; align-items: end; margin-bottom: 4px; }
.inline-form label { margin-top: 0; }
.inline-form button { height: 46px; }
.brand .sub { font-weight: 700; color: var(--muted); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.theme-toggle .tt-icon { width: 18px; height: 18px; flex: none; }

/* ---------- celular (la web se usa sobre todo desde el teléfono) ---------- */
@media (max-width: 640px) {
  header.top .wrap { flex-wrap: nowrap; gap: 8px; min-height: 56px; }
  .brand { font-size: 1.25rem; gap: 8px; min-width: 0; white-space: nowrap; }
  nav { flex-wrap: nowrap; gap: 8px; flex: none; }
  .nav-extra, .greet, .brand .sub, .theme-toggle .tt-label { display: none; }
  .theme-toggle { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
  .theme-toggle .tt-icon { width: 20px; height: 20px; }
  #auth-nav { display: flex; align-items: center; gap: 8px; }
  button.small { min-height: 40px; padding: 8px 14px; }
  .hero-grid { padding-block: 28px 24px; }
  .hero-art { order: 0; min-height: 200px; }
  .pole { height: 130px; width: 72px; }
  .pole-wrap { width: 72px; }
  .pole-cap { width: 88px; height: 22px; }
  .hero-art .disc { width: 220px; }
  .badge { width: 96px; height: 96px; right: 0; bottom: 0; }
  .cta-row .btn { flex: 1 1 100%; text-align: center; }
  .inline-form { grid-template-columns: 1fr; }
  .inline-form button { width: 100%; }
  .row { align-items: stretch; }
  .row .grow { flex-basis: 100%; }
  .row > button.small { flex: 1 1 0; }
  .filters > div { width: 100%; }
  .flow { padding-top: 18px; }
  .hours > div { flex-direction: column; gap: 2px; }
  .hours dd { text-align: left; }
}

/* ---------- contraseña olvidada y temporal ---------- */
.linkbtn { border: 0; background: none; box-shadow: none; color: var(--blue); padding: 8px 0; font-weight: 800; text-decoration: underline; border-radius: 6px; }
.forgot { display: grid; gap: 10px; background: var(--field); border-radius: 12px; padding: 12px; font-size: .92rem; }
.page-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.temp-box { margin-top: 14px; display: grid; gap: 10px; }
.temp-box p { margin: 0; }
.temp-pass { font: 900 2.4rem var(--display); letter-spacing: .14em; text-align: center; background: var(--field); border: 2px dashed var(--ink); border-radius: 12px; padding: 10px; user-select: all; overflow-wrap: anywhere; }
.temp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .temp-actions > * { flex: 1 1 100%; text-align: center; } }

.ticket { transition: opacity .25s, transform .25s, max-height .28s; max-height: 220px; }
.ticket.leaving { opacity: 0; transform: translateX(24px); max-height: 0; padding-block: 0; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .ticket { transition: none; } }

/* ---------- servicios: tarjeta del cliente y administración ---------- */
.svc .desc { font-size: .85rem; line-height: 1.35; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.svc-row:last-child { border-bottom: 0; }
.svc-row.off { opacity: .6; }
.svc-row .grow { flex: 1; min-width: 0; }
.svc-row .tag { margin-left: 8px; }
.svc-ico svg, .icon-opt svg { width: 34px; height: 34px; fill: none; stroke: var(--blue); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; display: block; }
.small-text { font-size: .85rem; }
.svc-form { padding: 6px 0 2px; }
.svc-form textarea { width: 100%; font: inherit; color: var(--ink); background: var(--field); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; resize: vertical; }
.svc-form select { appearance: auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.icon-opt { position: relative; margin: 0; cursor: pointer; }
.icon-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.icon-opt span { display: grid; justify-items: center; gap: 2px; padding: 8px 2px; border: 2px solid var(--line); border-radius: 12px; background: var(--field); transition: border-color .15s, background .15s; }
.icon-opt small { font-size: .7rem; font-weight: 700; color: var(--muted); }
.icon-opt input:checked + span { border-color: var(--red); background: var(--surface); box-shadow: 0 0 0 1px var(--red); }
.icon-opt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.svc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.svc-new { margin: 12px 0; background: var(--field); }
#add-service { margin-top: 12px; }
@media (max-width: 640px) { .svc-actions > * { flex: 1 1 100%; } .two-col { grid-template-columns: 1fr; } .svc-row > button { align-self: flex-start; } }

/* ---------- avisos por WhatsApp ---------- */
.check { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0 0; font-size: .92rem; font-weight: 500; color: var(--ink); cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; padding: 0; accent-color: var(--red); cursor: pointer; }
.check.big { font-size: 1rem; padding: 12px 0; border-bottom: 1px dashed var(--line); margin: 0; }
.check.big:last-of-type { border-bottom: 0; }
.prefs { margin-top: 22px; }
.prefs h3 { margin-bottom: 4px; }
.conn { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 6px; padding: 12px 14px; border-radius: 14px; background: var(--field); border: 2px solid var(--line); }
.conn .dot { flex: none; width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; background: var(--muted); }
.conn.on { border-color: var(--ok); }
.conn.on .dot { background: var(--ok); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ok) 25%, transparent); }
.btn.small { padding: 6px 12px; font-size: .85rem; border-radius: 10px; }
@media (max-width: 640px) { .row > .btn.small { flex: 1 1 0; text-align: center; min-height: 40px; display: flex; align-items: center; justify-content: center; } }

.row > .tag { align-self: center; }
.row.stack { display: block; }
.row.stack .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.row.stack .actions { display: flex; gap: 8px; margin-top: 10px; }
.row.stack .actions > * { flex: 1 1 0; text-align: center; min-height: 40px; display: flex; align-items: center; justify-content: center; }
.row.stack .tag { align-self: auto; }

/* bloques desplegables del panel */
.fold { margin-top: 12px; background: var(--card, var(--field)); border: 2px solid var(--line); border-radius: 16px; overflow: hidden; }
.fold > summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; min-height: 52px; font-weight: 800; cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: '▾'; margin-left: auto; transition: transform .2s; }
.fold[open] > summary::after { transform: rotate(180deg); }
.fold .count { order: 1; min-width: 28px; padding: 2px 10px; text-align: center; border-radius: 99px; background: var(--red); color: #fff; font-size: .85rem; }
.fold > summary::after { order: 2; }
.fold-body { padding: 0 16px 14px; max-height: 420px; overflow-y: auto; }
.stats-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.stats-mini > div { padding: 10px 6px; text-align: center; border-radius: 14px; background: var(--field); border: 2px solid var(--line); }
.stats-mini strong { display: block; font-size: 1.5rem; line-height: 1.1; }
.stats-mini span { font-size: .78rem; color: var(--muted); }
