.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: 14px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.consent.need span { color: var(--text); }
[hidden] { display: none !important; }
:root {
  --bg: #120a0e;
  --surface: #1d1117;
  --surface-2: #29171f;
  --line: #3a2430;
  --text: #f7ece4;
  --muted: #b89ea6;
  --accent: #ff4f6a;
  --accent-ink: #ffffff;
  --fill: #c8203f; /* filled buttons and chips: white text reads at 5.6:1 (Michael, 2026-10-16: black on light pink was hard to read) */
  --gold: #f5b84a;
  --ok: #4fd18b;
  --warn: #f5b84a;
  --danger: #ff6b6b;
  --radius: 16px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); }
body { min-height: 100dvh; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 48px; }

/* ── hero ── */
.hero { position: relative; padding: 28px 0 22px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -40% -30% auto auto; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,79,106,.35), transparent 65%); pointer-events: none;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; letter-spacing: .02em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand img.logo { width: auto; height: 40px; border-radius: 0; }
.hero h1 { font-family: var(--display); font-size: clamp(34px, 9vw, 48px); line-height: .98; margin: 22px 0 10px; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: var(--muted); margin: 0; line-height: 1.5; }
.facts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--muted); }
.chip b { color: var(--text); font-weight: 700; }

/* ── steps ── */
.step { margin-top: 26px; }
.step h2 { font-family: var(--display); font-size: 20px; margin: 0 0 12px; display: flex; align-items: baseline; gap: 10px; }
.step h2 .n { font-size: 13px; color: var(--accent-ink); background: var(--fill); border-radius: 999px; width: 22px; height: 22px; display: inline-grid; place-items: center; flex: none; transform: translateY(-2px); }
.step h2 small { font-family: var(--body); font-weight: 500; font-size: 13px; color: var(--muted); margin-left: auto; text-transform: capitalize; }

