/* Stärke · maqueta de turnos
   Paleta tomada de la marca: greige del fondo del logo, blanco cálido del
   estudio, negro de los reformers, madera natural y verde de las plantas. */
:root {
  --bg: #F5F2EC;
  --paper: #FFFFFF;
  --stone: #CEC7BC;
  --stone-2: #E9E4DC;
  --line: #E4DED4;
  --ink: #1C1B19;
  --ink-2: #55514A;
  --ink-3: #8A857C;
  --wood: #A87B4C;
  --wood-soft: #F3E9DC;
  --olive: #5F6B48;
  --olive-soft: #E8EBE0;
  --clay: #A4553F;
  --clay-soft: #F6E6E0;
  --r: 18px;
  --shadow: 0 1px 2px rgba(28, 27, 25, .05), 0 10px 30px rgba(28, 27, 25, .07);
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --display: 'Anton', 'Oswald', 'Arial Narrow', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.45;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
svg { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
h1, h2, h3, p { margin: 0; }
.muted { color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- marca ---------- */
.mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: #ADA395 url(img/icon-192.png) center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.wm { font-family: var(--display); font-size: 22px; letter-spacing: .02em; line-height: 1; }
.wm-sub { display: block; font-size: 9px; letter-spacing: .28em; color: var(--ink-3); margin-top: 3px; }
.brand { display: flex; align-items: center; gap: 10px; }

/* ---------- barra de demo ---------- */
.demo {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px; background: var(--ink); color: #F1EEE8;
}
.demo-tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; background: #34322E; padding: 4px 9px; border-radius: 999px; }
.demo-t { font-weight: 600; }
.demo-l { display: flex; align-items: center; gap: 10px; }
.demo-r { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.seg { display: inline-flex; background: #34322E; border-radius: 999px; padding: 3px; }
.seg button { padding: 6px 14px; border-radius: 999px; color: #CFCAC1; font-size: 14px; }
.seg button[aria-pressed="true"] { background: #F5F2EC; color: var(--ink); font-weight: 600; }
.demo select, .demo .btn-demo {
  background: #34322E; color: #F1EEE8; border: 0; border-radius: 999px; padding: 6px 12px; font-size: 14px;
}
.demo label { font-size: 13px; color: #B9B3A9; display: flex; align-items: center; gap: 6px; }

/* ---------- escenario de la app de alumna ---------- */
.stage {
  min-height: calc(100vh - 56px);
  display: flex; align-items: center; justify-content: center; gap: 56px;
  padding: 32px 20px;
  background: radial-gradient(1200px 600px at 30% 10%, #EFEAE2, #E2DBD0);
}
.phone {
  width: 390px; height: 800px; border-radius: 48px; padding: 12px;
  background: #151412; box-shadow: 0 30px 80px rgba(28, 27, 25, .28);
  flex: none;
}
.phone-in {
  position: relative; height: 100%; border-radius: 37px; overflow: hidden;
  background: var(--bg); display: flex; flex-direction: column;
}
.status { display: flex; justify-content: space-between; padding: 12px 26px 4px; font-size: 13px; font-weight: 600; }
.stage-note { max-width: 330px; color: var(--ink-2); }
.stage-note h2 { font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: -.01em; margin-bottom: 14px; }
.stage-note p { margin-bottom: 10px; }
.stage-note ol { padding-left: 18px; margin: 0; }
.stage-note li { margin-bottom: 6px; }

.a-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px 10px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--stone-2); font-weight: 600; font-size: 14px;
}
.a-body { flex: 1; overflow-y: auto; padding: 4px 20px 24px; scrollbar-width: none; }
.a-body::-webkit-scrollbar { display: none; }
.a-nav {
  display: flex; justify-content: space-around; padding: 8px 10px 22px;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
}
.a-nav button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--ink-3); padding: 4px 14px; }
.a-nav button[aria-current="page"] { color: var(--ink); font-weight: 600; }
.a-nav svg { width: 22px; height: 22px; }

.hero {
  height: 150px; border-radius: var(--r); margin: 4px 0 18px;
  background: #CFC8BD url(img/estudio-2.jpg) 50% 0 / cover no-repeat;
  position: relative; overflow: hidden;
}
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(28,27,25,.35)); }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.hola { font-size: 40px; line-height: 1; font-weight: 700; letter-spacing: -.03em; margin: 6px 0 18px; }
.hola em { font-size: 46px; }
.t { font-size: 30px; line-height: 1.05; font-weight: 700; letter-spacing: -.02em; margin: 8px 0 8px; }
.t em { font-size: 34px; }
.sec { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin: 22px 0 10px; }

.credit {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r);
  background: var(--ink); color: #F5F2EC;
}
.credit .num { font-family: var(--serif); font-style: italic; font-size: 44px; line-height: .8; }
.credit p { font-size: 14px; }
.credit small { color: #B9B3A9; font-size: 12px; }
.credit .btn { margin-left: auto; background: #F5F2EC; color: var(--ink); }

.tip {
  margin-top: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--paper);
  border: 1px dashed var(--stone); font-size: 13px; color: var(--ink-2); display: flex; gap: 10px; align-items: flex-start;
}
.tip button { margin-left: auto; color: var(--ink-3); }

.clase {
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r);
  background: var(--paper); box-shadow: var(--shadow); margin-bottom: 10px;
}
.fecha {
  width: 52px; flex: none; text-align: center; padding: 6px 0; border-radius: 13px; background: var(--bg);
}
.fecha span { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.fecha b { font-size: 22px; line-height: 1.1; }
.clase .info { flex: 1; min-width: 0; }
.clase .hora { font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.clase .sub { font-size: 13px; color: var(--ink-3); }
.clase .acc { display: flex; flex-direction: column; gap: 6px; }
.clase.off { background: transparent; box-shadow: none; border: 1px solid var(--line); }
.clase.off .hora { color: var(--ink-3); text-decoration: line-through; }

.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .02em; background: var(--stone-2); color: var(--ink-2); white-space: nowrap;
}
.chip.recupero { background: var(--wood-soft); color: #7A5530; }
.chip.extra, .chip.suelta { background: var(--stone-2); color: var(--ink-2); }
.chip.prueba { background: var(--olive-soft); color: var(--olive); }
.chip.ok { background: var(--olive-soft); color: var(--olive); }
.chip.warn { background: var(--clay-soft); color: var(--clay); }
.chip.dark { background: var(--ink); color: #F5F2EC; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--ink); color: #F5F2EC; white-space: nowrap;
}
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.soft { background: var(--stone-2); color: var(--ink); }
.btn.warn { background: var(--clay); }
.btn.big { width: 100%; padding: 14px 18px; font-size: 15px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }

.dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.dots i.l { background: transparent; box-shadow: inset 0 0 0 1.5px var(--stone); }
.dots i.x { background: var(--clay); }

.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; width: 58px; padding: 9px 0; border-radius: 15px; text-align: center; background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.day span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.day b { font-size: 19px; }
.day small { display: block; font-size: 10px; color: var(--ink-3); }
.day[aria-pressed="true"] { background: var(--ink); color: #F5F2EC; box-shadow: none; }
.day[aria-pressed="true"] span, .day[aria-pressed="true"] small { color: #B9B3A9; }

.opt {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--paper);
  margin-bottom: 8px; width: 100%; text-align: left; box-shadow: inset 0 0 0 1px var(--line);
}
.opt b { font-size: 17px; width: 56px; }
.opt .sub { font-size: 13px; color: var(--ink-3); flex: 1; }
.opt[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }

.empty { text-align: center; padding: 30px 10px; color: var(--ink-3); }
.empty em { font-size: 24px; color: var(--ink); display: block; margin-bottom: 6px; }

.info-card { background: var(--paper); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); margin-bottom: 12px; }
.info-card h3 { font-size: 15px; margin-bottom: 8px; }
.info-card ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.info-card li { margin-bottom: 6px; }
.logo-big {
  width: 100%; aspect-ratio: 1.5; border-radius: var(--r); margin-bottom: 14px;
  background: #ADA395 url(img/logo.jpg) 50% 46% / cover no-repeat;
}
.row-btns { display: flex; gap: 8px; }
.row-btns .btn { flex: 1; }

/* ---------- hoja inferior (alumna) y panel lateral (Euge) ---------- */
.scrim { position: absolute; inset: 0; background: rgba(28, 27, 25, .35); z-index: 20; animation: fade .18s ease; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 21; max-height: 86%; overflow-y: auto;
  background: var(--bg); border-radius: 26px 26px 0 0; padding: 10px 20px 26px; animation: up .22s ease;
}
.sheet::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--stone); margin: 0 auto 14px; }
.sheet h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.resumen { display: flex; align-items: center; gap: 12px; background: var(--paper); border-radius: 16px; padding: 14px; margin: 12px 0; }
.regla { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 14px; margin-bottom: 16px; }
.regla.ok { background: var(--olive-soft); color: #3F4730; }
.regla.warn { background: var(--clay-soft); color: #7E3F2E; }
.regla svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.flecha { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; margin: 12px 0 16px; }
.flecha s { color: var(--ink-3); font-weight: 500; }

@keyframes up { from { transform: translateY(30px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 100;
  background: var(--ink); color: #F5F2EC; padding: 12px 18px; border-radius: 14px; font-size: 14px;
  box-shadow: var(--shadow); animation: up .2s ease; max-width: calc(100vw - 32px);
}

/* ---------- panel de Euge ---------- */
.panel { display: grid; grid-template-columns: 232px 1fr; min-height: calc(100vh - 56px); }
.p-side { background: var(--paper); border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; gap: 26px; position: sticky; top: 56px; height: calc(100vh - 56px); }
.p-nav { display: flex; flex-direction: column; gap: 4px; }
.p-nav button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 500; }
.p-nav button svg { width: 19px; height: 19px; }
.p-nav button[aria-current="page"] { background: var(--ink); color: #F5F2EC; }
.p-user { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.p-main { padding: 28px 32px 60px; min-width: 0; }
.p-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.p-head h1 { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.p-head h1 em { font-size: 38px; }
.p-head .sub { color: var(--ink-3); margin-top: 6px; }
.p-head .ctrl { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); background: var(--paper); }
.icon-btn svg { width: 18px; height: 18px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--paper); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.kpi span { font-size: 12px; color: var(--ink-3); letter-spacing: .04em; }
.kpi b { display: block; font-size: 30px; letter-spacing: -.02em; line-height: 1.15; }
.kpi small { color: var(--ink-3); font-size: 12px; }

.leyenda { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-bottom: 12px; align-items: center; }
.leyenda .chip { margin-right: 2px; }

.grilla { display: grid; grid-template-columns: 54px repeat(5, minmax(0, 1fr)); gap: 8px; }
.g-head { text-align: center; padding: 6px 0 2px; }
.g-head span { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.g-head b { display: block; font-size: 20px; }
.g-head.hoy b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #F5F2EC; }
.g-hora { font-size: 12px; font-weight: 600; color: var(--ink-3); padding-top: 10px; text-align: right; }
.celda {
  text-align: left; background: var(--paper); border-radius: 14px; padding: 9px 10px 10px; min-height: 118px;
  box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0;
  transition: box-shadow .15s, transform .15s;
}
.celda:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.celda.pasada { opacity: .62; }
.celda.hoy { box-shadow: inset 0 0 0 1.5px var(--stone); }
.celda.llena { background: #FBFAF7; }
.celda.cerrada { background: repeating-linear-gradient(135deg, #F1EDE6 0 8px, #F7F4EF 8px 16px); }
.c-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.c-occ { font-size: 12px; font-weight: 700; }
.c-occ.full { color: var(--clay); }
.c-occ.free { color: var(--olive); }
.c-profe { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-names { list-style: none; margin: 2px 0 0; padding: 0; font-size: 12px; line-height: 1.5; }
.c-names li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-names li.baja { color: var(--ink-3); text-decoration: line-through; }
.b { display: inline-block; width: 15px; height: 15px; border-radius: 4px; font-size: 9px; font-weight: 700; text-align: center; line-height: 15px; margin-right: 4px; vertical-align: 1px; }
.b.recupero { background: var(--wood-soft); color: #7A5530; }
.b.prueba { background: var(--olive-soft); color: var(--olive); }
.b.extra, .b.suelta { background: var(--stone-2); color: var(--ink-2); }
.c-cerrada { font-size: 12px; color: var(--ink-2); font-style: italic; }

.dia-tabs { display: none; }
.lista-dia { display: none; }

/* drawer */
.p-scrim { position: fixed; inset: 0; background: rgba(28, 27, 25, .3); z-index: 60; animation: fade .18s ease; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 61; overflow-y: auto;
  background: var(--bg); padding: 22px 24px 40px; box-shadow: -20px 0 60px rgba(28, 27, 25, .15); animation: left .22s ease;
}
@keyframes left { from { transform: translateX(30px); opacity: 0; } }
.d-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.d-head h2 { font-size: 28px; letter-spacing: -.02em; font-weight: 700; line-height: 1.1; }
.d-head h2 em { font-size: 30px; }
.d-head .icon-btn { margin-left: auto; flex: none; }
.banner { padding: 12px 14px; border-radius: 14px; font-size: 13px; margin-bottom: 12px; display: flex; gap: 10px; align-items: center; }
.banner.info { background: var(--stone-2); color: var(--ink-2); }
.banner.warn { background: var(--clay-soft); color: #7E3F2E; }
.banner .btn { margin-left: auto; }
.d-sec { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin: 18px 0 8px; }
.persona { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--paper); border-radius: 14px; margin-bottom: 6px; flex-wrap: wrap; }
.persona .n { flex: 1; min-width: 0; font-weight: 500; }
.persona .n small { display: block; color: var(--ink-3); font-weight: 400; font-size: 12px; }
.persona.off .n { color: var(--ink-3); text-decoration: line-through; }
.persona .menu { width: 100%; display: flex; gap: 6px; justify-content: flex-end; }
.acciones { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; font-size: 13px; color: var(--ink-2); }
.campo input, .campo select, .search {
  border: 0; border-radius: 12px; padding: 11px 13px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; width: 100%;
}
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 6px 0 12px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.caja { background: var(--paper); border-radius: 16px; padding: 14px; margin-top: 12px; }

.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--paper); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); padding: 3px; }
.stepper button { width: 30px; height: 30px; border-radius: 50%; font-size: 18px; line-height: 1; }
.stepper button:hover { background: var(--stone-2); }
.stepper b { min-width: 34px; text-align: center; }

/* alumnas */
.lista { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.fila { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.fila:last-child { border-bottom: 0; }
.fila:hover { background: #FBFAF7; }
.fila .n { flex: 1; min-width: 0; font-weight: 500; }
.fila .n small { display: block; color: var(--ink-3); font-weight: 400; font-size: 12px; }
.ini { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--stone-2); font-size: 13px; font-weight: 600; flex: none; }
.fijos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.fijos-grid label { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; display: flex; flex-direction: column; gap: 4px; }
.fijos-grid select { border: 0; border-radius: 10px; padding: 8px 4px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }
.hist { font-size: 13px; color: var(--ink-2); border-left: 2px solid var(--line); padding: 2px 0 8px 12px; }
.hist small { display: block; color: var(--ink-3); font-size: 11px; }
.preview { background: #DCF8C6; color: #1F2A1A; border-radius: 12px 12px 12px 2px; padding: 10px 12px; font-size: 13px; margin-top: 8px; }

/* números */
.cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.card { background: var(--paper); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); }
.card h3 { font-size: 15px; margin-bottom: 2px; }
.card .sub { font-size: 12px; color: var(--ink-3); margin-bottom: 14px; }
.barra { display: grid; grid-template-columns: 120px 1fr 74px; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; position: relative; }
.barra .track { height: 12px; border-radius: 0 4px 4px 0; background: var(--stone-2); position: relative; }
.barra .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; background: var(--olive); }
.barra .v { text-align: right; font-variant-numeric: tabular-nums; }
.barra .v small { color: var(--ink-3); }
.heat { display: grid; grid-template-columns: 50px repeat(5, minmax(0, 1fr)); gap: 3px; font-size: 12px; }
.heat .h { color: var(--ink-3); text-align: right; padding-right: 6px; align-self: center; }
.heat .hd { text-align: center; color: var(--ink-3); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.heat .cell { border-radius: 4px; padding: 7px 0; text-align: center; font-variant-numeric: tabular-nums; position: relative; }
.heat .cell.s0 { background: #EEF0E8; color: var(--ink-2); }
.heat .cell.s1 { background: #D5DBC8; color: var(--ink); }
.heat .cell.s2 { background: #AEB898; color: var(--ink); }
.heat .cell.s3 { background: #7F8B64; color: #fff; }
.heat .cell.s4 { background: #4F5A3B; color: #fff; }
.heat .cell.na { background: repeating-linear-gradient(135deg, #F1EDE6 0 5px, #F8F5F0 5px 10px); color: var(--ink-3); }
.scale { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-3); margin-top: 10px; }
.scale i { width: 22px; height: 10px; border-radius: 2px; }
[data-tip] { position: relative; }
[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
  background: var(--ink); color: #F5F2EC; font-size: 12px; padding: 6px 9px; border-radius: 8px; white-space: nowrap; z-index: 5; pointer-events: none;
}

/* ajustes */
.ajuste { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ajuste:last-child { border-bottom: 0; }
.ajuste .n { flex: 1; }
.ajuste .n small { display: block; color: var(--ink-3); font-size: 12px; }
.switch { width: 44px; height: 26px; border-radius: 999px; background: var(--stone); position: relative; flex: none; transition: background .15s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch[aria-checked="true"] { background: var(--olive); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }
.form-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; }
details.dia { border-bottom: 1px solid var(--line); padding: 10px 0; }
details.dia summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
details.dia summary::-webkit-details-marker { display: none; }
.turno-row { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 14px; }
.turno-row.inactivo > b, .turno-row.inactivo select, .turno-row.inactivo .stepper { opacity: .4; }
.turno-row b small { margin-left: 6px; vertical-align: 1px; }
.turno-row select { border: 0; border-radius: 10px; padding: 7px 8px; background: var(--bg); font-size: 13px; }

/* ---------- celular ---------- */
@media (max-width: 900px) {
  .stage { padding: 0; display: block; min-height: 0; background: var(--bg); }
  .phone { width: 100%; height: calc(100dvh - 92px); border-radius: 0; padding: 0; box-shadow: none; background: none; }
  .phone-in { border-radius: 0; }
  .status, .stage-note { display: none; }
  .panel { grid-template-columns: 1fr; padding-bottom: 70px; }
  .p-side { display: none; }
  .p-main { padding: 18px 16px 40px; }
  .p-head h1 { font-size: 28px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards2 { grid-template-columns: 1fr; }
  .grilla { display: none; }
  .dia-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; }
  .dia-tabs .day { width: auto; flex: 1; }
  .lista-dia { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .lista-dia[hidden] { display: none; }
  .celda { min-height: 0; }
  .p-mnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-around; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 8px 4px 18px; }
  .p-mnav button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--ink-3); }
  .p-mnav button[aria-current="page"] { color: var(--ink); font-weight: 600; }
  .p-mnav svg { width: 22px; height: 22px; }
  .drawer { top: auto; max-height: 90dvh; width: 100%; border-radius: 24px 24px 0 0; animation: up .22s ease; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .barra { grid-template-columns: 96px 1fr 64px; }
  .demo-t { display: none; }
  .demo select { max-width: 160px; }
  .demo { gap: 8px; padding: 8px 12px; }
  .demo-r { margin-left: 0; }
}
@media (min-width: 901px) { .p-mnav { display: none; } }

/* ---------- v2: cuotas, ABM, equipo y cobranza ---------- */
:root { --cobrado: #4B7128; --porvencer: #D8A24E; --vencido: #A93F2B; } /* validados con validate_palette.js */
.cuota { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); margin-bottom: 12px; }
.cuota div { flex: 1; min-width: 0; }
.cuota b { display: block; font-size: 15px; }
.cuota small { font-size: 12px; }
.cuota.vencida { background: var(--clay-soft); color: #6E3326; }
.cuota.vencida .btn { background: var(--clay); }
.cuota.pronto { background: var(--wood-soft); color: #6B4A27; }
.cuota-ok { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--olive); margin: -8px 0 14px; }
.cuota-ok svg { width: 16px; height: 16px; }

.filtros { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.filtro { padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.filtro span { color: var(--ink-3); margin-left: 2px; }
.filtro[aria-pressed="true"] { background: var(--ink); color: #F5F2EC; box-shadow: none; }
.filtro[aria-pressed="true"] span { color: #B9B3A9; }
.fila.pago { flex-wrap: wrap; }
.pago-in { width: 100%; padding: 4px 0 4px 46px; }
.pago-form { background: var(--bg); border-radius: 14px; padding: 12px 14px; margin-top: 8px; }
.link-n { cursor: pointer; text-decoration: underline; text-decoration-color: var(--stone); text-underline-offset: 3px; }
.form-row.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.profe { padding: 12px 0; border-bottom: 1px solid var(--line); }
.profe:last-of-type { border-bottom: 0; }
.profe-top { display: flex; align-items: center; gap: 10px; }
.nombre-in { flex: 1; min-width: 0; border: 0; border-radius: 10px; padding: 7px 10px; font-weight: 600; background: transparent; box-shadow: inset 0 0 0 1px transparent; }
.nombre-in:hover, .nombre-in:focus { box-shadow: inset 0 0 0 1px var(--line); background: var(--paper); }
.profe-perm { display: flex; align-items: flex-end; gap: 14px; margin: 8px 0 0 46px; flex-wrap: wrap; }
.profe-perm .campo { margin: 0; flex: 1; min-width: 160px; }
.mini { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.mini.off { opacity: .45; }
.switch[disabled] { cursor: not-allowed; }

.sin-acceso { max-width: 420px; margin: 12vh auto 0; text-align: center; color: var(--ink-2); }
.sin-acceso svg { width: 40px; height: 40px; color: var(--ink-3); margin-bottom: 10px; }
.sin-acceso h1 { font-size: 34px; letter-spacing: -.02em; color: var(--ink); margin-bottom: 10px; }
.sin-acceso p { margin-bottom: 8px; }
.celda.ajena { background: transparent; box-shadow: inset 0 0 0 1px var(--line); border-radius: 14px; min-height: 0; padding: 9px 10px; opacity: .55; }
.moroso { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--vencido); margin-left: 5px; vertical-align: 1px; }

.bloque { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 12px; }
.bloque em { font-size: 25px; }
.bloque + .kpis { margin-top: 0; }
.t-venc { color: var(--vencido); }
.stackbar { display: flex; gap: 2px; height: 16px; margin: 6px 0 14px; }
.stackbar i { display: block; min-width: 6px; }
.stackbar i:first-child { border-radius: 4px 0 0 4px; }
.stackbar i:last-child { border-radius: 0 4px 4px 0; }
.stackbar i:only-child { border-radius: 4px; }
.s-ok { background: var(--cobrado); }
.s-pv { background: var(--porvencer); }
.s-ve { background: var(--vencido); }
.leg { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.leg span { display: flex; align-items: center; gap: 8px; }
.leg i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.leg b { margin-left: auto; font-variant-numeric: tabular-nums; }
.leg small { color: var(--ink-3); width: 46px; text-align: right; }
.tabla { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabla th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 12px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.tabla td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
.tabla tbody tr { cursor: pointer; }
.tabla tbody tr:hover td { background: #FBFAF7; }
.tabla .num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .form-row.c3 { grid-template-columns: 1fr 1fr; }
  .pago-in, .profe-perm { padding-left: 0; margin-left: 0; }
  .seg button { padding: 6px 10px; font-size: 13px; }
}
a.btn { text-decoration: none; }
.fila.pago .n { flex: 1 1 220px; }
.fila.pago > .btn { margin-left: auto; }

/* ---------- app real (sin barra de demo ni marco de celular) ---------- */
.app-alumna { position: relative; max-width: 520px; height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; background: var(--bg); overflow: hidden; }
@media (min-width: 560px) { body:has(.app-alumna) { background: radial-gradient(1200px 600px at 30% 10%, #EFEAE2, #E2DBD0); } .app-alumna { box-shadow: 0 0 60px rgba(28,27,25,.12); } }
.app-alumna .a-top { padding-top: max(14px, env(safe-area-inset-top)); }
.app-alumna .a-nav { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
.panel { min-height: 100vh; }
.p-side { top: 0; height: 100vh; }
.pantalla { max-width: 420px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 32px 24px; }
.pantalla p { color: var(--ink-2); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--stone-2); border-top-color: var(--ink); animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
body.cargando::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; background: linear-gradient(90deg, transparent, var(--olive), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: barra 1s linear infinite; }
@keyframes barra { from { background-position: -50% 0; } to { background-position: 150% 0; } }
body.cargando [data-act] { cursor: progress; }
@media (max-width: 900px) { .panel { padding-bottom: 76px; } }
