/* Punto Pádel · estilos (traducción 1:1 del Tailwind de la versión Next) */

/* ---------- Tokens ---------- */
:root {
  --ink: #000000;
  --surface: #16161a;
  --surface-raised: #1e1e24;
  --surface-sunken: #121215;
  --line: #2a2a31;
  --line-strong: #3a3a42;
  --fg: #f4f4f5;
  --fg-muted: #9a9aa3;
  --fg-faint: #5a5a63;
  --deposit: 251 191 36;   /* #FBBF24 */
  --danger: 248 113 113;   /* #F87171 */
  --whatsapp: #25d366;
  --whatsapp-ink: #062b14;
  --accent: 32 208 237;    /* celeste del logo (#20D0ED) */
  --lesson: 244 244 245;   /* clases en la grilla */

  --font-display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-xl: 12px;
  --r-2xl: 16px;
  --r-4xl: 28px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  color-scheme: dark;
}

/* ---------- Reset mínimo (equivalente a preflight) ---------- */
*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--line); margin: 0; padding: 0; }
html {
  background-color: var(--ink);
  scroll-padding-top: var(--safe-top);
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  line-height: 1.5;
}
body {
  min-height: 100dvh;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button, input { font: inherit; color: inherit; background: none; }
button { cursor: pointer; text-align: inherit; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
svg { display: block; flex-shrink: 0; }
[hidden] { display: none !important; }
h1, h2, p, dd, dt { font-size: inherit; font-weight: inherit; }

:focus-visible { outline: none; }
.ring-focus:focus-visible { box-shadow: 0 0 0 2px rgb(var(--accent)); }

/* ---------- Utilidades ---------- */
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.striped { background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgb(255 255 255 / 0.03) 6px 12px); }
.pt-safe { padding-top: var(--safe-top); }
.pb-safe { padding-bottom: var(--safe-bottom); }
.mt-6 { margin-top: 24px; }
.mono { font-family: var(--font-mono); }
.text-accent { color: rgb(var(--accent)); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@keyframes ring-pulse {
  0% { box-shadow: 0 0 0 0 rgb(var(--accent) / 0.45); }
  70% { box-shadow: 0 0 0 10px rgb(var(--accent) / 0); }
  100% { box-shadow: 0 0 0 0 rgb(var(--accent) / 0); }
}
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
@keyframes pulse { 50% { opacity: 0.5; } }

/* ---------- Layout ---------- */
.app { min-height: 100dvh; padding-bottom: 112px; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid rgb(42 42 49 / 0.7);
  background: rgb(0 0 0 / 0.85);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.topbar__inner {
  margin: 0 auto; max-width: 1152px; height: 64px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; border-radius: var(--r-xl); }
.brand:focus-visible { box-shadow: 0 0 0 2px rgb(var(--accent)); }
.brand__logo { display: block; height: 48px; width: auto; }
.demo-pill {
  align-self: center; border-radius: 999px; border: 1px solid rgb(var(--deposit) / 0.4);
  padding: 2px 8px; font-size: 11px; font-weight: 600; color: rgb(var(--deposit));
}

.topnav { display: none; align-items: center; gap: 4px; }
.topnav__item {
  display: flex; align-items: center; gap: 8px; border-radius: var(--r-xl);
  padding: 8px 12px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--fg-muted); transition: color .15s, background-color .15s;
}
.topnav__item:hover { color: var(--fg); }
.topnav__item:focus-visible { box-shadow: 0 0 0 2px rgb(var(--accent)); }
.topnav__item[aria-current="page"] { background: var(--surface); color: var(--fg); }

.topbar__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-xl);
  color: var(--fg-muted); transition: color .15s;
}
.icon-btn:hover { color: var(--fg); }
.wa-btn {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: var(--r-xl);
  background: var(--whatsapp); color: var(--whatsapp-ink); font-size: 13px; font-weight: 600; transition: filter .15s;
}
.wa-btn:hover { filter: brightness(1.1); }
.wa-btn__label { display: none; }

.main { margin: 0 auto; max-width: 1152px; padding: 0 16px; }

/* Encabezado del día */
.day-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 24px; }
.day-head__left { display: flex; align-items: flex-end; gap: 12px; }
.day-head__num {
  font-family: var(--font-display); font-size: 84px; line-height: 0.8;
  color: rgb(var(--accent)); transition: color .15s;
}
.day-head__text { padding-bottom: 4px; }
.day-head__weekday { font-family: var(--font-display); font-size: 26px; line-height: 1; letter-spacing: 0.025em; }
.day-head__month { margin-top: 4px; font-size: 13px; color: var(--fg-muted); text-transform: capitalize; }

/* Toggle de deporte */
.sport-toggle { display: flex; border-radius: var(--r-2xl); background: var(--surface); padding: 4px; }
.sport-toggle button {
  height: 40px; padding: 0 12px; border-radius: var(--r-xl); font-size: 13px; font-weight: 600;
  color: var(--fg-muted); white-space: nowrap; transition: color .15s, background-color .15s;
}
.sport-toggle button:hover { color: var(--fg); }
.sport-toggle button[aria-selected="true"] { color: var(--ink); }
.sport-toggle button:focus-visible { box-shadow: 0 0 0 2px var(--fg); }