.days { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; width: 62px; scroll-snap-align: start; border: 1px solid var(--line); background: var(--surface);
  border-radius: 14px; padding: 10px 0 8px; display: grid; justify-items: center; gap: 2px; cursor: pointer;
}
.day .dw { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.day .dn { font-family: var(--display); font-size: 22px; font-weight: 700; }
.day .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.day[disabled] { opacity: .35; cursor: default; }
.day[disabled] .dot { background: transparent; }
.day[aria-pressed='true'] { background: var(--fill); border-color: var(--fill); color: var(--accent-ink); }
.day[aria-pressed='true'] .dw { color: var(--accent-ink); }
.day[aria-pressed='true'] .dot { background: var(--accent-ink); }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 0; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.slot[disabled] { text-decoration: line-through; opacity: .35; cursor: default; }
.slot[aria-pressed='true'] { background: var(--text); color: var(--bg); border-color: var(--text); }
.empty { color: var(--muted); font-size: 14px; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; }

/* ── form ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
label, .label { font-size: 13px; color: var(--muted); font-weight: 600; }
input:not([type]), input[type=text], input[type=search], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none; min-height: 46px;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 70px; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.seg button { border: 0; background: transparent; border-radius: 9px; padding: 10px 6px; cursor: pointer; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed='true'] { background: var(--surface-2); color: var(--text); }

.pay-box { background: var(--bg); border: 1px dashed var(--gold); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.pay-box .copy { flex: none; border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: 6px 10px; font-size: 12px; cursor: pointer; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.total .amt { font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--gold); }

.file { position: relative; border: 1px dashed var(--line); border-radius: 12px; padding: 16px; text-align: center; color: var(--muted); font-size: 14px; cursor: pointer; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file.has { border-color: var(--ok); color: var(--text); }

.btn { width: 100%; border: 0; border-radius: 14px; padding: 16px; font-weight: 800; font-size: 17px; letter-spacing: .2px; cursor: pointer; background: var(--fill); color: var(--accent-ink); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.small { width: auto; padding: 9px 14px; font-size: 13px; border-radius: 10px; }
.btn.wa { background: #25d366; color: #062b14; display: block; text-align: center; text-decoration: none; }

.summary { position: sticky; bottom: 0; margin: 26px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, transparent); }
.err { color: var(--danger); font-size: 14px; margin: 10px 0 0; min-height: 1em; }
.note { color: var(--muted); font-size: 13px; line-height: 1.5; }
.demo { background: var(--gold); color: #2a1a00; font-size: 12px; font-weight: 700; text-align: center; padding: 6px 12px; }

.done { text-align: center; padding: 40px 0 0; }
.done .big { font-size: 56px; }
.done h2 { font-family: var(--display); font-size: 28px; margin: 10px 0; }
.done dl { text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 22px 0; }
.done dt { color: var(--muted); font-size: 14px; }
.done dd { margin: 0; font-weight: 600; }

footer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 40px; line-height: 1.8; }
footer a { color: var(--text); }

/* ── admin ── */
.tabs { display: flex; gap: 6px; margin: 18px 0; overflow-x: auto; }
.tabs button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; cursor: pointer; white-space: nowrap; font-weight: 600; }
.tabs button[aria-pressed='true'] { background: var(--text); color: var(--bg); }
.list { display: grid; gap: 10px; }
.bk { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 6px; }
.bk .top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.bk .when { font-weight: 800; display: inline-block; }
.bk .when::first-letter, .cap::first-letter { text-transform: uppercase; }
.cap { display: inline-block; }
.badge { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.badge.pendiente { background: rgba(245,184,74,.15); color: var(--warn); }
.badge.confirmada { background: rgba(79,209,139,.15); color: var(--ok); }
.badge.cancelada { background: rgba(255,107,107,.15); color: var(--danger); }
.bk .meta { color: var(--muted); font-size: 14px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.rule { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rule:last-child { border-bottom: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.x { border: 0; background: var(--surface-2); border-radius: 8px; padding: 6px 10px; cursor: pointer; color: var(--danger); }
dialog { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 12px; max-width: min(92vw, 520px); }
dialog img, dialog iframe { width: 100%; max-height: 70vh; object-fit: contain; border: 0; border-radius: 10px; background: #000; }
dialog::backdrop { background: rgba(0,0,0,.7); }

/* teachers */
.teachers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tc { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px; text-align: left; cursor: pointer; display: flex; gap: 10px; align-items: center; }
.tc .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; background: var(--surface-2); color: var(--gold); flex: none; }
.tc b { display: block; }
.tc small { color: var(--muted); font-size: 12px; }
.tc[aria-pressed='true'] { border-color: var(--accent); background: rgba(255,79,106,.12); }
.tc[aria-pressed='true'] .av { background: var(--fill); color: var(--accent-ink); }

/* ── public site: landing, monthly sign-up ── */
.landing { text-align: center; padding-top: 34px; }
.landing::before { inset: -30% -40% auto -40%; width: auto; }
.logo-big { width: 132px; height: 132px; border-radius: 50%; box-shadow: 0 10px 40px rgba(255,79,106,.25); position: relative; }
.landing h1 { margin-top: 18px; }
.landing .facts { justify-content: center; }
.ctas { display: grid; gap: 10px; margin-top: 22px; }
.ctas .btn { display: block; text-align: center; text-decoration: none; }
.step > h2:only-child, .step > h2:first-child:not(:has(.n)) { margin-bottom: 12px; }
.week { display: grid; gap: 10px; }
.wday { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.wday h3 { font-family: var(--display); font-size: 16px; margin: 0 0 6px; color: var(--gold); }
.wclass { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; text-decoration: none; border-top: 1px solid var(--line); }
.wclass:first-of-type { border-top: 0; }
.wclass .wt { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; flex: none; width: 92px; }
.wclass b { display: block; }
.wclass small, .course small { display: block; color: var(--muted); font-size: 13px; }
.how p { margin: 0 0 10px; line-height: 1.5; }
.how p:last-child { margin: 0; }
.courses { display: grid; gap: 8px; }
.course { display: flex; gap: 12px; align-items: flex-start; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px; cursor: pointer; }
.course b { display: block; margin-bottom: 2px; }
.course .tick { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); margin-top: 1px; display: grid; place-items: center; }
.course[aria-pressed='true'] { border-color: var(--accent); background: rgba(255,79,106,.12); }
.course[aria-pressed='true'] .tick { background: var(--fill); border-color: var(--fill); }
.course[aria-pressed='true'] .tick::after { content: '✓'; color: var(--accent-ink); font-weight: 800; font-size: 14px; }
.wrapseg { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 420px) { .wrapseg { grid-template-columns: repeat(4, 1fr); } }
.landing .topbar { display: flex; justify-content: flex-end; position: relative; z-index: 1; margin: -10px 0 4px; }
.landing .topbar .btn { width: auto; }
.enter-dlg { width: min(92vw, 440px); padding: 16px; }
.enter-dlg .who { display: block; text-decoration: none; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 10px; }
.enter-dlg .who b { display: block; font-size: 18px; margin-bottom: 4px; }
.enter-dlg .who span { color: var(--muted); font-size: 14px; }
.landing .wordmark { width: min(84vw, 420px); height: auto; position: relative; display: block; margin: 8px auto 0; }
.legal .card h2 { font-family: var(--display); font-size: 18px; margin: 22px 0 8px; }
.legal .card p, .legal .card li { line-height: 1.6; color: var(--text); }
.legal .card ul { padding-left: 20px; margin: 0; }
.legal .card a { color: var(--accent); }
/* Presentation controls wrap at phone width and stay separate from school actions. */
.presentation-nav { margin-top: 12px; }
.presentation-nav .note { margin: 6px 0 10px; }
.presentation-roles { display: flex; flex-wrap: wrap; gap: 8px; }
.presentation-roles .btn { flex: 1; min-width: 0; padding: 10px 6px; font-size: 12px; }
#guideLibrary [hidden] { display: none !important; }
