/* =========================================================
   GymApp — sistema visual
   Archivo (display, eje de anchura) · Geist (texto) · Geist Mono (cifras)
   ========================================================= */

@font-face {
  font-family: 'Archivo';
  src: url('/static/fonts/archivo-latin-standard-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('/static/fonts/archivo-latin-ext-standard-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  src: url('/static/fonts/geist-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  src: url('/static/fonts/geist-latin-ext-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/static/fonts/geist-mono-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --accent: #c6ff3d;
  --accent-rgb: 198, 255, 61;
  --accent-ink: #0a0a0a;

  --font-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --r-xs: 8px;

  --ok: #3ddc84;
  --warn: #ffb547;
  --bad: #ff5d5d;
  --info: #6aa8ff;

  --tabbar-h: 76px;
  color-scheme: dark;
}

:root,
[data-theme='dark'] {
  --bg: #060607;
  --bg-elev: #0c0c0e;
  --surface: #111113;
  --surface-2: #17171a;
  --surface-3: #1f1f23;
  --shell: rgba(255, 255, 255, 0.025);
  --shell-line: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #f3f3ef;
  --text-2: #a3a3a8;
  --text-3: #6c6c73;
  --hi: rgba(255, 255, 255, 0.07);
  --glass: rgba(18, 18, 20, 0.72);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 48px -24px rgba(0, 0, 0, 0.8);
  --accent-text: var(--accent);
  --field: rgba(255, 255, 255, 0.04);
  color-scheme: dark;
}

[data-theme='light'] {
  --bg: #f3f3ef;
  --bg-elev: #ecece7;
  --surface: #ffffff;
  --surface-2: #f7f7f3;
  --surface-3: #efefe9;
  --shell: rgba(10, 10, 10, 0.025);
  --shell-line: rgba(10, 10, 10, 0.05);
  --line: rgba(10, 10, 10, 0.075);
  --line-2: rgba(10, 10, 10, 0.14);
  --text: #0c0c0d;
  --text-2: #5d5d63;
  --text-3: #8f8f95;
  --hi: rgba(255, 255, 255, 0.9);
  --glass: rgba(250, 250, 247, 0.78);
  --shadow: 0 1px 0 rgba(255, 255, 255, 1) inset, 0 18px 40px -22px rgba(30, 30, 20, 0.22), 0 2px 6px -2px rgba(30, 30, 20, 0.06);
  --accent-text: color-mix(in oklab, var(--accent) 52%, #0a0a0a);
  --field: #fbfbf8;
  --ok: #17a557;
  --warn: #c27a00;
  --bad: #d93a3a;
  --info: #2f6fde;
  color-scheme: light;
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 260ms;
  animation-timing-function: var(--ease);
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
::selection {
  background: rgba(var(--accent-rgb), 0.35);
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 760;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
p {
  margin: 0;
}
.i {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}
.mono,
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.muted {
  color: var(--text-2);
}
.faint {
  color: var(--text-3);
}
.accent-text {
  color: var(--accent-text);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.display {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 820;
  letter-spacing: -0.035em;
  line-height: 0.95;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 560;
  color: var(--text-2);
}
.eyebrow.pill {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--shell);
  border: 1px solid var(--line);
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.8);
}
.stack > * + * {
  margin-top: var(--gap, 16px);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.row.wrap {
  flex-wrap: wrap;
}
.row.between {
  justify-content: space-between;
}
.grow {
  flex: 1;
  min-width: 0;
}
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hide {
  display: none !important;
}

/* grano analógico fijo (no repinta con el scroll) */
.grain::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme='light'] .grain::after {
  opacity: 0.025;
}

/* ---------- avatar ---------- */
.av {
  --s: 36px;
  width: var(--s);
  height: var(--s);
  flex: none;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: calc(var(--s) * 0.36);
  font-weight: 650;
  letter-spacing: 0.02em;
  color: hsl(var(--h) 70% 88%);
  background: linear-gradient(145deg, hsl(var(--h) 45% 32%), hsl(calc(var(--h) + 40) 45% 20%));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
[data-theme='light'] .av {
  color: hsl(var(--h) 55% 22%);
  background: linear-gradient(145deg, hsl(var(--h) 70% 88%), hsl(calc(var(--h) + 30) 60% 80%));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.av.xs {
  --s: 24px;
}
.av.sm {
  --s: 30px;
}
.av.lg {
  --s: 56px;
}
.av.xl {
  --s: 76px;
}
.av-stack {
  display: flex;
}
.av-stack .av {
  margin-left: -8px;
  box-shadow: 0 0 0 2px var(--surface);
}
.av-stack .av:first-child {
  margin-left: 0;
}

/* ---------- chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 560;
  white-space: nowrap;
  background: var(--shell);
  border: 1px solid var(--line);
  color: var(--text-2);
}
.chip .i {
  width: 14px;
  height: 14px;
}
.tone-ok {
  color: var(--ok);
  background: color-mix(in oklab, var(--ok) 12%, transparent);
  border-color: color-mix(in oklab, var(--ok) 24%, transparent);
}
.tone-warn {
  color: var(--warn);
  background: color-mix(in oklab, var(--warn) 12%, transparent);
  border-color: color-mix(in oklab, var(--warn) 26%, transparent);
}
.tone-bad {
  color: var(--bad);
  background: color-mix(in oklab, var(--bad) 11%, transparent);
  border-color: color-mix(in oklab, var(--bad) 24%, transparent);
}
.tone-info {
  color: var(--info);
  background: color-mix(in oklab, var(--info) 12%, transparent);
  border-color: color-mix(in oklab, var(--info) 24%, transparent);
}
.tone-accent {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: transparent;
}
.tone-muted {
  color: var(--text-3);
}

/* ---------- botones ---------- */
.btn {
  --bh: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--bh);
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:hover {
  border-color: var(--text-3);
}
.btn:active {
  transform: scale(0.97);
}
.btn[disabled],
.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
  box-shadow: 0 8px 24px -10px rgba(var(--accent-rgb), 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover {
  border-color: transparent;
  box-shadow: 0 12px 30px -10px rgba(var(--accent-rgb), 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-dark {
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
}
.btn-ghost {
  background: transparent;
}
.btn-quiet {
  background: transparent;
  border-color: transparent;
  color: var(--text-2);
  padding: 0 12px;
}
.btn-quiet:hover {
  color: var(--text);
  border-color: transparent;
  background: var(--shell);
}
.btn-danger {
  background: transparent;
  color: var(--bad);
  border-color: color-mix(in oklab, var(--bad) 35%, transparent);
}
.btn-sm {
  --bh: 36px;
  padding: 0 14px;
  font-size: 13px;
}
.btn-xs {
  --bh: 30px;
  padding: 0 11px;
  font-size: 12.5px;
  gap: 6px;
}
.btn-lg {
  --bh: 54px;
  padding: 0 26px;
  font-size: 15.5px;
}
.btn-block {
  width: 100%;
}
.btn-icon {
  width: var(--bh);
  padding: 0;
}
/* botón dentro de botón: icono en su propio círculo */
.btn .ico {
  width: calc(var(--bh) - 12px);
  height: calc(var(--bh) - 12px);
  margin-right: -14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.1);
  transition: transform 0.45s var(--ease-spring);
}
.btn-primary .ico {
  background: rgba(0, 0, 0, 0.12);
}
.btn:not(.btn-primary) .ico {
  background: var(--shell);
  border: 1px solid var(--line);
}
.btn:hover .ico {
  transform: translate(2px, -1px) scale(1.06);
}
.btn .ico .i {
  width: 16px;
  height: 16px;
}
.btn.loading {
  pointer-events: none;
  color: transparent !important;
  position: relative;
}
.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-color: var(--text-3) transparent var(--text-3) transparent;
  animation: spin 0.7s linear infinite;
}
.btn-primary.loading::after {
  border-color: var(--accent-ink) transparent var(--accent-ink) transparent;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--shell);
  border: 1px solid var(--line);
  color: var(--text);
  transition: transform 0.3s var(--ease), background-color 0.3s;
}
.icon-btn:active {
  transform: scale(0.94);
}
.icon-btn .i {
  width: 20px;
  height: 20px;
}
.icon-btn .badge,
.badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 10.5px;
  font-weight: 700;
  font-style: normal;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.link {
  color: var(--accent-text);
  font-weight: 560;
  text-decoration: underline;
  text-decoration-color: rgba(var(--accent-rgb), 0.35);
  text-underline-offset: 3px;
}

/* ---------- tarjetas ---------- */
/* Doble bisel con un solo elemento: el anillo exterior es un box-shadow concéntrico */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 0 0 5px var(--shell), 0 0 0 6px var(--shell-line), var(--shadow);
  margin: 6px;
}
.card-pad {
  padding: 20px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 0;
}
.card-head h2,
.card-head h3 {
  font-size: 15px;
  font-stretch: 108%;
  letter-spacing: -0.01em;
}
.card-body {
  padding: 16px 20px 20px;
}
/* bisel real con dos capas para piezas protagonistas */
.bz {
  padding: 6px;
  border-radius: var(--r-xl);
  background: var(--shell);
  border: 1px solid var(--shell-line);
}
.bz-in {
  position: relative;
  border-radius: calc(var(--r-xl) - 6px);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 var(--hi), var(--shadow);
  overflow: hidden;
}

/* ---------- formularios ---------- */
.field {
  display: grid;
  gap: 7px;
}
.field > span,
.label {
  font-size: 12.5px;
  font-weight: 560;
  color: var(--text-2);
}
.field small,
.hint {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.45;
}
.input,
.field input:not([type='checkbox']):not([type='radio']):not([type='color']):not([type='file']),
.field select,
.field textarea {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--field);
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s;
  appearance: none;
  -webkit-appearance: none;
}
.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.field textarea {
  height: auto;
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.5;
}
.field select {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23888' d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
.input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.7);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14);
}
[data-theme='light'] .input:focus,
[data-theme='light'] .field input:focus,
[data-theme='light'] .field select:focus,
[data-theme='light'] .field textarea:focus {
  border-color: var(--accent-text);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.28);
}
.input-icon {
  position: relative;
}
.input-icon .i {
  position: absolute;
  left: 14px;
  top: 50%;
  translate: 0 -50%;
  color: var(--text-3);
  pointer-events: none;
}
.input-icon .input {
  padding-left: 42px;
}
.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-grid .full {
  grid-column: 1 / -1;
}
.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 640px) {
  .form-grid,
  .form-grid.three {
    grid-template-columns: 1fr;
  }
}
.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
}
/* interruptor */
.switch {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  padding: 12px 0;
}
.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.switch .track {
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  transition: background-color 0.3s var(--ease);
}
.switch .track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s var(--ease-spring);
}
[data-theme='light'] .switch .track::after {
  background: #fff;
}
.switch input:checked + .track {
  background: var(--accent);
  border-color: transparent;
}
.switch input:checked + .track::after {
  transform: translateX(18px);
  background: var(--accent-ink);
}
[data-theme='light'] .switch input:checked + .track::after {
  background: #fff;
}
.switch input:focus-visible + .track {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.switch b {
  display: block;
  font-weight: 600;
  font-size: 14px;
}
.switch small {
  display: block;
  color: var(--text-3);
  font-size: 12.5px;
  margin-top: 2px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
}
.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
/* selector de opciones tipo chips */
.pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pick label {
  position: relative;
  cursor: pointer;
}
.pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pick span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--field);
  font-size: 13.5px;
  font-weight: 560;
  transition: all 0.3s var(--ease);
}
.pick input:checked + span {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
}
.pick input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.pick input:disabled + span {
  opacity: 0.5;
  cursor: not-allowed;
}
.pick input:disabled:checked + span {
  opacity: 0.75;
}
.plan-lock .btn {
  margin-top: 10px;
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.swatches label {
  position: relative;
  cursor: pointer;
}
.swatches input[type='radio'] {
  position: absolute;
  opacity: 0;
}
.swatches span {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s var(--ease-spring);
}
.swatches input:checked + span {
  transform: scale(1.12);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--sw);
}
.swatches input[type='color'] {
  width: 34px;
  height: 34px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  background: none;
  cursor: pointer;
}
.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  border: 1px solid var(--line);
  background: var(--shell);
}
.alert .i {
  margin-top: 1px;
}

