/* Turni — se siente como una app en el celular y tiene layout de escritorio en la compu.
   Todo en rem y la raíz en %: así respeta el tamaño de letra que cada persona eligió en su teléfono
   o navegador (15 px por defecto en el celular, 14 px en la compu). Los colores salen de los tokens.
   Base blanca y tinta casi negra para las acciones; el coral queda para lo importante: la marca,
   palabras destacadas, contornos, enlaces y el foco. Los estados y los íconos usan otros tonos. */

:root {
  --brand: #D2694F;
  --brand-ink: #A9472F;
  --brand-tint: #FCEEE9;
  --brand-dot: #EDBBA9;
  --on-brand: #FFFFFF;
  --ink: #1C1917;
  --ink-2: #44403C;
  --muted: #6B6560;
  --muted-2: #57524D;
  --disabled: #A8A29E;
  --bg: #FFFFFF;
  --bg-soft: #F8F7F5;
  --surface: #FFFFFF;
  --tint: #F3F2EF;
  --segmented: #F1F0ED;
  --border: #E8E5E1;
  --border-strong: #D9D5CF;
  --divider: #F0EEEA;
  --canvas: #F4F3F0;
  --overlay: rgba(28, 25, 23, .45);

  --ok: #1E7A5A;
  --ok-ink: #145C43;
  --ok-tint: #E2F3EB;
  --ok-cell: #F1F9F5;
  --ok-cell-border: #CBE6D8;
  --warn: #CB8A1C;
  --warn-ink: #85550D;
  --warn-tint: #FDF4E3;
  --warn-border: #F0D9A6;
  --danger: #B3372A;
  --danger-tint: #FBE9E6;
  --info: #2D5C9E;
  --info-tint: #E8EFF9;
  --violet: #6A4BB5;
  --violet-tint: #EFEAFA;
  --teal: #17727B;
  --teal-tint: #E1F2F3;
  --wa: #1E8A4F;
  --wa-tint: #E4F3EA;
  --chart: #3F63C7;

  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;

  --r-card: 1.125rem;
  --r-btn: .875rem;
  --r-cell: .75rem;
  --shadow-soft: 0 1px 2px rgba(28, 25, 23, .06), 0 1px 3px rgba(28, 25, 23, .05);
  --shadow-card: 0 1px 2px rgba(28, 25, 23, .04), 0 4px 16px rgba(28, 25, 23, .05);
  --shadow-pop: 0 6px 18px rgba(28, 25, 23, .18);
  --shadow-sheet: 0 -10px 40px rgba(28, 25, 23, .14);
  --pad: 1.25rem;
  --tabbar-h: 4.375rem;
  --side-w: 16.5rem;
  color-scheme: light;
}

* { box-sizing: border-box; }
/* touch-action: sin zoom por doble toque (tocar rápido dos veces no agranda la pantalla); pellizcar para agrandar sigue andando */
html { font-size: 93.75%; -webkit-text-size-adjust: 100%; touch-action: manipulation; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1rem; line-height: 1.45;
  -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.15; }
b, strong { font-weight: 500; }
h3 { font-size: 1.125rem; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--brand-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.serif { font-family: var(--serif); font-weight: 400; }
.muted { color: var(--muted); }
.small { font-size: .9375rem; }
.tiny { font-size: .8125rem; }
.mono { font-family: var(--mono); font-size: .875rem; word-break: break-all; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: .75rem; }
.stack-lg { display: flex; flex-direction: column; gap: 1.25rem; }
.hstack { display: flex; align-items: center; gap: .75rem; }
.between { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; }
.label-caps { font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fineprint { font-size: .9375rem; color: var(--muted); text-align: center; }
.lead { font-size: 1.0625rem; color: var(--muted-2); }
.ok-text { color: var(--ok-ink); }
.warn-text { color: var(--warn-ink); }
.danger-text { color: var(--danger); }
.hl { color: var(--brand); }

/* Íconos (Material Symbols Rounded) */
.ms {
  font-family: "Material Symbols Rounded"; font-weight: 400; font-style: normal;
  font-size: 1.375rem; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap;
  display: inline-block; width: 1em; height: 1em; overflow: hidden; flex: none;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  -webkit-font-feature-settings: "liga"; font-feature-settings: "liga";
}
.ms.fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }

/* ───── Estructura de la app */
.shell { min-height: 100dvh; }
.main { min-width: 0; }
.content { padding: .5rem var(--pad) 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.has-tabs .content { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 1.5rem); }
.sidebar { display: none; }

.app-header {
  position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; gap: .75rem;
  padding: calc(env(safe-area-inset-top) + .75rem) var(--pad) .75rem;
}
.studio-mark {
  width: 2.75rem; height: 2.75rem; border-radius: .875rem; flex: none;
  background: var(--brand); color: var(--on-brand); display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.625rem; line-height: 1; padding-top: .125rem;
}
.studio-mark.sm { width: 2.5rem; height: 2.5rem; font-size: 1.5rem; border-radius: .75rem; }
.app-header-text { flex: 1; min-width: 0; }
.app-header-title { font-size: 1.0625rem; font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-header-sub { font-size: .9375rem; color: var(--muted); }

.round-btn {
  width: 3rem; height: 3rem; border-radius: 50%; flex: none;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; font-weight: 500; font-size: 1.0625rem; text-decoration: none;
  transition: transform .15s, background-color .15s;
}
.round-btn:active:not(:disabled) { transform: scale(.94); }
.round-btn:disabled { color: var(--disabled); border-color: var(--divider); background: transparent; cursor: default; }
.round-btn.ghost { border-color: transparent; background: transparent; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; padding-top: .25rem; }
.page-head-main { min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.page-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }

/* Secciones: en el celular, un rótulo arriba y el contenido abajo; en la compu, una tarjeta blanca con su encabezado. */
.box { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.box-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem .75rem; flex-wrap: wrap; min-width: 0; }
.box-title { font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.box-sub { font-size: .875rem; color: var(--muted); }
.box-body { display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.box-foot { font-size: .9375rem; color: var(--muted); }
/* Fila arriba de un grupo de tarjetas: lo que hay y las acciones */
.group-bar { display: flex; align-items: center; justify-content: space-between; gap: .5rem .75rem; flex-wrap: wrap; }
.group-title { font-size: 1.0625rem; font-weight: 500; }
.group-title span { color: var(--muted); font-weight: 400; }
.box-head > .segmented { flex: 1 1 100%; }

/* Tabla de alumnos (compu): la persona, sus días, su plan, la cuota y lo pendiente */
.cell-person { display: flex; align-items: center; gap: .75rem; padding: 0; border: 0; background: none; text-align: left; color: inherit; min-width: 0; }
.cell-person .row-title, .cell-person .row-sub { display: block; }
.cell-person .row-sub { font-size: .875rem; }
.cell-badges { display: flex; flex-wrap: wrap; gap: .375rem; }
.students-table td { padding-top: .625rem; padding-bottom: .625rem; }
.students-table .type-tags { margin-top: .375rem; }
.page-title { font-family: var(--serif); font-weight: 400; font-size: 2.125rem; line-height: 1; letter-spacing: -.01em; }
.page-title .count { font-family: var(--font); font-size: 1rem; color: var(--muted); font-weight: 400; margin-left: .375rem; letter-spacing: 0; }
.page-sub { color: var(--muted); font-size: 1rem; margin-top: -.25rem; }
.date-title { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.05; }
.day-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.day-head .count { font-size: .9375rem; color: var(--muted); font-weight: 400; white-space: nowrap; }

/* Aviso arriba cuando un super administrador está viendo la administración de un estudio */
.super-bar {
  display: flex; align-items: center; gap: .625rem; padding: .5rem var(--pad); background: var(--ink); color: #fff;
  font-size: .9375rem;
}
.super-bar a { color: #fff; font-weight: 500; margin-left: auto; white-space: nowrap; }
.super-bar .ms { color: var(--brand-dot); }

/* ───── Barra de pestañas */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar-inner { display: flex; max-width: 35rem; margin: 0 auto; height: var(--tabbar-h); padding: 0 .25rem; }
.tab {
  flex: 1; min-width: 0; border: 0; background: none; color: var(--muted); position: relative; padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
  font-weight: 400; font-size: .8125rem;
}
.tab-label { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Con seis pestañas en un celular angosto, la pastilla se achica para que no se pisen. */
.tab-pill { padding: .25rem min(1rem, 4vw); border-radius: 99px; display: grid; place-items: center; transition: background-color .15s; }
.tab[aria-current="page"] { color: var(--ink); font-weight: 500; }
.tab[aria-current="page"] .tab-pill { background: var(--tint); }
.tab[aria-current="page"] .ms { color: var(--brand); }
.tab:active .tab-pill { transform: scale(.94); }
.count-badge {
  min-width: 1.25rem; height: 1.25rem; padding: 0 .3125rem; border-radius: 99px;
  background: var(--brand); color: var(--on-brand); font-size: .8125rem; font-weight: 500; line-height: 1;
  display: inline-grid; place-items: center;
}
.tab .count-badge { position: absolute; top: .5rem; left: calc(50% + .375rem); }
@media (max-width: 359px) { .tab { font-size: .75rem; } }

/* ───── Barra lateral (escritorio) */
.sidebar {
  background: var(--bg-soft); border-right: 1px solid var(--border);
  flex-direction: column; gap: 1.25rem; padding: 1.5rem 1rem 1.25rem; overflow-y: auto; overscroll-behavior: contain;
}
.side-brand { display: flex; align-items: center; gap: .75rem; padding: 0 .375rem; }
.side-brand-name { font-weight: 500; font-size: 1.0625rem; line-height: 1.2; }
.side-brand-sub { font-size: .875rem; color: var(--muted); }
.side-nav { display: flex; flex-direction: column; gap: .25rem; }
.side-item {
  display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 2.875rem; padding: 0 .875rem;
  border: 0; border-radius: .75rem; background: none; color: var(--muted-2);
  font-weight: 400; font-size: 1rem; text-align: left; text-decoration: none; transition: background-color .15s;
}
.side-item:hover { background: rgba(28, 25, 23, .04); }
.side-item[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: var(--shadow-soft); }
.side-item[aria-current="page"] .ms { color: var(--brand); }
.side-item .count-badge { margin-left: auto; }
.side-item.wa .ms { color: var(--wa); }
.side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: .75rem; }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; padding: .875rem; display: flex; flex-direction: column; gap: .625rem; }
.side-user { display: flex; align-items: center; gap: .625rem; width: 100%; padding: .5rem; border: 0; border-radius: .75rem; background: none; text-align: left; color: inherit; }
.side-user:hover { background: rgba(28, 25, 23, .04); }
.side-user .avatar { width: 2.25rem; height: 2.25rem; font-size: .875rem; }
.side-user-name { font-weight: 500; font-size: .9375rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-sub { font-size: .8125rem; color: var(--muted); }

/* ───── Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; min-height: 3rem; padding: .5rem 1rem;
  border-radius: var(--r-btn); border: 1px solid transparent; background: var(--surface);
  font-weight: 500; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none; color: var(--ink);
  transition: transform .15s, filter .15s, background-color .15s, border-color .15s;
}
.btn:active:not(:disabled) { transform: scale(.98); filter: brightness(.96); }
.btn:disabled { background: var(--segmented); border-color: transparent; color: var(--muted); cursor: default; }
.btn-primary { background: var(--ink); color: #fff; font-weight: 500; font-size: 1.0625rem; min-height: 3.25rem; }
.btn-brand { background: var(--brand); color: var(--on-brand); font-weight: 500; font-size: 1.0625rem; min-height: 3.25rem; }
.btn-tint { background: var(--tint); color: var(--ink); }
.btn-outline { background: var(--surface); border-color: var(--border-strong); color: var(--ink); }
.btn-wa { background: var(--wa); color: #fff; font-weight: 500; font-size: 1.0625rem; }
.btn-danger { background: var(--danger); color: #fff; font-weight: 500; font-size: 1.0625rem; min-height: 3.25rem; }
.btn-danger-outline { background: var(--surface); border: 1.5px solid var(--danger); color: var(--danger); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); font-weight: 500; }
.btn-outline-white { background: transparent; border: 1.5px solid rgba(255, 255, 255, .7); color: #fff; font-weight: 500; }
.btn-dashed { background: transparent; border: 1.5px dashed var(--border-strong); color: var(--ink); min-height: 3.25rem; }
.btn-sm { width: auto; min-height: 3rem; padding: .375rem .875rem; font-size: .9375rem; border-radius: .75rem; }
.btn-sm.btn-wa, .btn-sm.btn-primary, .btn-sm.btn-brand { font-size: .9375rem; min-height: 3rem; }
.btn-auto { width: auto; }
/* Botón redondo para escribir por celular: verde suave con el logo en verde (el lugar para tocar sigue siendo grande) */
.icon-wa { width: 3rem; height: 3rem; border-radius: 50%; background: var(--wa-tint); color: var(--wa); display: grid; place-items: center; flex: none; text-decoration: none; transition: background-color .15s; }
.icon-wa:hover { background: #D3ECDD; }
.icon-wa .ms { font-size: 1.375rem; }
/* El logo de WhatsApp: llena todo su cuadrado (los íconos de Material no), así que va más chico que un ícono para verse igual.
   Toma el color del texto: blanco en los botones verdes, verde en la barra lateral y en los botones redondos. */
.wa-logo { display: inline-block; width: 1rem; height: 1rem; flex: none; }
.icon-wa .wa-logo { width: 1.125rem; height: 1.125rem; }
.btn-sm .wa-logo { width: .9375rem; height: .9375rem; }
.side-item.wa .wa-logo { color: var(--wa); width: 1.0625rem; height: 1.0625rem; margin: 0 .15625rem; }
.row-icon.wa { background: var(--wa-tint); color: var(--wa); }
.row-icon.wa .wa-logo { width: 1.125rem; height: 1.125rem; }
.link-btn {
  background: none; border: 0; padding: .5rem .25rem; min-height: 2.75rem; color: var(--brand-ink);
  font-weight: 500; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: .25rem;
}
.link-btn.danger { color: var(--danger); }
.link-btn.plain { text-decoration: none; }

/* ───── Tarjetas, badges y listas */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 1rem; }
.card-tight { padding: 0; overflow: hidden; }
.card-btn { width: 100%; text-align: left; cursor: pointer; transition: transform .15s, border-color .15s; display: block; color: inherit; font: inherit; }
.card-btn:active { transform: scale(.98); }
.card-btn:hover { border-color: var(--border-strong); }

.badge {
  display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; flex: none;
  padding: .25rem .625rem; border-radius: 99px; font-size: .8125rem; font-weight: 500; line-height: 1.15;
}
.badge .ms { font-size: 1rem; }
.badge-brand { background: var(--brand-tint); color: var(--brand-ink); }
.badge-warn { background: var(--warn-tint); color: var(--warn-ink); }
.badge-ok { background: var(--ok-tint); color: var(--ok-ink); }
.badge-danger { background: var(--danger-tint); color: var(--danger); }
.badge-muted { background: var(--segmented); color: var(--muted-2); }
.badge-info { background: var(--info-tint); color: var(--info); }
.badge-violet { background: var(--violet-tint); color: var(--violet); }
.badge-ink { background: var(--ink); color: #fff; }

.list-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; }
.row {
  display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 3.375rem; padding: .625rem 1rem;
  border: 0; border-top: 1px solid var(--divider); background: none; text-align: left; color: inherit; text-decoration: none;
  transition: background-color .15s;
}
.row:first-child { border-top: 0; }
button.row:active, a.row:active { background: var(--divider); }
button.row:hover, a.row:hover { background: var(--bg-soft); }
.row-icon { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--tint); color: var(--ink-2); }
.row-icon .ms { font-size: 1.375rem; }
.row-icon.brand { background: var(--brand-tint); color: var(--brand-ink); }
.row-icon.ok { background: var(--ok-tint); color: var(--ok-ink); }
.row-icon.warn { background: var(--warn-tint); color: var(--warn-ink); }
.row-icon.danger { background: var(--danger-tint); color: var(--danger); }
.row-icon.info { background: var(--info-tint); color: var(--info); }
.row-icon.violet { background: var(--violet-tint); color: var(--violet); }
.row-icon.teal { background: var(--teal-tint); color: var(--teal); }
.row-icon.muted { background: var(--segmented); color: var(--muted-2); }
.row-icon.plain { background: none; color: var(--muted); width: 1.75rem; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 500; }
.row-sub { font-size: .9375rem; color: var(--muted); }
.row-value { font-size: .9375rem; color: var(--muted); text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45%; }
.row-chev { color: var(--disabled); }
.row.danger .row-title, .row.danger .ms { color: var(--danger); }
.row-stack { display: flex; flex-direction: column; gap: .75rem; padding: 1rem; border-top: 1px solid var(--divider); }
.row-stack:first-child { border-top: 0; }
/* Solicitud para entrar: en el celular, los botones abajo; en la compu, todo en una fila. */
@media (min-width: 1100px) {
  .request { flex-direction: row; align-items: center; padding: .75rem 1rem; }
  .request > .hstack { flex: 1; min-width: 0; }
  .request .btn-pair { grid-template-columns: repeat(2, 9rem); }
}

/* Avatares: el tono sale del nombre, así cada persona tiene siempre el mismo color */
.avatar {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--tint); color: var(--ink-2); font-weight: 500; font-size: .9375rem;
}
.avatar.t1 { background: var(--info-tint); color: var(--info); }
.avatar.t2 { background: var(--ok-tint); color: var(--ok-ink); }
.avatar.t3 { background: var(--violet-tint); color: var(--violet); }
.avatar.t4 { background: var(--warn-tint); color: var(--warn-ink); }
.avatar.t5 { background: var(--teal-tint); color: var(--teal); }
.avatar.t6 { background: var(--brand-tint); color: var(--brand-ink); }
.avatar.lg { width: 3.5rem; height: 3.5rem; font-size: 1.125rem; }
.avatar.photo { display: block; object-fit: cover; background: var(--tint); }
/* Tocar la foto para cambiarla: un botón redondo con una camarita. */
.avatar-edit { position: relative; flex: none; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.avatar-cam { position: absolute; right: -.25rem; bottom: -.25rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid;
  place-items: center; background: var(--ink); color: #fff; border: 2px solid var(--surface); }
.avatar-cam .ms { font-size: .875rem; }
.photo-preview { display: grid; place-items: center; padding: .25rem 0 .5rem; }
.photo-preview .avatar { width: 7rem; height: 7rem; font-size: 2rem; }
.photo-pick { position: relative; overflow: hidden; }
.photo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
/* El perfil arriba a la derecha (celular): abre «Mi cuenta». */
.round-btn.profile-btn { padding: 0; overflow: hidden; }
.round-btn.profile-btn .avatar { width: 100%; height: 100%; font-size: .875rem; }
.avatars { display: flex; align-items: center; }
.avatars .avatar { width: 2rem; height: 2rem; font-size: .8125rem; border: 2px solid var(--surface); margin-left: -.5rem; }
.avatars .avatar:first-child { margin-left: 0; }
.avatars .avatar.more { background: var(--segmented); color: var(--muted-2); }

.meter { position: relative; height: .625rem; border-radius: 99px; background: var(--divider); }
.meter > span { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--ok); }
.meter.low > span { background: var(--warn); }
.meter > i { position: absolute; top: -.1875rem; bottom: -.1875rem; width: 2px; border-radius: 2px; background: var(--ink); }
.meter.thin { height: .375rem; }
.meter.thin > i { top: -.125rem; bottom: -.125rem; }

/* ───── Selector Día / Semana / Mes */
.segmented { display: flex; gap: .125rem; padding: .25rem; border-radius: .875rem; background: var(--segmented); }
.segmented button {
  flex: 1; min-height: 2.625rem; border: 0; border-radius: .625rem; background: transparent; padding: 0 .5rem;
  font-weight: 400; font-size: .9375rem; color: var(--muted-2); transition: background-color .15s;
}
.segmented button[aria-pressed="true"] { font-weight: 500; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-soft); }

/* ───── Tira de días */
.day-strip {
  display: flex; gap: .5rem; overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: .25rem var(--pad) .375rem;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); scrollbar-width: none; overscroll-behavior-x: contain;
}
.day-strip::-webkit-scrollbar { display: none; }
.day {
  flex: none; width: 3.25rem; height: 4.25rem; border-radius: 1rem; border: 1px solid var(--border); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1875rem; padding: 0;
  scroll-snap-align: start; position: relative; transition: transform .15s;
}
.day:active { transform: scale(.95); }
.day-name { font-size: .8125rem; font-weight: 400; color: var(--muted); }
.day-num { font-size: 1.25rem; font-weight: 500; line-height: 1; }
.day-dot { position: absolute; bottom: .4375rem; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.day-dot.warn { background: var(--warn); }
.day.is-off { background: transparent; border-color: transparent; }
.day.is-off .day-num, .day.is-off .day-name { color: var(--disabled); }
.day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); box-shadow: var(--shadow-pop); }
.day[aria-pressed="true"] .day-num { color: #fff; }
.day[aria-pressed="true"] .day-name { color: rgba(255, 255, 255, .75); }
.day[aria-pressed="true"] .day-dot { background: var(--brand-dot); }

/* ───── Calendario: semana y mes */
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.cal-nav-title { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.1; text-align: center; }
.cal-empty { text-align: center; padding: 1.5rem 0; color: var(--muted); }

/* Cada horario es una fila con una línea finita arriba: si hay varias clases a la misma hora, quedan juntas en su fila.
   El espacio entre días lo da el relleno de cada casillero (sin gap, la línea sale de corrido). */
.week { display: grid; grid-template-columns: 3.125rem repeat(var(--cols), minmax(0, 1fr)); align-items: stretch; }
.week-corner { min-height: 1px; }
.week-head { text-align: center; font-size: .8125rem; font-weight: 400; color: var(--muted); padding: 0 .1875rem .375rem; }
.week-head b { display: block; font-size: 1.0625rem; color: var(--ink); }
.week-head.is-today b, .week-head.is-today { color: var(--brand-ink); }
.week-time { font-size: .875rem; font-weight: 400; color: var(--muted); display: flex; align-items: center; border-top: 1px solid var(--divider); padding: .25rem 0; }
.week-slot { display: flex; flex-direction: column; gap: .25rem; min-width: 0; border-top: 1px solid var(--divider); padding: .25rem .1875rem; }

.cell {
  min-height: 2.875rem; width: 100%; border-radius: var(--r-cell); border: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center; gap: .125rem; padding: 0 .125rem;
  font-weight: 500; font-size: 1rem; color: var(--ink); line-height: 1.1; transition: transform .15s;
}
button.cell:active { transform: scale(.94); }
.cell .ms { font-size: 1.25rem; }
.cell.few, .cell.low { background: var(--warn-tint); border-color: var(--warn-border); color: var(--warn-ink); }
.cell.mine { background: var(--surface); border: 1.5px solid var(--brand); color: var(--brand-ink); }
.cell.ok { background: var(--ok-cell); border-color: var(--ok-cell-border); color: var(--ok-ink); }
.cell.full { background: var(--segmented); border-color: transparent; color: var(--muted-2); font-size: .8125rem; font-weight: 500; }
.cell.off { background: transparent; border-color: transparent; color: var(--disabled); font-weight: 400; font-size: .875rem; }
.cell.selected { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: var(--shadow-pop); }

/* Leyenda: muestra o puntito + texto, sin recuadro alrededor */
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; font-size: .875rem; color: var(--muted-2); }
.legend-item { display: inline-flex; align-items: center; gap: .5rem; }
.legend-item .cell { flex: none; width: 1.875rem; min-height: 1.625rem; border-radius: .5rem; font-size: .8125rem; }
.legend-item .cell .ms { font-size: 1rem; }
.legend-dot { flex: none; width: .625rem; height: .625rem; border-radius: 50%; background: var(--muted); }
.legend-dot.ok { background: var(--ok); }
.legend-dot.low { background: var(--warn); }
/* Varias clases a la misma hora en el celular: más bajitas */
.week:not(.desk) .week-slot.multi .cell { min-height: 2.375rem; }
.week:not(.desk) .week-slot.multi .cell.has-ic { min-height: 2.625rem; }

.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .375rem; }
.month-head { text-align: center; font-size: .8125rem; font-weight: 400; color: var(--muted); }
.mcell {
  min-height: 3.125rem; border-radius: var(--r-cell); border: 1px solid var(--border); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1875rem; padding: .25rem 0;
  font-weight: 500; font-size: 1.0625rem; color: var(--ink); position: relative; transition: transform .15s;
}
button.mcell:active { transform: scale(.94); }
.mcell .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-dot); }
.mcell .ms { font-size: 1rem; }
.mcell-sub { font-size: .8125rem; font-weight: 400; color: var(--muted); line-height: 1; }
.mcell.blank { visibility: hidden; }
.mcell.off { background: transparent; border-color: transparent; color: var(--disabled); font-weight: 400; }
.mcell.today { border: 2px solid var(--ink); }
.mcell.mine { background: var(--surface); border: 1.5px solid var(--brand); color: var(--brand-ink); font-weight: 600; }
.mcell.mine.today { border-width: 2px; }
.mcell.low { background: var(--warn-tint); border-color: var(--warn-border); }
.mcell.low .mcell-sub { color: var(--warn-ink); }
.mcell.admin { min-height: 3.375rem; }
.mcell.selected { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; box-shadow: var(--shadow-pop); }
.mcell.selected .dot { background: var(--brand-dot); }
.mcell.selected .mcell-sub { color: rgba(255, 255, 255, .75); }

