/* Paleta de marca:
   #00F0B5 turquesa (logo y gráficos) · #669C35 verde (botones y llamadas a la acción)
   #444142 carbón (títulos) · #4A5565 azul grisáceo (textos) · #DEE9D5 verde pastel (fondos secundarios)
   #FCFCFC blanco humo (fondo) · #E5E7EB gris claro (bordes) */
:root {
  --bg: #FCFCFC;
  --surface: #ffffff;
  --soft: #DEE9D5;
  --heading: #444142;
  --ink: #4A5565;
  --muted: #6B7280;
  --line: #E5E7EB;
  --brand: #669C35;
  --brand-ink: #ffffff;
  /* Estos valores son los de fábrica; el administrador los cambia en Administrar → Sitio. */
  --brand-text: color-mix(in srgb, var(--brand) 78%, #000);   /* color principal oscurecido: enlaces y texto pequeño */
  --brand-soft: var(--soft);
  --accent: #00F0B5;
  --accent-ink: #444142;   /* texto sobre turquesa */
  --ok: #3F7A1F;
  --warn: #A16207;
  --bad: #B42318;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(68,65,66,.05), 0 6px 24px rgba(74,85,101,.08);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --heading-weight: 600;   /* las tipografías de un solo peso quedan en 400 para no engrosarse */
}
/* Siempre claro, aunque el dispositivo esté en modo oscuro. */
:root { color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: var(--heading-weight); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--heading); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--brand-text); }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.section { padding: 56px 0; }
.section-soft { background: var(--soft); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 600; color: var(--brand-text); margin-bottom: .6em; }
.eyebrow::before { content: ''; width: 22px; height: 3px; border-radius: 2px; background: var(--accent); }

/* Barra superior */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--surface); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.topbar-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
/* Como en el logo: nombre en gris y el lema en mayúsculas espaciadas debajo. */
.brand-text { display: flex; flex-direction: column; line-height: 1; color: #6b6a6b; }
.brand-text #brandName { font: 600 1.3rem var(--sans); letter-spacing: -.01em; }
.brand-text small { margin-top: 3px; font: 500 .56rem var(--sans); letter-spacing: .24em; text-transform: uppercase; text-align: center; }
.brand-text small:empty { display: none; }
.logo { width: 34px; height: 34px; object-fit: contain; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { display: inline-flex; align-items: center; gap: 7px; color: var(--heading); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 1rem; }
.nav .ico { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav a:hover { background: var(--brand-soft); color: var(--brand-text); }
.nav a.active { color: var(--brand-text); }
.nav a.btn-primary, .nav a.btn-primary:hover { background: var(--brand); color: var(--brand-ink); }
#navAuth, #navMember { display: flex; gap: 6px; align-items: center; }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border: 0; background: none; cursor: pointer; padding: 10px; }
.menu-btn { position: relative; }
.menu-btn.alert::after { content: ''; position: absolute; top: 7px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 2px var(--bg); }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  #navAuth, #navMember { flex-direction: column; align-items: stretch; }
}

/* Botones y formularios */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 11px 20px; font: 600 .95rem var(--sans); cursor: pointer; text-decoration: none; transition: transform .1s, background .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: var(--brand-ink) !important; }
.btn-primary:hover { background: var(--brand-text); }
.btn-accent { background: var(--accent); color: var(--accent-ink) !important; }
.btn-accent:hover { filter: brightness(.95); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--heading) !important; }
.btn-ghost:hover { background: var(--soft); }
.btn-danger { background: transparent; border-color: var(--bad); color: var(--bad) !important; }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-block { width: 100%; }
label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 14px; }
label > span { display: block; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 40%, transparent); border-color: var(--brand); }
textarea { min-height: 96px; resize: vertical; }
input[type=checkbox] { width: auto; margin-right: 8px; }
.check { display: flex; align-items: center; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* Tarjetas */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .3em; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); }
.tag-accent { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--heading); }
.tag-ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.tag-warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.tag-bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }

/* Precios */
.price { font-family: var(--serif); font-size: 2rem; font-weight: var(--heading-weight); }
.price small { font-family: var(--sans); font-size: .85rem; font-weight: 500; color: var(--muted); }
.pkg { display: flex; flex-direction: column; }
.pkg .btn { margin-top: auto; }
.pkg.featured { border-color: var(--brand); outline: 2px solid var(--brand); }
.pkg ul { padding-left: 18px; margin: 0 0 18px; color: var(--muted); }

/* Horario */
.week-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.slot { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 8px; }
.slot .time { font-weight: 600; font-variant-numeric: tabular-nums; }
.slot .meta { color: var(--muted); font-size: .88rem; }
.slot.past { opacity: .5; }
@media (max-width: 560px) { .slot { grid-template-columns: 60px 1fr; } .slot .act { grid-column: 1 / -1; } .slot .act .btn { width: 100%; } }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; cursor: pointer; font: 500 .88rem var(--sans); color: var(--ink); }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

/* Personas */
.avatar { width: 100%; aspect-ratio: 1; border-radius: 12px; object-fit: cover; background: var(--brand-soft); display: grid; place-items: center; font-family: var(--serif); font-size: 2.6rem; color: var(--brand-text); margin-bottom: 14px; }
.person { cursor: pointer; transition: transform .15s; }
.person:hover { transform: translateY(-2px); }

/* Paneles */
.panel-head { padding: 32px 0 12px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 24px; scrollbar-width: none; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 14px; font: 500 .95rem var(--sans); color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--brand-text); border-color: var(--brand); }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.kpi b { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--heading); }
.kpi span { color: var(--muted); font-size: .85rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); background: var(--soft); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.empty { padding: 32px; text-align: center; color: var(--muted); }
.balance { background: var(--brand); color: var(--brand-ink); border-radius: var(--radius); padding: 24px; }
.balance b { font-family: var(--serif); font-size: 2.4rem; display: block; color: #fff; }
.auth-card { max-width: 420px; margin: 48px auto; }

/* Modal, toast, carga */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgba(20,20,18,.5); }
.modal-card { position: relative; background: var(--surface); border-radius: 18px; padding: 26px; width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 1.6rem; cursor: pointer; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 12px; z-index: 60; transition: transform .25s; max-width: calc(100% - 32px); }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--bad); color: #fff; }
.loading { display: grid; place-items: center; min-height: 50vh; color: var(--muted); }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.2); z-index: 30; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float[hidden] { display: none; }

/* Pie */
.footer { background: var(--soft); border-top: 1px solid var(--line); padding: 40px 0 24px; margin-top: 40px; font-size: .92rem; }
.footer .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.footer a { color: var(--heading); }
.footer b { color: var(--heading); }
.terms p { white-space: pre-line; }

/* Contraseña con ojo */
.pwd { position: relative; display: block; }
.pwd input { padding-right: 48px; }
.pwd-eye { position: absolute; top: 0; right: 0; height: 100%; width: 46px; border: 0; background: none; cursor: pointer;
  color: var(--muted); display: grid; place-items: center; border-radius: 0 10px 10px 0; }
.pwd-eye:hover, .pwd-eye[aria-pressed="true"] { color: var(--brand-text); }
.pwd-eye svg { width: 20px; height: 20px; }