/* ---------- toasts ---------- */
.toasts {
  position: fixed;
  z-index: 60;
  top: max(14px, env(safe-area-inset-top));
  left: 50%;
  translate: -50% 0;
  width: min(440px, calc(100vw - 24px));
  display: grid;
  gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
  animation: toast-in 0.6s var(--ease-spring) both;
}
.toast.out {
  animation: toast-out 0.35s var(--ease) both;
}
.toast .t-ico {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--shell);
}
.toast.tone-ok .t-ico {
  background: var(--accent);
  color: var(--accent-ink);
}
.toast.tone-ok,
.toast.tone-warn,
.toast.tone-bad,
.toast.tone-info {
  color: var(--text);
  background: var(--glass);
  border-color: var(--line-2);
}
.toast.tone-bad .t-ico {
  background: color-mix(in oklab, var(--bad) 20%, transparent);
  color: var(--bad);
}
.toast.tone-warn .t-ico {
  background: color-mix(in oklab, var(--warn) 20%, transparent);
  color: var(--warn);
}
.toast.tone-info .t-ico {
  background: color-mix(in oklab, var(--info) 20%, transparent);
  color: var(--info);
}
.toast b {
  display: block;
  font-size: 14.5px;
}
.toast p {
  font-size: 13.5px;
  color: var(--text-2);
  margin-top: 2px;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-24px) scale(0.96);
    filter: blur(6px);
  }
}
@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(-16px) scale(0.97);
  }
}

/* ---------- diálogos (modal y hoja inferior) ---------- */
dialog {
  border: 0;
  padding: 0;
  color: var(--text);
  background: transparent;
  max-width: none;
  max-height: none;
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal {
  width: min(560px, calc(100vw - 24px));
  margin: auto;
}
.modal[open] {
  animation: modal-in 0.5s var(--ease-spring) both;
}
.modal .bz-in {
  max-height: calc(100dvh - 40px);
  overflow: auto;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 4px;
}
.modal-head h2 {
  font-size: 20px;
}
.modal-body {
  padding: 14px 22px 22px;
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
}
.sheet {
  width: 100%;
  max-width: 520px;
  margin: auto auto 0;
  padding: 0 10px max(10px, env(safe-area-inset-bottom));
}
.sheet[open] {
  animation: sheet-in 0.55s var(--ease) both;
}
.sheet .bz-in {
  padding: 26px 22px 20px;
  text-align: center;
}
.sheet .sheet-ico {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  background: var(--shell);
  border: 1px solid var(--line);
}
.sheet .sheet-ico .i {
  width: 26px;
  height: 26px;
}
.sheet.is-warn .sheet-ico {
  color: var(--warn);
  background: color-mix(in oklab, var(--warn) 14%, transparent);
}
.sheet h3 {
  font-size: 21px;
}
.sheet p {
  color: var(--text-2);
  margin-top: 8px;
  font-size: 14.5px;
}
.sheet .sheet-actions {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}
@keyframes sheet-in {
  from {
    transform: translateY(100%);
  }
}

/* ---------- animaciones de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.area-app .reveal,
.area-panel .reveal {
  transform: translateY(10px);
  filter: none;
  transition-duration: 0.55s;
  transition-delay: calc(var(--d, 0) * 45ms);
}
.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
.no-js .reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

/* =========================================================
   APP DEL SOCIO
   ========================================================= */
.area-app {
  background: var(--bg);
}
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 40% at 85% -5%, rgba(var(--accent-rgb), 0.16), transparent 70%),
    radial-gradient(50% 35% at -10% 10%, rgba(var(--accent-rgb), 0.07), transparent 70%);
}
[data-theme='light'] .ambient {
  background: radial-gradient(60% 40% at 85% -5%, rgba(var(--accent-rgb), 0.28), transparent 70%);
}
.app-shell {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px calc(var(--tabbar-h) + 40px + env(safe-area-inset-bottom));
}
.preview-bar {
  position: relative;
  z-index: 5;
  text-align: center;
  font-size: 12.5px;
  padding: 8px 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.preview-bar a {
  text-decoration: underline;
}
.app-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0 4px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 860;
  font-stretch: 120%;
  font-size: 15px;
  letter-spacing: -0.04em;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 20px -8px rgba(var(--accent-rgb), 0.6);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-mark.logo {
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 760;
  font-stretch: 112%;
  font-size: 15px;
  letter-spacing: -0.015em;
}
.hello {
  padding: 26px 2px 18px;
}
.hello h1 {
  font-size: clamp(30px, 8.6vw, 40px);
  margin-top: 10px;
}
.hello h1 em {
  font-style: normal;
  color: var(--accent-text);
}

/* tarjeta de próxima clase */
.next-card {
  margin-bottom: 14px;
}
.next-card .bz-in {
  padding: 18px 18px 16px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(var(--accent-rgb), 0.22), transparent 55%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.next-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.7);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0);
  }
}
.countdown {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-2);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--shell);
  border: 1px solid var(--line);
}
.next-main {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin: 18px 0 16px;
}
.next-time {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 830;
  font-size: clamp(40px, 11.5vw, 54px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.next-main h2 {
  font-size: 21px;
}
.next-main p {
  font-size: 13.5px;
  color: var(--text-2);
  margin-top: 3px;
  line-height: 1.35;
}
.next-actions {
  display: flex;
  gap: 8px;
}
.next-actions .btn {
  flex: 1;
}

/* tira del plan */
.plan-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 12px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.plan-strip:hover {
  border-color: var(--line-2);
}
.plan-strip:active {
  transform: scale(0.985);
}
.plan-strip b {
  display: block;
  font-size: 14.5px;
  font-weight: 620;
}
.plan-strip small {
  display: block;
  color: var(--text-2);
  font-size: 12.5px;
  margin-top: 1px;
}
.plan-strip .chev {
  color: var(--text-3);
}
.plan-strip.is-empty {
  border-style: dashed;
}
.ring .ring-bg {
  stroke: var(--line-2);
}
.ring .ring-fg {
  stroke: var(--accent);
  transition: stroke-dashoffset 1.2s var(--ease-out);
}
.ring .ring-label {
  fill: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
}
.renew-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 12px 12px 16px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  background: linear-gradient(110deg, rgba(var(--accent-rgb), 0.12), transparent 70%), var(--surface);
}
.renew-cta b {
  display: block;
  font-size: 14.5px;
  font-weight: 620;
}
.renew-cta small {
  display: block;
  color: var(--text-2);
  font-size: 12.5px;
  margin-top: 1px;
}
.member-card + .renew-cta {
  margin: -4px 0 14px;
}
.plan-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-text);
}