/* ───── Clases (alumno) */
.class-card { display: flex; flex-direction: column; gap: .75rem; }
.class-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem .75rem; flex-wrap: wrap; }
.class-top > div:first-child { flex: 1 1 10rem; min-width: 0; }
.class-time { font-size: 1.375rem; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.class-time small { font-size: 1rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.class-meta { font-size: .9375rem; color: var(--muted); margin-top: .125rem; }
/* Quién da la clase */
.class-teacher { display: flex; align-items: center; gap: .3125rem; font-size: .9375rem; color: var(--muted); margin-top: .125rem; min-width: 0; }
.class-teacher .ms { font-size: 1.0625rem; color: var(--violet); }
.hero-teacher { display: flex; align-items: center; gap: .375rem; font-size: .9375rem; color: rgba(255, 255, 255, .85); margin-top: -.375rem; }
.hero-teacher .ms { font-size: 1.125rem; }
.chip-note { font-weight: 400; color: var(--muted); margin-left: .25rem; font-size: .875rem; }
.aclass.is-mine { border: 1.5px solid var(--brand); }
.class-card.is-mine { border: 1.5px solid var(--brand); }
.mine-tag { display: flex; align-items: center; gap: .375rem; color: var(--brand-ink); font-weight: 500; }
.mine-tag .ms { color: var(--brand); }
.class-card.is-off { background: var(--bg-soft); }
.class-card.is-off .class-time { color: var(--muted); }
.class-card.h { flex-direction: row; align-items: center; gap: 1rem; padding: 1rem 1.125rem; }
.class-card.h .class-time { min-width: 5rem; }
.class-card.h .btn { width: auto; min-width: 9rem; }
.btn-book { border: 1.5px solid var(--ink); font-size: 1.0625rem; min-height: 3.25rem; }
.btn-book:disabled { border-color: transparent; }

/* ───── Mis clases */
.hero-class { background: var(--ink); color: #fff; border-radius: var(--r-card); padding: 1.25rem; display: flex; flex-direction: column; gap: .875rem; }
.hero-label { font-size: .9375rem; font-weight: 500; color: var(--brand-dot); }
.hero-date { font-family: var(--serif); font-size: 1.875rem; line-height: 1.05; }
.hero-time { font-size: 1rem; font-weight: 400; margin-top: .25rem; color: rgba(255, 255, 255, .85); }
.later { display: flex; align-items: center; gap: .875rem; }
.later-date { width: 3rem; text-align: center; flex: none; }
.later-date small { display: block; font-size: .8125rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.later-date b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1; }
.shortcut { display: flex; align-items: center; gap: .875rem; }
.shortcut .row-icon { background: var(--ink); color: #fff; }
.signed-as { text-align: center; color: var(--muted); font-size: .9375rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .25rem .5rem; }

/* ───── Mi cuenta */
.account-head { display: flex; align-items: center; gap: .875rem; }
.account-name { font-family: var(--serif); font-size: 1.75rem; line-height: 1.05; overflow-wrap: anywhere; }

/* ───── Clases (administración) */
.alert-row {
  display: flex; align-items: center; gap: .75rem; padding: .625rem .625rem .625rem .875rem;
  border-radius: 1rem; background: var(--warn-tint); border: 1px solid var(--warn-border); color: var(--warn-ink);
}
.alert-row > .ms { color: var(--warn); }
.alert-row strong { display: block; font-size: 1rem; line-height: 1.2; }
.alert-row span { font-size: .875rem; }
.alert-row .btn { background: var(--surface); color: var(--warn-ink); border-color: var(--warn-border); }
/* align-items: stretch explícito: Safari les pone flex-start a los botones y la barra quedaba sin ancho. */
.aclass { display: flex; flex-direction: column; align-items: stretch; gap: .625rem; }
.aclass-time { font-size: 1.25rem; font-weight: 600; line-height: 1.1; }
.aclass-time small { font-size: 1rem; color: var(--muted); font-weight: 400; }
.aclass-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; font-size: .9375rem; color: var(--muted); }
.aclass-foot b { color: var(--ink); font-size: 1.0625rem; }
.aclass.is-off { background: var(--bg-soft); }
.detail-label { font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.detail-time { font-family: var(--serif); font-weight: 400; font-size: 2.25rem; line-height: 1; }
.detail-count { font-size: 1.0625rem; color: var(--muted); }
.detail-count b { font-size: 1.375rem; color: var(--ink); }

/* En la compu, cada clase es un renglón (tipo · anotados) con su barrita abajo, sin borde de color:
   el fondo dice si llega al mínimo. Si el nombre y el número no entran juntos, el número baja. */
.week.desk .week-time { align-items: flex-start; padding-top: .8125rem; line-height: 1; }
.week.desk .week-slot { padding: .375rem .25rem; }
.week.desk .week-head { padding: 0 .25rem .5rem; }
.week.desk .cell {
  min-height: 0; flex-direction: column; align-items: stretch; justify-content: center; gap: .3125rem;
  padding: .4375rem .5625rem .5rem; text-align: left; border-color: transparent; border-radius: .625rem;
}
.week.desk .cell-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 .375rem; min-width: 0; }
.week.desk .cell .cell-type {
  flex: 1 1 auto; min-width: 0; max-width: 100%; font-size: .8125rem; font-weight: 500; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.week.desk .cell .cell-count { font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.week.desk .cell .meter { height: .25rem; background: rgba(28, 25, 23, .08); }
.week.desk .cell .meter > i { display: none; }
.week.desk .cell.ok { background: var(--ok-tint); border-color: transparent; }
.week.desk .cell.low { background: var(--warn-tint); border-color: transparent; }
.week.desk .cell.selected { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: var(--shadow-pop); }
.week.desk .cell.selected .cell-type { color: rgba(255, 255, 255, .75); }
.week.desk .cell.selected .meter { background: rgba(255, 255, 255, .3); }
.week.desk .cell.selected .meter > span { background: #fff; }
.week.desk .cell.off { background: var(--bg-soft); }
.week.desk .cell.off .cell-type { color: var(--disabled); }

/* ───── Horarios */
.sched-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.sched-name { font-family: var(--serif); font-weight: 400; font-size: 1.625rem; line-height: 1.05; }
.sched-dates { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; color: var(--muted-2); font-size: .9375rem; }
.sched-dates .ms { color: var(--muted); font-size: 1.25rem; }
.sched-card.is-ended { background: var(--bg-soft); }
.sched-card.is-ended .sched-name { color: var(--muted); }
.dots7 { display: flex; gap: .375rem; }
.dot7 {
  width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: .875rem; font-weight: 500; background: var(--segmented); color: var(--disabled);
}
.dot7.on { background: var(--ink); color: #fff; }
button.dot7 { border: 0; width: 2.75rem; height: 2.75rem; font-size: 1rem; transition: transform .15s; }
button.dot7:active { transform: scale(.92); }
.dots7.pick { justify-content: space-between; gap: .25rem; }
.time-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.time-chip { display: inline-flex; align-items: center; padding: .3125rem .75rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--ink); font-weight: 500; font-size: .9375rem; }
.sched-foot { display: flex; align-items: center; gap: .5rem; padding-top: .75rem; border-top: 1px solid var(--divider); color: var(--muted); font-size: .9375rem; }
.sched-foot b { color: var(--ink); }
.day-times { display: flex; align-items: flex-start; gap: .75rem; }
.day-times .dot7 { margin-top: .125rem; }
.time-edit { display: inline-flex; align-items: center; border: 1.5px solid var(--border-strong); border-radius: 99px; background: var(--surface); padding-left: .75rem; }
.time-edit:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.time-edit input[type="time"] { border: 0; box-shadow: none; background: none; min-height: 2.75rem; font-weight: 500; font-size: 1rem; width: 6.5rem; padding: 0; outline: none; border-radius: 0; }
.time-edit button { width: 2.75rem; height: 2.75rem; border: 0; background: none; color: var(--muted); display: grid; place-items: center; border-radius: 50%; }
.add-time { min-height: 2.75rem; border-radius: 99px; border: 1.5px dashed var(--border-strong); background: none; color: var(--ink); font-weight: 500; padding: 0 .875rem; display: inline-flex; align-items: center; gap: .25rem; font-size: .9375rem; }
.day-block { display: flex; flex-direction: column; gap: .5rem; padding: .875rem 0; border-top: 1px solid var(--divider); }
.day-block:first-child { border-top: 0; padding-top: 0; }
.day-block-name { font-weight: 500; }
/* Formulario de un grupo de horarios: en la compu, el tipo y los horarios a la izquierda; fechas, cupo y guardar a la derecha */
.form-cols, .form-main, .form-side { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
@media (min-width: 1100px) {
  .form-cols { display: grid; grid-template-columns: minmax(0, 1fr) 24rem; gap: 1.25rem; align-items: start; }
  .form-side { position: sticky; top: 1.5rem; }
  .form-main .dots7.pick { max-width: 26rem; }
}

/* ───── Alumnos */
.link-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-card); padding: 1.125rem; display: flex; flex-direction: column; gap: .75rem; }
.link-card-title { font-size: 1.0625rem; font-weight: 500; display: flex; align-items: center; gap: .5rem; }
.link-card-title .ms { color: var(--brand); }
.link-card .mono { background: var(--surface); border: 1px solid var(--border); border-radius: .75rem; padding: .625rem .75rem; font-size: .9375rem; font-weight: 400; }
.link-card-actions { display: grid; grid-template-columns: 1fr 1fr auto; gap: .5rem; }
.link-card-actions .round-btn { width: 3.125rem; height: 3.125rem; border-radius: .875rem; }
.search { position: relative; }
.search .ms { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input[type="search"] { padding-left: 2.75rem; height: 3.125rem; min-height: 3.125rem; }
.fixed-chip { display: inline-flex; align-items: center; gap: .25rem; padding: .25rem .625rem; border-radius: 99px; background: var(--info-tint); color: var(--info); font-size: .875rem; font-weight: 500; white-space: nowrap; flex: none; }
.fixed-chip .ms { font-size: 1rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: -.25rem; }
.section-head .link-btn { margin: -.75rem -.25rem; }
.row.pre .row-sub { white-space: pre-line; }

/* ───── Ficha de salud y días y horarios del alumno */
.health-group { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.health-group .field-help { margin-top: -.25rem; }
textarea { resize: vertical; line-height: 1.4; }
.check-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
/* Pregunta de sí o no: con «Sí» aparece lo de adentro (cuál o qué) */
.yes-no { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.yes-no .choice { padding: .75rem 1rem; }
.health-more { display: flex; flex-direction: column; gap: .5rem; padding: .75rem; border-radius: .875rem; background: var(--bg-soft); }
.chip.check { display: inline-flex; align-items: center; gap: .25rem; color: var(--ink); }
.chip.check .ms { font-size: 1.125rem; margin-left: -.25rem; }
.plan { display: flex; flex-direction: column; }
.plan-title { font-family: var(--serif); font-size: 1.375rem; line-height: 1.1; padding-bottom: .5rem; }
.plan-day { display: grid; grid-template-columns: 5.75rem minmax(0, 1fr); gap: .75rem; align-items: start; padding: .75rem 0; border-top: 1px solid var(--divider); }
.plan-day:first-child { border-top: 0; padding-top: 0; }
.plan-day-name { font-weight: 500; min-height: 2.75rem; display: flex; align-items: center; }

/* ───── Avisos */
.chips {
  display: flex; gap: .5rem; overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: .125rem var(--pad);
  scroll-snap-type: x proximity; scroll-padding: 0 var(--pad); scrollbar-width: none; overscroll-behavior-x: contain;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 2.75rem; padding: 0 1rem; border-radius: 99px; border: 1px solid var(--border-strong); background: var(--surface);
  font-weight: 400; font-size: .9375rem; color: var(--muted-2); white-space: nowrap; scroll-snap-align: start; transition: background-color .15s;
}
.chip[aria-pressed="true"] { font-weight: 500; background: var(--ink); border-color: var(--ink); color: #fff; }
.act { align-items: flex-start; padding-top: .875rem; padding-bottom: .875rem; }
.act .row-main { display: flex; flex-direction: column; gap: .125rem; }
.act-time { font-size: .875rem; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: .375rem; }
.unread-dot { width: .5625rem; height: .5625rem; border-radius: 50%; background: var(--brand); flex: none; }
.act .btn { margin-top: .5rem; align-self: flex-start; }

/* ───── Formularios */
form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .375rem; min-width: 0; }
.field-label { font-size: .9375rem; font-weight: 500; }
.field-help { font-size: .875rem; color: var(--muted); }
.field-msg { font-size: .9375rem; font-weight: 500; display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.field-msg .ms { font-size: 1.125rem; }
input[type="text"], input[type="tel"], input[type="password"], input[type="date"], input[type="time"], input[type="search"], input[type="email"], select, textarea {
  width: 100%; min-height: 3.25rem; padding: .625rem .875rem; border: 1.5px solid var(--border-strong); border-radius: .875rem;
  background: var(--surface); font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
input[type="time"], input[type="date"] { -webkit-appearance: none; appearance: none; }
.input-wrap {
  display: flex; align-items: center; min-height: 3.25rem; border: 1.5px solid var(--border-strong); border-radius: .875rem; background: var(--surface);
  transition: border-color .15s, box-shadow .15s; overflow: hidden;
}
.input-wrap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.input-wrap input { border: 0; box-shadow: none !important; min-height: 3.125rem; flex: 1; min-width: 0; border-radius: 0; }
.input-prefix { padding-left: 1rem; color: var(--muted); white-space: nowrap; font-size: 1rem; }
.input-prefix + input { padding-left: 0; }
.input-wrap .round-btn { border: 0; margin-right: .375rem; }
.form-error { color: var(--danger); background: var(--danger-tint); padding: .75rem .875rem; border-radius: .875rem; font-weight: 500; font-size: .9375rem; }
.phone-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .5rem; }

.choice {
  display: flex; align-items: center; gap: .875rem; width: 100%; padding: 1rem; text-align: left;
  border-radius: 1rem; border: 1.5px solid var(--border-strong); background: var(--surface); color: inherit; transition: border-color .15s, background-color .15s;
}
.choice[aria-checked="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.choice-dot { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; display: grid; place-items: center; background: var(--surface); }
.choice[aria-checked="true"] .choice-dot { border-color: var(--brand); }
.choice[aria-checked="true"] .choice-dot::after { content: ""; width: .75rem; height: .75rem; border-radius: 50%; background: var(--brand); }
.choice-title { font-weight: 500; display: block; }
.choice-sub { font-size: .9375rem; color: var(--muted); display: block; }

.stepper { display: flex; align-items: center; gap: .75rem; }
.stepper button {
  width: 3rem; height: 3rem; border-radius: .875rem; border: 1px solid var(--border); flex: none; background: var(--tint); color: var(--ink);
  display: grid; place-items: center; transition: transform .15s;
}
.stepper button:active:not(:disabled) { transform: scale(.92); }
.stepper button:disabled { background: var(--segmented); border-color: transparent; color: var(--disabled); }
.stepper output { flex: 1; text-align: center; font-size: 1.25rem; font-weight: 500; line-height: 1.15; }
.stepper output small { display: block; font-size: .875rem; font-weight: 400; color: var(--muted); }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

.progress { display: flex; gap: .375rem; }
.progress span { flex: 1; height: .3125rem; border-radius: 99px; background: var(--border); }
.progress span.on { background: var(--brand); }

/* ───── Hojas (suben desde abajo; en escritorio, ventana en el centro) */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 50; background: var(--overlay);
  display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease-out;
}
.sheet {
  background: var(--surface); width: 100%; max-width: 35rem; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  border-radius: 1.75rem 1.75rem 0 0; padding: 0 var(--pad) calc(1.25rem + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-sheet); outline: none; animation: up .2s ease-out;
}
.sheet-handle { width: 40px; height: 5px; border-radius: 99px; background: var(--border-strong); margin: .625rem auto 0; }
.sheet-head { position: sticky; top: 0; z-index: 2; background: var(--surface); display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .625rem 0 .75rem; }
.sheet-head h2 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.05; }
.sheet-body { display: flex; flex-direction: column; gap: 1rem; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes down { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop-in { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

.summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 1.125rem; display: flex; flex-direction: column; gap: .125rem; }
.summary-day { font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.summary-time { font-family: var(--serif); font-size: 2rem; line-height: 1.05; }
.summary-name { color: var(--muted); }
.summary.is-current { border: 1.5px solid var(--brand); }
.summary.is-current .summary-day { color: var(--brand-ink); }
.summary.is-old { background: transparent; border-style: dashed; border-color: var(--border-strong); }
.summary.is-old .summary-time { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.swap-arrow { display: grid; place-items: center; color: var(--muted); margin: -.375rem 0; }

.done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .625rem; padding: .5rem 0 .75rem; }
.done-icon { width: 5.5rem; height: 5.5rem; border-radius: 50%; background: var(--ok-tint); color: var(--ok); display: grid; place-items: center; }
.done-icon .ms { font-size: 3.25rem; }
.done-title { font-family: var(--serif); font-size: 1.875rem; line-height: 1.05; }

/* Cuando todavía no hay nada: siempre en un recuadro, así se nota que ahí va algo (nunca suelto sobre el fondo).
   Adentro de algo que ya es un recuadro (una sección, una tarjeta, una hoja) va sin su propio borde. */
.empty {
  text-align: center; padding: 2.25rem 1.25rem; display: flex; flex-direction: column; align-items: center; gap: .75rem;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-card);
}
.empty-icon { width: 4rem; height: 4rem; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--ink-2); display: grid; place-items: center; }
.empty-icon .ms { font-size: 2rem; }
.empty h2 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.1; }
.empty p { max-width: 32rem; }
.empty .btn { width: auto; }
.card .empty, .list-card .empty, .sheet-body .empty { background: none; border: 0; box-shadow: none; padding: 1.75rem 1rem; }
.card .empty-icon, .list-card .empty-icon, .sheet-body .empty-icon { background: var(--tint); border-color: transparent; }

/* Calendario sin clases: la grilla de esta semana apagada, con el aviso encima. Así se ve dónde van a aparecer. */
/* En el celular, la grilla arriba (se va desvaneciendo) y el aviso abajo; en la compu, el aviso flota encima de la grilla. */
.cal-ghost { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: .875rem .5rem 0; overflow: hidden; }
.cal-ghost .week { opacity: .8; max-height: 11.5rem; overflow: hidden; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.cal-ghost .week-slot { min-height: 3rem; }
.cal-ghost .cell.ghost { min-height: 2.5rem; border: 0; background: var(--segmented); }
.cal-ghost-msg { position: relative; display: grid; place-items: center; margin-top: -2.5rem; }
.cal-ghost-msg .empty { background: none; border: 0; padding: 0 .75rem 1.75rem; }
.cal-ghost-msg .empty-icon { background: var(--tint); border-color: transparent; }

.notice { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem; border-radius: 1rem; background: var(--warn-tint); border: 1px solid var(--warn-border); color: var(--warn-ink); }
.notice > .ms { color: var(--warn); }
.notice.brand { background: var(--bg-soft); border-color: var(--border); color: var(--ink); }
.notice.brand > .ms { color: var(--brand); }
.notice.info { background: var(--info-tint); border-color: #CCDBF0; color: #1F4373; }
.notice.info > .ms { color: var(--info); }
.notice.ok { background: var(--ok-tint); border-color: var(--ok-cell-border); color: var(--ok-ink); }
.notice.ok > .ms { color: var(--ok); }
.notice.danger { background: var(--danger-tint); border-color: #F2C9C2; color: #7E2A20; }
.notice.danger > .ms { color: var(--danger); }
.notice strong { display: block; }
/* Avisos arriba de la pantalla (la ficha, la cuota, los mensajes del estudio): ícono, texto y sus botones.
   En el celular los botones van abajo del texto; en la compu, a la derecha y todo en una fila. */
.banners { display: flex; flex-direction: column; gap: .625rem; }
.notice.notice-row { flex-wrap: wrap; }
.notice-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: .125rem; }
.notice-text p + p { margin-top: .25rem; }
.notice-actions { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: .5rem; padding-left: 2.125rem; }
.notice-actions .btn { width: auto; }
.notice-tap { width: 100%; text-align: left; font: inherit; cursor: pointer; align-items: center; }
.notice-tap:hover { border-color: var(--ink); }
.notice-tap > .ms:last-child { color: var(--muted); }

.qr { width: 100%; max-width: 18rem; aspect-ratio: 1; margin: 0 auto; display: block; border-radius: 1rem; background: var(--surface); border: 1px solid var(--border); }
.share-box { background: var(--bg-soft); border: 1px solid var(--border); border-radius: .875rem; padding: .75rem .875rem; }
.share-row { display: flex; align-items: center; gap: .5rem; }
.share-row .share-box { flex: 1; min-width: 0; }
.share-row .btn { flex: none; }

/* ───── Toasts */
.toasts {
  position: fixed; left: 0; right: 0; z-index: 90; pointer-events: none; top: calc(env(safe-area-inset-top) + .75rem);
  display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 0 var(--pad);
}
.toast {
  background: var(--ink); color: #fff; padding: .875rem 1.125rem; border-radius: 1rem; max-width: 30rem; width: 100%;
  font-weight: 500; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); animation: down .2s ease-out; display: flex; gap: .5rem; align-items: center;
}
.toast .ms { color: #8FD9B6; }
.toast-error { background: var(--danger); }
.toast-error .ms { color: #fff; }

/* ───── Carga */
.boot { min-height: 100dvh; display: grid; place-items: center; }

/* ───── Entrada por el link del estudio (ingresar o pedir el lugar), solicitud enviada y cuotas vencidas:
   arriba el estudio y abajo lo que hay que hacer, en una tarjeta (en el celular, sin borde). */
.gate {
  min-height: 100dvh; display: flex; flex-direction: column; align-items: center;
  padding: calc(env(safe-area-inset-top) + 2.25rem) var(--pad) calc(env(safe-area-inset-bottom) + 1.5rem);
}
.gate-main { width: 100%; max-width: 27rem; display: flex; flex-direction: column; gap: 1.75rem; }
.gate-head { display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center; }
.gate-head .studio-mark { width: 3.75rem; height: 3.75rem; font-size: 2.25rem; border-radius: 1.125rem; }
.gate-studio { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.05; overflow-wrap: anywhere; }
.gate-card { display: flex; flex-direction: column; gap: 1.125rem; }
.gate-card.center { align-items: center; text-align: center; }
.gate-title { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.1; }
.gate-card .lead { margin-top: -.375rem; }
.gate-foot { display: flex; flex-direction: column; align-items: center; gap: .25rem; text-align: center; font-size: .9375rem; color: var(--muted); }
.gate-foot .link-btn { min-height: 2.5rem; padding: .25rem; }
/* El celular que escribió, con «Cambiar», mientras completa lo que sigue */
.entry-phone { display: flex; align-items: center; gap: .75rem; padding: .375rem .375rem .375rem 1rem; border-radius: .875rem; background: var(--bg-soft); border: 1px solid var(--border); }
.entry-phone .grow { display: flex; flex-direction: column; }
.entry-phone small { font-size: .8125rem; color: var(--muted); }
.entry-phone b { font-weight: 500; }
.entry-phone .link-btn { padding: .5rem .75rem; }
@media (min-width: 640px) {
  body:has(.gate) { background: var(--canvas); }
  .gate { justify-content: center; padding: 3rem 1.5rem; }
  .gate-main { max-width: 29rem; }
  .gate-card { background: var(--surface); border: 1px solid var(--border); border-radius: 1.5rem; padding: 2rem; box-shadow: var(--shadow-card); }
}

/* Solicitud enviada y cuotas vencidas: un ícono grande, el título y los botones */
.waiting-icon { width: 5rem; height: 5rem; border-radius: 50%; background: var(--warn-tint); color: var(--warn-ink); display: grid; place-items: center; }
.waiting-icon .ms { font-size: 2.75rem; }
.waiting-actions { display: flex; flex-direction: column; gap: .625rem; width: 100%; margin-top: .25rem; }

/* Cuotas vencidas: solo cómo pagar */
.debt .copy-box { width: 100%; text-align: left; }
.debt-amount { font-family: var(--serif); font-size: 2.25rem; line-height: 1; }
.loading { display: grid; place-items: center; padding: 3rem 0; }
.spinner { width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 4px solid var(--tint); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════ Super administración: métricas y tablas */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: .875rem 1rem; display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.kpi-label { font-size: .875rem; color: var(--muted); display: flex; align-items: center; gap: .375rem; }
.kpi-label .ms { font-size: 1.125rem; }
.kpi-value { font-size: 1.875rem; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.kpi-delta { font-size: .8125rem; color: var(--muted); }
.kpi-delta b { color: var(--ok-ink); font-weight: 500; }
.chart-card { display: flex; flex-direction: column; gap: .75rem; }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.chart-title { font-weight: 500; }
.chart-sub { font-size: .875rem; color: var(--muted); }
/* Columnas de una serie: 2px de aire entre barras, punta redondeada de 4px y base recta. */
.bars { position: relative; display: grid; grid-template-columns: 2rem minmax(0, 1fr); grid-template-rows: 10rem auto; column-gap: .5rem; }
.bars-y { position: relative; }
.bars-y span { position: absolute; right: 0; transform: translateY(50%); font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bars-plot { position: relative; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--border-strong); }
.bars-grid { position: absolute; left: 0; right: 0; height: 1px; background: var(--divider); pointer-events: none; }
.bar-col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bar { display: block; width: 100%; max-width: 24px; background: var(--chart); border-radius: 4px 4px 0 0; }
.bar-col.on .bar { background: #2A4BA8; }
.bars-x { grid-column: 2; display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); padding-top: .375rem; }
.bars-tip {
  position: absolute; transform: translate(-50%, calc(-100% - .5rem)); pointer-events: none; white-space: nowrap; z-index: 2;
  background: var(--ink); color: #fff; font-size: .8125rem; padding: .3125rem .5rem; border-radius: .5rem;
}
.data-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.data-table th { text-align: left; font-weight: 500; font-size: .8125rem; color: var(--muted); padding: .625rem .75rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: .75rem; border-bottom: 1px solid var(--divider); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { cursor: pointer; transition: background-color .15s; }
.data-table tbody tr:hover { background: var(--bg-soft); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); overflow-x: auto; }
.studio-line { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.studio-line .studio-mark { width: 2.25rem; height: 2.25rem; font-size: 1.25rem; border-radius: .625rem; }
.stat-pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.stat-pair { background: var(--bg-soft); border-radius: .875rem; padding: .625rem .75rem; }
.stat-pair b { display: block; font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-pair span { font-size: .8125rem; color: var(--muted); }


/* ═══════════════ Sitio de presentación: ingresar y crear estudio (la portada va al final) */
.site { min-height: 100dvh; display: flex; flex-direction: column; background: var(--surface); }
.site main { flex: 1; }


.auth { flex: 1; display: grid; }
.auth-side { display: none; }
.auth-form { display: flex; flex-direction: column; gap: 1.25rem; width: 100%; max-width: 26.25rem; margin: 0 auto; padding: 2rem var(--pad) 2.5rem; }
/* El logo: el ícono y el nombre en Geist, igual que los archivos de public/brand. El ícono va a 32 px (en px, no en rem):
   la figura está dibujada sobre una grilla que a ese tamaño cae justo en los píxeles, así se ve nítida. */
.auth-logo { display: flex; align-items: center; gap: .5rem; font-family: "Geist", var(--font); font-weight: 600; font-size: 1.375rem; letter-spacing: -.035em; color: var(--ink); text-decoration: none; }
.auth-logo img { width: 32px; height: 32px; }
.auth-title { font-family: var(--serif); font-weight: 400; font-size: 2.625rem; line-height: 1; }
.auth-help { display: flex; flex-direction: column; gap: .75rem; }
.auth-foot { text-align: center; color: var(--muted-2); }
.create-bar { position: sticky; bottom: 0; background: var(--surface); padding: .75rem 0 calc(.75rem + env(safe-area-inset-bottom)); margin-top: auto; }

@media (min-width: 640px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .auth { grid-template-columns: 1fr 1fr; }
  .auth-side {
    display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; position: relative; overflow: hidden;
    background: var(--ink); color: #fff; padding: 2.5rem 3rem;
  }
  .auth-side::before { content: ""; position: absolute; inset: 0; background: radial-gradient(28rem 20rem at 80% 10%, rgba(210, 105, 79, .3), transparent 70%); pointer-events: none; }
  .auth-side > * { position: relative; }
  .auth-side .auth-logo { color: #fff; }
  .auth-photo { flex: 1; min-height: 16rem; display: grid; place-items: center; }
  .auth-photo img { width: min(15rem, 70%); height: auto; border-radius: 1.75rem; border: .4375rem solid #2E2A27; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
  .auth-quote { font-family: var(--serif); font-size: 2rem; line-height: 1.15; }
  .auth-quote em { color: var(--brand-dot); }
  .auth-quote-by { font-weight: 400; font-size: 1rem; margin-top: .75rem; color: rgba(255, 255, 255, .7); }
  .auth-form { justify-content: center; padding: 3rem var(--pad); }
  .auth-form > .auth-logo.mobile-only { display: none; }
}

/* ═══════════════ Tablet: igual que el celular, centrado */
@media (min-width: 768px) and (max-width: 1099.98px) {
  .content, .app-header { max-width: 35rem; margin-left: auto; margin-right: auto; }
  .app-header { position: sticky; }
}

/* ═══════════════ Escritorio */
@media (min-width: 1100px) {
  html { font-size: 87.5%; }
  body:has(.shell) { background: var(--surface); }
  .btn, .btn-sm { min-height: 2.75rem; }
  .round-btn, .icon-wa { width: 2.75rem; height: 2.75rem; }
  .btn-primary, .btn-brand, .btn-danger, .btn-dashed { min-height: 2.875rem; }
  .btn-sm.btn-wa, .btn-sm.btn-primary, .btn-sm.btn-brand { min-height: 2.75rem; }
  input[type="text"], input[type="tel"], input[type="password"], input[type="date"], input[type="time"], input[type="search"], input[type="email"], select, .input-wrap { min-height: 2.875rem; }
  .input-wrap input { min-height: 2.75rem; }
  .row { min-height: 3.125rem; }
  .class-card.h { padding: .75rem 1rem; }
  .shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 100vh; height: 100dvh; overflow: hidden; }
  .shell.has-super { grid-template-rows: auto minmax(0, 1fr); }
  .shell.has-super > .super-bar { grid-column: 1 / -1; }
  .shell > * { min-height: 0; }
  .sidebar { display: flex; }
  .main { overflow-y: auto; overscroll-behavior: contain; }
  .app-header, .tabbar { display: none; }
  .content, .has-tabs .content { padding: 2rem 2.5rem 3rem; gap: 1.125rem; max-width: 62rem; }
  .content.wide { max-width: 90rem; }
  .sheet-backdrop { align-items: center; padding: 2rem; }
  .sheet {
    width: 100%; max-width: 36rem; max-height: min(88dvh, 56rem); border-radius: 1.5rem;
    padding: .5rem 1.75rem 1.75rem; animation: pop-in .18s ease-out; box-shadow: 0 24px 64px rgba(28, 25, 23, .22);
  }
  .sheet-handle { display: none; }
  /* Clases: la fecha con sus flechas y «Hoy» */
  .date-nav { display: flex; align-items: center; gap: .875rem; min-width: 0; }
  .date-nav-arrows { display: flex; gap: .25rem; }
  .date-nav .page-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .page-actions .segmented { min-width: 16rem; }
  .cal-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; }
  .desk-grid > .add-tile { align-self: stretch; min-height: 8rem; border-radius: var(--r-card); background: rgba(255, 255, 255, .5); }
  .side-card .mono { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal; }
  .desk-book { display: grid; grid-template-columns: 26rem minmax(0, 1fr); gap: 1.75rem; align-items: start; }
  .mobile-only { display: none !important; }
}
@media (max-width: 1099.98px) {
  .desk-only { display: none !important; }
}

@media (hover: hover) {
  .btn:hover:not(:disabled) { filter: brightness(.97); }
  .btn-primary:hover:not(:disabled) { filter: none; background: #2C2724; }
  .btn-outline:hover:not(:disabled), .btn-white:hover:not(:disabled) { filter: none; border-color: var(--ink-2); }
  button.cell:hover, button.mcell:hover { border-color: var(--border-strong); }
  .week.desk button.cell:hover { border-color: transparent; filter: brightness(.97); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Columnas de escritorio: en el celular se apilan */
.desk-grid, .desk-cols { display: flex; flex-direction: column; gap: 1rem; }
.desk-cols > * { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
/* Ajustes: en la compu, dos columnas de secciones (la tercera va abajo a la izquierda). */
.settings-grid { display: flex; flex-direction: column; gap: 1rem; }

/* Tu plan de TurniPilates: los planes como opciones (radio) con el precio a la derecha, y la pantalla de administración pausada. */
.plan-options { display: flex; flex-direction: column; gap: .5rem; }
.plan-option { align-items: center; }
.plan-option-top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.plan-option-limits > span + span::before { content: " · "; }
@media (max-width: 599.98px) {
  .plan-option-limits > span { display: block; }
  .plan-option-limits > span + span::before { content: none; }
}
.plan-option-price { display: flex; flex-direction: column; align-items: flex-end; flex: none; text-align: right; }
.plan-option-price b { font-size: 1.0625rem; font-weight: 600; }
.plan-option-price span { font-size: .8125rem; color: var(--muted); }
.paywall { min-height: 100vh; min-height: 100dvh; background: var(--bg-soft); display: flex; justify-content: center;
  padding: calc(env(safe-area-inset-top) + 2rem) var(--pad) calc(env(safe-area-inset-bottom) + 2rem); }
.paywall-in { width: 100%; max-width: 34rem; display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 1100px) {
  .desk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); gap: 1rem; align-items: start; }
  .desk-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
  .desk-cols.side { grid-template-columns: minmax(0, 1fr) 21rem; }
  .desk-cols.side > .aside { order: 2; position: sticky; top: 0; }
  .settings-grid { display: block; columns: 2; column-gap: 1.5rem; }
  .settings-grid > .box { break-inside: avoid; margin: 0 0 1.5rem; }
}

/* ═══════════════ Escritorio: lienzo gris cálido con tarjetas blancas, barra lateral blanca, cada pantalla con su
   encabezado (título + acción principal) y el contenido agrupado en secciones con borde. Nada abre al costado:
   los detalles van en ventanas centradas (.sheet). */
@media (min-width: 1100px) {
  body:has(.shell) { background: var(--canvas); }
  .main { background: var(--canvas); }
  .content, .has-tabs .content { width: 100%; max-width: 76rem; margin: 0 auto; padding: 1.75rem 2.5rem 3.5rem; gap: 1.25rem; }
  .content.wide { max-width: 90rem; }

  /* Barra lateral */
  .sidebar { background: var(--surface); padding: 1.25rem .875rem 1rem; gap: 1.5rem; }
  .side-brand { padding: .25rem .5rem 1.125rem; border-bottom: 1px solid var(--divider); }
  .side-item { min-height: 2.625rem; }
  .side-item:hover { background: var(--bg-soft); }
  .side-item[aria-current="page"] { background: var(--tint); box-shadow: none; }
  .side-card { background: var(--bg-soft); }
  .side-user { border-top: 1px solid var(--divider); border-radius: 0 0 .75rem .75rem; padding-top: .75rem; }

  /* Encabezado de cada pantalla */
  .page-head { align-items: center; padding: 0 0 .25rem; min-height: 3rem; }
  .page-title { font-size: 2.25rem; }
  .page-sub { margin-top: 0; }
  .page-actions .btn { width: auto; }

  /* Tarjetas y listas sobre el lienzo */
  .card, .list-card, .kpi, .table-card, .link-card { box-shadow: var(--shadow-card); }
  .link-card, .notice.brand { background: var(--surface); }
  .notice .btn-pair { display: flex; flex-wrap: wrap; }
  .notice .btn-pair .btn { width: auto; padding: 0 1.25rem; }
  .card-btn:hover { border-color: var(--border-strong); box-shadow: 0 2px 4px rgba(28, 25, 23, .05), 0 8px 24px rgba(28, 25, 23, .08); }

  /* Secciones con encabezado */
  .box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-card); gap: 0; overflow: hidden; }
  .box-head { padding: .875rem 1.25rem; min-height: 3.5rem; border-bottom: 1px solid var(--divider); }
  .box-title { font-size: 1.0625rem; letter-spacing: 0; text-transform: none; color: var(--ink); }
  .box-body { padding: 1.25rem; }
  .box-body.flush { padding: 0; gap: 0; }
  .box-body.flush > .list-card, .box-body.flush > .table-card { border: 0; border-radius: 0; box-shadow: none; }
  .box-foot { padding: .75rem 1.25rem; border-top: 1px solid var(--divider); background: var(--bg-soft); font-size: .875rem; }
  .box .btn-sm { min-height: 2.5rem; }
  .group-bar { min-height: 2.75rem; }
  .group-bar .btn { width: auto; }

  /* Chips y buscador dentro de un encabezado */
  .box-head .chips, .page .chips { margin: 0; padding: 0; overflow: visible; flex-wrap: wrap; }
  .box-head .search { flex: 1 1 18rem; max-width: 26rem; }
  .box-head .search input[type="search"] { height: 2.75rem; min-height: 2.75rem; }
  .box-head > .segmented { flex: 0 1 24rem; min-width: 18rem; }
  .box-body.flush > .card { border: 0; border-radius: 0; box-shadow: none; padding: 1.25rem; }
  .box-body.flush > * + * { border-top: 1px solid var(--divider); }
  .content.narrow { max-width: 58rem; }
  .load-more { width: auto; align-self: center; padding: 0 1.5rem; }

  /* Mes con flechas dentro del encabezado de la pantalla */
  .page-actions .cal-nav { gap: .25rem; margin-right: .5rem; }
  .page-actions .cal-nav-title { font-size: 1.375rem; min-width: 10rem; }

  /* Tablas: margen interno alineado con el encabezado de su sección */
  .data-table th { background: var(--bg-soft); }
  .data-table th:first-child, .data-table td:first-child { padding-left: 1.25rem; }
  .data-table th:last-child, .data-table td:last-child { padding-right: 1.25rem; }

  /* Sin nada todavía: tarjeta blanca sobre el lienzo */
  .empty { background: var(--surface); box-shadow: var(--shadow-card); padding: 3rem 2rem; }
  .empty-icon { background: var(--tint); border-color: transparent; }
  /* En la compu las secciones son tarjetas: adentro, el vacío va sin borde (en el celular la sección no tiene recuadro) */
  .box-body .empty { background: none; border: 0; box-shadow: none; padding: 1.75rem 1rem; }
  .cal-ghost { display: grid; box-shadow: var(--shadow-card); padding: 1.25rem 1.25rem .75rem; min-height: 26rem; }
  .cal-ghost > * { grid-area: 1 / 1; }
  .cal-ghost .week { max-height: none; -webkit-mask-image: none; mask-image: none; }
  .cal-ghost .week-slot { min-height: 3.5rem; }
  .cal-ghost-msg { margin-top: 0; padding: 1rem; }
  .cal-ghost-msg .empty { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-pop); max-width: 30rem; width: 100%; padding: 1.75rem 1.25rem; }

  /* Avisos arriba: todo en una fila, los botones a la derecha */
  .notice.notice-row { flex-wrap: nowrap; align-items: center; padding: .875rem 1rem .875rem 1.125rem; }
  .notice.notice-row > .ms { align-self: center; }
  .notice-actions { flex: none; padding-left: 0; }
}

/* App del alumno: lo principal (su próxima clase y las que siguen) y, al costado en la compu, sus días y el contacto */
.student-cols, .student-main, .student-side { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.contact-row .row-sub { font-size: .875rem; }
@media (min-width: 1100px) {
  .student-cols { display: grid; grid-template-columns: minmax(0, 1fr) 24rem; gap: 1.5rem; align-items: start; }
  .student-main, .student-side { gap: 1.25rem; }
  .student-cols .hero-class { padding: 1.5rem 1.75rem; }
  .student-cols .hero-class .btn-pair { max-width: 26rem; }
}

/* ═══════════════ Pagos, números y clases para recuperar */
:root { --chart-2: #EB6834; } /* gastos (los ingresos usan --chart); validados juntos para daltonismo */

/* Administración en el celular: campanita de Avisos (con el globito) y «volver» en las secciones que no están abajo */
.round-btn.bell { position: relative; }
.round-btn.bell.on { background: var(--tint); border-color: transparent; }
.round-btn.bell.on .ms { color: var(--brand); }
.round-btn.bell .count-badge { position: absolute; top: -.25rem; right: -.25rem; }
.back-link {
  display: inline-flex; align-items: center; gap: .125rem; align-self: flex-start; min-height: 2.75rem; margin: -.5rem 0 -.5rem -.375rem;
  padding: 0 .5rem 0 0; border: 0; background: none; color: var(--brand-ink); font-weight: 500; font-size: 1rem;
}

/* Elegir una opción tocando un chip: el mes, el medio de pago, la categoría */
.chip.pick { display: inline-flex; align-items: center; gap: .375rem; color: var(--ink); }
.chip.pick .ms { font-size: 1.125rem; color: var(--muted-2); margin-left: -.25rem; }
.chip.pick[aria-checked="true"] { font-weight: 500; background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.pick[aria-checked="true"] .ms { color: #fff; }

/* Campo de monto: grande y con el signo de la moneda */
.amount-input .input-prefix { font-size: 1.25rem; color: var(--muted-2); padding-right: .25rem; }
.amount-input input { font-size: 1.5rem; font-weight: 500; letter-spacing: -.01em; }

/* Pagos */
.pay-summary { display: flex; flex-direction: column; gap: .5rem; }
.pay-big { font-size: 2rem; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; overflow-wrap: anywhere; }
.progress-bar { height: .625rem; border-radius: 99px; background: var(--ok-tint); overflow: hidden; }
.progress-bar > span { display: block; height: 100%; border-radius: 99px; background: var(--ok); }
.pay-row { padding-right: .75rem; }
.row-tap {
  display: flex; align-items: center; gap: .75rem; flex: 1; min-width: 0; min-height: 2.75rem; padding: 0;
  border: 0; background: none; text-align: left; color: inherit;
}
.row-tap .row-title, .row-tap .row-sub { display: block; }
p .ms { vertical-align: -3px; }

/* Números: tiles, leyenda y gráficos */
.money-kpis .kpi-value { font-size: clamp(1.125rem, 5vw, 1.5rem); font-variant-numeric: normal; overflow-wrap: anywhere; }
.kpi-delta .ms { font-size: 1rem; vertical-align: -3px; }
.kpi-delta b.danger-text { color: var(--danger); }
@media (min-width: 640px) and (max-width: 1099.98px) {
  .money-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
h2.chart-title { font-size: 1.0625rem; }
.legend-keys { display: flex; gap: 1rem; font-size: .875rem; color: var(--muted-2); }
.legend-keys span { display: inline-flex; align-items: center; gap: .375rem; }
.key { display: inline-block; width: .625rem; height: .625rem; border-radius: 2px; flex: none; }
.key.in { background: var(--chart); }
.key.out { background: var(--chart-2); }

/* Columnas de ingresos y gastos por mes: barras de 24px como mucho, 2px entre las dos de cada mes, punta redondeada */
.cols { position: relative; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); grid-template-rows: 10rem auto; column-gap: .5rem; }
.cols-y { position: relative; }
.cols-y span { position: absolute; right: 0; transform: translateY(50%); font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cols-plot { position: relative; display: flex; align-items: flex-end; border-bottom: 1px solid var(--border-strong); }
.cols-grid { position: absolute; left: 0; right: 0; height: 1px; background: var(--divider); pointer-events: none; }
.cols-group { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; border-radius: .5rem .5rem 0 0; }
.cols-group.on { background: var(--bg-soft); }
.cols-group:focus-visible { outline-offset: -3px; }
.col { display: block; width: 36%; max-width: 24px; border-radius: 4px 4px 0 0; }
.col.in { background: var(--chart); }
.col.out { background: var(--chart-2); }
.cols-x { grid-column: 2; display: flex; font-size: .75rem; color: var(--muted); padding-top: .375rem; }
.cols-x span { flex: 1; text-align: center; }
.cols-tip {
  position: absolute; transform: translate(-50%, calc(-100% - .5rem)); pointer-events: none; z-index: 2; white-space: nowrap;
  display: flex; flex-direction: column; gap: .125rem; padding: .375rem .625rem; border-radius: .5rem;
  background: var(--ink); color: #fff; font-size: .8125rem;
}
.cols-tip span { display: inline-flex; align-items: center; gap: .375rem; }

/* Barras horizontales de una sola serie (planes, categorías, horarios): nombre y valor arriba, la barra abajo */
.hbars { display: flex; flex-direction: column; gap: .75rem; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label value" "track track"; gap: .25rem .75rem; font-size: .9375rem; }
.hbar-label { grid-area: label; display: inline-flex; align-items: center; gap: .375rem; min-width: 0; }
.hbar-label .ms { font-size: 1.125rem; color: var(--muted); }
.hbar-value { grid-area: value; color: var(--muted-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hbar-track { grid-area: track; height: .5rem; border-radius: 99px; background: var(--info-tint); }
.hbar-track > span { display: block; height: 100%; border-radius: 99px; background: var(--chart); }

/* Contabilidad */
.ledger-totals { display: flex; flex-direction: column; gap: .375rem; }
.ledger-line { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; font-size: 1.0625rem; }
.ledger-line span { color: var(--muted-2); }
.ledger-line b { font-weight: 500; font-variant-numeric: tabular-nums; }
.ledger-line.total { border-top: 1px solid var(--divider); padding-top: .5rem; margin-top: .25rem; font-size: 1.25rem; }
.ledger-line.total b { font-weight: 600; }
.move-amount { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ok-ink); }
.move-amount.out { color: var(--ink); }
.day-label { font-size: .9375rem; font-weight: 500; color: var(--muted-2); }

/* Alta de alumno: el resumen del plan que se va armando */
/* Su plan y sus días, con varios tipos de clase: un desplegable por clase que toma, con el resumen de sus horarios */
.plan-acc { border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); }
.plan-acc.is-open { border-color: var(--border-strong); }
.plan-acc-head {
  display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 4rem; padding: .75rem 1rem;
  border: 0; background: none; text-align: left; color: inherit; border-radius: var(--r-card);
}
.plan-acc-head .grow { min-width: 0; }
.plan-acc-name { display: block; font-weight: 500; }
.plan-acc-sub { display: block; font-size: .9375rem; color: var(--muted); }
.plan-acc-sub.has { color: var(--ink-2); }
.plan-acc-chev { display: flex; color: var(--muted); transition: transform .2s; }
.plan-acc.is-open .plan-acc-chev { transform: rotate(180deg); }
.plan-acc-body { display: flex; flex-direction: column; gap: 1rem; padding: .875rem 1rem 1rem; border-top: 1px solid var(--divider); }
.plan-acc-body .plan-day-name { font-size: .9375rem; }
.plan-sum { display: flex; flex-direction: column; gap: .125rem; padding: .875rem 1rem; border-radius: 1rem; background: var(--info-tint); color: #1F4373; }
.plan-sum strong { font-weight: 600; }
.plan-sum.empty { background: var(--bg-soft); color: var(--muted); }
.plan-sum .plan-warn { color: var(--warn-ink); font-weight: 500; }

/* Planes y precios: casilla en una línea, subir todos un %, y el precio de cada plan */
.plan-pick { gap: .5rem; }
.check-line { display: flex; align-items: center; gap: .625rem; min-height: 2.75rem; font-size: .9375rem; cursor: pointer; }
.check-line input { width: 1.25rem; height: 1.25rem; margin: 0; flex: none; accent-color: var(--ink); }
.check-line.two { align-items: flex-start; padding: .375rem 0; }
.check-line.two input { margin-top: .125rem; }
.check-title { display: block; }
.check-sub { display: block; margin-top: .125rem; font-size: .875rem; color: var(--muted); }
.raise { display: flex; align-items: center; gap: .5rem .75rem; flex-wrap: wrap; }
.raise-input { width: 6.5rem; }
.raise-input input { text-align: right; padding-right: .25rem; }
.input-suffix { padding-right: 1rem; color: var(--muted); }
.price-plan { display: flex; flex-direction: column; gap: .625rem; padding-top: 1rem; border-top: 1px solid var(--divider); }
.price-plan .two-cols .field-label { font-size: .875rem; font-weight: 400; color: var(--muted); }

/* App del alumno: clases para recuperar y cuota */
.credit-card { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem .875rem; border-color: var(--ok-cell-border); background: var(--ok-cell); }
.credit-card .grow { display: flex; flex-direction: column; }
.credit-card .grow span { font-size: .9375rem; color: var(--ok-ink); }
/* En el celular, el botón va abajo y ocupa todo el ancho (no aprieta el texto). */
@media (max-width: 1099.98px) {
  .credit-card .btn { flex: 1 0 100%; min-height: 3rem; }
}
.rules { display: flex; flex-direction: column; gap: .75rem; }
.rules li { display: flex; gap: .75rem; align-items: flex-start; }
.rules .ms { color: var(--brand); margin-top: .0625rem; }
.copy-box { display: flex; align-items: center; gap: .75rem; padding: .875rem 1rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--bg-soft); }
.copy-box .label-caps { display: block; }
.copy-value { display: block; font-size: 1.25rem; font-weight: 600; overflow-wrap: anywhere; }
.pay-note { white-space: pre-line; color: var(--ink-2); }

/* ═══════════════ Tipos de clase (Pilates, Yoga...): cada uno con su color (--tc, y --tc-tint de fondo) y su ícono.
   Se reconocen por el ícono en un cuadradito de su color y por el nombre en su color. Nunca con franjas ni bordes de
   color a la izquierda. Los colores no se parecen a los de los estados (verde ok, ámbar, rojo, coral) y llegan a AA
   como texto sobre blanco. */
.tc-violet { --tc: #6A4BB5; --tc-tint: #EFEAFA; }
.tc-teal { --tc: #17727B; --tc-tint: #E1F2F3; }
.tc-pink { --tc: #B0306F; --tc-tint: #FBE8F1; }
.tc-blue { --tc: #2D5C9E; --tc-tint: #E8EFF9; }
.tc-green { --tc: #43701F; --tc-tint: #EBF4E1; }
.tc-brown { --tc: #8A5632; --tc-tint: #F5ECE3; }
.tc-slate { --tc: #4F5D6E; --tc-tint: #ECEFF3; }
.tc-plum { --tc: #87368F; --tc-tint: #F5E8F6; }

.type-mark { width: 2.5rem; height: 2.5rem; border-radius: .75rem; flex: none; display: grid; place-items: center; background: var(--tc-tint); color: var(--tc); }
.type-mark .ms { font-size: 1.375rem; }
.type-mark.lg { width: 3.5rem; height: 3.5rem; border-radius: 1rem; }
.type-mark.lg .ms { font-size: 2rem; }
.type-mark.sm { width: 2rem; height: 2rem; border-radius: .625rem; }
.type-mark.sm .ms { font-size: 1.25rem; }
.type-mark.xs { width: 1.375rem; height: 1.375rem; border-radius: .4375rem; }
.type-mark.xs .ms { font-size: 1rem; }
.type-name { color: var(--tc); font-weight: 500; }
.type-line { display: flex; align-items: center; gap: .375rem; flex-wrap: wrap; }
.row-icon.type { background: var(--tc-tint); color: var(--tc); border-radius: .75rem; }

/* En la grilla de la compu, el ícono del tipo va antes del nombre */
.week.desk .cell .cell-type .ms { font-size: 1rem; color: var(--tc); vertical-align: -.1875rem; margin-right: .125rem; }
.week.desk .cell.selected .cell-type .ms { color: #fff; }
/* En el celular, con más de un tipo: el ícono del tipo arriba del número */
.week:not(.desk) .cell.has-ic { flex-direction: column; gap: .0625rem; }
.cell .cell-ic { display: flex; }
.cell .cell-ic .ms { font-size: 1rem; color: var(--tc); }
.cell.selected .cell-ic .ms { color: #fff; }
.cell.off .cell-ic .ms { opacity: .6; }

.class-head { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.hero-type { display: inline-flex; align-items: center; gap: .375rem; align-self: flex-start; padding: .25rem .75rem .25rem .5rem; border-radius: 99px; background: var(--tc-tint); color: var(--tc); font-weight: 500; font-size: .9375rem; }
.hero-type .ms { font-size: 1.125rem; }
.summary-type { display: flex; align-items: center; gap: .5rem; }

/* Etiquetas, leyenda y puntitos del mes */
.type-tags { display: flex; flex-wrap: wrap; gap: .25rem .375rem; margin-top: .25rem; }
.type-tag-sm { display: inline-flex; align-items: center; gap: .25rem; padding: .0625rem .5rem .0625rem .375rem; border-radius: 99px; background: var(--tc-tint); color: var(--tc); font-size: .8125rem; font-weight: 500; line-height: 1.4; }
.type-tag-sm .ms { font-size: 1rem; }
.type-legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .875rem; color: var(--muted-2); }
.type-legend span { display: inline-flex; align-items: center; gap: .375rem; }
.tdots { display: flex; gap: .1875rem; justify-content: center; }
.tdots i { width: .375rem; height: .375rem; border-radius: 50%; background: var(--tc); }
.mcell.selected .tdots i { box-shadow: 0 0 0 1.5px #fff; }

/* Filtro por tipo: el elegido se pinta de su color */
.chip.type { display: inline-flex; align-items: center; gap: .375rem; color: var(--ink); }
.chip.type .ms { font-size: 1.25rem; color: var(--tc); margin-left: -.25rem; }
.chip.type[aria-pressed="true"] { background: var(--tc); border-color: var(--tc); color: #fff; }
.chip.type[aria-pressed="true"] .ms { color: #fff; }

/* Elegir el tipo de un horario o una clase suelta */
.type-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .5rem; }
.type-option {
  display: flex; align-items: center; gap: .625rem; min-height: 3.25rem; padding: .5rem .75rem .5rem .5rem; text-align: left;
  border-radius: var(--r-btn); border: 1.5px solid var(--border-strong); background: var(--surface); font-weight: 500; color: var(--ink);
}
.type-option > .ms { color: var(--tc); }
.type-option[aria-checked="true"] { border-color: var(--tc); box-shadow: 0 0 0 3px var(--tc-tint); }
.type-option.add { border-style: dashed; justify-content: center; padding: .5rem .75rem; gap: .25rem; }
.type-pick-label { grid-column: 1 / -1; font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: .25rem; }
.type-pick-label:first-child { margin-top: 0; }
.preset-chips { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Tipos de clase en «Horarios» y la hoja para crear o editar uno */
.type-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.type-tag {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .25rem .875rem .25rem .25rem;
  border-radius: 99px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 500; color: var(--ink);
}
.type-tag .type-mark { border-radius: 50%; }
.type-tag.add { border-style: dashed; padding: .25rem .875rem .25rem .625rem; gap: .25rem; }
.sched-title { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.type-preview { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg-soft); }
.type-preview-name { font-family: var(--serif); font-size: 1.75rem; line-height: 1.05; color: var(--tc); overflow-wrap: anywhere; }
.swatches { display: grid; grid-template-columns: repeat(4, 2.75rem); gap: .75rem; }
@media (min-width: 480px) { .swatches { grid-template-columns: repeat(8, 2.75rem); gap: .625rem; } }
.swatch { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: var(--tc); color: #fff; display: grid; place-items: center; }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--tc); }
.icon-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(3rem, 1fr)); gap: .5rem; }
.icon-opt { aspect-ratio: 1; min-height: 2.75rem; border-radius: .875rem; border: 1.5px solid var(--border); background: var(--surface); color: var(--muted-2); display: grid; place-items: center; }
.icon-opt .ms { font-size: 1.625rem; }
.icon-opt[aria-checked="true"] { background: var(--tc-tint); border-color: var(--tc); color: var(--tc); }
.plan-title { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.plan-range { font-family: var(--font); font-size: .9375rem; color: var(--muted); }

/* ═══════════════ Portada (home.js). Va en px y con Geist, tal cual el diseño. Todo cuelga de .lp.
   Variables: --lp-ink texto, --lp-body texto largo, --lp-subtle texto secundario, --lp-line bordes, --lp-hl terracota para
   texto y --lp-cta el botón principal (terracota oscuro: el claro no llega al contraste con letra blanca).
   Familias de acento: --a acento, --tint fondo suave, --fg texto sobre el tinte, --body texto largo, --glow sombra. */
.lp {
  --lp-ink: #1A1715; --lp-body: #5F5853; --lp-subtle: #6F6862; --lp-line: #EEEBE7; --lp-hl: #B4523A;
  --lp-cta: #B4523A; --lp-cta-hover: #9C3F27; --lp-logo-sub: #8A817A;
  min-height: 100vh; background: #fff; color: var(--lp-ink); line-height: normal; overflow-x: hidden; overflow-x: clip;
  font-family: "Geist", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
.lp .tone-t { --a: #C65E40; --tint: #FBEAE3; --fg: #9C3F27; --body: #5A4640; --glow: rgba(120, 40, 20, .35); }
.lp .tone-g { --a: #2F7D5B; --tint: #E4F1E9; --fg: #1F5A40; --body: #3E5248; --glow: rgba(20, 70, 45, .35); }
.lp .tone-o { --a: #C08A2E; --tint: #FBF1DE; --fg: #7A5212; --body: #5A4A30; --glow: rgba(110, 75, 15, .35); }
.lp .tone-b { --a: #3D63A6; --tint: #E7EDF8; --fg: #2F4F8A; --body: #3E4A60; --glow: rgba(30, 55, 110, .35); }
.lp :where(a) { color: var(--lp-ink); text-decoration: none; }
.lp :where(a:hover) { color: var(--lp-hl); }
.lp button { appearance: none; border: 0; background: none; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-align: inherit; }
.lp h1, .lp h2, .lp h3 { font-weight: 600; }
.lp b { font-weight: 600; }
.lp em { font-style: normal; }
.lp .num { font-variant-numeric: tabular-nums; }
.lp .ink-g { color: #2F7D5B; }
.lp .ink-b { color: #2F4F8A; }
.lp .ink-o { color: #B7832A; }
.lp-muted-s { display: block; color: #958D87; }
.lp-wrap { max-width: 1200px; margin: 0 auto; padding-left: clamp(20px, 4vw, 32px); padding-right: clamp(20px, 4vw, 32px); }
/* Secciones: cada una es una franja con su fondo y arranca con un rótulo (.lp-eyebrow). Nunca van dos blancas seguidas,
   así se ve dónde termina una y empieza la otra: hero cálido, franja terracota, blanco, verde, arena, blanco, piedra (precios),
   blanco (preguntas), terracota. */
.lp-band { padding: clamp(72px, 10vw, 128px) 0; background: #fff; }
.lp-band-sand { background: #F6EFE7; }
.lp-band-soft { background: #F3F0EC; }

.lp-h1 { margin: 0; font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.04em; max-width: 680px; text-wrap: balance; }
.lp-h1 em { color: var(--lp-hl); }
.lp-h2 { margin: 0; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
.lp-h3 { margin: 16px 0 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.lp-lead { margin: 18px 0 0; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; color: var(--lp-body); max-width: 580px; text-wrap: pretty; }
.lp-kicker { margin: 0 0 18px; font-size: 14.5px; font-weight: 600; color: #9C3F27; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; font-weight: 600; color: var(--fg); }
.lp-band .lp-eyebrow + .lp-h2, .lp-students .lp-eyebrow + .lp-h2 { margin-top: 16px; }
.lp-eyebrow > span { width: 8px; height: 8px; border-radius: 50%; background: var(--a); }

/* Botones */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 10px; font-size: 16px; font-weight: 500; transition: background .2s, border-color .2s, transform .2s; }
.lp .lp-btn-brand { background: var(--lp-cta); color: #fff; font-weight: 600; }
.lp .lp-btn-line { border: 1px solid #DDD8D2; background: #fff; color: var(--lp-ink); }
.lp .lp-btn-white { min-height: 52px; padding: 0 26px; background: #fff; color: var(--lp-ink); font-weight: 600; flex: 1 0 auto; }
.lp .lp-btn-glass { min-height: 52px; padding: 0 26px; border: 1px solid rgba(255, 255, 255, .6); color: #fff; flex: 1 0 auto; }
@media (hover: hover) {
  .lp .lp-btn-brand:hover { background: var(--lp-cta-hover); color: #fff; transform: translateY(-1px); }
  .lp .lp-btn-line:hover { border-color: var(--lp-ink); color: var(--lp-ink); }
  .lp .lp-btn-white:hover { color: var(--lp-ink); transform: translateY(-2px); }
  .lp .lp-btn-glass:hover { border-color: #fff; color: #fff; }
}

/* Encabezado */
.lp-header {
  position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top); border-bottom: 1px solid var(--lp-line);
  background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.lp-header-bar { height: 64px; display: flex; align-items: center; gap: 40px; }
/* El ícono va a 32 px en todos lados: a ese tamaño la grilla de la figura cae justo en los píxeles (ver .auth-logo). */
.lp-logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; font-weight: 600; font-size: 21px; letter-spacing: -.035em; }
.lp-logo img { width: 32px; height: 32px; }
.lp-logo-sub { font-weight: 500; color: var(--lp-logo-sub); }
.lp-logo.small { font-size: 20px; }
.lp-nav { display: flex; gap: 28px; font-size: 14.5px; }
.lp .lp-nav a { color: var(--lp-body); }
.lp-header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.lp-header-login { font-size: 14.5px; padding: 9px 14px; font-weight: 500; }
.lp .lp-header-cta { font-size: 14.5px; padding: 9px 16px; border-radius: 8px; background: var(--lp-ink); color: #fff; font-weight: 500; transition: background .2s; white-space: nowrap; }
.lp .lp-header-cta:hover { background: var(--lp-cta); color: #fff; }

/* Hero */
.lp-hero-band { position: relative; padding-bottom: clamp(48px, 7vw, 80px); background: linear-gradient(#F9EBE2 0%, #FBF2EC 55%, #fff 100%); }
.lp-hero { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 40px 48px; padding-top: clamp(48px, 8vw, 104px); }
.lp-hero-copy { flex: 1 1 520px; min-width: 0; position: relative; z-index: 1; }
.lp-hero-lead { margin: 24px 0 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--lp-body); max-width: 600px; text-wrap: pretty; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.lp-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.lp-pill { font-size: 13.5px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--tint); color: var(--fg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a) 28%, transparent); }
.lp-collage { flex: 1 1 380px; min-width: 0; max-width: 520px; position: relative; height: clamp(280px, 40vw, 460px); }
.lp-collage-bg { position: absolute; inset: 6% -8% -10% 14%; border-radius: 32px; background: #F5D5C7; }
.lp-photo { position: absolute; overflow: hidden; background: #F2EFEB; box-shadow: 0 24px 48px -24px rgba(60, 20, 8, .4); }
.lp-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lp-photo-1 { left: 0; top: 0; width: 58%; height: 78%; border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(60, 20, 8, .45); }
.lp-photo-2 { right: 0; top: 10%; width: 38%; height: 42%; border-radius: 18px; }
.lp-photo-2 img { object-position: 68% 50%; }
.lp-photo-3 { right: 6%; bottom: 0; width: 48%; height: 40%; border-radius: 18px; }

/* La app montada sobre la franja terracota */
.lp-showcase { background: linear-gradient(#fff 0, #fff 26%, #B4523A 26%, #B4523A 100%); padding-bottom: clamp(56px, 8vw, 96px); }
.lp-showcase > .lp-wrap { position: relative; }
.lp-desk { position: relative; }
.lp-window {
  display: flex; overflow: hidden; border-radius: 14px; background: #fff;
  box-shadow: 0 0 0 1px rgba(26, 23, 21, .06), 0 40px 80px -30px rgba(60, 20, 8, .5);
}
.lp-win-side { width: 208px; flex-shrink: 0; border-right: 1px solid #F0EDE9; padding: 18px 12px; background: #FCFBFA; }
.lp-win-studio { display: flex; align-items: center; gap: 9px; padding: 0 8px 20px; }
.lp-win-avatar { width: 28px; height: 28px; border-radius: 7px; background: #B4523A; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.lp-win-studio b { display: block; font-size: 13px; }
.lp-win-studio div span { display: block; font-size: 11.5px; color: #958D87; }
.lp-win-menu { display: flex; flex-direction: column; gap: 1px; font-size: 13px; color: #5F5853; }
.lp-win-menu > span { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 6px; }
.lp-win-menu > span.on { background: #FBEAE3; color: #9C3F27; font-weight: 500; }
.lp-win-menu i { font-style: normal; font-size: 10.5px; font-weight: 600; color: #fff; background: #B4523A; border-radius: 999px; padding: 1px 7px; }
.lp-win-main { flex: 1; min-width: 0; padding: 20px 22px 22px; }
.lp-win-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lp-win-title { font-size: 17px; letter-spacing: -.015em; }
.lp-win-tools { display: flex; gap: 8px; align-items: center; }
.lp-seg { display: flex; background: #F2EFEB; border-radius: 7px; padding: 2px; font-size: 12px; }
.lp-seg span { padding: 5px 11px; color: #857D77; }
.lp-seg .on { background: #fff; border-radius: 5px; font-weight: 500; color: #1A1715; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.lp-win-btn { font-size: 12px; padding: 6px 11px; border-radius: 7px; font-weight: 500; background: #1A1715; color: #fff; white-space: nowrap; }
.lp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.lp-kpi { border-radius: 9px; padding: 10px 12px; min-width: 0; background: var(--tint); }
.lp-kpi span { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg); }
.lp-kpi b { display: block; font-size: 20px; margin-top: 2px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lp-cal { margin-top: 18px; font-size: 11.5px; }
.lp-cal-row { display: grid; grid-template-columns: 44px repeat(6, minmax(0, 1fr)); gap: 5px; margin-top: 5px; }
.lp-cal-days { margin-top: 0; }
.lp-cal-days span { text-align: center; color: #958D87; padding-bottom: 3px; }
.lp-cal-time { color: #958D87; padding-top: 8px; font-variant-numeric: tabular-nums; }
.lp-cell { height: 40px; border-radius: 6px; padding: 6px 8px; min-width: 0; border: 1px solid; transition: transform .2s; }
.lp-cell.empty { border-color: #F4F1EE; }
.lp-cell.ok { background: #F1F8F4; color: #1F4D38; border-color: #D9EBE0; --track: #D3E6DA; --bar: #2F7D5B; }
.lp-cell.low { background: #FDF6EA; color: #7A5212; border-color: #F1E2C6; --track: #F0E1C4; --bar: #C08A2E; }
.lp-cell.full { background: #B4523A; color: #fff; border-color: #B4523A; --track: rgba(255, 255, 255, .35); --bar: #fff; }
@media (hover: hover) { .lp-cell:hover { transform: translateY(-2px); } }
.lp-cell-top { display: flex; justify-content: space-between; gap: 4px; font-weight: 500; white-space: nowrap; }
.lp-cell-top span:first-child { overflow: hidden; text-overflow: ellipsis; }
.lp-cell-track { height: 3px; border-radius: 2px; background: var(--track); margin-top: 8px; overflow: hidden; }
.lp-cell-track span { display: block; height: 100%; background: var(--bar); }
.lp-toast-slot { position: absolute; left: 12px; bottom: 24px; z-index: 2; }
.lp-toast {
  display: flex; align-items: center; gap: 12px; max-width: 340px; padding: 11px 18px 11px 11px; border-radius: 14px;
  background: #fff; box-shadow: 0 0 0 1px rgba(26, 23, 21, .06), 0 18px 40px -16px rgba(26, 23, 21, .35);
}
.lp-toast-av { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--tint); color: var(--fg); font-size: 12.5px; font-weight: 600; }
.lp-toast-text { min-width: 0; }
.lp-toast-text b { display: block; font-size: 14px; color: var(--lp-ink); }
.lp-toast-text span { display: block; font-size: 12.5px; color: #6F6862; margin-top: 1px; }
.lp-fphone { position: absolute; right: -4px; bottom: -36px; z-index: 2; width: 236px; display: none; border-radius: 32px; background: #1A1715; padding: 8px; box-shadow: 0 30px 60px -20px rgba(26, 23, 21, .5); }
.lp-fphone-screen { border-radius: 25px; background: #fff; padding: 20px 14px 14px; }
.lp-fphone-screen .lp-muted-s { font-size: 11.5px; }
.lp-fphone-hi { display: block; font-size: 19px; letter-spacing: -.02em; margin-top: 1px; }
.lp-fphone-next { margin-top: 14px; border-radius: 12px; padding: 12px; background: #1A1715; color: #fff; }
.lp-fphone-next > span:first-child { display: block; font-size: 11px; color: #F3B9A6; }
.lp-fphone-next b, .lp-fphone-recover b { display: block; font-size: 14.5px; margin-top: 2px; }
.lp-fphone-next small { display: block; font-size: 12px; color: #D6D1CC; }
.lp-fphone-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; font-size: 12px; font-weight: 500; text-align: center; }
.lp-fphone-btns span { padding: 7px; border-radius: 8px; }
.lp-fphone-btns .light { background: #fff; color: #1A1715; }
.lp-fphone-btns .line { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.lp-fphone-recover { margin-top: 8px; border: 1px solid #EAE6E1; border-radius: 12px; padding: 12px; }
.lp-fphone-row { display: flex; justify-content: space-between; align-items: center; }
.lp-fphone-row > span:first-child { font-size: 11px; color: #958D87; }
.lp-fphone-recover .lp-tag { font-size: 11px; padding: 2px 7px; }
.lp-fake-btn { display: block; margin-top: 10px; font-size: 12px; text-align: center; padding: 8px; border-radius: 8px; font-weight: 500; }
.lp-fake-btn.dark { background: #1A1715; color: #fff; }
.lp-fake-btn.big { margin-top: 12px; padding: 10px; border-radius: 9px; font-size: 13px; }
.lp-tag { font-size: 12px; font-weight: 500; border-radius: 999px; padding: 3px 9px; white-space: nowrap; background: var(--tint); color: var(--fg); }
.lp-tag.big { font-size: 12.5px; padding: 4px 10px; white-space: normal; }

/* Las clases de hoy (en el celular, en lugar de la semana) */
.lp-mob { display: none; border-radius: 16px; background: #fff; box-shadow: 0 24px 48px -24px rgba(60, 20, 8, .45); overflow: hidden; }
.lp-today-head { padding: 16px 16px 12px; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid #F0EDE9; }
.lp-today-head .lp-muted-s { font-size: 12px; }
.lp-today-head b { display: block; font-size: 17px; letter-spacing: -.015em; }
.lp-today-count { font-size: 12.5px; color: #6F6862; }
.lp-mob-toast { padding: 14px; background: #F7F5F2; min-height: 90px; }
/* Fila de una clase con su cupo */
.lp-line { padding: 13px 18px; border-bottom: 1px solid #F4F1EE; }
.lp-line-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.lp-line-what { display: flex; gap: 12px; align-items: baseline; min-width: 0; }
.lp-line-what b { font-size: 14.5px; font-variant-numeric: tabular-nums; }
.lp-line-what span { font-size: 14px; color: #6F6862; }
.lp-card .lp-tag { font-size: 12.5px; }
.lp-today .lp-line { padding: 13px 16px; }
.lp-today .lp-line-top { flex-wrap: nowrap; gap: 10px; }
.lp-today .lp-line-what b { font-size: 15px; }
.lp-line-bar { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.lp-line-bar .num { font-size: 12.5px; color: #5F5853; }
.lp-track { flex: 1; height: 4px; border-radius: 2px; background: #EFEBE7; overflow: hidden; }
.lp-track span { display: block; height: 100%; background: var(--a); }

/* Beneficios: uno abajo del otro, alternando el lado de la pantallita */
.lp-sec-head { max-width: 760px; }
.lp-benefits { display: flex; flex-direction: column; gap: 16px; margin-top: clamp(32px, 5vw, 56px); }
.lp-benefit .lp-h3 { margin-top: 14px; }
.lp-benefit { border-radius: 24px; background: var(--tint); padding: clamp(22px, 4vw, 56px); display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; }
.lp-benefit:nth-child(even) { flex-direction: row-reverse; }
.lp-benefit-text { flex: 1 1 300px; min-width: 0; }
.lp-benefit-mock { flex: 1.3 1 340px; min-width: 0; }
.lp-vs { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; font-size: 16px; line-height: 1.55; }
.lp-vs li { display: flex; gap: 12px; align-items: flex-start; text-wrap: pretty; }
.lp-vs .before { color: #6F6862; }
.lp-vs .after { color: var(--lp-ink); }
.lp-mark { flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; background: rgba(255, 255, 255, .75); color: #A39B95; }
.after .lp-mark { background: var(--a); color: #fff; }
.lp-methods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; font-size: 12.5px; font-weight: 500; color: var(--fg); }
.lp-methods li { border-radius: 999px; padding: 5px 11px; background: #fff; }
.lp-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px -24px var(--glow); }
.lp-card-gap { margin-top: 10px; }
.lp-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid #F0EDE9; }
.lp-card-head b { font-size: 14.5px; }
.lp-card-meta { font-size: 12.5px; color: #6F6862; }
.lp-badge { font-size: 12px; font-weight: 600; color: #9C3F27; background: #FBEAE3; border-radius: 999px; padding: 2px 9px; }
.lp-av { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; background: var(--tint); color: var(--fg); }
.lp-person { flex: 1 1 150px; min-width: 0; }
.lp-person b { display: block; font-size: 14.5px; font-weight: 500; }
.lp-person span { display: block; font-size: 13px; color: #6F6862; margin-top: 1px; }
.lp-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px 18px; border-bottom: 1px solid #F4F1EE; }
.lp-rules { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px; background: #FCFBFA; }
.lp-rules span { font-size: 12.5px; color: #5F5853; border: 1px solid #E7E3DE; border-radius: 7px; padding: 6px 10px; background: #fff; }
.lp-bubble-row { margin-top: 12px; display: flex; justify-content: flex-end; }
.lp-bubble { max-width: 340px; background: #fff; border-radius: 14px 14px 4px 14px; padding: 11px 14px; font-size: 14px; line-height: 1.45; box-shadow: 0 12px 30px -18px rgba(20, 70, 45, .4); }
.lp-bubble b { display: block; font-size: 12px; color: #1F5A40; margin-bottom: 3px; }
.lp-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.lp-total { background: #fff; border-radius: 12px; padding: 14px 16px; }
.lp-total span, .lp-metrics span { display: block; font-size: 12.5px; color: #6F6862; }
.lp-total b { display: block; font-size: 21px; letter-spacing: -.02em; margin-top: 2px; }
.lp-total b.debt { color: #9C3F27; }
.lp-payment { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 13px 18px; border-bottom: 1px solid #F4F1EE; }
.lp-card-foot { padding: 14px 18px; }
.lp-card-foot .lp-fake-btn { margin: 0; padding: 12px; border-radius: 9px; font-size: 14px; }
.lp-numbers { padding: clamp(16px, 2.4vw, 24px); }
.lp-numbers-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.lp-numbers-head b { font-size: 14.5px; }
.lp-numbers-head span { font-size: 12.5px; color: #2F4F8A; font-weight: 500; }
.lp-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.lp-metrics b { display: block; font-size: 20px; letter-spacing: -.02em; margin-top: 2px; }
.lp-bars { display: flex; align-items: flex-end; gap: clamp(6px, 1.4vw, 14px); height: 140px; margin-top: 24px; border-bottom: 1px solid #EFEBE7; }
.lp-bars span { flex: 1; border-radius: 5px 5px 0 0; background: #D6E0F2; }
.lp-bars span.now { background: #3D63A6; }
.lp-bars-x { display: flex; gap: clamp(6px, 1.4vw, 14px); margin-top: 8px; font-size: 12px; color: #6F6862; }
.lp-bars-x span { flex: 1; text-align: center; }

/* Para tus alumnos */
.lp-students { background: #1F3A2E; color: #fff; }
.lp-students-in { padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 112px); display: flex; flex-wrap: wrap; gap: 56px 80px; align-items: center; }
.lp-students-text { flex: 1 1 380px; min-width: 0; }
.lp-eyebrow.on-dark { color: #A8DDBC; }
.lp-eyebrow.on-dark > span { background: #6FC493; }
.lp-students .lp-lead { color: #C3D6CB; max-width: 520px; }
.lp-points { margin-top: 36px; display: flex; flex-direction: column; }
.lp-points li { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; gap: 16px; }
.lp-points .num { font-size: 14px; font-weight: 600; color: #6FC493; padding-top: 2px; }
.lp-points h3 { margin: 0; font-size: 16.5px; letter-spacing: -.01em; line-height: normal; }
.lp-points p { margin-top: 4px; font-size: 15.5px; line-height: 1.55; color: #C3D6CB; }
.lp-students-phone { flex: 1 1 300px; display: flex; justify-content: center; }
/* El celular de la alumna copia «Mis clases» de la app */
.lp-phone { width: 100%; max-width: 320px; border-radius: 44px; background: #0F1D17; padding: 10px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.lp-phone-screen { border-radius: 35px; background: #fff; color: #1A1715; padding: 22px 14px 16px; }
.lp-ph-head { display: flex; align-items: center; gap: 10px; }
.lp-ph-mark { width: 34px; height: 34px; border-radius: 10px; background: #B4523A; color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 600; }
.lp-ph-head b { display: block; font-size: 14px; }
.lp-ph-head div span { display: block; font-size: 12px; color: #6F6862; }
.lp-ph-title { display: block; margin-top: 16px; font-size: 24px; letter-spacing: -.02em; }
.lp-ph-next { margin-top: 10px; border-radius: 16px; padding: 14px; background: #1A1715; color: #fff; }
.lp-ph-next-label { display: block; font-size: 11.5px; color: #F3B9A6; }
.lp-ph-next b { display: block; margin-top: 6px; font-size: 20px; letter-spacing: -.02em; }
.lp-ph-next > span:not(.lp-ph-next-label) { display: block; font-size: 12.5px; color: #D6D1CC; margin-top: 2px; }
.lp-ph-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; font-size: 12.5px; font-weight: 500; text-align: center; }
.lp-ph-btns span { padding: 8px; border-radius: 10px; }
.lp-ph-btns .light { background: #fff; color: #1A1715; }
.lp-ph-btns .line { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.lp-ph-credit { margin-top: 8px; display: flex; align-items: center; gap: 8px; border-radius: 14px; padding: 10px 10px 10px 12px; background: #F1F8F4; border: 1px solid #D9EBE0; }
.lp-ph-credit > div { flex: 1; min-width: 0; }
.lp-ph-credit b { display: block; font-size: 12.5px; font-weight: 500; }
.lp-ph-credit div span { display: block; font-size: 11.5px; color: #1F5A40; }
.lp-ph-credit-btn { flex-shrink: 0; font-size: 11.5px; font-weight: 500; padding: 7px 9px; border-radius: 9px; background: #1A1715; color: #fff; }
.lp-ph-label { display: block; margin-top: 14px; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #6F6862; }
.lp-ph-list { margin-top: 6px; border: 1px solid #EAE6E1; border-radius: 14px; overflow: hidden; }
.lp-ph-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; }
.lp-ph-row + .lp-ph-row { border-top: 1px solid #F2EFEC; }
.lp-ph-date { width: 30px; text-align: center; font-size: 19px; line-height: 1; }
.lp-ph-date small { display: block; font-family: var(--lp-font); font-size: 10.5px; text-transform: uppercase; color: #6F6862; margin-bottom: 2px; }
.lp-ph-row > div { flex: 1; min-width: 0; }
.lp-ph-row b { display: block; font-size: 13px; font-weight: 500; }
.lp-ph-row div span { display: block; font-size: 11.5px; color: #6F6862; }
.lp-ph-chg { font-size: 11.5px; font-weight: 500; padding: 6px 9px; border-radius: 9px; border: 1px solid #DDD8D2; }

/* Y además */
.lp-features-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; }
.lp-features-head .lp-lead { margin: 0; max-width: 420px; }
.lp-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; margin-top: clamp(32px, 5vw, 56px); }
.lp-more li { border-radius: 20px; padding: clamp(22px, 2.4vw, 28px); background: #fff; }
.lp-more-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--fg); }
.lp-more-icon .ms { font-size: 24px; }
.lp-more h3 { margin: 18px 0 0; font-size: 17px; letter-spacing: -.01em; line-height: normal; }
.lp-more p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: #4A423D; text-wrap: pretty; }

/* Empezás hoy mismo */
.lp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin-top: clamp(28px, 4vw, 48px); }
.lp-step { border-radius: 20px; padding: clamp(24px, 2.8vw, 32px); background: var(--tint); }
.lp-step-n { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--fg); color: #fff; font-size: 16px; font-weight: 600; }
.lp-step h3 { margin: 28px 0 0; font-size: 19px; letter-spacing: -.015em; line-height: normal; }
.lp-step p { margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: #4A423D; text-wrap: pretty; }

/* Precios: la prueba gratis arriba; tarjetas blancas sobre la franja piedra (la recomendada con borde terracota); abajo, lo
   que traen todos los planes y lo que en otras apps se paga aparte. */
.lp-trial { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; padding: 10px 18px 10px 10px; border-radius: 999px; background: #E4F1E9; color: #1F5A40; font-size: 15.5px; line-height: 1.4; text-wrap: pretty; }
.lp-trial b { font-weight: 600; }
.lp-trial-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #2F7D5B; color: #fff; }
.lp-trial-icon .ms { font-size: 18px; }
.lp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 24px; }
.lp-plan { display: flex; flex-direction: column; border-radius: 20px; padding: clamp(24px, 2.6vw, 32px); background: #fff; box-shadow: inset 0 0 0 1px #E8E3DD; }
.lp-plan.featured { box-shadow: inset 0 0 0 2px var(--lp-cta), 0 30px 60px -36px rgba(120, 40, 20, .45); }
.lp-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.lp-plan h3 { margin: 0; font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.lp-plan-for { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--lp-body); text-wrap: pretty; }
.lp-plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 24px; }
.lp-plan-price b { font-size: clamp(38px, 4vw, 46px); line-height: 1; letter-spacing: -.035em; }
.lp-plan-price span { font-size: 15px; color: var(--lp-subtle); }
.lp-plan-limits { display: flex; flex-direction: column; gap: 8px; margin: 20px 0 22px; padding: 14px 16px; border-radius: 12px; background: #F6F3EF; font-size: 15px; font-weight: 500; line-height: 1.4; }
.lp-plan-limits li { display: flex; align-items: center; gap: 10px; }
.lp-plan-limits .ms { font-size: 20px; color: var(--lp-subtle); }
.lp-plan.featured .lp-plan-limits .ms { color: #B4523A; }
.lp-plan.featured .lp-plan-limits { background: #FBEAE3; color: #7E3320; }
.lp-plan > .lp-btn { width: 100%; box-sizing: border-box; }
.lp-plan-from { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--lp-line); font-size: 13.5px; font-weight: 600; color: var(--lp-subtle); }
.lp-plan-features { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; font-size: 15px; line-height: 1.5; color: #3F3833; }
.lp-plan-features li, .lp-plan-perks li { display: flex; gap: 10px; align-items: flex-start; text-wrap: pretty; }
.lp-plan .lp-mark, .lp-plan-perks .lp-mark { width: 20px; height: 20px; font-size: 11px; background: #FBEAE3; color: #9C3F27; }
.lp-plan-perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 28px; font-size: 15px; font-weight: 500; color: var(--lp-ink); }
.lp-plan-perks li { align-items: center; }
.lp-plan-perks .lp-mark { margin-top: 0; background: #2F7D5B; color: #fff; }
.lp-plan-note { margin-top: 14px; text-align: center; font-size: 13.5px; line-height: 1.5; color: var(--lp-subtle); text-wrap: pretty; }
.lp .lp-plan-note a { color: var(--lp-hl); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.lp-included { margin-top: clamp(56px, 8vw, 96px); }
.lp-included .lp-h3, .lp-compare .lp-h3 { margin: 0; max-width: 640px; font-size: clamp(24px, 2.6vw, 32px); }
.lp-included-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 12px; margin-top: 24px; }
.lp-included-grid > li { border-radius: 16px; padding: 20px; background: #fff; }
.lp-included-head { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; }
.lp-included-head .lp-more-icon { width: 36px; height: 36px; border-radius: 10px; }
.lp-included-head .lp-more-icon .ms { font-size: 20px; }
.lp-included-grid ul { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; font-size: 14.5px; line-height: 1.45; color: #4A423D; }
.lp-included-grid ul li { text-wrap: pretty; }
.lp-compare { margin-top: 16px; padding: clamp(22px, 3.5vw, 44px); border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px #E8E3DD; }
.lp-compare-table { margin-top: 24px; }
.lp-compare-row { display: grid; grid-template-columns: minmax(120px, .6fr) 1fr 1fr; gap: 12px 32px; align-items: start; padding: 18px 0; border-top: 1px solid var(--lp-line); font-size: 15.5px; line-height: 1.5; }
.lp-compare-row > b { font-weight: 600; }
.lp-compare-row > span { display: flex; gap: 10px; align-items: flex-start; text-wrap: pretty; }
.lp-compare-head { padding-top: 0; border-top: 0; font-size: 13.5px; font-weight: 600; color: var(--lp-subtle); }
.lp-compare-head > span:last-child { color: var(--lp-hl); }
.lp-compare-row .before { color: #6F6862; }
.lp-compare-row .lp-mark { width: 20px; height: 20px; font-size: 11px; }
.lp-compare-row .before .lp-mark { background: #F3F0EC; color: #A39B95; }
.lp-compare-row .after .lp-mark { background: #2F7D5B; color: #fff; }
.lp-compare-who { display: none; }
@media (max-width: 767.98px) {
  .lp-compare-head { display: none; }
  .lp-compare-row { grid-template-columns: 1fr; }
  .lp-compare-row:nth-child(2) { border-top: 0; padding-top: 0; }
  .lp-compare-who { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 600; color: var(--lp-subtle); }
  .lp-compare-row .after .lp-compare-who { color: var(--lp-hl); }
}
@media (max-width: 599.98px) {
  .lp-plan-perks { flex-direction: column; align-items: flex-start; width: fit-content; margin-left: auto; margin-right: auto; }
}

/* Preguntas frecuentes */
.lp-faq-sec { display: flex; flex-wrap: wrap; gap: 32px 80px; align-items: flex-start; }
.lp-faq-intro { flex: 1 1 280px; max-width: 400px; }
.lp-faq-intro > p:not(.lp-eyebrow) { margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--lp-body); }
.lp .lp-faq-intro a { color: var(--lp-hl); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.lp-faq { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.lp-faq-item { border-radius: 14px; background: #F3F0EC; transition: background .25s; }
.lp-faq-item.open { background: #FBEAE3; }
.lp-faq-item h3 { margin: 0; font-size: inherit; line-height: inherit; }
.lp .lp-faq-item button {
  box-sizing: border-box; width: 100%; min-height: 60px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: 14px; font-size: clamp(16px, 1.4vw, 17px); font-weight: 500; color: var(--lp-ink); line-height: 1.4; text-align: left;
}
.lp-faq-icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 400;
  background: #fff; color: var(--lp-ink); transition: transform .3s, background .25s, color .25s;
}
.lp-faq-item.open .lp-faq-icon { transform: rotate(45deg); background: var(--lp-cta); color: #fff; }
.lp-faq-a { padding: 0 70px 20px 20px; font-size: 15.5px; line-height: 1.6; color: #5A4640; }

/* Cierre */
.lp-final { background: #B4523A; color: #fff; overflow: hidden; }
.lp-final-in { padding-top: clamp(64px, 9vw, 104px); padding-bottom: clamp(64px, 9vw, 104px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.lp-final-text { flex: 1 1 420px; min-width: 0; }
.lp-final h2 { margin: 0; font-size: clamp(32px, 4.8vw, 60px); line-height: 1.02; letter-spacing: -.04em; max-width: 640px; text-wrap: balance; }
.lp-final p { margin-top: 16px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.55; color: #fff; max-width: 480px; }
.lp-final-ctas { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 1 auto; }

/* Pie */
.lp-footer { background: #fff; }
.lp-footer > .lp-wrap { padding-top: 48px; padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.lp-footer-cols { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.lp-footer-brand { flex: 1 1 260px; }
.lp-footer-brand p { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--lp-subtle); max-width: 300px; }
.lp-footer nav { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; min-width: 140px; }
.lp .lp-footer nav a { color: #3F3833; }
.lp-footer-h { font-size: 13px; color: var(--lp-subtle); }
.lp-footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--lp-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--lp-subtle); }

/* Celular: sin el menú de secciones y con la lista del día en vez del calendario */
@media (max-width: 767.98px) {
  .lp-nav, .lp-desk { display: none; }
  .lp-header-bar { gap: 12px; }
  .lp-header-actions { gap: 2px; }
  .lp-header-login { padding: 9px 10px; font-size: 14px; }
  .lp .lp-header-cta { font-size: 14px; padding: 9px 12px; }
  .lp-mob { display: block; }
}
/* Celulares angostos: achica el logo para que entren «Ingresar» y «Probar gratis»; en los más chicos queda solo el ícono */
@media (max-width: 389.98px) {
  .lp-header .lp-logo { font-size: 16px; gap: 7px; }
  .lp-header-login { padding: 9px 8px; }
}
@media (max-width: 349.98px) {
  .lp-header .lp-logo > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 999.98px) {
  .lp-win-side { display: none; }
}
@media (min-width: 1160px) {
  .lp-fphone { display: block; }
}
@media (prefers-reduced-motion: no-preference) {
  html:has(.lp) { scroll-behavior: smooth; }
  .lp-toast { animation: lp-toast-in .55s cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes lp-toast-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