/* Aviso sin conexión */
.offline { position: sticky; top: 64px; z-index: 19; background: var(--soft); color: var(--heading); font-size: .85rem; text-align: center; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.offline[hidden] { display: none; }

/* Invitación para instalar la app: tarjeta que sube desde abajo, sin oscurecer la página */
.install-sheet { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; max-width: 460px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 24px 20px 16px; box-shadow: 0 -4px 40px rgba(68,65,66,.18); transform: translateY(130%); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.install-sheet::before { content: ''; position: absolute; top: 9px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: var(--accent); }
.install-sheet.open { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .install-sheet { transition: none; } }
.install-head { display: flex; gap: 14px; align-items: center; padding-right: 24px; }
.install-head img { border-radius: 14px; flex: none; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.install-head h3 { margin: 0 0 2px; font-size: 1.1rem; }
.install-head p { margin: 0; }
.install-perks { list-style: none; padding: 0; margin: 16px 0 6px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.install-perks li { background: var(--soft); border-radius: 12px; padding: 10px 6px; text-align: center; font-size: .78rem; color: var(--heading); font-weight: 500; line-height: 1.25; }
.install-perks span { display: block; font-size: 1.2rem; margin-bottom: 4px; }
.install-steps { margin: 12px 0 4px; padding-left: 20px; font-size: .9rem; }
.install-steps li { margin-bottom: 4px; }
.i-inline { width: 18px; height: 18px; vertical-align: -3px; color: var(--brand-text); }
.install-actions { margin-top: 14px; }
.install-actions .btn { flex: 1; }
.install-x { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 1.5rem; color: var(--muted); cursor: pointer; }
/* Botón Instalar en la barra, junto al menú */
.install-top { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 11px;
  border-radius: 999px; border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); background: var(--brand-soft);
  color: var(--brand-text); font: 600 .85rem var(--sans); cursor: pointer; white-space: nowrap; }
.install-top svg { width: 18px; height: 18px; }
.install-top[hidden] { display: none; }
.install-top:not([hidden]) + .menu-btn { margin-left: 6px; }
@media (min-width: 821px) { .install-top { order: 3; margin-left: 10px; } }

/* Datos de pago */
.paydata { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 10px 0 0; align-items: center; }
.paydata dt { color: var(--muted); font-size: .85rem; }
.paydata dd { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .03em; color: var(--heading); font-weight: 500; word-break: break-all; }

/* Imágenes del diseño */
body { position: relative; }
.app { position: relative; z-index: 1; }
.page-bg { position: absolute; left: 0; right: 0; top: 64px; height: 440px; background-size: cover; background-position: center; z-index: 0; pointer-events: none; }
.page-bg[hidden] { display: none; }
.page-bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 72%, transparent), var(--bg) 96%); }
.design-wide img { width: 100%; height: auto; display: block; }
/* Foto ampliada en el perfil de la instructora */
.person-photo { width: 100%; max-height: 62vh; object-fit: contain; border-radius: 12px; background: var(--soft); margin-bottom: 16px; }