/* tira de días */
.days-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 18px -16px 0;
  padding: 10px 0 12px;
  background: linear-gradient(180deg, var(--bg) 70%, transparent);
}
.days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 16px 4px;
  scrollbar-width: none;
}
.days::-webkit-scrollbar {
  display: none;
}
.day {
  scroll-snap-align: start;
  flex: none;
  width: 54px;
  height: 74px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), background-color 0.35s var(--ease), border-color 0.35s;
  position: relative;
}
.day span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  font-weight: 560;
}
.day b {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-size: 21px;
  font-weight: 760;
  line-height: 1;
}
.day i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
  margin-top: 2px;
}
.day.has-mine i {
  background: var(--accent);
}
.day.is-empty {
  opacity: 0.45;
}
.day:active {
  transform: scale(0.95);
}
.day.on {
  background: var(--text);
  border-color: transparent;
  color: var(--bg);
}
.day.on span {
  color: var(--bg);
  opacity: 0.6;
}
.day.on.has-mine i {
  background: var(--bg);
}
.day.today:not(.on) {
  border-color: rgba(var(--accent-rgb), 0.5);
}

.list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 8px 2px 12px;
}
.list-head h3 {
  font-size: 18px;
}
.list-head span {
  font-size: 13px;
  color: var(--text-3);
}

/* tarjeta de sesión (socio) */
.sessions {
  display: grid;
  gap: 10px;
}
.sc {
  --c: var(--accent);
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 14px 16px 16px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.45s var(--ease), border-color 0.4s var(--ease), background-color 0.4s;
  overflow: hidden;
}
.sc::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--c);
}
.sc-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.sc-time b {
  display: block;
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 780;
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.sc-time span {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 5px;
}
.sc-body {
  min-width: 0;
}
.sc-body h4 {
  font-size: 16.5px;
  font-stretch: 110%;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sc-body p {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 3px;
}
.sc-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  font-size: 12px;
  color: var(--text-2);
}
.sc-meta span {
  white-space: nowrap;
}
.sc-meta .low {
  color: var(--warn);
  font-weight: 600;
}
.sc-meta .full {
  color: var(--bad);
  font-weight: 600;
}
.sc-action {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: end;
  gap: 6px;
}
.sc-action .note {
  font-size: 11.5px;
  color: var(--text-3);
  text-align: right;
  max-width: 78px;
  line-height: 1.3;
}
.sc.state-booked {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: linear-gradient(100deg, rgba(var(--accent-rgb), 0.09), transparent 60%), var(--surface);
}
.sc.state-waitlist,
.sc.state-waitlist_open {
  border-color: color-mix(in oklab, var(--info) 40%, transparent);
}
.sc.state-cancelled {
  opacity: 0.55;
}
.sc.state-cancelled h4 {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}
.sc.state-past,
.sc.state-done,
.sc.state-closed {
  opacity: 0.6;
}
.sc.flash {
  animation: card-pop 0.8s var(--ease-spring);
}
@keyframes card-pop {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.025);
    box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.18);
  }
  100% {
    transform: scale(1);
  }
}
.spots {
  display: inline-flex;
  gap: 3px;
}
.spots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-2);
  transition: background-color 0.4s;
}
.spots i.on {
  background: var(--text-2);
}
.state-booked .spots i.on {
  background: var(--accent);
}
.spots-bar {
  display: inline-block;
  width: 70px;
  height: 6px;
  border-radius: 6px;
  background: var(--line-2);
  overflow: hidden;
}
.spots-bar i {
  display: block;
  height: 100%;
  background: var(--text-2);
  border-radius: inherit;
}
.empty {
  text-align: center;
  padding: 44px 20px;
  color: var(--text-2);
}
.empty .i {
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  color: var(--text-3);
}
.empty h3 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 6px;
}
.empty p {
  font-size: 14px;
  max-width: 320px;
  margin: 0 auto;
}

/* barra de pestañas flotante */
.tabbar {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  translate: -50% 0;
  width: min(420px, calc(100vw - 24px));
  height: 66px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.65);
}
.tabbar a {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border-radius: 999px;
  color: var(--text-3);
  font-size: 10.5px;
  font-weight: 560;
  transition: color 0.3s, background-color 0.4s var(--ease);
}
.tabbar a .i {
  width: 22px;
  height: 22px;
}
.tabbar a.on {
  color: var(--text);
  background: var(--shell);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tabbar a.on .i {
  color: var(--accent-text);
}
.tabbar .badge {
  top: 6px;
  right: calc(50% - 22px);
}

/* detalle de sesión */
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-2);
  padding: 8px 0;
}
.s-hero {
  --c: var(--accent);
  margin: 10px 0 14px;
}
.s-hero .bz-in {
  padding: 22px 20px 20px;
  background: radial-gradient(110% 80% at 100% 0%, color-mix(in oklab, var(--c) 28%, transparent), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--surface));
}
.s-hero h1 {
  font-size: clamp(32px, 9vw, 44px);
  margin: 14px 0 6px;
}
.s-when {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.s-when .big {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 820;
  font-size: 30px;
  letter-spacing: -0.04em;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}
.fact {
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--shell);
  border: 1px solid var(--line);
}
.fact span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
}
.fact b {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 620;
}
.who {
  display: flex;
  align-items: center;
  gap: 12px;
}
.big-spots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 6px;
}
.big-spots i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px dashed var(--line-2);
}
.big-spots i.on {
  border: 0;
  background: var(--text-2);
}
.big-spots i.me {
  background: var(--accent);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.5);
}
.sticky-cta {
  position: fixed;
  z-index: 25;
  left: 50%;
  translate: -50% 0;
  bottom: calc(max(12px, env(safe-area-inset-bottom)) + 76px);
  width: min(528px, calc(100vw - 32px));
}

/* mis clases */
.seg {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 4px;
  border-radius: 999px;
  background: var(--shell);
  border: 1px solid var(--line);
}
.seg a,
.seg button {
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  display: grid;
  place-items: center;
  transition: all 0.35s var(--ease);
}
.seg .on {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: inset 0 1px 0 var(--hi), 0 4px 12px -4px rgba(0, 0, 0, 0.4);
}
[data-theme='light'] .seg .on {
  background: #fff;
}
.timeline {
  display: grid;
  gap: 2px;
}
.tl-day {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-3);
  font-weight: 600;
  padding: 16px 4px 8px;
}
.hist {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.hist .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
  flex: none;
}
.hist b {
  font-weight: 600;
  font-size: 14.5px;
}
.hist small {
  color: var(--text-3);
  font-size: 12.5px;
}