/* Chips de día */
.day-chips {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -16px; padding: 0 16px 4px;
}
.day-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0;
  height: 60px; min-width: 58px; padding: 0 12px; border-radius: var(--r-2xl); scroll-snap-align: start;
  border: 1px solid var(--line); color: var(--fg-muted); transition: color .15s, background-color .15s;
}
.day-chip:hover { color: var(--fg); }
.day-chip[aria-selected="true"] { background: var(--fg); color: var(--ink); border-color: transparent; }
.day-chip:focus-visible { box-shadow: 0 0 0 2px rgb(var(--accent)); }
.day-chip__top { font-size: 11px; font-weight: 500; line-height: 16px; }
.day-chip__num { font-family: var(--font-mono); font-size: 18px; font-weight: 700; line-height: 1.25; }

/* ---------- Grilla de turnos ---------- */
.grid-scroll { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.slot-grid { display: grid; gap: 8px; }
.slot-grid__court { padding-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--fg-muted); }
.slot-grid__time {
  display: flex; flex-direction: column; justify-content: center; height: 64px;
  font-family: var(--font-mono); font-size: 13px; line-height: 20px; color: var(--fg);
}
.slot-grid__time span { font-size: 11px; line-height: 16px; color: var(--fg-faint); }

.slot {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  width: 100%; height: 64px; padding: 0 12px; border-radius: var(--r-xl); text-align: left;
  transition: all .15s cubic-bezier(.4,0,.2,1); min-width: 0;
}
.slot:focus-visible { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px rgb(var(--accent)); }
button.slot:active { transform: scale(0.97); }
.slot__row { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; line-height: 20px; }
.slot__sub { font-size: 11px; line-height: 16px; color: var(--fg-muted); }

.slot--free { border: 1px solid rgb(var(--accent) / 0.3); }
.slot--free:hover { border-color: rgb(var(--accent)); background: rgb(var(--accent) / 0.1); }
.slot--free .slot__price { font-family: var(--font-mono); font-size: 15px; font-weight: 700; line-height: 22px; color: rgb(var(--accent)); }

.slot--match { background: rgb(var(--accent)); color: var(--ink); animation: ring-pulse 1.8s ease-out infinite; }
.slot--match .slot__title { font-family: var(--font-display); font-size: 19px; line-height: 1; letter-spacing: 0.025em; }
.slot--match .slot__sub { margin-top: 4px; font-weight: 600; color: inherit; opacity: .75; }
.ping { position: relative; display: flex; width: 8px; height: 8px; }
.ping::before, .ping::after { content: ''; position: absolute; inset: 0; border-radius: 999px; background: var(--ink); }
.ping::before { opacity: .6; animation: ping 1s cubic-bezier(0,0,.2,1) infinite; }

.slot--hold { border: 1px dashed rgb(var(--accent)); background: rgb(var(--accent) / 0.1); }
.slot--hold .slot__row, .slot--mine .slot__row { color: rgb(var(--accent)); }
.slot--hold .slot__sub { font-family: var(--font-mono); }
.slot--mine { border: 1px solid rgb(var(--accent)); background: rgb(var(--accent) / 0.15); }

.slot--deposit { cursor: not-allowed; border: 1px solid rgb(var(--deposit) / 0.25); background: rgb(var(--deposit) / 0.07); }
.slot--deposit .slot__row { color: rgb(var(--deposit)); }
.slot--deposit .slot__sub { color: rgb(var(--deposit) / 0.6); }

.slot--class { border: 1px solid rgb(var(--lesson) / 0.22); background: rgb(var(--lesson) / 0.07); }
.slot--class:hover { border-color: rgb(var(--lesson) / 0.5); }
.slot--class .slot__row { color: var(--fg); }
.slot--locked { cursor: not-allowed; background-color: var(--surface-sunken); color: var(--fg-faint); }
.slot--past { opacity: .5; }

.legend { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12px; line-height: 16px; color: var(--fg-muted); }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; }

.skeleton { display: grid; grid-template-columns: 52px 1fr 1fr; gap: 8px; }
.skeleton div { height: 64px; }
.skeleton div.sk { border-radius: var(--r-xl); background: var(--surface); animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite; }

.alert {
  border-radius: var(--r-2xl); border: 1px solid rgb(var(--danger) / 0.3); background: rgb(var(--danger) / 0.1); padding: 20px;
}
.alert__title { font-weight: 600; color: rgb(var(--danger)); }
.alert__text { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--fg-muted); }
.alert__retry { margin-top: 12px; font-size: 14px; font-weight: 600; text-decoration: underline; }

.empty { border-radius: var(--r-2xl); border: 1px dashed var(--line); padding: 32px; text-align: center; }
.empty__title { font-weight: 600; }
.empty__text { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--fg-muted); }