/* Reproductor de música */
.player { position: fixed; left: 18px; bottom: 18px; z-index: 30; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 6px; box-shadow: var(--shadow); max-width: calc(100% - 100px); }
.player[hidden] { display: none; }
.player .pbtn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--brand); color: var(--brand-ink); font-size: 1rem; cursor: pointer; }
.player .pbtn.alt { width: 30px; height: 30px; background: var(--soft); color: var(--heading); font-size: .8rem; }
.player .pinfo { min-width: 0; line-height: 1.2; }
.player .pinfo b { display: block; color: var(--heading); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .pinfo small { color: var(--muted); font-size: .75rem; }
.player .pnote { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.player.playing .pnote { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .5; } }
.page-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.page-checks .check { margin: 0; font-weight: 400; }
.color-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.color-row input[type=color] { height: 42px; padding: 4px; cursor: pointer; }
.font-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (max-width: 480px) { .font-card { padding: 12px; } .font-card b { font-size: 1.2rem; } .font-card span { font-size: .8rem; } }
.font-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--heading); text-align: left; cursor: pointer; }
.font-card:hover { border-color: var(--brand); }
.font-card { min-width: 0; overflow: hidden; }
.font-card b { font-size: 1.45rem; line-height: 1.1; padding-right: 18px; }
.font-card span { font-size: .9rem; color: var(--ink); }
.font-card.on { border-color: var(--brand); background: var(--brand-soft); }
.font-card.on::after { content: '✓'; position: absolute; top: 8px; right: 10px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font: 700 .8rem system-ui, sans-serif; }
.font-more { margin-bottom: 8px; }
.font-more summary { cursor: pointer; font-weight: 500; color: var(--brand-text); padding: 6px 0; }
.save-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 55; width: min(520px, calc(100% - 32px)); display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 16px; border-radius: 999px; background: var(--heading); color: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.2); }
.save-bar[hidden] { display: none; }
body:has(.save-bar:not([hidden])) .wa-float { display: none; }
.save-bar span { flex: 1; font-weight: 500; font-size: .92rem; }
.save-bar .btn-ghost { color: #fff !important; border-color: rgba(255,255,255,.4); background: transparent; }
.save-bar .btn-ghost:hover { background: rgba(255,255,255,.12); }
.font-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.font-col-h { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 6px; }
.font-pick { position: relative; max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px 8px 8px; background: var(--surface); }
.font-group { padding: 10px 4px 4px; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; }
.font-group b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--heading); }
.font-group small { font-size: .75rem; }
.font-opt { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px; border-radius: 8px; cursor: pointer; font-weight: 400; }
.font-opt:hover { background: var(--bg); }
.font-opt input { width: auto; flex: none; accent-color: var(--brand); }
.font-opt span { font-size: 1.15rem; color: var(--heading); }
.font-opt:has(input:checked) { background: var(--brand-soft); }
.font-sample { margin: 14px 0; padding: 18px; border-radius: 12px; background: var(--soft); }
.font-sample p { margin: 0 0 12px; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: #E5484D; color: #fff; font: 700 .72rem/1 system-ui, -apple-system, 'Segoe UI', sans-serif; vertical-align: 2px; }
.pending-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.pending-list li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--soft); }
.pending-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #E5484D; animation: pulse 1.4s ease-in-out infinite; }
/* Inicio: foto a todo lo ancho con el logo al centro, texto del estudio e instructores. */
/* La portada se queda quieta (sticky) y las secciones siguientes suben y la van cubriendo, también en celular. */
.cover { position: sticky; top: 64px; z-index: 0; display: grid; place-items: center; height: calc(100svh - 64px); min-height: 420px; background: radial-gradient(800px 500px at 50% 40%, var(--soft), var(--bg)); background-size: cover; background-position: center; }
.cover.has-img::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.18); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cover-logo { position: relative; width: min(300px, 70vw); height: auto; }
.about, .team { position: relative; z-index: 1; }
.about { background: var(--bg); padding: 88px 0 72px; box-shadow: 0 -10px 30px rgba(0,0,0,.06); }
.about-in { max-width: 660px; margin-left: 64px; }
.about h2 { font-family: var(--sans); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.2rem); margin: 0; letter-spacing: -.02em; }
.about-sub { margin: 2px 0 34px; font-weight: 600; color: var(--brand); }
.about p:not(.about-sub) { margin: 0 0 14px; line-height: 1.85; }
.team { background: var(--surface); padding: 96px 0 72px; }
.team h2 { font-family: var(--sans); font-weight: 600; text-align: center; font-size: clamp(1.8rem, 3.4vw, 2.2rem); margin-bottom: 48px; letter-spacing: -.02em; }
.team-grid { display: grid; grid-template-columns: repeat(4, 212px); gap: 44px 48px; justify-content: center; }
.team-card { text-align: center; cursor: pointer; }
.team-card img, .team-ph { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; filter: grayscale(1); transition: filter .3s, transform .3s; }
.team-ph { display: grid; place-items: center; background: var(--soft); font-size: 2.6rem; color: var(--heading); filter: none; }
.team-card:hover img { filter: grayscale(0); transform: translateY(-2px); }
.team-card h3 { font-family: var(--sans); font-weight: 500; font-size: 1.1rem; margin: 12px 0 2px; letter-spacing: 0; }
.team-card p { margin: 0; font-size: .85rem; line-height: 1.35; color: var(--ink); }
@media (max-width: 1060px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 212px)); } .about-in { margin-left: 0; } }
@media (max-width: 720px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; } .about { padding: 56px 0 40px; } .team { padding: 56px 0 48px; } }
@media (min-width: 821px) { .at-home .brand { visibility: hidden; } }
/* Panel del alumno: encabezado con su nombre, menú a la izquierda y calendario. */
.in-panel .topbar { display: none; }
.member-head { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.member-head-in { display: flex; align-items: center; gap: 12px; height: 66px; }
.member-head-in .install-top { margin-left: auto; order: 0; }
.member-head-in .install-top .mi { width: 18px; height: 18px; stroke-width: 2.2; }
.member-me { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); }
.member-me b { display: block; font-weight: 500; line-height: 1.1; }
.member-me small { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-text); }
.avatar-sm { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 600; font-size: .85rem; }
.member { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 54px; padding-top: 64px; padding-bottom: 72px; }
.member-side { position: sticky; top: 90px; align-self: start; }
.member-side h3 { text-align: center; font-family: var(--sans); font-weight: 600; font-size: 1.1rem; margin: 6px 0 18px; }
.member-side nav { display: flex; flex-direction: column; gap: 4px; }
.member-side a, .member-side button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 6px; background: none; color: var(--heading); font: 400 1.02rem var(--sans); text-decoration: none; cursor: pointer; text-align: left; }
.member-side a:hover, .member-side button:hover { background: var(--bg); }
.member-side a.on { background: var(--brand-soft); color: var(--brand-text); }
.mi { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.member-title { font-family: var(--sans); font-weight: 600; font-size: 1.9rem; margin: 0 0 18px; letter-spacing: -.01em; }
.member-main .wrap.section { padding: 0; max-width: none; }
.member-main .wrap.section h1 { font-family: var(--sans); font-weight: 600; font-size: 1.9rem; }
.policy-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 40px; }
.policy { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.policy-ico { flex: none; width: 44px; height: 44px; border-radius: 4px; display: grid; place-items: center; background: var(--soft); color: var(--brand-text); }
.policy b { display: block; font-weight: 500; color: var(--brand-text); }
.policy p { margin: 2px 0 0; font-size: .95rem; line-height: 1.7; }
.cal-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-bottom: 18px; }
.cal-label { display: block; font-weight: 600; font-size: .9rem; color: var(--heading); margin-bottom: 10px; }
.seg { display: inline-flex; }
.seg button { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 104px; padding: 8px 0 6px; border: 1px solid var(--line); background: var(--surface); color: var(--heading); font: 500 .88rem var(--sans); cursor: pointer; }
.seg button + button { border-left: 0; }
.seg button:first-child { border-radius: 4px 0 0 4px; } .seg button:last-child { border-radius: 0 4px 4px 0; }
.seg button.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.seg .mi { width: 16px; height: 16px; }
.period { display: grid; grid-template-columns: 48px 1fr 48px; height: 50px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.period span { display: grid; place-items: center; font-size: 1.05rem; color: var(--heading); text-decoration: underline dotted; text-underline-offset: 4px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.period button { border: 0; background: none; color: var(--heading); cursor: pointer; display: grid; place-items: center; }
.period button:disabled { color: var(--line); cursor: default; }
.cal-filter-row { display: flex; justify-content: flex-end; margin-top: 12px; }
.btn-filter { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 0; border-radius: 4px; background: #555; color: #fff; font: 600 .95rem var(--sans); cursor: pointer; }
.btn-filter.on { background: var(--brand); }
.btn-filter .mi { width: 16px; height: 16px; }
.cal-list { margin-top: 30px; }
.cal-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 46px 20px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); text-align: center; }
.cal-empty img { width: 34px; height: 34px; opacity: .55; filter: grayscale(1); }
.cal-foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; color: var(--heading); line-height: 1.9; }
.cal-foot .mi { vertical-align: -4px; }
.cal-tz { text-align: right; } .cal-tz span { color: var(--brand-text); }
.slot b .mi { width: 16px; height: 16px; vertical-align: -2px; margin-right: 6px; color: var(--muted); }
@media (max-width: 900px) {
  .member { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 16px; }
  .member-side { position: static; }
  .member-side h3 { display: none; }
  .member-side nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: none; }
  .member-side a, .member-side button { flex: none; white-space: nowrap; font-size: .92rem; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; }
  .policy-cards, .cal-controls { grid-template-columns: 1fr; }
  .cal-foot { flex-direction: column; } .cal-tz { text-align: left; }
}
/* Administración con el diseño de Tribu: menú lateral con el logo y calendario de clases. */
.admin { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; }
.admin-side { position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; padding: 32px 28px 24px; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.admin-logo { display: grid; place-items: center; width: 100px; height: 100px; margin: 0 auto 40px; border-radius: 50%; background: var(--surface); box-shadow: 0 2px 14px rgba(0,0,0,.1); }
.admin-logo img { width: 70px; height: 70px; }
.admin-side nav { display: flex; flex-direction: column; }
.admin-side nav a, .admin-side nav button { display: flex; align-items: center; gap: 12px; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--heading); font: 400 1.05rem var(--sans); text-decoration: none; text-align: left; cursor: pointer; }
.admin-side nav a > span:first-of-type, .admin-side nav button span { flex: 1; }
.admin-side nav a .mi:last-child { width: 15px; height: 15px; color: var(--muted); }
.admin-side nav a.on { color: var(--brand-text); }
.admin-side nav .mi { width: 22px; height: 22px; }
.admin-side small { margin-top: 24px; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.admin-main { padding: 48px clamp(16px, 5vw, 88px) 72px; min-width: 0; }
.admin-crumb { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 1.05rem; }
.admin-crumb a { color: var(--muted); display: inline-flex; }
.admin-crumb .mi { width: 18px; height: 18px; }
.admin-crumb .mi:nth-of-type(2), .admin-crumb > .mi { width: 14px; height: 14px; }
.admin-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 4px 0 28px; }
.admin-top h1 { font: 500 1.75rem var(--sans); margin: 0; letter-spacing: 0; }
.admin-actions { display: flex; gap: 22px; }
.admin-actions button { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; color: var(--heading); font: 500 .78rem var(--sans); cursor: pointer; }
.admin-actions button > span { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); }
.admin-actions .badge { position: absolute; top: -6px; right: -10px; margin: 0; }
.admin-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 40px; padding-bottom: 22px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.admin-note { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; font-size: .95rem; line-height: 1.3; }
.admin-note > span { flex: none; width: 40px; height: 40px; border-radius: 6px; display: grid; place-items: center; background: var(--soft); color: var(--brand-text); }
.admin-controls { display: grid; grid-template-columns: auto auto 1fr; gap: 18px 12px; align-items: start; }
.admin-period { justify-self: end; width: min(560px, 100%); }
.btn-today { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; border-radius: 4px; background: var(--brand); color: var(--brand-ink); font: 500 .95rem var(--sans); cursor: pointer; }
.btn-today .mi { width: 16px; height: 16px; }
.cal-filter-row { gap: 8px; }
.acards { display: grid; gap: 14px; margin-top: 34px; }
.acard { padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.acard:hover { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.acard.past { opacity: .6; }
.acard-head { display: flex; align-items: flex-start; gap: 14px; }
.acard-head > div { flex: 1; }
.acard-head small { display: block; font-size: .92rem; color: var(--heading); }
.acard-date { font-size: 1.25rem; color: var(--heading); }
.acard-ico { flex: none; width: 44px; height: 44px; border-radius: 4px; display: grid; place-items: center; background: var(--soft); color: var(--brand-text); }
.acard-ico .mi { width: 24px; height: 24px; }
.acard-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 3px; background: var(--soft); color: var(--brand-text); font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.acard-badge .mi { width: 15px; height: 15px; }
.acard h3 { font: 500 1.35rem var(--sans); margin: 18px 0 10px; letter-spacing: 0; }
.acard-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--muted); font-size: .92rem; }
.acard-info li { display: flex; align-items: center; gap: 8px; }
.acard-info .mi { width: 17px; height: 17px; }
.acard-info .acard-sub { padding: 2px 10px; }
.acard-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 16px; }
.acard-foot span { font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--heading); }
.btn-dark { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 0; border-radius: 3px; background: #3c3b3c; color: #fff; font: 500 .95rem var(--sans); cursor: pointer; }
.btn-dark .mi { width: 16px; height: 16px; }
.admin-tz { margin-top: 22px; font-size: .92rem; } .admin-tz span { color: var(--brand-text); }
@media (max-width: 1100px) { .admin-controls { grid-template-columns: auto auto; } .admin-period { grid-column: 1 / -1; justify-self: stretch; width: auto; } }
@media (max-width: 900px) {
  .admin { grid-template-columns: minmax(0, 1fr); }
  .admin-side { position: sticky; top: 0; z-index: 20; height: auto; padding: 10px 16px; flex-direction: row; align-items: center; gap: 12px; border-right: 0; border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0,0,0,.05); }
  .admin-logo { width: 40px; height: 40px; margin: 0; flex: none; box-shadow: none; } .admin-logo img { width: 36px; height: 36px; }
  .admin-side nav { flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .admin-side nav a, .admin-side nav button { flex: none; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; white-space: nowrap; }
  .admin-side nav a.on { background: var(--brand-soft); }
  .admin-side nav a .mi:last-child, .admin-side small { display: none; }
  .admin-side nav .mi { width: 18px; height: 18px; }
  .admin-main { padding-top: 20px; }
  .admin-top { flex-direction: column; } .admin-actions { gap: 16px; }
  .admin-controls { grid-template-columns: minmax(0, 1fr); } .seg { display: flex; } .seg button { flex: 1; width: auto; }
  .acard-foot { flex-direction: column; align-items: flex-start; }
}

/* Calendario de horarios, por día o por semana */
.sched h1, .cl-band h2 { font-family: var(--sans); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.4rem); letter-spacing: -.01em; }
.wrap.sched { padding-left: 16px; padding-right: 16px; }
.sched h1 { margin-bottom: 44px; }
.period-date { position: relative; cursor: pointer; }
.period-date input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.cc { display: flex; width: 100%; padding: 0; border: 0; background: none; color: var(--heading); font: inherit; text-align: inherit; }
button.cc { cursor: pointer; }
button.cc:hover b { color: var(--brand-text); }
button.cc:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.cc .mi { color: var(--brand); }
.cc.past, .cc.past .mi { color: var(--muted); }
.cc-txt > * { display: block; }
.cc-txt b { font-weight: 500; font-size: 1.05rem; line-height: 1.25; margin-bottom: 3px; }
.cc-txt > span { font-size: .86rem; line-height: 1.5; }
.cc-txt .tag { display: inline-block; margin-top: 6px; }
.cd { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--surface); }
.cd-head { padding: 10px; background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.cd-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); padding: 14px; border-top: 1px solid var(--line); }
.cd-row:nth-child(2) { border-top: 0; }
.cd-row:nth-child(odd) { background: rgba(0,0,0,.018); }
.cd-time { font-size: 1.05rem; color: var(--heading); }
.cd .cc { gap: 10px; align-items: flex-start; }
.cw-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.cw { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; }
.cw th { padding: 10px 4px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--surface); color: var(--heading); text-align: center; text-transform: uppercase; font-size: .8rem; letter-spacing: .04em; }
.cw th:first-child, .cw td:first-child { border-left: 0; }
.cw th.today { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.cw td { padding: 16px 6px; border-bottom: 0; border-left: 1px solid var(--line); vertical-align: middle; }
.cw td.today { border-left: 1px solid var(--brand); border-right: 1px solid var(--brand); }
.cw tbody tr:nth-child(odd) { background: rgba(0,0,0,.018); }
.cw-hour { text-align: center; font-size: 1.1rem; color: var(--heading); }
.cw .cc { flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.cw .cc + .cc { margin-top: 18px; }

/* Clases: carrusel debajo del calendario */
.cl-band { padding: 64px 0; background: rgba(0,0,0,.018); }
.cl-band h2 { margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cl-nav { display: flex; justify-content: flex-end; gap: 10px; margin: 10px 0 18px; }
.cl-nav button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--soft); color: var(--brand-text); cursor: pointer; }
.cl-nav button:disabled { opacity: .45; cursor: default; }
.cl-nav .mi { width: 16px; height: 16px; }
.cl-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 56px) / 2); gap: 56px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cl-track::-webkit-scrollbar { display: none; }
.cl-card { min-width: 0; scroll-snap-align: start; }
.cl-card p { margin: 0 0 14px; line-height: 1.85; }
.cl-top { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.cl-ico { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--soft); overflow: hidden; }
.cl-ico img { width: 44px; height: 44px; object-fit: contain; }
.cl-top h3 { margin: 0; font-family: var(--sans); font-weight: 500; font-size: 1.25rem; }
.cl-top small { display: block; padding-left: 26px; line-height: 1.2; font-size: .92rem; }
@media (max-width: 720px) {
  .sched h1 { margin-bottom: 24px; }
  .cd-row { grid-template-columns: 92px minmax(0, 1fr); }
  .cl-band { padding: 44px 0; }
  .cl-track { grid-auto-columns: 100%; gap: 16px; }
}