/* perfil */
.member-card {
  margin: 8px 0 16px;
  perspective: 900px;
}
.member-card .mc {
  position: relative;
  aspect-ratio: 1.586;
  border-radius: 26px;
  padding: 22px;
  overflow: hidden;
  color: var(--accent-ink);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255, 255, 255, 0.35), transparent 50%),
    radial-gradient(80% 100% at 0% 100%, rgba(0, 0, 0, 0.28), transparent 60%),
    var(--accent);
  box-shadow: 0 30px 60px -28px rgba(var(--accent-rgb), 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
}
.mc::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255, 255, 255, 0.05) 22px 23px);
  pointer-events: none;
}
.mc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.mc-gym {
  font-family: var(--font-display);
  font-stretch: 120%;
  font-weight: 820;
  font-size: 15px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.mc-plan {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 650;
  opacity: 0.75;
}
.mc-name {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 830;
  font-size: clamp(24px, 7vw, 30px);
  letter-spacing: -0.035em;
  line-height: 1;
}
.mc-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.mc-bottom small {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 600;
}
.mc-bottom b {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
}
.mc-big {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 850;
  font-size: 44px;
  line-height: 0.8;
  letter-spacing: -0.05em;
  text-align: right;
}
.mc-big small {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  margin-top: 8px;
  text-align: right;
}
.mc.no-plan {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.tile {
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.tile span {
  font-size: 12px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.tile b {
  display: block;
  font-family: var(--font-display);
  font-stretch: 120%;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.045em;
  margin-top: 8px;
  line-height: 1;
}
.tile small {
  font-size: 12px;
  color: var(--text-3);
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 64px;
  margin-top: 14px;
}
.bars i {
  flex: 1;
  min-height: 3px;
  border-radius: 4px 4px 2px 2px;
  background: var(--line-2);
  transform-origin: bottom;
  animation: bar-in 1s var(--ease-out) both;
  animation-delay: calc(var(--k) * 40ms);
}
.bars i.on {
  background: var(--accent);
}
@keyframes bar-in {
  from {
    transform: scaleY(0);
  }
}
.section {
  margin-top: 26px;
}
.section > h3 {
  font-size: 17px;
  margin: 0 2px 12px;
}
.menu {
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.menu > a,
.menu > button,
.menu > details > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 16px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 14.5px;
  font-weight: 540;
  cursor: pointer;
  list-style: none;
}
.menu > * + * {
  border-top: 1px solid var(--line);
}
.menu > details > summary::-webkit-details-marker {
  display: none;
}
.menu .chev {
  margin-left: auto;
  color: var(--text-3);
  transition: transform 0.35s var(--ease);
}
.menu details[open] .chev {
  transform: rotate(90deg);
}
.menu .menu-body {
  padding: 4px 16px 18px;
}
.menu .i:first-child {
  color: var(--text-2);
}
.price-list {
  display: grid;
  gap: 8px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
.price-row b {
  font-size: 14.5px;
}
.price-row small {
  display: block;
  font-size: 12.5px;
  color: var(--text-3);
}
.price-row .num {
  font-size: 17px;
  font-weight: 600;
}
.notif {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.notif + .notif {
  margin-top: 8px;
}
.notif .n-ico {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--shell);
  border: 1px solid var(--line);
  color: var(--text-2);
}
.notif.k-success .n-ico {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
.notif.k-warn .n-ico {
  color: var(--warn);
}
.notif.k-renewal .n-ico {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
.notif.k-action .n-ico {
  color: var(--info);
}
.notif b {
  font-size: 14.5px;
}
.notif p {
  font-size: 13.5px;
  color: var(--text-2);
  margin-top: 3px;
}
.notif small {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 6px;
}
.notif.unread {
  border-color: rgba(var(--accent-rgb), 0.4);
}

/* =========================================================
   PÁGINAS PÚBLICAS (centro y acceso)
   ========================================================= */
.area-public {
  background: var(--bg);
}
.pub-nav {
  position: fixed;
  z-index: 30;
  top: 14px;
  left: 50%;
  translate: -50% 0;
  width: min(1080px, calc(100vw - 24px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 12px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--line);
}
.pub-nav .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}
.pub-nav nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.pub-nav nav a:not(.btn) {
  font-size: 13.5px;
  color: var(--text-2);
  padding: 8px 12px;
  border-radius: 999px;
}
.pub-nav nav a:not(.btn):hover {
  color: var(--text);
}
@media (max-width: 720px) {
  .pub-nav nav a:not(.btn) {
    display: none;
  }
}
.pub-main {
  position: relative;
  z-index: 2;
}
.wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}
.hero {
  position: relative;
  min-height: min(92dvh, 860px);
  display: flex;
  align-items: flex-end;
  padding: 120px 0 64px;
}
.hero h1 {
  font-size: clamp(48px, 11vw, 132px);
  max-width: 11ch;
  text-wrap: balance;
}
.hero .lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-2);
  max-width: 46ch;
  margin-top: 22px;
  line-height: 1.55;
}
@media (max-width: 640px) {
  .hero {
    min-height: 72dvh;
    padding: 110px 0 48px;
  }
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(50% 55% at 78% 30%, rgba(var(--accent-rgb), 0.22), transparent 70%), radial-gradient(40% 40% at 10% 90%, rgba(var(--accent-rgb), 0.08), transparent 70%);
}
.pub-section {
  padding: clamp(72px, 10vw, 128px) 0;
  border-top: 1px solid var(--line);
}
.pub-section h2 {
  font-size: clamp(32px, 5.4vw, 60px);
  font-stretch: 122%;
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.sec-head p {
  color: var(--text-2);
  max-width: 42ch;
}
.week-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.week-tabs button {
  flex: none;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-2);
  transition: all 0.35s var(--ease);
}
.week-tabs button.on {
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
}
.pub-sched {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.pub-row {
  --c: var(--accent);
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.pub-row .t {
  font-family: var(--font-display);
  font-stretch: 120%;
  font-weight: 780;
  font-size: 24px;
  letter-spacing: -0.04em;
}
.pub-row h4 {
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pub-row h4::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
}
.pub-row p {
  color: var(--text-2);
  font-size: 13.5px;
  margin-top: 3px;
}
@media (max-width: 560px) {
  .pub-row {
    grid-template-columns: 64px 1fr;
  }
  .pub-row .pub-spots {
    grid-column: 2;
  }
  .pub-row .t {
    font-size: 19px;
  }
}
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.bento > * {
  grid-column: span 4;
}
.bento .w6 {
  grid-column: span 6;
}
.bento .w8 {
  grid-column: span 8;
}
.bento .w12 {
  grid-column: span 12;
}
@media (max-width: 860px) {
  .bento > *,
  .bento .w6,
  .bento .w8 {
    grid-column: span 12;
  }
}
.class-card .bz-in {
  --c: var(--accent);
  padding: 24px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  background: radial-gradient(90% 70% at 100% 0%, color-mix(in oklab, var(--c) 24%, transparent), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--surface));
}
.class-card h3 {
  font-size: 26px;
  font-stretch: 122%;
}
.class-card p {
  color: var(--text-2);
  margin-top: 10px;
  font-size: 14.5px;
}
.class-card .meta {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.price-group {
  font-size: 20px;
  font-stretch: 115%;
  margin: 34px 2px 16px;
}
.price-group:first-of-type {
  margin-top: 0;
}
.price-card .bz-in {
  padding: 26px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.price-card.hl .bz-in {
  background: radial-gradient(100% 80% at 100% 0%, rgba(var(--accent-rgb), 0.25), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.4), var(--shadow);
}
.price-card h3 {
  font-size: 20px;
}
.price-card .amount {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 830;
  font-size: 46px;
  letter-spacing: -0.05em;
  margin: 18px 0 4px;
}
.price-card .amount small {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-2);
}
.price-card p {
  color: var(--text-2);
  font-size: 14px;
}
.price-card .sum {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-3);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.pub-foot {
  padding: 40px 0 60px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13px;
}
.pub-foot a:hover {
  color: var(--text);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.contact-item .bz-in {
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.contact-item .ci {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-text);
  flex: none;
}
.contact-item small {
  display: block;
  color: var(--text-3);
  font-size: 12px;
}

/* pantallas de acceso */
.auth {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 90px 16px 40px;
  position: relative;
  z-index: 2;
}
.auth-card {
  width: min(440px, 100%);
}
.auth-card .bz-in {
  padding: 30px 26px 26px;
}
.auth-card h1 {
  font-size: 32px;
  font-stretch: 122%;
  letter-spacing: -0.035em;
  margin: 16px 0 8px;
}
.auth-card .sub {
  color: var(--text-2);
  font-size: 14.5px;
}
.auth-card form {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}
.auth-alt {
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
  margin-top: 18px;
}
.hp {
  position: absolute;
  left: -9999px;
}

/* =========================================================
   PANEL DEL CENTRO
   ========================================================= */
.area-panel {
  --side-w: 248px;
}
.side {
  position: fixed;
  z-index: 40;
  top: 12px;
  bottom: 12px;
  left: 12px;
  width: var(--side-w);
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.55s var(--ease);
}
.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 16px;
}
.side-brand small {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.side-nav {
  display: grid;
  gap: 2px;
  overflow-y: auto;
  scrollbar-width: none;
}
.side-nav .grp {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-3);
  padding: 16px 12px 6px;
  font-weight: 600;
}
.side-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 540;
  color: var(--text-2);
  transition: background-color 0.3s var(--ease), color 0.3s;
}
.side-nav a:hover {
  background: var(--shell);
  color: var(--text);
}
.side-nav a.on {
  background: var(--text);
  color: var(--bg);
}
.side-nav a.on .i {
  color: var(--accent);
}
[data-theme='light'] .side-nav a.on .i {
  color: var(--accent);
}
.side-nav a .count {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--accent);
  color: var(--accent-ink);
}
.side-foot {
  margin-top: auto;
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.side-foot .quick {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
  padding: 8px 12px;
  border-radius: 12px;
}
.side-foot .quick:hover {
  background: var(--shell);
  color: var(--text);
}
.me {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px 2px;
}
.me b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}
.me small {
  display: block;
  font-size: 12px;
  color: var(--text-3);
}
.main {
  margin-left: calc(var(--side-w) + 24px);
  min-height: 100dvh;
  position: relative;
  z-index: 2;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px 10px 4px;
  background: linear-gradient(180deg, var(--bg) 60%, transparent);
}
.topbar .crumb {
  font-size: 13px;
  color: var(--text-3);
}
.topbar .grow {
  flex: 1;
}
.page {
  padding: 4px 24px 120px 4px;
  max-width: 1320px;
}
.impersonating {
  margin: 0 24px 12px 4px;
}
.ph {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin: 18px 0 26px;
}
.ph h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-stretch: 122%;
  letter-spacing: -0.035em;
  margin-top: 8px;
}
.ph .sub {
  color: var(--text-2);
  margin-top: 8px;
  max-width: 60ch;
}
.ph-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.menu-toggle {
  display: none;
}
.mob-nav {
  display: none;
}
.scrim {
  display: none;
}
@media (max-width: 1000px) {
  .side {
    transform: translateX(calc(-100% - 24px));
  }
  .side-open .side {
    transform: none;
  }
  .side-open .scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }
  .main {
    margin-left: 0;
  }
  .topbar {
    padding: 12px 16px 8px;
  }
  .page {
    padding: 4px 16px 130px;
  }
  .impersonating {
    margin: 0 16px 12px;
  }
  .menu-toggle {
    display: grid;
  }
  .mob-nav {
    position: fixed;
    z-index: 30;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    translate: -50% 0;
    width: min(460px, calc(100vw - 24px));
    height: 64px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px;
    border-radius: 999px;
    background: var(--glass);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    backdrop-filter: blur(24px) saturate(1.5);
    border: 1px solid var(--line-2);
    box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.4);
  }
  .mob-nav a,
  .mob-nav button {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    border: 0;
    background: transparent;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 560;
    color: var(--text-3);
  }
  .mob-nav .on {
    background: var(--text);
    color: var(--bg);
  }
  .mob-nav .i {
    width: 21px;
    height: 21px;
  }
}

/* KPIs */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 1100px) {
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.kpi {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  min-height: 150px;
}
.kpi .k-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-2);
  font-weight: 540;
}
.kpi .k-label .i {
  width: 18px;
  height: 18px;
  color: var(--text-3);
}
.kpi .k-value {
  font-family: var(--font-display);
  font-stretch: 122%;
  font-weight: 820;
  font-size: clamp(32px, 3.4vw, 44px);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-top: auto;
  padding-top: 16px;
  font-variant-numeric: tabular-nums;
}
.kpi .k-foot {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.kpi.hero-kpi {
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
}
.kpi.hero-kpi .k-label,
.kpi.hero-kpi .k-foot {
  color: color-mix(in oklab, var(--bg) 60%, var(--text));
}
.kpi.hero-kpi .k-value {
  color: var(--accent);
}
[data-theme='light'] .kpi.hero-kpi .k-value {
  color: var(--accent);
}
/* en tema oscuro el KPI destacado no se invierte: superficie oscura con brillo del color de marca */
[data-theme='dark'] .kpi.hero-kpi {
  background: radial-gradient(120% 100% at 100% 0%, rgba(var(--accent-rgb), 0.22), transparent 62%), var(--surface);
  color: var(--text);
  border-color: rgba(var(--accent-rgb), 0.35);
}
[data-theme='dark'] .kpi.hero-kpi .k-label,
[data-theme='dark'] .kpi.hero-kpi .k-foot {
  color: var(--text-2);
}
.kpis-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 760px) {
  .kpis-3 {
    grid-template-columns: 1fr;
  }
}
/* tabla de centros (plataforma): columnas fijas iguales en cabecera y filas */
.rw.gym-rw {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) 72px 128px 116px 268px;
}
.rw.gym-rw.head span {
  white-space: nowrap;
}
.gym-rw .num-col {
  text-align: right;
  padding-right: 18px;
}
@media (max-width: 1000px) {
  .rw.gym-rw {
    grid-template-columns: minmax(0, 1fr);
  }
  .rw.gym-rw.head,
  .gym-rw .hide-m {
    display: none;
  }
  .gym-rw .acts {
    justify-content: flex-start !important;
  }
}
.delta-up {
  color: var(--ok);
}
.delta-down {
  color: var(--bad);
}
.dash {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
@media (max-width: 1100px) {
  .dash {
    grid-template-columns: 1fr;
  }
}
.today-list {
  display: grid;
}
.tsess {
  --c: var(--accent);
  display: grid;
  grid-template-columns: 64px 1fr 150px 20px;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  transition: background-color 0.25s;
}
.tsess:hover {
  background: var(--shell);
}
.tsess .t {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
}
.tsess h4 {
  font-size: 15px;
  font-stretch: 108%;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tsess h4::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  flex: none;
}
.tsess small {
  display: block;
  color: var(--text-3);
  font-size: 12.5px;
  margin-top: 2px;
}
.tsess.past {
  opacity: 0.55;
}
.tsess.now {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.12), transparent 70%);
}
.occ {
  display: grid;
  gap: 6px;
}
.occ-bar {
  height: 6px;
  border-radius: 6px;
  background: var(--line);
  overflow: hidden;
}
.occ-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--text-2);
}
.occ-bar.hot i {
  background: var(--accent);
}
[data-theme='light'] .occ-bar.hot i {
  background: var(--accent-text);
}
.occ span {
  font-size: 12px;
  color: var(--text-2);
  font-family: var(--font-mono);
}
@media (max-width: 640px) {
  .tsess {
    grid-template-columns: 52px 1fr 20px;
  }
  .tsess .occ {
    grid-column: 2;
  }
  .tsess > .i {
    grid-row: 1;
    grid-column: 3;
  }
}
.alert-list {
  display: grid;
}
.al {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
}
.al b {
  font-size: 14px;
  font-weight: 600;
}
.al small {
  display: block;
  color: var(--text-3);
  font-size: 12.5px;
}
.al-group {
  padding: 14px 20px 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--text-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.heat {
  display: grid;
  grid-template-columns: 44px repeat(7, 1fr);
  gap: 4px;
  font-size: 11px;
}
.heat .h {
  color: var(--text-3);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
}
.heat .d {
  text-align: center;
  color: var(--text-3);
  padding-bottom: 4px;
}
.heat .c {
  height: 26px;
  border-radius: 7px;
  background: rgba(var(--accent-rgb), calc(var(--v) * 0.95 + 0.05));
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: transparent;
  transition: color 0.2s;
}
.heat .c:hover {
  color: var(--accent-ink);
}
.heat .c.none {
  background: var(--shell);
  border: 1px dashed var(--line);
}
.rev {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 160px;
  padding-top: 10px;
}
.rev .col {
  flex: 1;
  display: grid;
  gap: 8px;
  text-align: center;
  height: 100%;
  grid-template-rows: 1fr auto;
}
.rev .bar {
  align-self: end;
  border-radius: 10px 10px 4px 4px;
  background: var(--surface-3);
  position: relative;
  min-height: 4px;
  transform-origin: bottom;
  animation: bar-in 1.1s var(--ease-out) both;
  animation-delay: calc(var(--k) * 70ms);
}
.rev .col.cur .bar {
  background: var(--accent);
}
.rev .bar span {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  translate: -50% 0;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-2);
  white-space: nowrap;
}
.rev .m {
  font-size: 11.5px;
  color: var(--text-3);
  text-transform: capitalize;
}
.setup {
  padding: 22px;
  margin-bottom: 14px;
}
.setup-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 13.5px;
  font-weight: 560;
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
.step:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.step .n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px dashed var(--line-2);
  font-size: 12px;
  font-family: var(--font-mono);
  flex: none;
}
.step.done {
  color: var(--text-3);
}
.step.done .n {
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
}