/* ---------- Lobby ---------- */
.lobby { margin-top: 40px; }
.lobby__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lobby__title { font-family: var(--font-display); font-size: 28px; line-height: 1; letter-spacing: 0.025em; }
.lobby__chip { border-radius: 999px; border: 1px solid var(--line); padding: 4px 10px; font-size: 11px; line-height: 16px; color: var(--fg-muted); white-space: nowrap; }
.lobby .empty { margin-top: 16px; padding: 20px; text-align: left; }
.lobby__list { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.lobby__item {
  display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px; text-align: left;
  border-radius: var(--r-2xl); border: 1px solid rgb(var(--accent) / 0.3); background: var(--surface);
  transition: border-color .15s;
}
.lobby__item:hover { border-color: rgb(var(--accent)); }
.lobby__item:focus-visible { box-shadow: 0 0 0 2px rgb(var(--accent)); }
.lobby__badge {
  display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: var(--r-xl);
  background: rgb(var(--accent)); color: var(--ink); font-family: var(--font-display); font-size: 22px;
}
.lobby__body { min-width: 0; flex: 1; }
.lobby__body strong { display: block; font-size: 15px; font-weight: 600; }
.lobby__body span { display: block; font-size: 13px; color: var(--fg-muted); }
.lobby__item svg { color: var(--fg-faint); }

/* ---------- Bottom nav ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  border-top: 1px solid var(--line); background: rgb(0 0 0 / 0.95);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.bottomnav__grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.bottomnav__item {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0;
  font-size: 11px; font-weight: 500; line-height: 16px; color: var(--fg-faint);
}
.bottomnav__item[aria-current="page"] { color: rgb(var(--accent)); }
.bottomnav__item.is-soon { opacity: .5; }

/* ---------- Sheet (bottom sheet en mobile, modal desde 1024px) ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet__backdrop {
  position: absolute; inset: 0; background: rgb(0 0 0 / 0.7);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .3s;
}
.sheet__panel {
  position: relative; width: 100%; max-height: 92dvh; overflow-y: auto; outline: none;
  border: 1px solid var(--line); border-radius: var(--r-4xl) var(--r-4xl) 0 0; background: var(--surface);
  padding-bottom: calc(var(--safe-bottom) + 20px);
  transform: translateY(100%); transition: transform .3s ease-out, opacity .3s ease-out;
}
.sheet.is-visible .sheet__backdrop { opacity: 1; }
.sheet.is-visible .sheet__panel { transform: translateY(0); }
.sheet__handle { display: flex; justify-content: center; padding-top: 12px; }
.sheet__handle span { width: 40px; height: 6px; border-radius: 999px; background: var(--line); }
.sheet__close {
  position: absolute; right: 16px; top: 16px; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 999px; background: var(--surface-raised); color: var(--fg-muted); transition: color .15s;
}
.sheet__close:hover { color: var(--fg); }
.sheet__close:focus-visible { box-shadow: 0 0 0 2px rgb(var(--accent)); }

.sh-head { padding: 16px 24px 0; }
.sh-head__day { font-size: 13px; color: var(--fg-muted); }
.sh-head__court { margin-top: 4px; font-family: var(--font-display); font-size: 34px; line-height: 1; letter-spacing: 0.025em; }
.sh-head__time { margin-top: 8px; font-family: var(--font-mono); font-size: 15px; color: rgb(var(--accent)); }

.sh-px { margin-left: 24px; margin-right: 24px; }
.sh-actions { margin-top: 24px; padding: 0 24px; }

.price-box {
  margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden;
  border-radius: var(--r-2xl); border: 1px solid var(--line); background: var(--line);
}
.price-box > div { background: var(--surface); padding: 16px; }
.price-box dt { font-size: 12px; line-height: 16px; color: var(--fg-muted); }
.price-box dd { margin-top: 4px; font-family: var(--font-mono); font-size: 20px; line-height: 28px; font-weight: 700; }
.price-box .price-box__rest {
  grid-column: span 2; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-size: 13px;
}
.price-box .price-box__rest dd { margin: 0; font-size: 13px; line-height: 20px; font-weight: 400; }

.guest { margin-top: 16px; display: grid; gap: 12px; }
.input {
  height: 48px; width: 100%; padding: 0 16px; border-radius: var(--r-xl);
  border: 1px solid var(--line); background: var(--surface-sunken); font-size: 15px; color: var(--fg);
}
.input::placeholder { color: var(--fg-faint); }
.input:focus { border-color: rgb(var(--accent)); outline: none; }

.match-box { margin-top: 16px; padding: 16px; border-radius: var(--r-2xl); border: 1px solid var(--line); transition: border-color .15s, background-color .15s; }
.match-box.is-on { border-color: rgb(var(--accent) / 0.4); background: rgb(var(--accent) / 0.05); }
.match-box__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.match-box__title { font-size: 15px; font-weight: 600; }
.match-box__sub { font-size: 13px; color: var(--fg-muted); }
.collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease-out; }
.collapse.is-open { grid-template-rows: 1fr; }
.collapse > div { overflow: hidden; }
.collapse__inner { padding-top: 20px; }
.label { font-size: 13px; font-weight: 500; }
.hint { font-size: 12px; line-height: 16px; color: var(--fg-faint); }
.levels { margin: 8px -4px 0; padding: 0 4px 4px; display: flex; gap: 8px; overflow-x: auto; }
.level {
  height: 40px; flex-shrink: 0; padding: 0 16px; border-radius: var(--r-xl); font-size: 14px; font-weight: 600;
  border: 1px solid var(--line); color: var(--fg-muted); transition: all .15s;
}
.level:hover { color: var(--fg); }
.level[aria-pressed="true"] { background: rgb(var(--accent)); border-color: transparent; color: var(--ink); }
.level:focus-visible { box-shadow: 0 0 0 2px rgb(var(--accent)); }
.level-note { margin-top: 8px; line-height: 1.625; }
.missing-row { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; }

.switch {
  position: relative; flex-shrink: 0; width: 48px; height: 28px; border-radius: 999px;
  background: var(--line); transition: background-color .2s;
}
.switch::after {
  content: ''; position: absolute; left: 4px; top: 4px; width: 20px; height: 20px; border-radius: 999px;
  background: var(--fg-muted); transition: transform .2s, background-color .2s;
}
.switch[aria-checked="true"] { background: rgb(var(--accent)); }
.switch[aria-checked="true"]::after { transform: translateX(20px); background: var(--ink); }
.switch:focus-visible { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px rgb(var(--accent)); }

.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-xl);
  border: 1px solid var(--line); color: var(--fg); transition: all .15s;
}
.stepper button:hover { border-color: rgb(var(--accent) / 0.4); }
.stepper button:disabled { opacity: .3; }
.stepper button:focus-visible { box-shadow: 0 0 0 2px rgb(var(--accent)); }
.stepper output { width: 32px; text-align: center; font-family: var(--font-display); font-size: 30px; line-height: 1; color: rgb(var(--accent)); }

.form-error {
  margin-bottom: 12px; padding: 12px 16px; border-radius: var(--r-xl);
  border: 1px solid rgb(var(--danger) / 0.3); background: rgb(var(--danger) / 0.1); font-size: 14px; line-height: 20px; color: rgb(var(--danger));
}
.btn-primary {
  display: flex; align-items: center; justify-content: space-between; width: 100%; height: 56px; padding: 0 20px;
  border-radius: var(--r-2xl); background: rgb(var(--accent)); color: var(--ink); font-size: 15px; font-weight: 700;
  transition: all .15s;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: .6; }
.btn-primary:focus-visible { box-shadow: 0 0 0 2px var(--fg); }
.btn-primary .mono { font-weight: 700; }
.btn-primary--center { justify-content: center; gap: 8px; }
.btn-outline {
  width: 100%; height: 56px; border-radius: var(--r-2xl); border: 1px solid var(--line);
  font-size: 15px; font-weight: 600; text-align: center; transition: border-color .15s;
}
.btn-outline:hover { border-color: rgb(var(--accent)); }
.btn-ghost { height: 48px; border-radius: var(--r-2xl); font-size: 14px; font-weight: 500; color: var(--fg-muted); text-align: center; transition: color .15s; }
.btn-ghost:hover { color: var(--fg); }
.small-note { margin-top: 12px; text-align: center; font-size: 12px; line-height: 16px; color: var(--fg-faint); }

.done { margin-top: 24px; padding: 20px; border-radius: var(--r-2xl); background: rgb(var(--accent)); color: var(--ink); }
.done__title { margin-top: 12px; font-family: var(--font-display); font-size: 28px; line-height: 1; letter-spacing: 0.025em; }
.done__text { margin-top: 8px; font-size: 14px; line-height: 20px; font-weight: 500; opacity: .8; }

.expired { margin-top: 24px; padding: 20px; border-radius: var(--r-2xl); border: 1px solid var(--line); }
.expired svg { color: var(--fg-muted); }
.expired__title { margin-top: 12px; font-size: 18px; line-height: 28px; font-weight: 600; }
.expired__text { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--fg-muted); }

.hold { margin-top: 24px; padding: 20px; text-align: center; border-radius: var(--r-2xl); border: 1px dashed rgb(var(--accent)); background: rgb(var(--accent) / 0.1); }
.hold__top { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--fg-muted); }
.hold__clock { margin-top: 4px; font-family: var(--font-mono); font-size: 44px; font-weight: 700; line-height: 1; color: rgb(var(--accent)); }
.hold__text { margin-top: 12px; font-size: 13px; color: var(--fg-muted); }
.hold__text b { font-weight: 600; color: var(--fg); }
.hold-note { margin-top: 16px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-muted); }
.hold-note svg { color: rgb(var(--accent)); }
.stack { display: grid; gap: 12px; }
.info-box { padding: 12px 16px; border-radius: var(--r-xl); border: 1px solid var(--line); font-size: 14px; line-height: 20px; color: var(--fg-muted); }
.err-text { font-size: 14px; line-height: 20px; color: rgb(var(--danger)); }

.match-banner { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; padding: 16px; border-radius: var(--r-2xl); background: rgb(var(--accent)); color: var(--ink); }
.match-banner__title { font-family: var(--font-display); font-size: 30px; line-height: 1; letter-spacing: 0.025em; }
.match-banner__level { margin-top: 4px; font-size: 13px; font-weight: 600; opacity: .75; }
.players { margin-top: 20px; }
.players__label { font-size: 13px; color: var(--fg-muted); }
.avatars { margin-top: 8px; display: flex; flex-wrap: wrap; }
.avatars > span + span { margin-left: -8px; }
.avatar {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px;
  border: 2px solid var(--surface); background: var(--line); font-size: 11px; font-weight: 600;
}
.avatar--empty { border-style: dashed; border-color: var(--line); background: var(--surface-raised); color: var(--fg-faint); }
.cost-row { margin-top: 16px; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); font-size: 14px; }
.cost-row span:first-child { color: var(--fg-muted); }
.cost-row .mono { font-weight: 700; }
.center-note { text-align: center; font-size: 14px; color: var(--fg-muted); }

/* ---------- Breakpoints ---------- */

/* ---------- Cuenta, formularios y componentes nuevos ---------- */
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 20px; }
.center { text-align: center; }
.text-link { color: rgb(var(--accent)); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.hide-xs { display: none; }

.account-btn {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border-radius: var(--r-xl);
  border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--fg); transition: border-color .15s;
}
.account-btn:hover { border-color: rgb(var(--accent)); }
.account-btn:focus-visible { box-shadow: 0 0 0 2px rgb(var(--accent)); }
.account-btn__label { display: none; }
.avatar--sm { width: 26px; height: 26px; border: 0; background: rgb(var(--accent)); color: var(--ink); font-size: 11px; font-weight: 700; }
.avatar--lg { width: 64px; height: 64px; border: 0; background: rgb(var(--accent)); color: var(--ink); font-family: var(--font-display); font-size: 26px; font-weight: 400; }