/* calendario semanal */
.cal-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.cal-bar h2 {
  font-size: 20px;
  margin-right: auto;
}
.cal {
  --hh: 64px;
  display: grid;
  grid-template-columns: 52px repeat(7, minmax(0, 1fr));
  border-radius: var(--r-lg);
  overflow: hidden;
}
.cal-head {
  position: sticky;
  top: 62px;
  z-index: 5;
  display: contents;
}
.cal-dh {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
}
.cal-dh span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  font-weight: 600;
}
.cal-dh b {
  font-family: var(--font-display);
  font-stretch: 118%;
  font-size: 22px;
  font-weight: 780;
  letter-spacing: -0.04em;
}
.cal-dh.today b {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
}
.cal-dh .closed {
  font-size: 11px;
  color: var(--bad);
  margin-left: 6px;
}
.cal-corner {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.cal-hours {
  position: relative;
}
.cal-hours span {
  position: absolute;
  right: 8px;
  translate: 0 -50%;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-3);
}
.cal-col {
  position: relative;
  border-left: 1px solid var(--line);
  background-image: repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px var(--hh));
}
.cal-col.today {
  background-color: rgba(var(--accent-rgb), 0.04);
}
.cal-col.closed-day {
  background-image: repeating-linear-gradient(135deg, var(--line) 0 1px, transparent 1px 10px);
}
.ev {
  --c: var(--accent);
  position: absolute;
  z-index: 2;
  padding: 7px 8px 6px 10px;
  border-radius: 12px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.25;
  background: color-mix(in oklab, var(--c) 16%, var(--surface));
  border: 1px solid color-mix(in oklab, var(--c) 40%, transparent);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.ev::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--c);
}
.ev:hover {
  z-index: 3;
  transform: scale(1.02);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.35);
}
.ev b {
  display: block;
  font-weight: 650;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev .et {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
}
.ev-top {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.ev .ec {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 650;
}
.ev.full .ec {
  color: var(--bad);
}
.ev-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: var(--c);
  border-radius: 0 3px 0 0;
}
.ev .eo {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.ev .eo .occ-bar {
  flex: 1;
  height: 4px;
}
.ev.full .eo {
  color: var(--bad);
  font-weight: 650;
}
.ev.cancelled {
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, var(--surface) 6px 12px);
  border-color: var(--line);
  color: var(--text-3);
}
.ev.cancelled b {
  text-decoration: line-through;
}
.ev.past {
  opacity: 0.6;
}
.now-line {
  position: absolute;
  left: -1px;
  right: 0;
  z-index: 4;
  height: 2px;
  background: var(--bad);
  pointer-events: none;
}
.now-line::before {
  content: '';
  position: absolute;
  left: -5px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bad);
}
.cal-mobile {
  display: none;
}
@media (max-width: 900px) {
  .cal {
    display: none;
  }
  .cal-mobile {
    display: grid;
    gap: 14px;
  }
}
.mday h3 {
  font-size: 15px;
  margin: 6px 4px 8px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.mday .mlist {
  display: grid;
  gap: 8px;
}
.mev {
  --c: var(--accent);
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--c);
}
.mev .t {
  font-family: var(--font-mono);
  font-weight: 600;
}
.mev b {
  font-size: 14.5px;
}
.mev small {
  display: block;
  color: var(--text-3);
  font-size: 12.5px;
}
.mev.cancelled {
  opacity: 0.5;
}
.mev.cancelled b {
  text-decoration: line-through;
}