.main--narrow { max-width: 720px; }
.card { padding: 20px; border-radius: var(--r-2xl); border: 1px solid var(--line); background: var(--surface); }
.card__title { font-family: var(--font-display); font-size: 24px; line-height: 1; letter-spacing: .01em; }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .btn-primary { margin-top: 4px; }
.form .form-error { margin: 0; }

.seg { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-2xl); background: var(--surface-sunken); border: 1px solid var(--line); }
.seg button { flex: 1; height: 40px; border-radius: var(--r-xl); font-size: 14px; font-weight: 600; color: var(--fg-muted); text-align: center; transition: all .15s; }
.seg button:hover { color: var(--fg); }
.seg button[aria-selected="true"] { background: var(--fg); color: var(--ink); }
.seg button:focus-visible { box-shadow: 0 0 0 2px rgb(var(--accent)); }
.seg--wide { max-width: 520px; }

.levels--wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.levels--wrap .level { height: 36px; padding: 0 12px; font-size: 13px; }
.lvl-pick + .lvl-pick { margin-top: 14px; }
.lvl-pick .levels { margin-top: 8px; }

.as-user { margin-top: 16px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fg-muted); }
.as-user b { color: var(--fg); font-weight: 600; }
.guest .hint { margin-top: -2px; }

.profile-card { display: flex; align-items: center; gap: 16px; }
.profile-card__name { font-size: 20px; font-weight: 700; }
.profile-card__phone { font-size: 14px; color: var(--fg-muted); }
.profile-card .pill { margin-top: 6px; }

.pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line-strong); font-size: 11px; font-weight: 600; line-height: 16px; color: var(--fg-muted);
}
.pill--pending_deposit { border-color: rgb(var(--deposit) / .5); color: rgb(var(--deposit)); }
.pill--deposit_paid, .pill--confirmed { border-color: rgb(var(--accent) / .5); color: rgb(var(--accent)); }
.pill--cancelled, .pill--no_show { border-color: rgb(var(--danger) / .4); color: rgb(var(--danger)); }
.pill--admin { border-color: rgb(var(--accent) / .5); color: rgb(var(--accent)); }

.mybk-list { display: grid; gap: 8px; }
.mybk { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r-xl); background: var(--surface-sunken); border: 1px solid var(--line); }
.mybk__when { font-size: 15px; font-weight: 600; }
.mybk__where { font-size: 13px; color: var(--fg-muted); }
.mybk--past { opacity: .6; }
.mybk-past { margin-top: 14px; }
.mybk-past summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--fg-muted); margin-bottom: 8px; }
.btn-ghost--full { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; }

.btn-danger {
  width: 100%; height: 52px; border-radius: var(--r-2xl); background: rgb(var(--danger)); color: var(--ink);
  font-size: 15px; font-weight: 700; text-align: center; transition: filter .15s;
}
.btn-danger:hover { filter: brightness(1.08); }
.btn-danger:disabled { opacity: .6; }
.btn-danger:focus-visible { box-shadow: 0 0 0 2px var(--fg); }

.mini-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: var(--r-xl); cursor: pointer;
  border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--fg); white-space: nowrap; transition: border-color .15s, background-color .15s;
}
.mini-btn:hover { border-color: rgb(var(--accent)); }
.mini-btn:focus-visible, .mini-btn:focus-within { box-shadow: 0 0 0 2px rgb(var(--accent)); }
.mini-btn--danger { color: rgb(var(--danger)); }
.mini-btn--danger:hover { border-color: rgb(var(--danger)); }
.mini-btn--accent { background: rgb(var(--accent)); border-color: transparent; color: var(--ink); }
.mini-btn--accent:hover { filter: brightness(1.1); }
.icon-btn--danger:hover { color: rgb(var(--danger)); }
.icon-btn--solid { width: 34px; height: 34px; background: rgb(0 0 0 / .85); color: var(--fg); }

.toast {
  position: fixed; left: 50%; bottom: calc(88px + var(--safe-bottom)); z-index: 60; transform: translate(-50%, 12px);
  max-width: calc(100% - 32px); padding: 12px 16px; border-radius: var(--r-xl);
  background: var(--fg); color: var(--ink); font-size: 14px; font-weight: 600; opacity: 0; transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Footer con ubicación */
.site-footer { margin-top: 56px; border-top: 1px solid var(--line); background: var(--surface-sunken); }
.footer__inner { margin: 0 auto; max-width: 1152px; padding: 32px 16px 8px; display: grid; gap: 24px; }
.footer__logo { display: block; height: 104px; width: auto; margin-left: -6px; }
.footer__tag { margin-top: 4px; font-size: 13px; color: var(--fg-muted); }
.footer__addr { margin-top: 18px; display: flex; gap: 10px; font-size: 15px; line-height: 22px; }
.footer__addr svg { margin-top: 2px; color: rgb(var(--accent)); }
.footer__hours { margin-top: 12px; display: grid; gap: 6px; font-size: 13px; color: var(--fg-muted); }
.footer__hours li { display: flex; align-items: center; gap: 10px; }
.footer__actions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.footer__actions .link-btn { margin-top: 8px; }
.footer__map { overflow: hidden; border-radius: var(--r-2xl); border: 1px solid var(--line); background: var(--surface); min-height: 240px; }
.footer__map iframe { display: block; width: 100%; height: 100%; min-height: 240px; border: 0; filter: grayscale(.4) invert(.9) hue-rotate(180deg); }
.footer__legal { margin: 0 auto; max-width: 1152px; padding: 16px; font-size: 12px; color: var(--fg-faint); }

/* Panel admin */
.adm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.adm-bar .hint { max-width: 52ch; }
.adm-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.abk-list { margin-top: 10px; display: grid; gap: 8px; }
.abk {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 14px; border-radius: var(--r-2xl); border: 1px solid var(--line); background: var(--surface);
}
.abk--off { opacity: .55; }
.abk__time { display: flex; flex-direction: column; font-family: var(--font-mono); font-size: 15px; font-weight: 700; }
.abk__time small { font-size: 12px; font-weight: 500; color: var(--fg-faint); }
.abk__who { font-size: 15px; font-weight: 600; }
.abk__meta { font-size: 13px; color: var(--fg-muted); }
.abk__tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.abk__actions { grid-column: 1 / -1; display: flex; gap: 8px; }

.day-chips--sheet { margin: 0 -24px; padding: 0 24px 4px; }
.free-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.free-slot {
  display: flex; flex-direction: column; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-xl);
  border: 1px solid rgb(var(--accent) / .3); font-size: 15px; font-weight: 700; color: rgb(var(--accent)); transition: all .15s;
}
.free-slot small { font-size: 11px; font-weight: 500; color: var(--fg-muted); }
.free-slot:hover { border-color: rgb(var(--accent)); }
.free-slot[aria-pressed="true"] { background: rgb(var(--accent)); border-color: transparent; color: var(--ink); }
.free-slot[aria-pressed="true"] small { color: var(--ink); opacity: .75; }
.free-slot:focus-visible { box-shadow: 0 0 0 2px rgb(var(--accent)); }

.aprod-list { display: grid; gap: 8px; }
.aprod {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px; border-radius: var(--r-2xl); border: 1px solid var(--line); background: var(--surface);
}
.aprod__thumb {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden;
  border-radius: var(--r-xl); background-color: var(--surface-sunken); color: rgb(var(--accent) / .7);
}
.aprod__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aprod__name { font-size: 15px; font-weight: 600; }
.aprod__meta { font-size: 13px; color: var(--fg-muted); }
.aprod--out .aprod__name { color: var(--fg-muted); }
.aprod__toggles { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.aprod__actions { display: flex; gap: 2px; }
.tgl {
  display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--fg-muted); transition: all .15s;
}
.tgl:hover { color: var(--fg); }
.tgl[aria-pressed="true"] { background: rgb(var(--accent)); border-color: transparent; color: var(--ink); }
.tgl--warn[aria-pressed="true"] { background: rgb(var(--danger)); }
.tgl:focus-visible { box-shadow: 0 0 0 2px rgb(var(--accent)); }

.photo-field { display: flex; align-items: center; gap: 14px; }
.photo-field__preview {
  position: relative; display: grid; place-items: center; flex-shrink: 0; width: 96px; height: 96px; overflow: hidden;
  border-radius: var(--r-xl); border: 1px dashed var(--line); background-color: var(--surface-sunken); color: var(--fg-faint);
}
.photo-field__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-field__btns { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: var(--r-xl); border: 1px solid var(--line); }
.switch-row b { display: block; font-size: 14px; font-weight: 600; }
.switch-row small { display: block; font-size: 12px; color: var(--fg-muted); }

.adm-tile { position: relative; display: grid; }
.adm-tile > .tile { grid-area: 1 / 1; }
.adm-tile__actions { grid-area: 1 / 1; align-self: start; justify-self: end; display: flex; gap: 6px; padding: 10px; z-index: 1; }

.skeleton--cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.skeleton--cards div { height: 220px; }

@media (min-width: 480px) {
  .hide-xs { display: grid; }
}

@media (min-width: 640px) {
  .account-btn__label { display: inline; }
  .footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: stretch; }
  .wa-btn__label { display: inline; }
  .sport-toggle button { padding: 0 16px; }
}