/* listas del panel */
.rows {
  display: grid;
}
.rw {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 24px;
  gap: 14px;
  align-items: center;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  transition: background-color 0.25s;
}
a.rw:hover {
  background: var(--shell);
}
.rw.head {
  border-top: 0;
  padding-top: 14px;
  padding-bottom: 10px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  font-weight: 600;
}
.rw .who b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
}
.rw .who small {
  display: block;
  font-size: 12.5px;
  color: var(--text-3);
}
.rw .cell small {
  display: block;
  font-size: 12px;
  color: var(--text-3);
}
.rw .chev {
  color: var(--text-3);
}
@media (max-width: 860px) {
  .rw {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
  }
  .rw.head {
    display: none;
  }
  .rw .cell.hide-m {
    display: none;
  }
  .rw .chev {
    display: none;
  }
}
.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 2px 10px;
}
.filters a {
  flex: none;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 560;
  color: var(--text-2);
  transition: all 0.3s var(--ease);
}
.filters a.on {
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
}
.filters a .count {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.toolbar .input-icon {
  flex: 1;
  min-width: 220px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
@media (max-width: 1100px) {
  .split {
    grid-template-columns: 1fr;
  }
}
.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 18px;
  font-size: 14px;
}
.kv dt {
  color: var(--text-3);
}
.kv dd {
  margin: 0;
  font-weight: 540;
}
.member-head {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.member-head h1 {
  font-size: clamp(28px, 4vw, 40px);
}
.contact-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.mship {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}
.mship:first-child {
  border-top: 0;
}
.mship-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.mship b {
  font-size: 15px;
}
.mship small {
  color: var(--text-3);
  font-size: 12.5px;
}
.progress {
  height: 6px;
  border-radius: 6px;
  background: var(--line);
  overflow: hidden;
  margin-top: 12px;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}
[data-theme='light'] .progress i {
  background: var(--accent-text);
}
.mini-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.mini-row .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c, var(--text-3));
  flex: none;
}
.mini-row small {
  color: var(--text-3);
  font-size: 12.5px;
}
.renew-box {
  margin: 12px 20px 0;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.renew-box.hot {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: linear-gradient(120deg, rgba(var(--accent-rgb), 0.12), transparent 70%), var(--surface-2);
}
.renew-box .i {
  display: inline-block;
  vertical-align: -3px;
}
/* la tarifa se sustituyó por una versión nueva: qué cambia al renovar */
.renew-change {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-2);
  background: color-mix(in oklab, var(--info) 9%, transparent);
  border: 1px solid color-mix(in oklab, var(--info) 28%, transparent);
}
.renew-change .i {
  color: var(--info);
  flex: none;
  margin-top: 1px;
}
.renew-price {
  margin-top: 10px;
}
.renew-price span {
  height: 34px;
  font-size: 13px;
}
.access-box {
  padding: 18px 20px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  background: linear-gradient(120deg, rgba(var(--accent-rgb), 0.14), transparent 70%), var(--surface);
  margin-bottom: 14px;
}
.access-box .url {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.access-box .url input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--field);
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.roster-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
}
.roster-row .who {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.roster-row .who b {
  font-size: 14.5px;
  font-weight: 600;
}
.roster-row .who small {
  display: block;
  font-size: 12.5px;
  color: var(--text-3);
}
.att {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--shell);
  border: 1px solid var(--line);
}
.att button {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s var(--ease);
}
.att button .i {
  width: 15px;
  height: 15px;
}
.att button.on[data-v='attended'] {
  background: var(--ok);
  color: #fff;
}
.att button.on[data-v='no_show'] {
  background: var(--bad);
  color: #fff;
}
.att button.on[data-v='booked'] {
  background: var(--surface-3);
  color: var(--text);
}
.big-occ {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.big-occ b {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 830;
  font-size: 56px;
  letter-spacing: -0.05em;
  line-height: 1;
}
.big-occ span {
  color: var(--text-2);
  font-size: 18px;
}
.session-hero {
  --c: var(--accent);
  padding: 22px;
  background: radial-gradient(100% 120% at 100% 0%, color-mix(in oklab, var(--c) 22%, transparent), transparent 60%), var(--surface);
}
.week-sched {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 1100px) {
  .week-sched {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}
.wd-col {
  padding: 14px 10px 10px;
  min-height: 160px;
}
.wd-col h3 {
  font-size: 14px;
  padding: 0 6px 10px;
  display: flex;
  justify-content: space-between;
}
.wd-col h3 small {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-3);
}
.slot {
  --c: var(--accent);
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 10px 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--c) 10%, var(--surface));
  margin-bottom: 6px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.slot::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--c);
}
.slot:hover {
  transform: translateY(-1px);
  border-color: var(--line-2);
}
.slot .t {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
}
.slot b {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
}
.slot small {
  display: block;
  font-size: 11.5px;
  color: var(--text-3);
}
.type-grid,
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.type-card {
  --c: var(--accent);
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  background: radial-gradient(100% 90% at 100% 0%, color-mix(in oklab, var(--c) 20%, transparent), transparent 60%), var(--surface);
}
.type-card h3 {
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.type-card p {
  font-size: 13.5px;
  color: var(--text-2);
  margin-top: 8px;
}
.type-card .foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.type-card.archived,
.plan-card.archived {
  opacity: 0.55;
}
.plan-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-height: 230px;
}
.plan-card.hl {
  box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.15), 0 0 0 6px rgba(var(--accent-rgb), 0.5), var(--shadow);
}
.plan-card .amount {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 830;
  font-size: 40px;
  letter-spacing: -0.05em;
  margin: 12px 0 4px;
}
.plan-card .amount small {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0;
}
.plan-card .foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.cash-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 860px) {
  .cash-kpis {
    grid-template-columns: 1fr;
  }
}
.pay-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1.6fr) minmax(0, 1fr) 110px auto;
  gap: 14px;
  align-items: center;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.pay-row .amount {
  font-family: var(--font-mono);
  font-weight: 600;
  text-align: right;
}
.pay-row.void {
  opacity: 0.5;
}
.pay-row.void .amount {
  text-decoration: line-through;
}
.pay-row small {
  display: block;
  color: var(--text-3);
  font-size: 12px;
}
@media (max-width: 760px) {
  .pay-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .pay-row .hide-m {
    display: none;
  }
}
.settings-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.settings-sec {
  scroll-margin-top: 80px;
}
.settings-sec + .settings-sec {
  margin-top: 18px;
}
.brand-preview {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: var(--r-lg);
  background: #0b0b0c;
  color: #f3f3ef;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.brand-preview .btn {
  --bh: 38px;
  font-size: 13px;
}
.logo-box {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  flex: none;
}
.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.danger-zone {
  border-color: color-mix(in oklab, var(--bad) 30%, transparent);
}
.copy-ok {
  color: var(--ok) !important;
}