/* ---------- Páginas: Partidos, Shop, Galería ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 28px; }
.page-title { font-family: var(--font-display); font-size: 56px; line-height: .9; letter-spacing: 0.01em; }
.page-sub { margin-top: 10px; max-width: 46ch; font-size: 14px; line-height: 20px; color: var(--fg-muted); }
.link-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; height: 44px; padding: 0 16px;
  border-radius: var(--r-xl); border: 1px solid var(--line); font-size: 14px; font-weight: 600; transition: border-color .15s;
}
.link-btn:hover { border-color: rgb(var(--accent)); }
.link-btn:focus-visible { box-shadow: 0 0 0 2px rgb(var(--accent)); }

.pcount { font-size: 13px; color: var(--fg-muted); }
.pday { margin-top: 20px; }
.pday__head { display: flex; align-items: center; gap: 12px; }
.pday__num { font-family: var(--font-display); font-size: 40px; line-height: 1; color: rgb(var(--accent)); min-width: 2ch; }
.pday__head > span:last-child { display: flex; flex-direction: column; }
.pday__head strong { font-size: 15px; font-weight: 600; }
.pday__head > span:last-child > span { font-size: 13px; color: var(--fg-muted); }
.pday .lobby__list { margin-top: 10px; }
.skeleton--list { grid-template-columns: 1fr; }
.skeleton--list div { height: 80px; }

.cta-card { padding: 20px; border-radius: var(--r-2xl); border: 1px solid var(--line); background: var(--surface); }
.cta-card p { margin: 10px 0 18px; font-size: 14px; line-height: 20px; color: var(--fg-muted); }

/* Shop */
.shop-cats { margin: 20px -16px 0; padding: 0 16px 4px; }
.shop-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.product { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-2xl); border: 1px solid var(--line); background: var(--surface); }
.product__media {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3;
  background-color: var(--surface-sunken); color: rgb(var(--accent) / 0.7);
}
.product__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product__badges { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.pbadge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  background: rgb(0 0 0 / .8); border: 1px solid var(--line-strong); color: var(--fg); font-size: 11px; font-weight: 700;
}
.pbadge--new { background: rgb(var(--accent)); border-color: transparent; color: var(--ink); }
.pbadge--out { background: rgb(var(--danger) / .15); border-color: rgb(var(--danger) / .4); color: rgb(var(--danger)); }
.product--out .product__media > svg, .product--out .product__media img { opacity: .35; }
.product--out .product__name, .product--out .product__price { color: var(--fg-muted); }
.product__soldout { font-size: 13px; font-weight: 600; color: rgb(var(--danger)); }
.product__body { display: flex; flex: 1; flex-direction: column; padding: 14px; }
.product__name { font-size: 15px; font-weight: 600; line-height: 20px; }
.product__detail { margin-top: 4px; font-size: 13px; line-height: 18px; color: var(--fg-muted); }
.product__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.product__price { font-family: var(--font-mono); font-size: 16px; font-weight: 700; }
.product__buy {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: var(--r-xl);
  background: rgb(var(--accent)); color: var(--ink); font-size: 13px; font-weight: 700; transition: filter .15s;
}
.product__buy:hover { filter: brightness(1.1); }
.product__buy:focus-visible { box-shadow: 0 0 0 2px var(--fg); }

/* Galería */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 10px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  padding: 14px; border-radius: var(--r-2xl); border: 1px dashed var(--line);
  background-color: var(--surface-sunken); color: var(--fg-faint);
}
.tile figcaption { display: flex; flex-direction: column; }
.tile figcaption strong { font-size: 14px; font-weight: 600; color: var(--fg); }
.tile figcaption span { font-size: 12px; }
.tile--wide { grid-column: span 2; }
.tile--tall { grid-row: span 2; }
.tile--photo { padding: 0; border-style: solid; }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile--photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 14px 12px; font-size: 14px; font-weight: 600; color: var(--fg);
  background: linear-gradient(to top, rgb(0 0 0 / .75), transparent);
}
.gallery-ig { margin-top: 28px; padding: 20px; border-radius: var(--r-2xl); border: 1px solid var(--line); background: var(--surface); }
.gallery-ig p { font-size: 14px; color: var(--fg-muted); }
.gallery-ig .link-btn { margin-top: 12px; }

@media (min-width: 640px) {
  .shop-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
}

@media (min-width: 1024px) {
  .app { padding-bottom: 48px; }
  .main.main--full, .main.main--narrow { grid-template-columns: minmax(0, 1fr); }
  .page-title { font-size: 72px; }
  .shop-cats { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; }
  .topbar__inner { padding: 0 32px; }
  .topnav { display: flex; }
  .main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding: 0 32px; }
  .day-head__num { font-size: 112px; }
  .day-head__weekday { font-size: 32px; }
  .day-chips, .grid-scroll { margin: 0; padding-left: 0; padding-right: 0; }
  .lobby { position: sticky; top: 96px; margin-top: 24px; align-self: start; }
  .bottomnav { display: none; }
  .toast { bottom: 32px; }
  .footer__inner { padding: 40px 32px 8px; }
  .footer__legal { padding: 16px 32px; }
  .abk { grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; }
  .abk__actions { grid-column: auto; }
  .day-chips--sheet { margin: 0 -24px; padding: 0 24px 4px; }

  .sheet { align-items: center; padding: 24px; }
  .sheet__panel { max-width: 460px; border-radius: var(--r-4xl); transform: translateY(24px); opacity: 0; }
  .sheet.is-visible .sheet__panel { transform: translateY(0); opacity: 1; }
  .sheet__handle { display: none; }
  .sh-head { padding-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .slot--match, .ping::before { animation: none !important; }
  *, *::before, *::after { transition-duration: 0ms !important; }
}