/* =========================================================
   LANDING DE PRODUCTO
   ========================================================= */
.area-landing {
  --accent: #c6ff3d;
  --accent-rgb: 198, 255, 61;
  --accent-ink: #0a0a0a;
}
.l-hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: 40px;
  padding: 120px 0 80px;
}
@media (max-width: 960px) {
  .l-hero {
    grid-template-columns: 1fr;
    padding-top: 110px;
  }
}
.l-hero h1 {
  font-size: clamp(42px, 5.8vw, 84px);
  font-stretch: 112%;
  text-wrap: balance;
}
.l-hero h1 .out {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}
.l-hero .lead {
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--text-2);
  max-width: 48ch;
  margin-top: 24px;
}
.phone {
  position: relative;
  width: min(340px, 86vw);
  margin: 0 auto;
  border-radius: 54px;
  padding: 10px;
  background: linear-gradient(160deg, #2a2a2e, #0e0e10);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 60px 120px -40px rgba(var(--accent-rgb), 0.35), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  transform: rotate(-3deg);
  transition: transform 1s var(--ease);
}
.phone:hover {
  transform: rotate(0deg) translateY(-6px);
}
.phone-screen {
  border-radius: 44px;
  overflow: hidden;
  background: #060607;
  padding: 44px 14px 18px;
  position: relative;
  min-height: 600px;
}
.phone-screen::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  translate: -50% 0;
  width: 92px;
  height: 26px;
  border-radius: 999px;
  background: #000;
}
.phone .sc {
  padding: 12px 10px 12px 12px;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
}
.phone .sc-time b {
  font-size: 17px;
}
.phone .sc-body h4 {
  font-size: 14px;
}
.phone .spots {
  gap: 2px;
}
.phone .spots i {
  width: 5px;
  height: 5px;
}
.phone .sc-meta {
  gap: 6px;
  font-size: 11px;
}
.phone .btn-sm {
  --bh: 30px;
  font-size: 12px;
  padding: 0 11px;
}
.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-2);
  font-size: 13px;
  font-weight: 560;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  animation: floaty 6s var(--ease) infinite alternate;
}
.float-chip .fi {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
}
@keyframes floaty {
  to {
    transform: translateY(-10px);
  }
}
@media (max-width: 960px) {
  .float-chip {
    display: none;
  }
}
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--text-3);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 48px;
}
.marquee span::after {
  content: '✦';
  color: var(--accent);
  font-size: 16px;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.feat .bz-in {
  padding: 28px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.feat .fi {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  margin-bottom: auto;
}
.feat .fi .i {
  width: 26px;
  height: 26px;
}
.feat h3 {
  font-size: 24px;
  font-stretch: 120%;
  margin-top: 26px;
}
.feat p {
  color: var(--text-2);
  margin-top: 10px;
  font-size: 15px;
  max-width: 44ch;
}
.feat.big .bz-in {
  min-height: 340px;
  background: radial-gradient(80% 90% at 100% 100%, rgba(var(--accent-rgb), 0.2), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--surface));
}
.feat.big h3 {
  font-size: clamp(28px, 3.4vw, 40px);
}
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 860px) {
  .duo {
    grid-template-columns: 1fr;
  }
}
.duo ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}
.duo li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-2);
  font-size: 15px;
}
.duo li .i {
  color: var(--accent);
  margin-top: 2px;
}
.faq details {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .i {
  transition: transform 0.4s var(--ease);
  color: var(--text-3);
}
.faq details[open] summary .i {
  transform: rotate(45deg);
}
.faq p {
  color: var(--text-2);
  margin-top: 12px;
  max-width: 70ch;
}
.cta-final .bz-in {
  padding: clamp(36px, 6vw, 72px);
  text-align: center;
  background: radial-gradient(70% 90% at 50% 120%, rgba(var(--accent-rgb), 0.35), transparent 70%), linear-gradient(180deg, var(--surface-2), var(--surface));
}
.cta-final h2 {
  font-size: clamp(36px, 6vw, 76px);
  max-width: 14ch;
  margin: 18px auto 0;
  font-stretch: 125%;
}

/* =========================================================
   CENTRO DE AYUDA (panel)
   ========================================================= */
.side-nav a .count.is-new {
  font-size: 10.5px;
  letter-spacing: 0.02em;
  padding: 0 8px;
}
.help-btn .i {
  width: 20px;
  height: 20px;
}
/* enlace pequeño a la ayuda en la cabecera de una tarjeta */
.help-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: 0;
  color: var(--text-3);
  vertical-align: middle;
  transition: color 0.2s;
}
.help-link:hover {
  color: var(--accent-text);
}
.help-link .i {
  width: 16px;
  height: 16px;
}
.help-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 760px;
  margin: 0 6px 26px;
  padding: 7px 7px 7px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: 0 0 0 5px var(--shell), var(--shadow);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.help-search:focus-within {
  border-color: rgba(var(--accent-rgb), 0.6);
  box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.14), var(--shadow);
}
.help-search > .i {
  color: var(--text-3);
  width: 20px;
  height: 20px;
}
.help-search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15.5px;
}
.help-search input::-webkit-search-cancel-button {
  display: none;
}
.help-layout,
.help-doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}
.help-aside {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 70px;
}
@media (max-width: 1100px) {
  .help-layout,
  .help-doc {
    grid-template-columns: 1fr;
  }
  .help-aside {
    position: static;
  }
  .help-doc .help-toc {
    display: none;
  }
}
.help-popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 6px 16px;
}
.help-popular > span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-3);
  margin-right: 4px;
}
.help-popular .chip {
  height: 30px;
  padding: 0 13px;
  font-size: 13px;
  transition: color 0.3s, border-color 0.3s;
}
.help-popular .chip:hover {
  color: var(--text);
  border-color: var(--line-2);
}
/* tarjetas de temas en dos columnas tipo mosaico (cada una con su altura) */
.help-sections {
  columns: 2 300px;
  column-gap: 14px;
}
.help-sec {
  display: inline-block;
  width: calc(100% - 12px);
  break-inside: avoid;
  margin-bottom: 14px;
  padding: 18px 8px 8px;
  scroll-margin-top: 80px;
}
.hs-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 0 12px 10px;
}
.hs-ico {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-text);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
}
.hs-ico .i {
  width: 22px;
  height: 22px;
}
.hs-head h2 {
  font-size: 18px;
  margin-top: 2px;
}
.hs-head p {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 5px;
  line-height: 1.45;
}
.help-sec ul,
.help-news ul,
.help-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.help-sec li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  transition: background-color 0.3s var(--ease);
}
.help-sec li a:hover {
  background: var(--shell);
}
.help-sec li a > span {
  flex: 1;
  min-width: 0;
}
.help-sec li b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
}
.help-sec li small {
  display: block;
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 2px;
  line-height: 1.4;
}
.help-sec li .i {
  color: var(--text-3);
  transition: transform 0.4s var(--ease);
}
.help-sec li a:hover .i {
  transform: translateX(3px);
}
.help-news .card-head h2,
.help-contact h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.help-news .card-head .i {
  color: var(--accent-text);
}
.help-news ul {
  padding: 8px 8px 10px;
}
.help-news li a {
  display: block;
  padding: 9px 12px;
  border-radius: 12px;
}
.help-news li a:hover {
  background: var(--shell);
}
.help-news time {
  display: block;
  font-size: 11.5px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.help-news b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-top: 3px;
  line-height: 1.35;
}
.help-contact h2 {
  font-size: 17px;
  margin: 14px 0 6px;
}
.help-contact p {
  font-size: 13.5px;
  line-height: 1.5;
}
.help-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 6px 10px;
}
.help-results-head h2 {
  font-size: 18px;
}
.help-results {
  display: grid;
  gap: 2px;
}
.help-hit {
  display: block;
  padding: 16px 20px;
  transition: border-color 0.3s var(--ease);
}
.help-hit:hover {
  border-color: var(--line-2);
}
.help-hit small {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
}
.help-hit b {
  display: block;
  font-size: 15.5px;
  font-weight: 640;
  margin-top: 4px;
}
.help-hit .sep {
  color: var(--text-3);
  margin: 0 6px;
}
.help-hit p {
  font-size: 13.5px;
  color: var(--text-2);
  margin-top: 6px;
  line-height: 1.5;
}
.help-hit mark,
.prose mark {
  background: rgba(var(--accent-rgb), 0.28);
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}
.help-article {
  padding: clamp(22px, 4vw, 44px);
  min-width: 0;
}
.help-article > h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-stretch: 118%;
  letter-spacing: -0.03em;
  margin-top: 14px;
}
.help-article > .lead {
  font-size: 17px;
  color: var(--text-2);
  margin-top: 12px;
  max-width: 62ch;
  line-height: 1.5;
}
.help-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 18px 0 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-3);
}
.help-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.help-toc {
  padding: 18px 10px 12px;
}
.help-toc > b {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-3);
  padding: 0 10px 8px;
}
.help-toc a {
  display: block;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.35;
}
.help-toc a:hover {
  background: var(--shell);
  color: var(--text);
}
.help-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.help-pager a {
  display: block;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.help-pager a:hover {
  border-color: var(--line-2);
  background: var(--shell);
}
.help-pager .next {
  text-align: right;
  grid-column: 2;
}
.help-pager small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
}
.help-pager b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  margin-top: 4px;
}
@media (max-width: 640px) {
  .help-pager {
    grid-template-columns: 1fr;
  }
  .help-pager .next {
    grid-column: 1;
  }
}