/* ---------- Clases ---------- */
.spots { display: inline-flex; gap: 4px; }
.spots i { width: 10px; height: 10px; border-radius: 999px; border: 1.5px solid var(--line-strong); }
.spots i.is-on { background: rgb(var(--accent)); border-color: transparent; }
.spots--big { gap: 6px; }
.spots--big i { width: 16px; height: 16px; border-width: 2px; }

.class-list { margin-top: 10px; display: grid; gap: 8px; }
.class-row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%;
  padding: 14px 16px; border-radius: var(--r-2xl); border: 1px solid var(--line); background: var(--surface);
  transition: border-color .15s;
}
.class-row:hover { border-color: rgb(var(--accent) / .6); }
.class-row:focus-visible { box-shadow: 0 0 0 2px rgb(var(--accent)); }
.class-row__time { display: flex; flex-direction: column; font-family: var(--font-mono); font-size: 16px; font-weight: 700; line-height: 1.2; }
.class-row__time small { font-size: 12px; font-weight: 500; color: var(--fg-faint); }
.class-row__main { min-width: 0; display: flex; flex-direction: column; }
.class-row__main strong { font-size: 15px; font-weight: 600; }
.class-row__main span { font-size: 13px; color: var(--fg-muted); }
.class-row__cupo { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.class-row__cupo small { font-size: 12px; font-weight: 600; color: rgb(var(--accent)); white-space: nowrap; }
.class-row.is-mine { border-color: rgb(var(--accent)); background: rgb(var(--accent) / .08); }
.class-row.is-full .class-row__cupo small { color: var(--fg-faint); }
.class-row.is-full .class-row__main strong { color: var(--fg-muted); }

.price-box dd.price-box__text { font-family: var(--font-sans); font-size: 16px; line-height: 22px; }
.cupo-line { margin-top: 10px; display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--fg-muted); }
.class-note { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-xl); background: var(--surface-sunken); font-size: 14px; line-height: 20px; color: var(--fg-muted); }
.info-box { display: flex; align-items: center; gap: 8px; }
.info-box svg { color: rgb(var(--accent)); }
.btn-outline--link { display: flex; align-items: center; justify-content: center; gap: 8px; }

/* Admin: clases */
.acl-list { margin-top: 10px; display: grid; gap: 10px; }
.acl { padding: 14px; border-radius: var(--r-2xl); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; }
.acl--off { opacity: .55; }
.acl__top { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.acl__main .abk__who { display: flex; align-items: center; gap: 6px; }
.acl__main .abk__who svg { color: rgb(var(--accent)); }
.acl__cupo { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.acl__cupo small { font-size: 12px; font-weight: 600; color: var(--fg-muted); white-space: nowrap; }
.acl__students { display: grid; gap: 4px; padding: 8px; border-radius: var(--r-xl); background: var(--surface-sunken); }
.acl__students li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 4px 4px 4px 2px; font-size: 14px; }
.acl__students .text-link { font-size: 13px; font-weight: 500; }
.acl__sname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.acl__empty { padding: 2px 2px 0; }
.avatar--xs { width: 26px; height: 26px; border: 0; background: var(--line); font-size: 10px; }
.icon-btn--sm { width: 30px; height: 30px; }

.level--add { display: inline-flex; align-items: center; gap: 4px; border-style: dashed; }
.inline-add { margin-top: 10px; display: flex; gap: 8px; }
.inline-add .input { height: 44px; }
.inline-add .mini-btn { height: 44px; }
.seg--sm button { font-size: 13px; padding: 0 4px; }
.notify-list { display: grid; gap: 8px; }
.notify-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--r-xl); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }

.teacher-list { display: grid; gap: 6px; }
.teacher-list li { display: flex; align-items: center; gap: 12px; padding: 8px 6px 8px 10px; border-radius: var(--r-xl); border: 1px solid var(--line); }
.teacher-list .avatar { border: 0; background: rgb(var(--accent)); color: var(--ink); font-weight: 700; }
.teacher-list__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.teacher-list__main b { font-size: 15px; font-weight: 600; }
.teacher-list__main small { font-size: 12px; color: var(--fg-muted); }
.teacher-form { padding-top: 18px; border-top: 1px solid var(--line); }

@media (max-width: 380px) {
  .bottomnav__item { font-size: 10px; }
  .class-row { grid-template-columns: 46px minmax(0, 1fr); }
  .class-row__cupo { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; }
}
@media (min-width: 1024px) {
  .brand__logo { height: 52px; }
}
.day-chips--sheet { scroll-padding-inline: 24px; }
/* Admin: nombre de quien reservó, en la grilla */
.slot--owner { border: 1px solid var(--line-strong); background: var(--surface); }
.slot--owner:hover { border-color: rgb(var(--accent) / .6); }
.slot--owner .slot__row { display: flex; gap: 6px; font-weight: 600; color: var(--fg); min-width: 0; }
.slot--owner .slot__row svg { flex: none; color: rgb(var(--accent)); }
.slot--owner.slot--past { opacity: .5; }

/* ---------- Intro (logo animado la primera vez) ---------- */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; cursor: pointer; }
.intro__bg { position: absolute; inset: 0; background: #000; }
.intro__logo { position: relative; width: min(480px, 82vw); transform-origin: 0 0; will-change: transform; }
.intro__logo svg { display: block; width: 100%; height: auto; }
html.intro-on, html.intro-on body { overflow: hidden; }
html.intro-on .brand__logo { visibility: hidden; }