/* texto de los artículos */
.prose {
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--text);
  max-width: 72ch;
}
.prose > * + * {
  margin-top: 14px;
}
.prose h2 {
  font-size: 23px;
  font-stretch: 112%;
  margin-top: 40px;
  scroll-margin-top: 80px;
  line-height: 1.2;
}
.prose h3 {
  font-size: 17.5px;
  font-stretch: 108%;
  margin-top: 28px;
  scroll-margin-top: 80px;
  line-height: 1.25;
}
.prose h2 + *,
.prose h3 + * {
  margin-top: 10px;
}
.prose > h2:first-child {
  margin-top: 26px;
}
.h-anchor {
  margin-left: 8px;
  color: var(--text-3);
  opacity: 0;
  font-weight: 400;
  transition: opacity 0.2s;
}
.prose h2:hover .h-anchor,
.prose h3:hover .h-anchor,
.h-anchor:focus-visible {
  opacity: 1;
}
.prose p,
.prose li {
  color: var(--text-2);
}
.prose strong {
  color: var(--text);
  font-weight: 640;
}
.prose ul,
.prose ol {
  padding-left: 22px;
  margin-bottom: 0;
}
.prose li + li {
  margin-top: 6px;
}
.prose li::marker {
  color: var(--text-3);
}
.prose ol li::marker {
  font-family: var(--font-mono);
  font-size: 0.9em;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--shell);
  border: 1px solid var(--line);
  word-break: break-word;
}
/* nombres de botones y menús tal como aparecen en pantalla */
.prose .ui {
  display: inline-block;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 0.9em;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 1px 0 var(--line-2);
  white-space: nowrap;
}
.prose .table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.prose th {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 600;
  background: var(--shell);
}
.prose td {
  color: var(--text-2);
}
.prose td:first-child {
  color: var(--text);
  font-weight: 560;
  min-width: 150px;
}
.prose tr:last-child td {
  border-bottom: 0;
}
@media (max-width: 640px) {
  .prose .table-wrap {
    border: 0;
    border-radius: 0;
    overflow: visible;
  }
  .prose table,
  .prose tbody,
  .prose tr,
  .prose td {
    display: block;
    width: 100%;
  }
  .prose thead {
    display: none;
  }
  .prose tr {
    padding: 6px 0;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--shell);
  }
  .prose tr + tr {
    margin-top: 8px;
  }
  .prose td {
    border: 0;
    padding: 5px 14px;
  }
  .prose td:first-child {
    min-width: 0;
    padding-top: 8px;
  }
  .prose td + td::before {
    content: attr(data-label);
    display: block;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-3);
    margin-bottom: 1px;
  }
  .prose td[data-label='']::before {
    display: none;
  }
}
.callout {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--shell);
}
.callout .c-ico {
  flex: none;
  margin-top: 2px;
  color: var(--info);
}
.callout .c-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
  color: var(--text);
}
.callout p,
.callout li {
  font-size: 14.5px;
}
.callout div > * + * {
  margin-top: 8px;
}
.callout ul,
.callout ol {
  padding-left: 18px;
}
.c-consejo {
  border-color: rgba(var(--accent-rgb), 0.3);
  background: rgba(var(--accent-rgb), 0.07);
}
.c-consejo .c-ico {
  color: var(--accent-text);
}
.c-importante {
  border-color: color-mix(in oklab, var(--warn) 40%, transparent);
  background: color-mix(in oklab, var(--warn) 8%, transparent);
}
.c-importante .c-ico {
  color: var(--warn);
}
.c-ley .c-ico {
  color: var(--text-2);
}
.c-ejemplo .c-ico {
  color: var(--ok);
}
.help-faq {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  scroll-margin-top: 80px;
  transition: border-color 0.3s var(--ease);
}
.prose .help-faq + .help-faq {
  margin-top: 8px;
}
.help-faq[open] {
  border-color: var(--line-2);
}
.help-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-weight: 620;
  color: var(--text);
  line-height: 1.4;
}
.help-faq summary::-webkit-details-marker {
  display: none;
}
.help-faq summary .i {
  color: var(--text-3);
  transition: transform 0.4s var(--ease);
}
.help-faq[open] summary .i {
  transform: rotate(45deg);
}
.faq-body {
  padding: 0 16px 16px;
}
.faq-body > * + * {
  margin-top: 10px;
}
.prose .news-h {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.prose > .news-h:first-child {
  border-top: 0;
  padding-top: 0;
}
.news-h time {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-text);
}
.news-h .h-anchor {
  display: none;
}

/* =========================================================
   impresión (recibos, cartel)
   ========================================================= */
@media print {
  .no-print {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
