/* ==========================================================================
   CAPELLAN FITNESS GYM — HOJA DE ESTILOS UNIFICADA
   ========================================================================== */

/* ==========================================================================
   1. SISTEMA DE DISEÑO, VARIABLES Y PANEL DE APLICACIÓN (APP SHELL)
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root, [data-theme="dark"] {
  --bg-body: #08090C;
  --bg-card: #121319;
  --bg-card-elevated: #181A22;
  --bg-card-hover: #1E212B;
  --bg-input: #0B0C10;
  
  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-glow: rgba(239, 68, 68, 0.35);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  /* Paleta Oficial Capellan Fitness: Rojo, Amarillo/Oro, Negro, Blanco */
  --red: #EF4444;
  --red-dark: #B91C1C;
  --red-light: #F87171;
  --red-glow: rgba(239, 68, 68, 0.32);
  --red-dim: rgba(239, 68, 68, 0.14);

  --yellow: #F59E0B;
  --yellow-light: #FBBF24;
  --gold: #F59E0B;
  --gold-glow: rgba(245, 158, 11, 0.32);
  --gold-dim: rgba(245, 158, 11, 0.14);

  /* Aliases para compatibilidad */
  --green: #EF4444;
  --green-dark: #DC2626;
  --green-light: #F87171;
  --green-glow: rgba(239, 68, 68, 0.32);
  --green-dim: rgba(239, 68, 68, 0.14);

  --blue: #38BDF8;
  --blue-dim: rgba(56, 189, 248, 0.12);
  --purple: #A855F7;
  --purple-dim: rgba(168, 85, 247, 0.12);
  --danger: #EF4444;
  --danger-dim: rgba(239, 68, 68, 0.14);
  --warning: #F59E0B;
  --warning-dim: rgba(245, 158, 11, 0.14);

  --white: #121319;
  --black: #F8FAFC;
  --gray-900: #F8FAFC;
  --gray-800: #E2E8F0;
  --gray-700: #CBD5E1;
  --gray-600: #94A3B8;
  --gray-500: #64748B;
  --gray-400: #475569;
  --gray-300: #334155;
  --gray-200: rgba(255, 255, 255, 0.09);
  --gray-100: #161822;
  --gray-50:  #0B0C10;

  --sidebar-w: 260px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 4px 20px rgba(0,0,0,.5);
  --shadow-md: 0 8px 32px rgba(0,0,0,.65);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.8);
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition: .18s cubic-bezier(0.16, 1, 0.3, 1);
  --lh: 1.6;
  --lh-tight: 1.25;
}

[data-theme="light"] {
  --bg-body: #F4F6F9;
  --bg-card: #FFFFFF;
  --bg-card-elevated: #F8FAFC;
  --bg-card-hover: #F1F4F8;
  --bg-input: #FFFFFF;
  
  --border: #E2E8F0;
  --border-subtle: #F1F5F9;
  --border-strong: #CBD5E1;
  --border-glow: rgba(220, 38, 38, 0.25);

  --text-primary: #0A0A0C;
  --text-secondary: #475569;
  --text-muted: #64748B;

  --red: #DC2626;
  --red-dark: #991B1B;
  --red-light: #EF4444;
  --red-glow: rgba(220, 38, 38, 0.2);
  --red-dim: rgba(220, 38, 38, 0.08);

  --yellow: #D97706;
  --yellow-light: #F59E0B;
  --gold: #D97706;
  --gold-glow: rgba(217, 119, 6, 0.2);
  --gold-dim: rgba(217, 119, 6, 0.08);

  --green: #DC2626;
  --green-dark: #991B1B;
  --green-light: #EF4444;
  --green-glow: rgba(220, 38, 38, 0.2);
  --green-dim: rgba(220, 38, 38, 0.08);

  --blue: #0284C7;
  --blue-dim: rgba(2, 132, 199, 0.1);
  --purple: #7C3AED;
  --purple-dim: rgba(124, 58, 237, 0.1);
  --danger: #DC2626;
  --danger-dim: rgba(220, 38, 38, 0.08);
  --warning: #D97706;
  --warning-dim: rgba(217, 119, 6, 0.1);

  --white: #FFFFFF;
  --black: #0A0A0C;
  --gray-900: #0A0A0C;
  --gray-800: #1E293B;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748B;
  --gray-400: #94A3B8;
  --gray-300: #CBD5E1;
  --gray-200: #E2E8F0;
  --gray-100: #F1F5F9;
  --gray-50:  #F8FAFC;

  --shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 28px -4px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 16px 40px -6px rgba(15, 23, 42, 0.12);
}

body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: var(--lh);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}

/* Custom Scrollbars */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148,163,184,.3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148,163,184,.5); }

.hidden { display: none !important; }
.flex { display: flex; } .flex-col { flex-direction: column; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.w-full { width: 100%; } .mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.text-sm { font-size: .875rem; line-height: var(--lh); }
.text-xs { font-size: .75rem; line-height: var(--lh-tight); }
.fw-600 { font-weight: 600; }
.text-gray { color: var(--text-secondary); }
.text-green { color: var(--red-light); }
.text-red { color: var(--red-light); }
.text-gold { color: #F59E0B; }
.text-danger { color: var(--danger); }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 99px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase; line-height: var(--lh-tight);
}
.badge-green   { background: var(--red-dim); color: var(--red-light); border: 1px solid rgba(239,68,68,.3); }
.badge-gold    { background: var(--gold-dim); color: #F59E0B; border: 1px solid rgba(245,158,11,.35); }
.badge-gray    { background: rgba(255,255,255,.07); color: var(--text-secondary); border: 1px solid var(--border-strong); }
.badge-danger  { background: var(--danger-dim); color: #fb7185; border: 1px solid rgba(251,113,133,.25); }
.badge-warning { background: var(--warning-dim); color: #fbbf24; border: 1px solid rgba(251,191,36,.3); }
.badge-inactive{ background: rgba(255,255,255,.05); color: var(--text-muted); border: 1px solid var(--border-subtle); }
.badge-blue    { background: var(--blue-dim); color: #38bdf8; border: 1px solid rgba(56,189,248,.25); }
.badge-purple  { background: var(--purple-dim); color: #c084fc; border: 1px solid rgba(192,132,252,.25); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .875rem; font-weight: 600;
  cursor: pointer; border: none; transition: all var(--transition);
  text-decoration: none; line-height: var(--lh-tight); letter-spacing: -.01em;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 50%, #B91C1C 100%);
  color: #fff;
  box-shadow: 0 4px 18px var(--red-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #F87171 0%, #EF4444 50%, #DC2626 100%);
  box-shadow: 0 6px 24px rgba(239,68,68,.45);
}
.btn-gold {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  color: #0A0A0C;
  font-weight: 700;
  box-shadow: 0 4px 16px var(--gold-glow);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #FDE047 0%, #FBBF24 100%);
  box-shadow: 0 6px 22px rgba(245,158,11,.45);
}
.btn-outline {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red-light);
  background: var(--red-dim);
}
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #e11d48; box-shadow: 0 4px 18px rgba(244,63,94,.35); }
.btn-ghost {
  background: var(--bg-card-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-card-hover);
  color: #fff;
  border-color: var(--border-strong);
}
.btn-sm { padding: 7px 14px; font-size: .8rem; }
.btn-xs { padding: 5px 10px; font-size: .75rem; }
.btn-icon {
  padding: 8px; border-radius: var(--radius-xs);
  background: rgba(255,255,255,.04); color: var(--text-secondary); border: 1px solid var(--border);
  cursor: pointer; transition: all var(--transition);
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-icon:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.btn-icon.danger:hover { background: var(--danger-dim); color: #fb7185; border-color: rgba(244,63,94,.3); }

/* Google Button */
.btn-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 12px 18px; border-radius: var(--radius-sm);
  background: #151D2C; color: #fff; border: 1px solid var(--border-strong);
  font-family: var(--font-body); font-size: .92rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition); box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.btn-google:hover {
  background: #1C263A; border-color: rgba(255,255,255,.24); transform: translateY(-1px);
}
.btn-google:active { transform: scale(.98); }
.google-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* Cards & Surfaces */
.card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow); padding: 24px;
}

/* Forms */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: .78rem; font-weight: 700; color: var(--text-secondary); letter-spacing: .04em; text-transform: uppercase; }
.form-input, .form-select {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .9rem; color: var(--text-primary);
  background: var(--bg-input); outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  line-height: var(--lh);
}
.form-input:focus, .form-select:focus {
  border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow);
}
.form-input::placeholder { color: var(--text-muted); }
.form-error { font-size: .8rem; color: #fb7185; margin-top: 4px; }
textarea.form-input { resize: vertical; min-height: 80px; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted); padding: 12px 16px;
  border-bottom: 1px solid var(--border); white-space: nowrap; background: rgba(255,255,255,.015);
}
td {
  padding: 14px 16px; font-size: .875rem; border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary); vertical-align: middle; line-height: var(--lh);
}
td strong { color: var(--text-primary); }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--transition); }
tbody tr:hover td { background: rgba(255,255,255,.025); }

/* Modals */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(4, 7, 13, 0.78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 500px;
  max-height: 92vh; overflow-y: auto; animation: modalIn .22s cubic-bezier(0.16,1,0.3,1);
}
.modal-lg { max-width: 760px; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(22px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 26px 14px; border-bottom: 1px solid var(--border-subtle);
}
.modal-title { font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; color: var(--text-primary); letter-spacing: -.02em; }
.modal-body { padding: 24px 26px 30px; }

/* Toasts */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 10px; z-index: 9999;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; background: var(--bg-card-elevated); color: var(--text-primary);
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg); font-size: .875rem; font-weight: 600; min-width: 280px;
  animation: toastIn .25s cubic-bezier(0.16,1,0.3,1);
}
.toast.success { border-left: 4px solid var(--red); }
.toast.error   { border-left: 4px solid var(--danger); }
.toast.info    { border-left: 4px solid var(--gold); }
@keyframes toastIn { from { opacity:0; transform:translateX(24px); } to { opacity:1; transform:translateX(0); } }

/* Loader */
#app-loader {
  position: fixed; inset: 0; background: var(--bg-body);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; z-index: 9000;
}
.loader-logo { display: flex; flex-direction: column; align-items: center; gap: 14px; font-family: var(--font-head); font-size: 2.2rem; font-weight: 900; color: var(--text-primary); letter-spacing: -.03em; }
.loader-logo span { color: var(--red); }
.loader-logo-img { width: 96px; height: 96px; object-fit: contain; border-radius: 20px; filter: drop-shadow(0 0 20px rgba(239,68,68,.45)); }
.spinner { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.08); border-top-color: var(--red); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Public landing styles live in CSS/landing.css. */

/* ── APP SHELL & SIDEBAR ── */
#app-shell { display: flex; min-height: 100vh; }
#sidebar {
  width: var(--sidebar-w); background: #08090C; color: var(--text-primary);
  border-right: 1px solid var(--border); display: flex; flex-direction: column; position: fixed;
  left: 0; top: 0; bottom: 0; z-index: 100; transition: transform var(--transition), background var(--transition);
}
.sidebar-brand { padding: 24px 20px 18px; border-bottom: 1px solid var(--border-subtle); }
.sidebar-logo {
  min-width: 0; font-family: var(--font-head); font-size: 1rem; font-weight: 900;
  letter-spacing: -.025em; display: flex; align-items: center; gap: 10px; color: var(--text-primary); line-height: 1.05;
}
.sidebar-logo-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.sidebar-logo-copy strong { color: var(--text-primary); font: inherit; }
.sidebar-logo-copy span { color: var(--red); }
.sidebar-logo-icon {
  width: 40px; height: 40px; flex: 0 0 40px; box-sizing: border-box; line-height: 0; background: rgba(239,68,68,.14);
  border: 1.5px solid rgba(245,158,11,.45); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; padding: 4px; overflow: hidden;
}
.sidebar-logo-icon img { display: block; max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; border-radius: 7px; }
.sidebar-role-badge {
  margin-top: 10px; display: inline-block;
  background: var(--gold-dim); color: #F59E0B; border: 1px solid rgba(245,158,11,.3);
  padding: 3px 10px; border-radius: 99px; font-size: .68rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.sidebar-gym-name { font-size: .78rem; color: var(--text-muted); margin-top: 5px; font-weight: 500; }
.sidebar-nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.nav-section-label {
  font-size: .65rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted); padding: 14px 10px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 13px; border-radius: var(--radius-sm);
  color: var(--text-secondary); text-decoration: none; font-size: .875rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition); border: 1px solid transparent; background: none; width: 100%; text-align: left;
}
.nav-item:hover { background: rgba(255,255,255,.05); color: var(--text-primary); border-color: rgba(255,255,255,.05); }
.nav-item.active {
  background: var(--red-dim); color: var(--red-light); border-color: rgba(239,68,68,.3);
  box-shadow: 0 2px 10px var(--red-glow);
}
.nav-item .nav-icon { width: 18px; height: 18px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.nav-item .nav-icon svg { width: 16px; height: 16px; }
.sidebar-footer { padding: 14px 12px; border-top: 1px solid var(--border-subtle); background: #060709; }
.sidebar-user { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: var(--radius-sm); background: rgba(255,255,255,.03); border: 1px solid var(--border-subtle); }
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem; color: #fff; flex-shrink: 0;
  box-shadow: 0 2px 8px var(--red-glow); border: 1px solid rgba(245,158,11,.3);
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: .84rem; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-email { font-size: .72rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-logout {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--danger-dim); border: 1px solid rgba(239,68,68,.25); color: #fb7185;
  padding: 9px 12px; border-radius: var(--radius-sm); font-size: .8rem;
  cursor: pointer; transition: all var(--transition); font-family: var(--font-body);
  width: 100%; margin-top: 10px; font-weight: 600;
}
.btn-logout:hover { background: rgba(239,68,68,.2); border-color: rgba(239,68,68,.4); }

/* ── MAIN CONTENT ── */
#main-content { margin-left: var(--sidebar-w); flex: 1; padding: 36px 40px; min-height: 100vh; }
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 30px; gap: 16px; flex-wrap: wrap;
}
.page-title { font-family: var(--font-head); font-size: 1.85rem; font-weight: 900; letter-spacing: -.03em; color: var(--text-primary); line-height: var(--lh-tight); }
.page-subtitle { font-size: .88rem; color: var(--text-secondary); margin-top: 4px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 22px;
  border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
  transition: transform var(--transition), border-color var(--transition);
}
.stat-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.stat-header { display: flex; align-items: center; justify-content: space-between; }
.stat-label { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.stat-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.stat-icon svg { width: 18px; height: 18px; }
.stat-icon.green  { background: var(--red-dim); color: var(--red-light); border: 1px solid rgba(239,68,68,.25); }
.stat-icon.black  { background: rgba(255,255,255,.06); color: var(--text-primary); border: 1px solid var(--border); }
.stat-icon.yellow { background: var(--gold-dim); color: #fbbf24; border: 1px solid rgba(251,191,36,.25); }
.stat-icon.red    { background: var(--danger-dim); color: #fb7185; border: 1px solid rgba(239,68,68,.25); }
.stat-icon.blue   { background: var(--blue-dim); color: #38bdf8; border: 1px solid rgba(56,189,248,.2); }
.stat-icon.purple { background: var(--purple-dim); color: #c084fc; border: 1px solid rgba(192,132,252,.2); }
.stat-value { font-family: var(--font-head); font-size: 2.1rem; font-weight: 900; letter-spacing: -.03em; color: var(--text-primary); line-height: 1; }
.stat-delta { font-size: .78rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }

.view { display: none; }
.view.active { display: block; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Empty States */
.empty-state { text-align: center; padding: 64px 20px; color: var(--text-muted); }
.empty-icon {
  width: 64px; height: 64px; background: var(--bg-card-elevated); border: 1px solid var(--border);
  border-radius: 18px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; color: var(--text-muted);
}
.empty-icon svg { width: 30px; height: 30px; }
.empty-state h3 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; color: var(--text-primary); margin-bottom: 6px; }
.empty-state p { font-size: .875rem; color: var(--text-secondary); }

/* Charts */
.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.chart-card { background: var(--bg-card); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.chart-title { font-family: var(--font-head); font-weight: 800; font-size: 1rem; margin-bottom: 16px; color: var(--text-primary); letter-spacing: -.01em; }
.chart-wrap { position: relative; height: 210px; }

/* Toggle */
.toggle { position: relative; display: inline-block; width: 40px; height: 22px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: rgba(255,255,255,.14); transition: .25s; border-radius: 22px; border: 1px solid var(--border); }
.toggle-slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 2px; bottom: 2px; background: #fff; transition: .25s; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
input:checked + .toggle-slider { background: var(--red); border-color: var(--red); }
input:checked + .toggle-slider:before { transform: translateX(18px); }

/* Search Bar */
.search-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.search-input-wrap { position: relative; flex: 1; min-width: 220px; }
.search-input-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-muted); pointer-events: none; }
.search-input {
  width: 100%; padding: 10px 14px 10px 40px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .875rem; outline: none;
  background: var(--bg-input); color: var(--text-primary); transition: all var(--transition);
}
.search-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow); }
.search-input::placeholder { color: var(--text-muted); }

/* ── TRAINER CARDS ── */
.trainers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.trainer-card {
  background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; cursor: pointer; transition: all var(--transition);
  border: 1px solid var(--border);
}
.trainer-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--red); }
.trainer-card.expanded { border-color: var(--red); background: var(--bg-card-elevated); }
.trainer-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.trainer-avatar {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 900; font-size: 1.15rem; color: #fff; flex-shrink: 0;
  box-shadow: 0 4px 14px var(--red-glow); border: 1.5px solid #F59E0B;
}
.trainer-info { flex: 1; min-width: 0; }
.trainer-name { font-family: var(--font-head); font-size: 1.05rem; font-weight: 800; color: var(--text-primary); }
.trainer-email { font-size: .78rem; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trainer-card-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.trainer-meta-item {
  display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--text-secondary);
  background: rgba(255,255,255,.04); border: 1px solid var(--border-subtle); padding: 4px 10px; border-radius: 99px;
}
.trainer-meta-item svg { width: 12px; height: 12px; color: var(--gold); }
.trainer-expand-btn {
  display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600;
  color: var(--red-light); margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border-subtle); cursor: pointer;
}
.trainer-expand-btn svg { width: 14px; height: 14px; transition: transform .2s; }
.trainer-expand-btn.open svg:last-child { transform: rotate(180deg); }
.trainer-clients-panel { margin-top: 14px; overflow: hidden; max-height: 0; transition: max-height .35s ease; }
.trainer-clients-panel.open { max-height: 600px; }
.trainer-client-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: var(--radius-sm); transition: background var(--transition); gap: 8px;
}
.trainer-client-row:hover { background: rgba(255,255,255,.04); }
.trainer-client-name { font-size: .85rem; font-weight: 600; color: var(--text-primary); }
.trainer-client-plan { font-size: .75rem; color: var(--text-muted); }

/* ── PLANS ── */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.plan-card {
  background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px;
  display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--border);
  transition: all var(--transition);
}
.plan-card:hover { border-color: var(--red); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.plan-card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.plan-name { font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; color: var(--text-primary); }
.plan-price { font-family: var(--font-head); font-size: 2.2rem; font-weight: 900; color: var(--red-light); line-height: 1; }
.plan-price sup { font-size: 1.1rem; vertical-align: super; }
.plan-meta { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--text-secondary); }
.plan-meta svg { width: 14px; height: 14px; color: var(--gold); }
.plan-desc { font-size: .82rem; color: var(--text-muted); line-height: var(--lh); }

/* ── SCHEDULE CARDS ── */
.schedule-header-section { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.schedule-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.schedule-date-filter { display: flex; align-items: center; gap: 8px; background: var(--bg-card); border: 1px solid var(--border); padding: 7px 12px; border-radius: var(--radius-sm); }
.schedule-date-filter input[type="date"] { background: transparent; border: none; color: var(--text-primary); font-family: var(--font-body); font-size: .85rem; outline: none; }
.btn-clear-filter { background: none; border: none; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; }
.btn-clear-filter:hover { color: var(--text-primary); }
.schedule-summary-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.sch-stat-pill { display: inline-flex; align-items: center; gap: 7px; background: var(--bg-card); border: 1px solid var(--border); padding: 5px 12px; border-radius: 99px; font-size: .78rem; font-weight: 600; color: var(--text-secondary); }
.sch-stat-pill-dot { width: 7px; height: 7px; border-radius: 50%; }
.sch-stat-pill-dot.green { background: #EF4444; box-shadow: 0 0 8px rgba(239,68,68,.6); }
.sch-stat-pill-dot.orange { background: #fbbf24; box-shadow: 0 0 8px rgba(251,191,36,.6); }
.sch-stat-pill-dot.gray { background: var(--text-muted); }

.schedule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.schedule-card {
  background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  position: relative; transition: all var(--transition);
}
.schedule-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.schedule-card-accent { height: 3px; background: linear-gradient(90deg, #EF4444 0%, #F59E0B 100%); }
.schedule-card.is-today .schedule-card-accent { background: #EF4444; }
.schedule-card.is-past { opacity: .65; }
.schedule-card-body { padding: 18px 20px 14px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.schedule-card-top { display: flex; align-items: center; justify-content: space-between; }
.schedule-date-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--text-secondary); text-transform: capitalize; }
.schedule-date-chip svg { width: 14px; height: 14px; color: var(--gold); }
.schedule-status-badge { font-size: .68rem; font-weight: 800; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; }
.schedule-status-badge.today { background: var(--red-dim); color: var(--red-light); border: 1px solid rgba(239,68,68,.3); }
.schedule-status-badge.upcoming { background: var(--gold-dim); color: #fbbf24; border: 1px solid rgba(245,158,11,.3); }
.schedule-status-badge.past { background: rgba(255,255,255,.06); color: var(--text-muted); }

.schedule-time-block { margin: 4px 0; }
.schedule-time-main { font-family: var(--font-head); font-size: 1.65rem; font-weight: 900; color: var(--text-primary); letter-spacing: -.03em; }
.schedule-time-sep { color: var(--text-muted); margin: 0 4px; font-weight: 400; }
.schedule-time-end { color: var(--text-secondary); font-size: 1.35rem; }
.schedule-duration { font-size: .75rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.schedule-duration svg { width: 12px; height: 12px; }

.schedule-note { background: rgba(255,255,255,.03); border: 1px solid var(--border-subtle); border-radius: var(--radius-xs); padding: 8px 10px; font-size: .78rem; color: var(--text-secondary); display: flex; align-items: flex-start; gap: 6px; }
.schedule-note svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--text-muted); margin-top: 2px; }

.schedule-card-footer {
  padding: 12px 20px 14px; border-top: 1px solid var(--border-subtle); background: rgba(255,255,255,.015);
  display: flex; align-items: center; gap: 10px;
}
.schedule-person-avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; color: #fff; flex-shrink: 0; }
.trainer-avatar-style { background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%); border: 1px solid #F59E0B; }
.client-avatar-style { background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%); color: #0A0A0C; }
.schedule-person-info { flex: 1; min-width: 0; }
.schedule-person-role { font-size: .65rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); letter-spacing: .05em; }
.schedule-person-name { font-size: .85rem; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-delete-schedule { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 6px; border-radius: 6px; transition: all var(--transition); }
.btn-delete-schedule:hover { background: var(--danger-dim); color: #fb7185; }
.btn-delete-schedule svg { width: 15px; height: 15px; }

/* ── SCHEDULE EMPTY STATE & MODAL ICONS ── */
.schedule-date-filter svg { width: 16px !important; height: 16px !important; min-width: 16px; max-width: 16px; flex-shrink: 0; color: var(--gold); }
.schedule-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 24px; background: var(--bg-card);
  border: 1px dashed var(--border-subtle); border-radius: var(--radius);
  max-width: 480px; margin: 30px auto;
}
.schedule-empty-icon {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--red-dim); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--red-light); flex-shrink: 0;
}
.schedule-empty-icon svg { width: 28px !important; height: 28px !important; max-width: 28px !important; max-height: 28px !important; flex-shrink: 0; }
.schedule-empty h3 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; color: var(--text-primary); margin-bottom: 6px; }
.schedule-empty p { font-size: .85rem; color: var(--text-muted); margin-bottom: 18px; max-width: 320px; line-height: 1.5; }

.modal-schedule-header { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--border-subtle); }
.modal-schedule-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--red-dim); display: flex; align-items: center; justify-content: center; color: var(--red-light); flex-shrink: 0; }
.modal-schedule-icon svg { width: 20px !important; height: 20px !important; max-width: 20px !important; max-height: 20px !important; }
.modal-schedule-close { margin-left: auto; background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.modal-schedule-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }

/* ── CLIENT SUPPLEMENTS STORE ── */
.client-supplements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.supplement-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.supplement-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.supplement-img-wrap {
  width: 100%;
  height: 180px;
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}
.supplement-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.supplement-card:hover .supplement-img-wrap img {
  transform: scale(1.04);
}
.supplement-placeholder-icon {
  font-size: 3rem;
  opacity: 0.7;
}
.supplement-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.supplement-cat-pill {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #F59E0B;
  background: var(--gold-dim);
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid rgba(245,158,11,.25);
}
.supplement-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}
.supplement-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.supplement-price {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--red-light);
}

/* ── ONBOARDING & DISCIPLINE SELECTOR CARDS ── */
.discipline-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
  margin-top: 8px;
  max-height: 420px;
  overflow-y: auto;
  padding: 4px 2px;
}
.select-card {
  background: var(--bg-card-elevated);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: left;
}
.select-card:hover {
  border-color: rgba(239,68,68,.45);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.select-card.selected {
  border-color: var(--red);
  background: rgba(239,68,68,.08);
  box-shadow: 0 0 0 2px var(--red-glow), 0 8px 24px rgba(239,68,68,.25);
}
.select-card-img-wrap {
  width: 100%;
  height: 94px;
  position: relative;
  overflow: hidden;
  background: #08090C;
}
.select-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
  filter: brightness(0.85);
}
.select-card:hover .select-card-img,
.select-card.selected .select-card-img {
  transform: scale(1.08);
  filter: brightness(1);
}
.select-card-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(8,9,12,.75);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
  font-size: .7rem;
  opacity: 0;
  transform: scale(0.6);
}
.select-card.selected .select-card-badge {
  background: var(--red);
  border-color: #fff;
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 10px rgba(239,68,68,.6);
}
.select-card-body {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.select-card-title {
  font-family: var(--font-head);
  font-size: .84rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}
.select-card.selected .select-card-title {
  color: var(--red-light);
}
.select-card-desc {
  font-size: .68rem;
  color: var(--text-muted);
}

/* ── THEME TOGGLE ── */
.theme-toggle-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border-strong);
  color: var(--text-primary); padding: 8px 14px; border-radius: 99px;
  font-size: .8rem; font-weight: 700; cursor: pointer;
  transition: all var(--transition);
}
.theme-toggle-btn:hover { border-color: var(--red); transform: translateY(-1px); box-shadow: var(--shadow); }

.sidebar-theme-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.04); border: 1px solid var(--border-subtle);
  color: var(--text-primary); font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); margin-bottom: 10px;
}
.sidebar-theme-toggle:hover { background: rgba(255,255,255,.08); border-color: var(--border-strong); }
.theme-icon-wrap {
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--gold-dim); color: #F59E0B;
  display: flex; align-items: center; justify-content: center;
}

/* ── SEARCHABLE SELECT (COMBOBOX) ── */
.ss-wrapper { position: relative; width: 100%; }
.ss-trigger {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .9rem; color: var(--text-primary);
  background: var(--bg-input); outline: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.ss-trigger:hover, .ss-trigger:focus, .ss-wrapper.open .ss-trigger {
  border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow);
}
.ss-trigger-label {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; text-align: left;
}
.ss-trigger-arrow {
  width: 14px; height: 14px; color: var(--text-muted); flex-shrink: 0;
  transition: transform var(--transition);
}
.ss-wrapper.open .ss-trigger-arrow { transform: rotate(180deg); color: var(--red); }

.ss-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 1500;
  background: var(--bg-card); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 8px; animation: modalIn .15s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column; gap: 6px;
}
.ss-search-wrap {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-xs); padding: 7px 10px;
}
.ss-search-icon { width: 14px; height: 14px; color: var(--text-muted); flex-shrink: 0; }
.ss-search-input {
  width: 100%; background: none; border: none; outline: none;
  font-family: var(--font-body); font-size: .84rem; color: var(--text-primary);
}
.ss-search-input::placeholder { color: var(--text-muted); }
.ss-options-list {
  max-height: 210px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px;
}
.ss-option {
  padding: 9px 12px; border-radius: var(--radius-xs);
  font-size: .86rem; color: var(--text-secondary); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  transition: all var(--transition); user-select: none;
}
.ss-option:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.ss-option.selected {
  background: var(--red-dim); color: var(--red-light); font-weight: 700;
}
.ss-no-results {
  padding: 12px; text-align: center; font-size: .8rem; color: var(--text-muted);
}

/* ── ULTRA-MODERN DASHBOARD ── */
.dash-hero {
  background: linear-gradient(135deg, rgba(239,68,68,.16) 0%, rgba(18,19,25,.95) 55%, var(--bg-card) 100%);
  border: 1px solid var(--border-glow); border-radius: var(--radius);
  padding: 28px 32px; margin-bottom: 24px; position: relative; overflow: hidden;
  box-shadow: var(--shadow); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}
.dash-hero::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  pointer-events: none;
}
.dash-hero-content { z-index: 1; max-width: 580px; }
.dash-live-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; color: var(--red-light);
  background: var(--red-dim); border: 1px solid rgba(239,68,68,.3);
  padding: 4px 12px; border-radius: 99px; margin-bottom: 10px;
}
.dash-live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 10px var(--red); animation: pulseDot 2s infinite;
}
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.8); } }
.dash-greeting {
  font-family: var(--font-head); font-size: 2rem; font-weight: 900;
  letter-spacing: -.03em; color: var(--text-primary); line-height: 1.15; margin-bottom: 6px;
}
.dash-subtitle { font-size: .95rem; color: var(--text-secondary); line-height: 1.5; }

.dash-actions-tray { display: flex; gap: 10px; flex-wrap: wrap; z-index: 1; }
.dash-action-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-card-elevated); border: 1px solid var(--border-strong);
  color: var(--text-primary); padding: 10px 18px; border-radius: var(--radius-sm);
  font-size: .84rem; font-weight: 700; cursor: pointer; transition: all var(--transition);
  font-family: var(--font-head); letter-spacing: .01em; box-shadow: var(--shadow);
}
.dash-action-btn:hover {
  background: var(--red); color: #fff; border-color: var(--red);
  transform: translateY(-2px); box-shadow: 0 6px 20px var(--red-glow);
}
.dash-action-btn svg { width: 15px; height: 15px; }

/* Modern KPI Cards */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi-card-modern {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform var(--transition), border-color var(--transition); cursor: pointer;
}
.kpi-card-modern:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.kpi-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.kpi-label { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.kpi-icon-wrap {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.kpi-icon-wrap.green { background: var(--red-dim); color: var(--red-light); border: 1px solid rgba(239,68,68,.25); }
.kpi-icon-wrap.blue { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(56,189,248,.25); }
.kpi-icon-wrap.red { background: var(--danger-dim); color: #fb7185; border: 1px solid rgba(244,63,94,.25); }
.kpi-icon-wrap.purple { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(168,85,247,.25); }
.kpi-value-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.kpi-value { font-family: var(--font-head); font-size: 2.2rem; font-weight: 900; letter-spacing: -.03em; color: var(--text-primary); line-height: 1; }
.kpi-progress-bar { width: 100%; height: 5px; background: rgba(148,163,184,.15); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.kpi-progress-fill { height: 100%; border-radius: 99px; transition: width .5s ease; }
.kpi-footer-note { font-size: .75rem; color: var(--text-muted); margin-top: 6px; display: flex; align-items: center; justify-content: space-between; }

/* Dashboard Split Activity */
.dash-activity-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 24px; }
@media (max-width: 1024px) { .dash-activity-grid { grid-template-columns: 1fr; } }
.activity-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.activity-card-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px;
}
.activity-card-title {
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 800; color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
}

/* ── TRAINER DETAIL PAGE ── */
.trainer-detail-hero {
  background: linear-gradient(135deg, rgba(239,68,68,.14) 0%, var(--bg-card) 60%);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 32px; margin-bottom: 24px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap; position: relative;
}
.trainer-photo-wrap {
  position: relative; width: 104px; height: 104px; border-radius: 50%;
  flex-shrink: 0; box-shadow: var(--shadow-md);
}
.trainer-photo-img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--red); background: var(--bg-card-elevated);
}
.trainer-photo-avatar {
  width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 2.2rem; font-weight: 900; color: #fff;
  border: 3px solid #F59E0B;
}
.trainer-photo-edit-btn {
  position: absolute; bottom: 0; right: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--red); color: #fff; border: 2px solid var(--bg-card);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: var(--shadow); transition: transform var(--transition);
}
.trainer-photo-edit-btn:hover { transform: scale(1.1); background: var(--red-light); }
.trainer-detail-info { flex: 1; min-width: 250px; }
.trainer-detail-name {
  font-family: var(--font-head); font-size: 1.85rem; font-weight: 900;
  color: var(--text-primary); letter-spacing: -.025em; margin-bottom: 6px;
}
.trainer-detail-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px;
  font-size: .86rem; color: var(--text-secondary);
}
.trainer-detail-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.trainer-detail-meta-item svg { width: 15px; height: 15px; color: var(--gold); }
.trainer-nav-tabs {
  display: flex; gap: 8px; border-bottom: 1px solid var(--border); margin-bottom: 20px;
}
.trainer-tab-btn {
  padding: 10px 18px; border: none; background: none; font-family: var(--font-head);
  font-size: .9rem; font-weight: 700; color: var(--text-muted); cursor: pointer;
  border-bottom: 2px solid transparent; transition: all var(--transition);
}
.trainer-tab-btn:hover { color: var(--text-primary); }
.trainer-tab-btn.active { color: var(--red-light); border-bottom-color: var(--red); }

/* ── CARNET DIGITAL QR (ATHLETE PASS) ── */
.pass-section-wrap { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.member-pass-card {
  width: 100%; max-width: 440px; border-radius: 20px;
  background: linear-gradient(135deg, #18080A 0%, #0E0F14 55%, #181206 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 16px 36px rgba(0,0,0,0.6), 0 0 35px rgba(239, 68, 68, 0.2);
  padding: 24px; position: relative; overflow: hidden; color: #fff;
  transition: transform var(--transition), box-shadow var(--transition);
}
.member-pass-card:hover { transform: translateY(-3px); box-shadow: 0 20px 42px rgba(0,0,0,0.65), 0 0 45px rgba(245, 158, 11, 0.25); }
.member-pass-card::before {
  content: ''; position: absolute; top: -50%; right: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 75% 25%, rgba(245, 158, 11, 0.18) 0%, transparent 40%);
  pointer-events: none;
}
.pass-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; position: relative; z-index: 1; }
.pass-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 900; font-size: 1.15rem; letter-spacing: -0.02em; }
.pass-logo-badge { background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%); color: #0A0A0C; font-size: .62rem; font-weight: 800; padding: 2px 7px; border-radius: 99px; text-transform: uppercase; letter-spacing: .08em; }
.pass-body { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; position: relative; z-index: 1; }
.pass-info { display: flex; flex-direction: column; gap: 6px; }
.pass-name { font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; color: #fff; line-height: 1.2; word-break: break-word; }
.pass-discipline { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: #F59E0B; font-weight: 600; }
.pass-plan-pill {
  display: inline-block; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px; border-radius: 8px; font-size: .78rem; font-weight: 600; color: #cbd5e1; margin-top: 4px; width: fit-content;
}
.pass-validity { font-size: .75rem; color: #94a3b8; margin-top: 6px; }
.pass-validity strong { color: #fff; }
.pass-qr-frame {
  background: #fff; padding: 10px; border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; width: 120px; height: 120px;
}
.pass-qr-frame canvas { width: 100% !important; height: 100% !important; display: block; }
.pass-footer {
  margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: space-between; font-size: .72rem; color: #64748b;
  position: relative; z-index: 1;
}
.pass-chip {
  display: inline-flex; align-items: center; gap: 5px; color: var(--red-light); font-weight: 600;
}
.pass-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red-light); box-shadow: 0 0 8px var(--red); }

/* ── RECEPTION & CHECK-IN VIEW ── */
.checkin-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; margin-bottom: 24px; }
@media (max-width: 900px) { .checkin-grid { grid-template-columns: 1fr; } }

.scanner-box-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 16px;
}
.scanner-viewport-wrap {
  width: 100%; border-radius: 14px; overflow: hidden; background: #000;
  border: 2px solid var(--border-subtle); position: relative; min-height: 260px;
  display: flex; align-items: center; justify-content: center;
}
#reader { width: 100% !important; border: none !important; }
#reader video { border-radius: 12px; object-fit: cover; }
#reader__scan_region { background: transparent !important; }
#reader__dashboard { padding: 8px !important; background: var(--bg-card-elevated) !important; color: var(--text-primary) !important; }
#reader__dashboard_section_csr button {
  background: var(--red) !important; color: #fff !important; border: none !important;
  padding: 6px 14px !important; border-radius: 8px !important; cursor: pointer; font-size: .8rem;
}

.scanner-status-overlay {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  background: rgba(15, 20, 32, 0.85); backdrop-filter: blur(8px);
  padding: 6px 14px; border-radius: 99px; border: 1px solid var(--border);
  font-size: .78rem; font-weight: 600; color: var(--red-light);
  display: flex; align-items: center; gap: 6px; z-index: 2; pointer-events: none;
}

.checkin-result-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden; transition: all .3s ease;
}
.checkin-result-card.state-granted {
  border-color: #F59E0B; background: linear-gradient(180deg, var(--bg-card) 0%, rgba(245, 158, 11, 0.08) 100%);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.2);
}
.checkin-result-card.state-denied {
  border-color: var(--danger); background: linear-gradient(180deg, var(--bg-card) 0%, rgba(244, 63, 94, 0.06) 100%);
  box-shadow: 0 0 35px rgba(244, 63, 94, 0.15);
}

.checkin-hero-status {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.checkin-status-icon {
  width: 54px; height: 54px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05); color: var(--text-muted);
}
.state-granted .checkin-status-icon {
  background: var(--gold-dim); color: #F59E0B;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
}
.state-denied .checkin-status-icon {
  background: var(--danger-dim); color: var(--danger);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.3);
}
.checkin-status-text h3 {
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; margin-bottom: 2px; color: var(--text-primary);
}
.checkin-status-text p { font-size: .82rem; color: var(--text-muted); }

.checkin-athlete-profile {
  background: var(--bg-card-elevated); border: 1px solid var(--border-subtle);
  border-radius: 14px; padding: 18px; display: flex; align-items: center; gap: 16px;
  margin-bottom: 18px;
}
.checkin-athlete-avatar {
  width: 58px; height: 58px; border-radius: 14px; object-fit: cover;
  background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 900; font-size: 1.3rem; color: #fff; flex-shrink: 0;
  border: 1.5px solid #F59E0B;
}
.checkin-athlete-info { flex: 1; min-width: 0; }
.checkin-athlete-name { font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; color: var(--text-primary); }
.checkin-athlete-meta { font-size: .8rem; color: var(--text-muted); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 8px; }

.checkin-details-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px;
}
.checkin-detail-item {
  background: rgba(255,255,255,0.02); border: 1px solid var(--border-subtle);
  border-radius: 10px; padding: 10px 14px;
}
.checkin-detail-label { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; }
.checkin-detail-val { font-size: .92rem; font-weight: 700; color: var(--text-primary); margin-top: 2px; }

/* ── SUBTABS ── */
.subtab-nav {
  display: flex; gap: 8px; margin-bottom: 22px; border-bottom: 1px solid var(--border); padding-bottom: 10px;
}
.subtab-btn {
  background: none; border: 1px solid transparent; color: var(--text-secondary);
  font-family: var(--font-body); font-size: .88rem; font-weight: 700;
  padding: 8px 16px; border-radius: var(--radius-sm); cursor: pointer;
  transition: all var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.subtab-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.subtab-btn.active {
  background: var(--red-dim); color: var(--red-light);
  border-color: rgba(239,68,68,0.3); box-shadow: 0 2px 10px var(--red-glow);
}

/* ── POS & TIENDA ── */
.pos-layout {
  display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start;
}
@media (max-width: 1024px) { .pos-layout { grid-template-columns: 1fr; } }
.pos-products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 20px;
}
.pos-product-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; cursor: pointer; transition: all var(--transition);
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  position: relative; overflow: hidden;
}
.pos-product-card:hover {
  transform: translateY(-4px); border-color: var(--red); box-shadow: 0 12px 28px rgba(0,0,0,0.35), 0 0 20px var(--red-glow);
}
.pos-product-img-box {
  width: 100%; height: 175px; border-radius: var(--radius-sm); overflow: hidden;
  position: relative; background: rgba(0,0,0,0.25); display: flex; align-items: center; justify-content: center;
}
.pos-product-img-box img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease;
}
.pos-product-card:hover .pos-product-img-box img {
  transform: scale(1.05);
}
.pos-product-cat {
  font-size: .72rem; font-weight: 800; text-transform: uppercase; color: var(--text-muted);
  letter-spacing: .06em; margin-bottom: 4px;
}
.pos-product-name {
  font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; color: var(--text-primary);
  line-height: 1.3;
}
.pos-product-footer {
  display: flex; align-items: center; justify-content: space-between; margin-top: 8px;
  padding-top: 10px; border-top: 1px solid var(--border-subtle);
}
.pos-product-price {
  font-family: var(--font-head); font-size: 1.35rem; font-weight: 900; color: var(--red-light);
  letter-spacing: -0.02em;
}
.pos-cart-panel {
  background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); position: sticky; top: 20px;
}
.pos-cart-title {
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; color: var(--text-primary); margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.pos-cart-items {
  max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px;
}
.pos-cart-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(255,255,255,0.02); padding: 8px 10px; border-radius: var(--radius-xs); border: 1px solid var(--border-subtle);
}
.pos-qty-btn {
  width: 22px; height: 22px; border-radius: 4px; border: 1px solid var(--border);
  background: var(--bg-card-elevated); color: var(--text-primary); cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.pos-qty-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ── CAJA & GASTOS SUMMARY ── */
.cash-kpi-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px;
}
.cash-kpi-pill {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px; display: flex; flex-direction: column; gap: 4px;
}
.cash-kpi-title { font-size: .72rem; text-transform: uppercase; font-weight: 800; color: var(--text-muted); }
.cash-kpi-val { font-family: var(--font-head); font-size: 1.5rem; font-weight: 900; color: var(--text-primary); }

/* ── RUTINAS ── */
.routine-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px;
}
.routine-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); transition: all var(--transition);
}
.routine-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.routine-exercise-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-radius: 6px; background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle); margin-top: 6px; font-size: .84rem;
}

/* ── RUTINAS: SUB-MENU & BIBLIOTECA DE EJERCICIOS ── */
.routines-segmented-nav {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px;
  margin-bottom: 24px;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
[data-theme="light"] .routines-segmented-nav {
  background: #E2E8F0;
  border-color: #CBD5E1;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.routines-subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 99px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
}
.routines-subtab-btn:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}
[data-theme="light"] .routines-subtab-btn:hover:not(.active) {
  background: rgba(0, 0, 0, 0.04);
}
.routines-subtab-btn.active {
  background: #FF5500;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(255, 85, 0, 0.35);
}
.routines-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(0,0,0,0.25);
  color: #FFFFFF;
}
.routines-subtab-btn:not(.active) .routines-tab-badge {
  background: var(--bg-card-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* Biblioteca Toolbar */
.library-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}
.library-search-wrap {
  position: relative;
  max-width: 600px;
  width: 100%;
}
.library-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
}
.library-search-clear:hover {
  color: var(--text-primary);
}
.exercise-cat-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.exercise-cat-pill {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.exercise-cat-pill:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.exercise-cat-pill.active {
  background: var(--bg-card-elevated);
  border-color: #FF5500;
  color: #FF5500;
  box-shadow: 0 0 0 1px #FF5500, 0 4px 12px rgba(255, 85, 0, 0.15);
}
[data-theme="light"] .exercise-cat-pill {
  background: #FFFFFF;
  border-color: #E2E8F0;
  color: #475569;
}
[data-theme="light"] .exercise-cat-pill.active {
  background: #FFF7ED;
  border-color: #FF5500;
  color: #EA580C;
}
.exercise-cat-pill .pill-count {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
}
.exercise-cat-pill.active .pill-count {
  background: rgba(255, 85, 0, 0.15);
  color: #FF5500;
}

/* Status bar */
.library-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 0.84rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.library-count-text {
  font-weight: 700;
  color: var(--text-primary);
}
.library-quick-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Exercise Cards Grid */
.exercise-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}
@media (max-width: 640px) {
  .exercise-library-grid {
    grid-template-columns: 1fr;
  }
}
.exercise-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
  box-shadow: var(--shadow);
}
.exercise-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 85, 0, 0.4);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
[data-theme="light"] .exercise-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
[data-theme="light"] .exercise-card:hover {
  border-color: #FF5500;
  box-shadow: 0 10px 24px rgba(255, 85, 0, 0.12);
}
.exercise-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0D0E12;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
[data-theme="light"] .exercise-card-media {
  background: #F1F5F9;
}
.exercise-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.exercise-card:hover .exercise-card-img {
  transform: scale(1.04);
}
.exercise-category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 99px;
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
/* Category-specific accent badges */
.cat-badge-brazos   { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.cat-badge-piernas  { background: linear-gradient(135deg, #10B981, #059669); }
.cat-badge-pecho    { background: linear-gradient(135deg, #FF5500, #DC2626); }
.cat-badge-espalda  { background: linear-gradient(135deg, #0EA5E9, #0284C7); }
.cat-badge-hombros  { background: linear-gradient(135deg, #F59E0B, #D97706); }
.cat-badge-core     { background: linear-gradient(135deg, #EC4899, #DB2777); }
.cat-badge-cardio   { background: linear-gradient(135deg, #84CC16, #65A30D); }
.cat-badge-default  { background: linear-gradient(135deg, #64748B, #475569); }

.exercise-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.exercise-card-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 6px;
  cursor: pointer;
}
.exercise-card-name:hover {
  color: #FF5500;
}
.exercise-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
  min-height: 2.3em;
}
.exercise-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}
.exercise-modal-media-box {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #000000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.exercise-modal-media-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── COMPREHENSIVE LIGHT THEME CONTRAST & ADAPTATION ── */
[data-theme="light"] body {
  background: #F4F6F9 !important;
  color: #0A0A0C !important;
}
[data-theme="light"] #sidebar {
  background: #FFFFFF !important;
  border-right-color: #E2E8F0 !important;
  color: #0A0A0C !important;
  box-shadow: 2px 0 16px rgba(0,0,0,0.03);
}
[data-theme="light"] .sidebar-brand {
  border-bottom-color: #E2E8F0 !important;
}
[data-theme="light"] .sidebar-logo {
  color: #0A0A0C !important;
}
[data-theme="light"] .sidebar-gym-name {
  color: #64748B !important;
}
[data-theme="light"] .nav-item {
  color: #475569 !important;
}
[data-theme="light"] .nav-item:hover {
  background: #F1F5F9 !important;
  color: #0A0A0C !important;
}
[data-theme="light"] .nav-item.active {
  background: rgba(220, 38, 38, 0.1) !important;
  color: #DC2626 !important;
  border-color: rgba(220, 38, 38, 0.3) !important;
  font-weight: 700 !important;
}
[data-theme="light"] .sidebar-footer {
  background: #F8FAFC !important;
  border-top-color: #E2E8F0 !important;
}
[data-theme="light"] .sidebar-user {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
}
[data-theme="light"] .user-name {
  color: #0A0A0C !important;
}
[data-theme="light"] .user-email {
  color: #64748B !important;
}
[data-theme="light"] .sidebar-theme-toggle {
  background: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
  color: #0A0A0C !important;
}
[data-theme="light"] .theme-icon-wrap {
  background: rgba(217, 119, 6, 0.15) !important;
  color: #D97706 !important;
}
[data-theme="light"] .card, 
[data-theme="light"] .stat-card, 
[data-theme="light"] .chart-card,
[data-theme="light"] .plan-card,
[data-theme="light"] .trainer-card,
[data-theme="light"] .schedule-card,
[data-theme="light"] .supplement-card,
[data-theme="light"] .kpi-card-modern,
[data-theme="light"] .activity-card,
[data-theme="light"] .pos-product-card,
[data-theme="light"] .pos-cart-panel,
[data-theme="light"] .cash-kpi-pill,
[data-theme="light"] .routine-card,
[data-theme="light"] .scanner-box-card,
[data-theme="light"] .checkin-result-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05) !important;
}
[data-theme="light"] .dash-hero {
  background: linear-gradient(135deg, rgba(220,38,38,0.08) 0%, #FFFFFF 60%) !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}
[data-theme="light"] .dash-hero::before {
  background: radial-gradient(circle, rgba(220,38,38,0.12) 0%, transparent 70%) !important;
}
[data-theme="light"] .dash-greeting {
  color: #0A0A0C !important;
}
[data-theme="light"] .dash-action-btn {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0A0A0C !important;
}
[data-theme="light"] .dash-action-btn:hover {
  background: #DC2626 !important;
  color: #FFFFFF !important;
  border-color: #DC2626 !important;
}
[data-theme="light"] .page-title, 
[data-theme="light"] .modal-title, 
[data-theme="light"] .stat-value, 
[data-theme="light"] .kpi-value, 
[data-theme="light"] .chart-title, 
[data-theme="light"] .plan-name, 
[data-theme="light"] .trainer-name, 
[data-theme="light"] .trainer-client-name, 
[data-theme="light"] .schedule-time-main, 
[data-theme="light"] .schedule-person-name, 
[data-theme="light"] .pos-cart-title, 
[data-theme="light"] .pos-product-name, 
[data-theme="light"] .checkin-athlete-name, 
[data-theme="light"] .activity-card-title, 
[data-theme="light"] .empty-state h3,
[data-theme="light"] .supplement-title,
[data-theme="light"] .select-card-title {
  color: #0A0A0C !important;
}
[data-theme="light"] .form-input, 
[data-theme="light"] .form-select, 
[data-theme="light"] .search-input,
[data-theme="light"] .ss-trigger,
[data-theme="light"] .ss-search-wrap {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0A0A0C !important;
}
[data-theme="light"] .ss-dropdown {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}
[data-theme="light"] .ss-option:hover {
  background: #F1F5F9 !important;
  color: #0A0A0C !important;
}
[data-theme="light"] .modal {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
}
[data-theme="light"] .modal-header {
  border-bottom-color: #E2E8F0 !important;
}
[data-theme="light"] th {
  background: #F8FAFC !important;
  color: #64748B !important;
  border-bottom-color: #E2E8F0 !important;
}
[data-theme="light"] td {
  border-bottom-color: #F1F5F9 !important;
  color: #334155 !important;
}
[data-theme="light"] tbody tr:hover td {
  background: #F8FAFC !important;
}
[data-theme="light"] .subtab-btn {
  color: #64748B !important;
}
[data-theme="light"] .subtab-btn:hover {
  background: #F1F5F9 !important;
  color: #0A0A0C !important;
}
[data-theme="light"] .subtab-btn.active {
  background: rgba(220, 38, 38, 0.1) !important;
  color: #DC2626 !important;
  border-color: rgba(220, 38, 38, 0.3) !important;
}
[data-theme="light"] .trainer-detail-hero {
  background: linear-gradient(135deg, rgba(220,38,38,0.06) 0%, #FFFFFF 60%) !important;
  border-color: #E2E8F0 !important;
}
[data-theme="light"] .checkin-athlete-profile {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}
[data-theme="light"] .checkin-detail-item {
  background: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
}
[data-theme="light"] .pos-cart-item {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}
[data-theme="light"] .schedule-card-footer {
  background: #F8FAFC !important;
  border-top-color: #E2E8F0 !important;
}
[data-theme="light"] .routine-exercise-item {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}
[data-theme="light"] .schedule-note {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
  color: #475569 !important;
}

/* Responsive */
@media (max-width: 960px) {
  .auth-ad-container { display: none; }
  .auth-right { padding: 24px; }
}
@media (max-width: 900px) {
  #main-content { margin-left: 0; padding: 20px 16px; }
  #sidebar { transform: translateX(-100%); }
  #sidebar.open { transform: translateX(0); }
  .stats-grid, .charts-grid { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: 1fr; }
}
/* ── GESTIÓN DE PEDIDOS Y ENVÍOS (ADMIN & CLIENTE) ── */
.orders-stats-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px;
}
.orders-filter-pills {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px;
}
.orders-filter-btn {
  padding: 8px 16px; border-radius: 99px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-secondary); font-size: 0.82rem; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: all var(--transition);
}
.orders-filter-btn:hover { border-color: var(--red); color: var(--text-primary); }
.orders-filter-btn.active {
  background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 2px 10px var(--red-glow);
}
.orders-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px;
}
@media (max-width: 640px) { .orders-grid { grid-template-columns: 1fr; } }
.order-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 16px; transition: all var(--transition);
  position: relative;
}
.order-card:hover {
  border-color: var(--border-strong); box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.order-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--border-subtle); padding-bottom: 12px;
}
.order-id-badge {
  font-family: var(--font-head); font-size: 0.85rem; font-weight: 800; color: var(--red-light);
}
.order-time { font-size: 0.78rem; color: var(--text-muted); }
.order-customer-box {
  background: var(--bg-card-elevated); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm);
  padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.order-customer-name { font-weight: 800; font-size: 0.95rem; color: var(--text-primary); }
.order-customer-phone { font-size: 0.82rem; color: var(--text-secondary); margin-top: 2px; }
.order-items-list {
  display: flex; flex-direction: column; gap: 8px; background: rgba(255,255,255,0.02);
  border-radius: var(--radius-sm); padding: 10px 12px; border: 1px solid var(--border-subtle);
}
.order-item-row {
  display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; color: var(--text-primary);
}
.order-delivery-box {
  display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem;
  background: rgba(239,68,68,0.04); border: 1px solid rgba(239,68,68,0.15); border-radius: var(--radius-sm);
  padding: 12px;
}
.order-delivery-label {
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase; color: var(--red-light); letter-spacing: 0.05em;
}
.order-delivery-address { color: var(--text-primary); font-weight: 600; line-height: 1.4; }
.btn-maps-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%); color: #fff;
  border: none; border-radius: var(--radius-sm); padding: 10px 14px; font-weight: 800;
  font-size: 0.85rem; cursor: pointer; text-decoration: none; transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(16,185,129,0.3); width: 100%;
}
.btn-maps-link:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16,185,129,0.45); color: #fff; }
.order-status-select {
  padding: 8px 12px; border-radius: var(--radius-sm); background: var(--bg-input);
  border: 1px solid var(--border); color: var(--text-primary); font-size: 0.85rem; font-weight: 700;
  cursor: pointer; width: 100%;
}

/* ── BANNER RENOVACIÓN & MEMBRESÍAS ── */
.cp-renewal-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 22px 24px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(239,68,68,0.16) 0%, rgba(24, 26, 34, 0.96) 100%);
  border: 1px solid rgba(239,68,68,0.45);
  box-shadow: 0 8px 30px rgba(239,68,68,0.18), 0 0 20px rgba(0,0,0,0.4);
  margin-bottom: 24px; position: relative; overflow: hidden;
}
.cp-renewal-banner::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #EF4444, #F59E0B, #EF4444);
}
.cp-renewal-banner-content {
  display: flex; align-items: center; gap: 16px; flex: 1; min-width: 280px;
}
.cp-renewal-banner-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
  color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 4px 16px var(--red-glow);
}
.cp-renewal-banner strong {
  display: block; font-size: 1.12rem; color: #ffffff; font-family: var(--font-head);
  font-weight: 800; letter-spacing: -0.01em;
}
.cp-renewal-banner p {
  font-size: 0.88rem; color: #cbd5e1; margin-top: 4px; line-height: 1.45;
}
[data-theme="light"] .cp-renewal-banner {
  background: linear-gradient(135deg, rgba(239,68,68,0.1) 0%, #FFFFFF 100%);
  border-color: rgba(239,68,68,0.35); box-shadow: 0 8px 24px rgba(239,68,68,0.1);
}
[data-theme="light"] .cp-renewal-banner strong { color: #0F172A; }
[data-theme="light"] .cp-renewal-banner p { color: #475569; }

/* ── CATÁLOGO DE PLANES DEL CLIENTE ── */
.client-plans-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 20px;
}
.client-plan-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px;
  padding: 28px 24px; display: flex; flex-direction: column; position: relative;
  transition: all 0.25s ease; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.client-plan-card:hover {
  transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0,0,0,0.35); border-color: rgba(239,68,68,0.45);
}
.client-plan-card.is-current-plan {
  border: 2px solid var(--yellow); box-shadow: 0 0 28px rgba(245,158,11,0.25);
}
.client-plan-card.is-recommended-plan:not(.is-current-plan) {
  border: 2px solid var(--red); box-shadow: 0 0 28px rgba(239,68,68,0.25);
}
.client-plan-badge {
  position: absolute; top: -12px; right: 20px; font-size: 0.7rem; font-weight: 900;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 14px; border-radius: 99px;
  color: #fff; z-index: 2;
}
.client-plan-badge.current {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 14px rgba(245,158,11,0.5);
}
.client-plan-badge.rec {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  box-shadow: 0 4px 14px rgba(239,68,68,0.5);
}
.client-plan-name {
  font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; color: var(--text-primary);
  margin-bottom: 8px; letter-spacing: -0.02em;
}
.client-plan-price-wrap {
  display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.client-plan-currency {
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; color: var(--red);
}
.client-plan-price {
  font-family: var(--font-head); font-size: 2.25rem; font-weight: 900; color: var(--text-primary);
  letter-spacing: -0.03em; line-height: 1;
}
.client-plan-period { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.client-plan-desc {
  font-size: 0.88rem; color: var(--text-secondary); line-height: 1.55; margin-bottom: 16px;
}
.client-plan-features {
  list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px;
  font-size: 0.85rem; color: var(--text-secondary);
}
.client-plan-features li { display: flex; align-items: center; gap: 10px; }
.client-plan-features li svg { flex-shrink: 0; color: var(--green, #10B981); }
[data-theme="light"] .client-plan-card {
  background: #FFFFFF; border-color: #E2E8F0; box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
[data-theme="light"] .client-plan-card:hover { box-shadow: 0 16px 36px rgba(0,0,0,0.12); }
[data-theme="light"] .client-plan-price-wrap { border-bottom-color: #E2E8F0; }

/* ── MI PROGRESO (MODERNO SEGÚN REFERENCIA) ── */
.progress-screen-wrap {
  max-width: 580px; margin: 0 auto; padding: 8px 4px 40px;
}
.progress-header-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px;
}
.progress-header-left { display: flex; align-items: center; gap: 14px; }
.progress-back-circle {
  width: 44px; height: 44px; border-radius: 50%; background: var(--bg-card-elevated);
  border: 1px solid var(--border); color: var(--text-primary); display: flex;
  align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition);
  flex-shrink: 0;
}
.progress-back-circle:hover {
  background: var(--bg-card-hover); border-color: var(--red); transform: translateX(-2px);
}
.progress-header-titles { display: flex; flex-direction: column; }
.progress-main-title {
  font-family: var(--font-head); font-size: 1.65rem; font-weight: 900; color: var(--text-primary);
  letter-spacing: -0.02em; line-height: 1.15;
}
.progress-sub-title { font-size: 0.88rem; color: var(--text-muted); margin-top: 3px; }
.btn-checkin-pill {
  background: linear-gradient(135deg, #FF5500 0%, #EF4444 100%); color: #FFFFFF;
  border: none; border-radius: 99px; padding: 10px 22px; font-weight: 800; font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 85, 0, 0.4); transition: all var(--transition); white-space: nowrap;
}
.btn-checkin-pill:hover {
  transform: translateY(-2px); box-shadow: 0 6px 22px rgba(255, 85, 0, 0.55);
}
.progress-segmented-tabs {
  display: flex; background: #14161F; border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px; padding: 5px; margin-bottom: 24px;
}
[data-theme="light"] .progress-segmented-tabs { background: #E2E8F0; border-color: #CBD5E1; }
.progress-tab-item {
  flex: 1; text-align: center; padding: 10px 16px; border-radius: 99px; border: none;
  background: transparent; color: var(--text-muted); font-weight: 800; font-size: 0.9rem;
  cursor: pointer; transition: all var(--transition);
}
.progress-tab-item:hover:not(.active) { color: var(--text-primary); }
.progress-tab-item.active {
  background: #FF5500; color: #FFFFFF; box-shadow: 0 4px 14px rgba(255, 85, 0, 0.35);
}
.progress-milestone-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (max-width: 440px) {
  .progress-milestone-grid { grid-template-columns: 1fr; }
}
.milestone-slot {
  background: #14161F; border: 1.5px dashed rgba(255, 255, 255, 0.22); border-radius: 20px;
  aspect-ratio: 3 / 4; min-height: 220px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; cursor: pointer;
  position: relative; overflow: hidden; transition: all var(--transition);
}
.milestone-slot:hover {
  border-color: #FF5500; background: #181B26; transform: translateY(-2px);
}
[data-theme="light"] .milestone-slot { background: #F1F5F9; border-color: rgba(0, 0, 0, 0.18); }
[data-theme="light"] .milestone-slot:hover { background: #E2E8F0; border-color: #FF5500; }
.milestone-slot-icon {
  width: 42px; height: 42px; color: rgba(255, 255, 255, 0.4); transition: transform var(--transition);
}
[data-theme="light"] .milestone-slot-icon { color: rgba(0, 0, 0, 0.4); }
.milestone-slot:hover .milestone-slot-icon { transform: scale(1.1); color: #FF5500; }
.milestone-slot-label {
  font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: rgba(255, 255, 255, 0.85);
}
[data-theme="light"] .milestone-slot-label { color: #1E293B; }
.milestone-slot.has-image { border-style: solid; border-color: transparent; }
.milestone-slot.has-image:hover { border-color: #FF5500; }
.milestone-slot.has-image img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.milestone-slot-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 16px 12px 10px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
  display: flex; align-items: center; justify-content: space-between; z-index: 2;
}
.milestone-badge-tag {
  background: rgba(255, 85, 0, 0.9); color: #fff; font-size: 0.72rem; font-weight: 800;
  padding: 3px 8px; border-radius: 6px; text-transform: uppercase;
}

/* ==========================================================================
   2. SISTEMA DE LA LANDING PAGE PÚBLICA (PORTAL DE PRESENTACIÓN)
   ========================================================================== */
/* Capellan Fitness public landing: editorial black, white and red system. */
#auth-page { display:block; width:100%; min-height:100vh; overflow:hidden; background:#090a0c; color:#f7f7f5; }
#auth-page, #auth-page * { box-sizing:border-box; }
#auth-page { --site-bg:#090a0c; --site-panel:#111214; --site-text:#f7f7f5; --site-muted:#a4a5a7; --site-line:rgba(255,255,255,.12); --site-red:#e8242a; --site-red-dark:#bd191f; }
[data-theme="light"] #auth-page { --site-bg:#f5f5f2; --site-panel:#fff; --site-text:#141516; --site-muted:#5d6063; --site-line:rgba(20,21,22,.14); background:var(--site-bg); color:var(--site-text); }
#auth-page a { color:inherit; }
#auth-page button, #auth-page input { font:inherit; }
#auth-page .site-theme-toggle { font-size:0; }
.site-nav { position:sticky; top:0; z-index:80; background:var(--site-bg); border-bottom:1px solid var(--site-line); }
.site-nav-inner { width:min(1320px, calc(100% - 64px)); min-height:82px; margin:auto; display:flex; align-items:center; justify-content:space-between; gap:28px; }
.site-brand { min-width:max-content; display:inline-flex; align-items:center; gap:10px; text-decoration:none; }
.site-brand img { width:42px; height:42px; object-fit:cover; border-radius:2px; }
.site-brand-copy { display:flex; flex-direction:column; line-height:1.08; }
.site-brand-copy strong { color:var(--site-text); font-family:var(--font-head); font-size:1.02rem; font-weight:900; letter-spacing:-.045em; }
.site-brand-copy em { color:var(--site-red); font-style:normal; }
.site-brand-copy small { color:var(--site-muted); font-size:.64rem; letter-spacing:.03em; margin-top:5px; }
.site-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(38px, 5.2vw, 70px);
}
.site-nav-links a {
  color: var(--site-text) !important;
  background: none;
  border: 0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
  padding: 6px 4px;
  position: relative;
  transition: color 0.18s ease;
}
.site-nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--site-red);
  transform: scaleX(0);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}
.site-nav-links a:hover::after {
  transform: scaleX(1);
}
.site-nav-links a:hover {
  color: var(--site-red) !important;
}
.site-login-link {
  min-height: 40px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  background: #FFFFFF !important;
  color: #0A0A0C !important;
  font-family: var(--font-body);
  font-size: .80rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.95);
  box-shadow: 0 4px 14px rgba(255,255,255,0.18);
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.site-login-link:hover {
  background: #F1F5F9 !important;
  color: #000000 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,255,255,0.28);
}
[data-theme="light"] .site-login-link {
  background: #0A0A0C !important;
  color: #FFFFFF !important;
  border-color: #1E293B;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
[data-theme="light"] .site-login-link:hover {
  background: #181920 !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.site-mobile-login-btn {
  min-height: 44px;
  padding: 12px 18px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #FFFFFF !important;
  color: #0A0A0C !important;
  font-weight: 800 !important;
  font-size: 0.92rem !important;
  border-radius: 10px !important;
  margin-top: 6px !important;
  border: 1px solid rgba(255,255,255,0.95) !important;
  box-shadow: 0 4px 14px rgba(255,255,255,0.18) !important;
  cursor: pointer;
}
[data-theme="light"] .site-mobile-login-btn {
  background: #0A0A0C !important;
  color: #FFFFFF !important;
  border-color: #1E293B !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2) !important;
}
.site-nav-actions { display:flex; align-items:center; gap:20px; }
.site-theme-toggle { width:32px; height:36px; display:inline-flex; align-items:center; justify-content:center; padding:0; color:var(--site-muted); border:0; background:none; font-size:0; white-space:nowrap; cursor:pointer; }
#auth-page .site-theme-toggle svg { width:16px; height:16px; }
.site-button { min-height:48px; padding:0 22px; display:inline-flex; align-items:center; justify-content:center; gap:14px; border:1px solid var(--site-red); background:var(--site-red); color:#fff!important; text-decoration:none; font-size:.84rem; font-weight:750; transition:background .18s ease,border-color .18s ease,transform .18s ease; }
.site-button:hover { background:var(--site-red-dark); border-color:var(--site-red-dark); transform:translateY(-2px); }
.site-button-small { min-height:40px; padding:0 16px; font-size:.78rem; }
.site-mobile-menu { display:none; position:relative; }
.site-mobile-menu summary { width:48px; height:48px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:6px; list-style:none; cursor:pointer; border:1px solid var(--site-line); border-radius:12px; background:var(--site-panel); }
.site-mobile-menu summary::-webkit-details-marker { display:none; }
.site-mobile-menu summary span { width:23px; height:2.5px; border-radius:2px; background:var(--site-text); transition:transform .2s ease,opacity .2s ease; }
.site-mobile-menu[open] summary span:first-child { transform:translateY(8.5px) rotate(45deg); }
.site-mobile-menu[open] summary span:nth-child(2) { opacity:0; }
.site-mobile-menu[open] summary span:last-child { transform:translateY(-8.5px) rotate(-45deg); }
.site-mobile-menu nav { position:absolute; z-index:120; right:0; top:calc(100% + 8px); width:min(320px,calc(100vw - 24px)); max-height:min(75vh,560px); max-height:min(75dvh,560px); overflow-y:auto; padding:12px; background:var(--site-panel); border:1px solid var(--site-line); border-radius:14px; box-shadow:0 18px 54px rgba(0,0,0,.42); display:grid; gap:4px; }
.site-mobile-menu nav a, .site-mobile-menu nav button { min-height:48px; padding:12px 14px; border:0; background:none; color:var(--site-text); text-align:left; text-decoration:none; font-size:1rem; line-height:1.35; cursor:pointer; }
.site-mobile-menu nav a:hover, .site-mobile-menu nav button:hover { background:rgba(232,36,42,.1); color:var(--site-red); }
.site-main { width:100%; }
.site-main section[id], .site-footer[id] { scroll-margin-top:96px; }
.site-hero { width:100%; min-height:clamp(680px,calc(100svh - 82px),900px); margin:0; padding:70px max(32px,calc((100vw - 1320px)/2)) 100px; display:grid; grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr); align-items:center; gap:4%; position:relative; isolation:isolate; overflow:hidden; color:#f7f7f5; background:radial-gradient(ellipse at 77% 47%,rgba(218,31,37,.17),transparent 29%),radial-gradient(ellipse at 94% 13%,rgba(255,255,255,.07),transparent 28%),linear-gradient(120deg,#08090a 0%,#0a0b0d 58%,#151012 100%); }
.site-hero::before { content:""; position:absolute; z-index:-1; inset:0; pointer-events:none; background:linear-gradient(90deg,rgba(7,8,9,.9) 0%,rgba(7,8,9,.72) 42%,rgba(7,8,9,.08) 76%,rgba(7,8,9,.4) 100%); }
.site-hero::after { content:""; position:absolute; z-index:-1; top:0; right:0; width:52%; height:100%; pointer-events:none; opacity:.13; background-image:linear-gradient(rgba(255,255,255,.13) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.13) 1px,transparent 1px); background-size:54px 54px; mask-image:linear-gradient(90deg,transparent,#000 35%,transparent); }
.site-hero-copy { max-width:680px; padding:0 0 32px; position:relative; z-index:3; }
.site-hero-copy > * { opacity:0; animation:siteHeroRise .78s cubic-bezier(.2,.75,.25,1) forwards; }
.site-hero-copy > :nth-child(1) { animation-delay:.1s; }
.site-hero-copy > :nth-child(2) { animation-delay:.2s; }
.site-hero-copy > :nth-child(3) { animation-delay:.32s; }
.site-hero-copy > :nth-child(4) { animation-delay:.44s; }
.site-hero-copy > :nth-child(5) { animation-delay:.55s; }
.site-eyebrow { margin:0 0 22px; display:flex; align-items:center; gap:10px; color:var(--site-red); font-size:.69rem; font-weight:800; text-transform:uppercase; letter-spacing:.14em; }
.site-eyebrow span { width:24px; height:2px; display:inline-block; background:var(--site-red); }
.site-hero h1 { max-width:760px; margin:0; color:#f7f7f5; font-family:var(--font-head); font-size:clamp(4.1rem,7.4vw,7.6rem); font-weight:900; line-height:.87; letter-spacing:-.08em; text-wrap:balance; }
.site-hero h1 span { display:inline-block; color:var(--site-red); text-shadow:0 12px 60px rgba(232,36,42,.19); }
.site-hero-lead { max-width:490px; margin:28px 0 0; color:rgba(255,255,255,.7); font-size:1.02rem; line-height:1.7; }
.site-hero-actions { margin-top:30px; display:flex; align-items:center; gap:26px; flex-wrap:wrap; }
.site-text-link { color:var(--site-text)!important; font-size:.83rem; font-weight:700; text-decoration:none; border-bottom:1px solid var(--site-line); padding:8px 0; }
#auth-page .site-hero .site-text-link { color:#f7f7f5!important; border-color:rgba(255,255,255,.35); }
.site-text-link span { color:var(--site-red); margin-left:6px; }
.site-hero-note { margin:42px 0 0; display:flex; align-items:center; gap:10px; color:rgba(255,255,255,.55); font-size:.68rem; letter-spacing:.08em; text-transform:uppercase; }
.site-hero-note span { width:7px; height:7px; border-radius:50%; background:var(--site-red); box-shadow:0 0 15px rgba(232,36,42,.75); }
.site-hero-art { width:100%; height:clamp(500px,63vw,700px); min-height:480px; max-height:700px; margin:-6px 0 0; position:relative; align-self:center; perspective:1200px; animation:siteHeroArtIn 1.2s cubic-bezier(.2,.75,.25,1) both; }
.site-hero-art::before { content:""; position:absolute; inset:12% 5% 4% 11%; border:1px solid rgba(255,255,255,.13); background:linear-gradient(135deg,rgba(255,255,255,.045),transparent 48%),radial-gradient(ellipse at 70% 42%,rgba(232,36,42,.17),transparent 55%); transform:rotate(5deg); }
.site-hero-art-label { position:absolute; top:6%; right:1%; z-index:3; display:flex; align-items:center; gap:9px; color:rgba(255,255,255,.62); font-size:.57rem; font-weight:750; letter-spacing:.17em; writing-mode:vertical-rl; }
.site-hero-art-label i { width:1px; height:34px; display:inline-block; background:var(--site-red); }
.site-hero-photo { position:absolute; margin:0; overflow:hidden; border:1px solid rgba(255,255,255,.2); background:#151618; box-shadow:0 36px 90px rgba(0,0,0,.48); }
.site-hero-photo::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(180deg,rgba(0,0,0,.06) 46%,rgba(0,0,0,.67) 100%); }
.site-hero-photo-main { top:2%; right:5%; z-index:1; width:min(69%,430px); height:86%; transform:rotate(3.2deg); animation:siteHeroPhotoFloat 8s ease-in-out 1.2s infinite alternate; }
.site-hero-photo-secondary { left:2%; bottom:2%; z-index:2; width:min(55%,342px); height:61%; border-color:rgba(232,36,42,.55); transform:rotate(-5deg); animation:siteHeroPhotoFloat 7s ease-in-out 1.45s infinite alternate-reverse; }
.site-hero-photo img { width:100%; height:100%; display:block; object-fit:cover; }
.site-hero-photo-main img { object-position:center 14%; filter:saturate(.84) contrast(1.06); }
.site-hero-photo-secondary img { object-position:center 14%; filter:grayscale(1) contrast(1.08); }
.site-hero-photo figcaption { position:absolute; z-index:1; left:16px; bottom:16px; color:#fff; font-size:.63rem; font-weight:800; letter-spacing:.15em; text-transform:uppercase; }
.site-hero-photo figcaption span { margin-right:9px; color:#ff555a; }

/* ── HERO TRAINER INSTAGRAM LINKS & BADGES ── */
.hero-trainer-ig-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(10, 11, 14, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF !important;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}
.hero-trainer-ig-badge svg {
  color: #FF555A;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.hero-trainer-ig-badge:hover {
  background: #E8242A;
  border-color: #FF555A;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(232, 36, 42, 0.5);
}
.hero-trainer-ig-badge:hover svg {
  color: #FFFFFF;
  transform: rotate(8deg);
}

.hero-photo-caption-interactive {
  position: absolute;
  z-index: 10;
  left: 12px;
  bottom: 12px;
  margin: 0;
  pointer-events: auto;
}
.hero-trainer-caption-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(10, 11, 14, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(232, 36, 42, 0.55);
  color: #FFFFFF !important;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: all 0.22s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.hero-trainer-caption-link svg {
  color: #FF555A;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.hero-trainer-caption-link .trainer-handle {
  color: #CBD5E1;
  font-style: normal;
  font-weight: 600;
  font-size: 0.62rem;
  opacity: 0.9;
}
.hero-trainer-caption-link:hover {
  background: #E8242A;
  border-color: #FF555A;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 36, 42, 0.5);
}
.hero-trainer-caption-link:hover svg {
  color: #FFFFFF;
  transform: scale(1.1);
}
.hero-trainer-caption-link:hover .trainer-handle {
  color: #FFFFFF;
  opacity: 1;
}

/* Hero Motivation Pill */
.hero-motivation-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin: 14px 0 16px;
  border-radius: 99px;
  background: rgba(232, 36, 42, 0.12);
  border: 1px solid rgba(232, 36, 42, 0.35);
  color: #FFA5A8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hero-motivation-pill em {
  font-style: italic;
  color: #FFFFFF;
}
[data-theme="light"] .hero-motivation-pill {
  background: rgba(232, 36, 42, 0.08);
  border-color: rgba(232, 36, 42, 0.25);
  color: #B91C1C;
}
[data-theme="light"] .hero-motivation-pill em {
  color: #0F172A;
}

.pricing-motivation-quote {
  max-width: 620px;
  margin: 14px auto 0;
  padding: 8px 18px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
  color: var(--site-muted);
  font-style: italic;
  text-align: center;
}
[data-theme="light"] .pricing-motivation-quote {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #475569;
}

.site-hero-art-index { position:absolute; right:7%; bottom:0; color:rgba(255,255,255,.55); font-family:var(--font-head); font-size:.61rem; font-weight:800; letter-spacing:.22em; }
.site-scroll-cue { position:absolute; z-index:4; bottom:36px; left:max(32px,calc((100vw - 1320px)/2)); display:flex; align-items:center; gap:12px; color:rgba(255,255,255,.62)!important; font-size:.62rem; font-weight:650; letter-spacing:.13em; text-decoration:none; text-transform:uppercase; }
.site-scroll-cue span { width:36px; height:1px; position:relative; overflow:hidden; background:rgba(255,255,255,.22); }
.site-scroll-cue span::after { content:""; position:absolute; inset:0; background:var(--site-red); transform:translateX(-105%); animation:siteScrollLine 1.8s ease-in-out infinite; }
@keyframes siteHeroRise { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes siteHeroArtIn { from { opacity:0; transform:translate3d(28px,12px,0) scale(.97); } to { opacity:1; transform:translate3d(0,0,0) scale(1); } }
@keyframes siteHeroPhotoFloat { from { margin-top:0; } to { margin-top:-8px; } }
@keyframes siteScrollLine { 0% { transform:translateX(-105%); } 55%,100% { transform:translateX(105%); } }
.site-section { width:min(1320px,calc(100% - 64px)); margin:auto; padding:112px 0; }

/* ── SITE RESULTS (RESULTADOS REALES QUE PUEDEN LOGRAR) ── */
.site-results {
  border-top: 1px solid var(--site-line);
  padding: 104px 0;
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.site-results-heading {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 48px;
}
.results-heading-copy h2 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  font-weight: 900;
  color: var(--site-text);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 8px 0 16px;
}
.results-lead-desc {
  max-width: 580px;
  color: var(--site-muted);
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0;
}
.results-motivation-card {
  background: linear-gradient(135deg, rgba(232, 36, 42, 0.14) 0%, rgba(18, 19, 25, 0.8) 100%);
  border: 1px solid rgba(232, 36, 42, 0.35);
  border-radius: 18px;
  padding: 26px 24px;
  position: relative;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}
[data-theme="light"] .results-motivation-card {
  background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 100%);
  border-color: rgba(232, 36, 42, 0.25);
  box-shadow: 0 8px 24px rgba(232, 36, 42, 0.08);
}
.results-quote-icon {
  font-family: Georgia, serif;
  font-size: 3.2rem;
  line-height: 0.8;
  color: var(--site-red);
  margin-bottom: 6px;
  opacity: 0.85;
}
.results-quote-text {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 800;
  font-style: italic;
  color: var(--site-text);
  line-height: 1.45;
  margin: 0 0 12px;
}
.results-quote-author {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--site-red);
}

/* Results KPI Bar */
.results-kpi-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--site-panel);
  border: 1px solid var(--site-line);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
[data-theme="light"] .results-kpi-bar {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}
.results-kpi-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--site-line);
  padding-right: 16px;
}
.results-kpi-item:last-child {
  border-right: none;
  padding-right: 0;
}
.results-kpi-num {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 900;
  color: #FF555A;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.results-kpi-label {
  font-size: 0.82rem;
  color: var(--site-muted);
  line-height: 1.4;
  font-weight: 600;
}

/* ============================================================
   CARRUSEL DE VIDEOS DE RESULTADOS (INSTAGRAM REELS)
   ============================================================ */
.results-video-carousel {
  position: relative;
  width: 100%;
  margin: 36px 0 48px;
}
.results-carousel-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
}
.results-carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 16px;
  scrollbar-width: none;
}
.results-carousel-track::-webkit-scrollbar {
  display: none;
}
.video-slide {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 280px;
  max-width: 390px;
  scroll-snap-align: start;
  background: var(--site-panel);
  border: 1px solid var(--site-line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}
[data-theme="light"] #auth-page .video-slide {
  background: #ffffff;
  border-color: #E2E8F0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}
.video-slide:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 36, 42, 0.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4), 0 0 24px rgba(232, 36, 42, 0.12);
}
.video-slide-media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  background: #000000;
  overflow: hidden;
  cursor: pointer;
}
.video-slide-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Video Overlays */
.video-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, transparent 25%, transparent 60%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
  z-index: 2;
}
.video-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 99px;
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.video-badge-red { background: linear-gradient(135deg, #EF4444, #B91C1C); }
.video-badge-gold { background: linear-gradient(135deg, #F59E0B, #B45309); }
.video-badge-green { background: linear-gradient(135deg, #10B981, #047857); }

.video-mute-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 11, 14, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}
.video-mute-btn:hover {
  transform: scale(1.1);
  background: rgba(232, 36, 42, 0.85);
}
.video-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(232, 36, 42, 0.9);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(232, 36, 42, 0.5), 0 0 0 6px rgba(255, 255, 255, 0.2);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.video-slide.is-playing .video-play-indicator {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}
.video-slide-media:hover .video-play-indicator {
  transform: translate(-50%, -50%) scale(1.08);
}
.video-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: var(--site-red);
  z-index: 4;
  transition: width 0.1s linear;
}

/* Slide Content */
.video-slide-content {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.video-slide-creator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.video-creator-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #ff555a !important;
  text-decoration: none;
  background: rgba(232, 36, 42, 0.1);
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(232, 36, 42, 0.22);
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.video-creator-tag:hover {
  background: var(--site-red);
  color: #FFFFFF !important;
  transform: translateY(-1px);
}
.video-slide-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--site-text);
  margin: 0 0 8px;
}
.video-slide-desc {
  font-size: 0.82rem;
  color: var(--site-muted);
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
}
.video-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--site-text) !important;
  text-decoration: none;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--site-line);
  transition: color 0.15s ease;
}
.video-slide-cta:hover {
  color: var(--site-red) !important;
}

/* Carousel Nav Controls */
.results-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  gap: 16px;
}
.results-carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.results-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--site-line);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.results-carousel-dot.is-active {
  width: 28px;
  background: var(--site-red);
}
.results-carousel-arrows {
  display: flex;
  align-items: center;
  gap: 10px;
}
.results-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--site-panel);
  border: 1px solid var(--site-line);
  color: var(--site-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.18s ease;
}
[data-theme="light"] #auth-page .results-arrow-btn {
  background: #ffffff;
  border-color: #E2E8F0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.results-arrow-btn:hover {
  background: var(--site-red);
  color: #FFFFFF;
  border-color: var(--site-red);
  transform: scale(1.06);
}
.results-arrow-btn:active {
  transform: scale(0.94);
}

@media (max-width: 960px) {
  .video-slide {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}
@media (max-width: 640px) {
  .video-slide {
    flex: 0 0 85%;
    min-width: 260px;
  }
  .results-carousel-track {
    padding-inline: 12px;
  }
}

/* Banner Motivacional de Cierre */
.results-motivation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: linear-gradient(135deg, rgba(232, 36, 42, 0.12) 0%, rgba(20, 21, 28, 0.95) 100%);
  border: 1px solid rgba(232, 36, 42, 0.35);
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}
[data-theme="light"] .results-motivation-banner {
  background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 100%);
  border-color: rgba(232, 36, 42, 0.3);
  box-shadow: 0 10px 30px rgba(232, 36, 42, 0.08);
}
.results-banner-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #FF555A;
  margin-bottom: 6px;
}
.results-motivation-banner h4 {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 900;
  color: var(--site-text);
  line-height: 1.35;
  margin: 0 0 8px;
}
.results-motivation-banner p {
  color: var(--site-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
  max-width: 680px;
}
.results-banner-action {
  flex-shrink: 0;
}
.site-pricing { border-top:1px solid var(--site-line); padding:96px 0; position:relative; }
.site-pricing .site-section-heading { display:flex; flex-direction:column; align-items:center; text-align:center; justify-content:center; gap:12px; margin-bottom:48px; }
.site-pricing .site-section-heading .site-eyebrow { margin-bottom:6px; }
.site-pricing .site-section-heading h2 { font-family:var(--font-head); font-size:clamp(2rem, 3.5vw, 2.75rem); font-weight:900; color:var(--site-text); line-height:1.1; letter-spacing:-.03em; margin:0; }
.site-pricing .site-section-heading > p { max-width:540px; margin:0 auto; color:var(--site-muted); font-size:.92rem; line-height:1.6; text-align:center; }

.site-plans-status { margin:20px 0; color:var(--site-muted); font-size:.88rem; text-align:center; }
.site-plans-status:empty { display:none; }

.site-plans-grid { display:flex; justify-content:center; align-items:stretch; flex-wrap:wrap; gap:20px; max-width:1200px; margin:0 auto; }

.site-plan-card { width:100%; max-width:280px; min-width:240px; flex:0 1 280px; min-height:430px; padding:32px 24px 24px; display:flex; flex-direction:column; align-items:center; text-align:center; background:linear-gradient(180deg,#191a22 0%,#111218 100%); border:1px solid rgba(255,255,255,.08); border-radius:16px; position:relative; transition:all .3s cubic-bezier(.16,1,.3,1); box-shadow:0 10px 28px rgba(0,0,0,.4); }
[data-theme="light"] .site-plan-card { background:#f8fafc; border:1px solid #e2e8f0; box-shadow:0 8px 24px rgba(0,0,0,.06); }

.site-plan-card:hover { transform:translateY(-5px); border-color:rgba(239,68,68,.4); box-shadow:0 18px 40px rgba(0,0,0,.5),0 0 20px rgba(239,68,68,.12); }
[data-theme="light"] .site-plan-card:hover { box-shadow:0 16px 36px rgba(0,0,0,.12),0 0 16px rgba(239,68,68,.12); }

.site-plan-card.is-recommended { border:2px solid var(--site-red); background:linear-gradient(180deg,#241316 0%,#140b0e 100%); box-shadow:0 0 30px rgba(239,68,68,.22),0 16px 40px rgba(0,0,0,.55); }
[data-theme="light"] .site-plan-card.is-recommended { background:linear-gradient(180deg,#fff5f5 0%,#ffffff 100%); border:2px solid var(--site-red); box-shadow:0 0 24px rgba(239,68,68,.16),0 14px 32px rgba(239,68,68,.08); }

.site-plan-card.is-recommended::before { content:'★ MÁS POPULAR'; position:absolute; top:-12px; left:50%; transform:translateX(-50%); background:linear-gradient(135deg,#EF4444 0%,#B91C1C 100%); color:#ffffff; font-size:.66rem; font-weight:900; letter-spacing:.1em; padding:4px 14px; border-radius:99px; text-transform:uppercase; box-shadow:0 4px 12px rgba(239,68,68,.5); white-space:nowrap; }

.site-plan-name { margin:0 0 10px; color:var(--site-text); font-family:var(--font-head); font-size:1.05rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; line-height:1.2; }

.site-plan-price-wrap { display:flex; align-items:baseline; justify-content:center; gap:4px; margin:0 0 4px; }
.site-plan-currency { font-family:var(--font-head); font-size:1.15rem; font-weight:800; color:var(--site-red); }
.site-plan-price-num { font-family:var(--font-head); font-size:2.8rem; font-weight:900; color:var(--site-text); line-height:1; letter-spacing:-.03em; }

.site-plan-period { color:var(--site-muted); font-size:.82rem; font-weight:600; margin:0 0 18px; }

.site-plan-divider { width:80%; height:1px; background:var(--site-line); margin:0 auto 20px; border:none; }
.site-plan-card.is-recommended .site-plan-divider { background:rgba(239,68,68,.35); }

.site-plan-features { list-style:none; padding:0; margin:0 0 24px; display:flex; flex-direction:column; gap:10px; font-size:.83rem; width:100%; }
.site-plan-features li { display:block; text-align:center; color:var(--site-muted); line-height:1.45; }
[data-theme="light"] .site-plan-features li { color:#475569; }
.site-plan-card.is-recommended .site-plan-features li { color:var(--site-text); }

.site-plan-actions { display:flex; flex-direction:column; gap:8px; margin-top:auto; width:100%; }
.site-plan-btn-primary { display:flex; align-items:center; justify-content:center; gap:6px; width:100%; padding:12px 16px; border-radius:8px; font-size:.82rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; background:linear-gradient(135deg,#EF4444 0%,#DC2626 100%); color:#ffffff!important; text-decoration:none; box-shadow:0 4px 14px rgba(239,68,68,.35); transition:all .2s ease; border:none; cursor:pointer; }
.site-plan-btn-primary:hover { transform:translateY(-2px); box-shadow:0 8px 20px rgba(239,68,68,.5); color:#ffffff!important; }
.site-plan-btn-secondary { display:flex; align-items:center; justify-content:center; gap:6px; width:100%; padding:8px 12px; border-radius:8px; font-size:.76rem; font-weight:700; background:transparent; color:var(--site-muted); border:1px solid var(--site-line); cursor:pointer; transition:all .2s ease; }
.site-plan-btn-secondary:hover { color:var(--site-text); border-color:var(--site-text); background:rgba(255,255,255,.04); }

.site-plan-unavailable { width:100%; padding:10px 12px; border:1px dashed var(--site-line); color:var(--site-muted); font-size:.8rem; text-align:center; border-radius:8px; }
.site-plans-empty { padding:48px 24px; border:1px dashed var(--site-line); color:var(--site-muted); font-size:.95rem; border-radius:16px; text-align:center; }
.site-pricing-note { margin:32px 0 0; color:var(--site-muted); font-size:.84rem; text-align:center; }
.site-pricing-note a { color:var(--site-red)!important; font-weight:700; text-underline-offset:3px; }
.site-membership { padding:96px max(32px,calc((100vw - 1320px)/2)); background:#121315; color:#f7f7f5; display:grid; grid-template-columns:1fr 1fr; gap:9%; }
[data-theme="light"] .site-membership { background:#17181a; }
.site-membership .site-eyebrow { color:#ff555a; }
.site-membership-heading { max-width:560px; }
.site-membership-content { display:grid; grid-template-columns:1fr 1fr; align-items:start; gap:28px; }
.site-membership-lead { margin:3px 0; color:#c3c4c6; font-size:.92rem; line-height:1.7; }
.site-membership-features { grid-column:2; grid-row:1; margin:0; padding:0; list-style:none; }
.site-membership-features li { padding:0 0 18px; margin-bottom:18px; display:flex; gap:14px; border-bottom:1px solid rgba(255,255,255,.13); }
.site-membership-features li > span { color:#ff555a; font-size:.66rem; font-weight:800; }
.site-membership-features li div { display:flex; flex-direction:column; gap:5px; }
.site-membership-features strong { color:#fff; font-size:.84rem; }
.site-membership-features small { color:#b4b5b7; font-size:.74rem; line-height:1.5; }
.site-access { width:min(1320px,calc(100% - 64px)); margin:auto; padding:112px 0; display:grid; grid-template-columns:1fr .75fr; align-items:center; gap:10%; border-bottom:1px solid var(--site-line); }
.site-access-copy > p:not(.site-eyebrow) { max-width:410px; margin:20px 0 22px; color:var(--site-muted); font-size:.93rem; line-height:1.7; }
.site-auth-card { width:100%; max-width:460px; padding:30px; background:var(--site-panel); border:1px solid var(--site-line); scroll-margin-top:110px; }
.site-auth-heading { display:flex; align-items:center; gap:14px; margin-bottom:24px; }
.site-auth-heading img { width:52px; height:52px; object-fit:cover; }
.site-auth-heading div { display:flex; flex-direction:column; gap:4px; }
.site-auth-heading strong { color:var(--site-text); font-family:var(--font-head); font-size:1.08rem; }
.site-auth-heading span { color:var(--site-muted); font-size:.75rem; }
#auth-page .btn-google { width:100%; min-height:46px; border:1px solid var(--site-line); border-radius:0; background:transparent; color:var(--site-text); font-size:.82rem; font-weight:650; cursor:pointer; }
#auth-page .btn-google:hover { border-color:var(--site-text); }
#auth-page .google-icon { width:17px; height:17px; margin-right:10px; vertical-align:middle; }
.site-auth-divider { margin:20px 0; display:flex; align-items:center; gap:12px; color:var(--site-muted); font-size:.69rem; }
.site-auth-divider::before, .site-auth-divider::after { content:""; height:1px; flex:1; background:var(--site-line); }
.site-auth-form { display:grid; gap:16px; }
.site-auth-switch { margin-top:20px; padding-top:16px; display:flex; align-items:center; justify-content:center; gap:6px; border-top:1px solid var(--site-line); color:var(--site-muted); font-size:.77rem; }
.site-auth-switch button { padding:4px; border:0; background:none; color:var(--site-red); font-size:inherit; font-weight:750; cursor:pointer; }
.site-auth-switch button:hover { color:var(--site-red-dark); text-decoration:underline; }
#auth-page .form-label { color:var(--site-muted); font-size:.73rem; }
#auth-page .form-input { min-height:46px; background:var(--site-bg); color:var(--site-text); border:1px solid var(--site-line); border-radius:0; }
#auth-page .form-input:focus { outline:2px solid var(--site-red); outline-offset:1px; border-color:var(--site-red); box-shadow:none; }
#auth-page .site-submit { width:100%; margin-top:2px; }
/* ============================================================
   SECCIÓN: UBICACIÓN & CONTACTO
   ============================================================ */
.site-location {
  padding-top: clamp(64px, 8vw, 108px);
  padding-bottom: clamp(64px, 8vw, 108px);
}
.site-location-header {
  margin-bottom: clamp(34px, 5vw, 54px);
}
.site-location-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.35fr);
  gap: clamp(24px, 3.5vw, 48px);
  align-items: stretch;
}
.location-info-card {
  position: relative;
  background: var(--site-panel);
  border: 1px solid var(--site-line);
  border-top: 2px solid var(--site-red);
  padding: clamp(28px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.location-info-card:hover {
  border-color: rgba(232, 36, 42, 0.35);
  border-top-color: var(--site-red);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34), 0 0 24px rgba(232, 36, 42, 0.08);
}
[data-theme="light"] #auth-page .location-info-card {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
}
.location-detail-block {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.location-detail-block + .location-detail-block {
  padding-top: 4px;
  border-top: 1px solid var(--site-line);
}
.location-icon-bubble {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 36, 42, 0.12);
  color: var(--site-red);
  border: 1px solid rgba(232, 36, 42, 0.25);
  border-radius: 4px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.location-detail-block:hover .location-icon-bubble {
  background: rgba(232, 36, 42, 0.2);
  transform: translateY(-2px);
}
.location-block-content {
  flex: 1;
  min-width: 0;
}
.location-block-content h3 {
  margin: 0 0 6px 0;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--site-text);
}
.location-address-text {
  margin: 0 0 8px 0;
  color: var(--site-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.location-gps-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--site-line);
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--site-text);
  letter-spacing: 0.04em;
}
[data-theme="light"] #auth-page .location-gps-badge {
  background: rgba(0, 0, 0, 0.04);
}
.location-hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
}
.location-hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--site-muted);
}
.location-hours-list li strong {
  color: var(--site-text);
  font-weight: 700;
}
.location-phone-link {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--site-red) !important;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, color 0.15s ease;
}
.location-phone-link:hover {
  color: var(--site-red-dark) !important;
  transform: translateX(3px);
}
.location-support-email {
  margin: 4px 0 0 0;
  color: var(--site-muted);
  font-size: 0.82rem;
}
.location-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--site-line);
}
.location-btn-maps {
  flex: 1;
  min-width: 190px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.location-btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  min-height: 48px;
  background: #25D366;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: filter 0.18s ease, transform 0.18s ease;
}
.location-btn-wa:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.location-map-wrap {
  position: relative;
  min-height: 480px;
  background: var(--site-panel);
  border: 1px solid var(--site-line);
  border-top: 2px solid var(--site-red);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.location-map-wrap::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  pointer-events: none;
  border-top: 2px solid rgba(232, 36, 42, 0.6);
  border-right: 2px solid rgba(232, 36, 42, 0.6);
}
.location-map-wrap::after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: 10px;
  left: 10px;
  width: 38px;
  height: 38px;
  pointer-events: none;
  border-bottom: 2px solid rgba(232, 36, 42, 0.6);
  border-left: 2px solid rgba(232, 36, 42, 0.6);
}
.location-map-wrap:hover {
  border-color: rgba(232, 36, 42, 0.35);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34), 0 0 24px rgba(232, 36, 42, 0.08);
}
.location-map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 480px;
  display: block;
  filter: grayscale(0.82) contrast(1.05) brightness(0.92);
  transition: filter 0.35s ease;
}
.location-map-wrap:hover iframe {
  filter: grayscale(0) contrast(1.04) brightness(1);
}
.location-map-chip {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: rgba(9, 10, 12, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 2px solid var(--site-red);
  color: #fff;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.location-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--site-red);
  box-shadow: 0 0 0 0 rgba(232, 36, 42, 0.7);
  animation: locationPulse 2s infinite;
}
@keyframes locationPulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 36, 42, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(232, 36, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 36, 42, 0); }
}
.location-map-overlay-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(9, 10, 12, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff !important;
  padding: 9px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.location-map-overlay-btn svg {
  transition: transform 0.2s ease;
}
.location-map-overlay-btn:hover {
  background: var(--site-red);
  border-color: var(--site-red);
  color: #fff !important;
  transform: translateY(-2px);
}
.location-map-overlay-btn:hover svg {
  transform: translate(2px, -2px);
}

/* ============================================================
   FOOTER MINIMALISTA CON MÁS HEIGHT
   ============================================================ */
.site-footer {
  padding: clamp(84px, 11vw, 130px) max(32px, calc((100vw - 1320px)/2)) 44px;
  background: #050607;
  color: #f7f7f5;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--site-red) 0%, rgba(232, 36, 42, 0.25) 42%, transparent 78%);
  pointer-events: none;
}
.site-footer::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -12%;
  width: 46%;
  height: 70%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(232, 36, 42, 0.09), transparent 65%);
}
.site-footer > * {
  position: relative;
  z-index: 1;
}
[data-theme="light"] #auth-page .site-footer {
  background: #ebebe6;
  color: #141516;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.site-footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(52px, 7vw, 84px);
}
.site-footer-col {
  display: flex;
  flex-direction: column;
}
.site-footer-brand-col {
  max-width: 380px;
}
.site-footer-tagline {
  margin: 18px 0 20px 0;
  color: #9da0a5;
  font-size: 0.84rem;
  line-height: 1.7;
}
[data-theme="light"] #auth-page .site-footer-tagline {
  color: #5d6063;
}
.site-footer-coaches {
  margin-top: auto;
  padding-top: 14px;
}
.footer-coaches-label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--site-red);
  margin-bottom: 8px;
}
.footer-coaches-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-coach-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: #c7c9cc !important;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}
[data-theme="light"] #auth-page .footer-coach-tag {
  color: #3f4245 !important;
}
.footer-coach-tag:hover {
  color: var(--site-red) !important;
  transform: translateX(3px);
}

.site-footer-col h2 {
  margin: 0 0 22px 0;
  padding-bottom: 12px;
  position: relative;
  color: var(--site-text);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-footer-col h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2px;
  background: var(--site-red);
}
.site-footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-footer-nav-list a {
  position: relative;
  padding-left: 14px;
  color: #a4a5a7 !important;
  font-size: 0.84rem;
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.2s ease;
  cursor: pointer;
}
.site-footer-nav-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1.5px;
  transform: translateY(-50%);
  background: var(--site-red);
  opacity: 0;
  transition: opacity 0.18s ease, width 0.18s ease;
}
[data-theme="light"] #auth-page .site-footer-nav-list a {
  color: #55585b !important;
}
.site-footer-nav-list a:hover {
  color: var(--site-red) !important;
  padding-left: 18px;
}
.site-footer-nav-list a:hover::before {
  opacity: 1;
  width: 10px;
}

.footer-address {
  margin: 0 0 10px 0;
  color: #c7c9cc;
  font-size: 0.84rem;
  line-height: 1.7;
}
[data-theme="light"] #auth-page .footer-address {
  color: #3f4245;
}
.footer-address strong {
  color: var(--site-text);
  font-size: 0.88rem;
}
.footer-coords {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 8px;
  border: 1px solid var(--site-line);
  background: rgba(255, 255, 255, 0.04);
  font-family: monospace;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: #9da0a5;
}
[data-theme="light"] #auth-page .footer-coords {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.04);
  color: #6a6d70;
}
.footer-map-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--site-red) !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 16px;
  transition: color 0.15s ease, gap 0.2s ease;
}
.footer-map-action svg {
  transition: transform 0.2s ease;
}
.footer-map-action:hover {
  color: var(--site-red-dark) !important;
}
.footer-map-action:hover svg {
  transform: translate(2px, -2px);
}
.footer-schedule-preview {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  line-height: 1.6;
  color: #888b8f;
}
[data-theme="light"] #auth-page .footer-schedule-preview {
  border-top-color: rgba(0, 0, 0, 0.08);
  color: #6a6d70;
}
.footer-schedule-preview strong {
  color: var(--site-text);
}

.footer-phone-big {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--site-text) !important;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}
.footer-phone-big:hover {
  color: var(--site-red) !important;
}
.site-footer-col p {
  margin: 0 0 10px 0;
}
.site-footer-col a:not(.footer-phone-big):not(.footer-whatsapp-pill):not(.footer-map-action) {
  color: #9da0a5;
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.15s ease;
}
[data-theme="light"] #auth-page .site-footer-col a:not(.footer-phone-big):not(.footer-whatsapp-pill):not(.footer-map-action) {
  color: #55585b;
}
.site-footer-col a:hover {
  color: var(--site-red) !important;
}

.footer-whatsapp-pill {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(37, 211, 102, 0.14);
  color: #25D366 !important;
  border: 1px solid rgba(37, 211, 102, 0.35);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.15s ease, transform 0.15s ease;
}
.footer-whatsapp-pill .footer-wa-arrow {
  transition: transform 0.2s ease;
}
.footer-whatsapp-pill:hover .footer-wa-arrow {
  transform: translate(2px, -2px);
}
.footer-whatsapp-pill:hover {
  background: rgba(37, 211, 102, 0.24);
  transform: translateY(-1px);
}

.site-footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: #727579;
  font-size: 0.76rem;
}
[data-theme="light"] #auth-page .site-footer-bottom {
  border-top-color: rgba(0, 0, 0, 0.08);
  color: #7e8286;
}
.site-footer-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}
.site-footer-bottom a svg {
  transition: transform 0.2s ease;
}
.site-footer-bottom a:hover {
  color: var(--site-red);
}
.site-footer-bottom a:hover svg {
  transform: translateY(-2px);
}
#auth-page .site-reveal { opacity:0; transform:translateY(34px) scale(.985); transition:opacity .72s cubic-bezier(.2,.75,.25,1),transform .72s cubic-bezier(.2,.75,.25,1); }
.landing-motion-ready #auth-page .site-reveal:not(.is-visible) { opacity:0; transform:translateY(34px) scale(.985); }
#auth-page .site-reveal.is-visible { opacity:1; transform:translateY(0) scale(1); }
.site-nav a:focus-visible, .site-nav button:focus-visible, .site-nav summary:focus-visible, .site-main a:focus-visible, .site-main button:focus-visible, .site-footer a:focus-visible { outline:2px solid var(--site-red); outline-offset:4px; }
.plan-publication-fields { margin:0; padding:14px; display:grid; gap:10px; border:1px solid var(--border); border-radius:var(--radius-sm); }
.plan-publication-fields legend { padding:0 6px; color:var(--text-secondary); font-size:.75rem; font-weight:700; }
.plan-publication-fields label { display:flex; align-items:center; gap:9px; color:var(--text-secondary); font-size:.82rem; cursor:pointer; }
.plan-publication-fields input { width:16px; height:16px; accent-color:var(--red); }
.plan-admin-status { margin-top:12px; display:flex; flex-wrap:wrap; gap:6px; }
.plan-admin-status span { padding:3px 8px; border:1px solid var(--border); color:var(--text-secondary); font-size:.63rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.plan-admin-status .is-on { border-color:rgba(239,68,68,.38); color:var(--red-light); }
.progress-upload-card { margin-bottom:24px; padding:22px; }
.progress-upload-form { width:min(100%,720px); display:grid; gap:16px; }
.progress-upload-title { color:var(--text-primary); font-family:var(--font-head); font-size:1.02rem; font-weight:800; }
.progress-upload-form .form-group { margin:0; }
.progress-upload-form input[type="file"] { padding:9px; }
.progress-upload-status:empty { display:none; }
.progress-upload-status { color:var(--text-secondary); font-size:.82rem; }
.progress-gallery-heading { margin:28px 0 14px; display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.progress-gallery { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr)); gap:16px; }
.progress-photo-card { min-width:0; margin:0; overflow:hidden; border:1px solid var(--border); border-radius:var(--radius); background:var(--bg-card); }
.progress-photo-card img { width:100%; aspect-ratio:4/5; display:block; object-fit:cover; background:var(--bg-card-elevated); }
.progress-photo-meta { padding:12px; display:grid; gap:5px; }
.progress-photo-meta strong { color:var(--text-primary); font-size:.82rem; overflow-wrap:anywhere; }
.progress-photo-meta time { color:var(--text-muted); font-size:.71rem; }
.progress-empty { grid-column:1/-1; padding:28px; border:1px dashed var(--border); border-radius:var(--radius); color:var(--text-muted); font-size:.88rem; text-align:center; }
.pass-chip.pass-chip-inactive { color:var(--text-muted); }
.pass-chip.pass-chip-inactive .pass-chip-dot { background:var(--text-muted); box-shadow:none; }
@media (max-width:1050px) {
  .site-nav-inner,.site-section,.site-access { width:min(100% - 40px,900px); }
  .site-nav-links { gap:24px; }
  .site-nav-actions { gap:12px; }
  .site-login-link { display:none; }
  .site-hero { min-height:660px; padding-inline:20px; gap:2%; }
  .site-hero h1 { font-size:clamp(3.5rem,7vw,6rem); }
  .site-hero-art { height:560px; min-height:460px; }
  .site-discipline { grid-template-columns:80px 1fr; gap:12px; }
  .site-discipline img { width:80px; height:90px; }
  .site-membership { padding:80px 32px; }
  .site-results-grid { grid-template-columns:1fr; }
  .site-results-heading { grid-template-columns:1fr; gap:24px; }
}
@media (max-width:900px) {
  .site-nav-links,.site-login-link,.site-nav-actions > .site-button { display:none; }
  .site-mobile-menu { display:block; }
  .site-nav-actions { gap:8px; }
  #auth-page .site-theme-toggle { width:48px; height:48px; }
  #auth-page .site-theme-toggle svg { width:21px; height:21px; }
  #auth-page .form-input { min-height:48px; font-size:1rem; }
  #auth-page .form-label { font-size:.82rem; }
  .site-hero-actions > * { min-height:48px; }
  .site-text-link { padding-block:12px; }
  .site-hero { min-height:0; padding:48px 28px 88px; grid-template-columns:1fr; grid-template-rows:auto auto; gap:20px; }
  .site-hero-art { grid-row:1; width:min(100%,620px); height:clamp(270px,42vw,420px); min-height:250px; margin:0 auto; }
  .site-hero-copy { grid-row:2; width:min(100%,680px); padding:0; }
  .site-hero h1 { font-size:clamp(3.2rem,9vw,5.2rem); }
  .site-scroll-cue { bottom:24px; }
  .site-eyebrow { font-size:.72rem; letter-spacing:.12em; }
  .site-hero-note { font-size:.76rem; }
  .site-discipline div > span { font-size:.68rem; }
  .site-discipline p,.site-discipline-footnote { font-size:.78rem; }
  .site-footer-main h2 { font-size:.76rem; }
}
@media (max-width:760px) {
  .site-nav-inner { width:calc(100% - 32px); min-height:70px; gap:10px; }
  .site-nav-actions { margin-left:auto; }
  #auth-page .site-theme-toggle { font-size:0; }
  .site-hero { width:100%; min-height:0; padding:38px 20px 86px; grid-template-columns:1fr; grid-template-rows:auto auto; gap:18px; }
  .site-hero-copy { width:min(100%,640px); grid-row:2; padding:0; }
  .site-eyebrow { margin-bottom:17px; font-size:.72rem; }
  .site-hero h1 { max-width:560px; font-size:clamp(3.1rem,13vw,5.2rem); }
  .site-hero-lead { margin-top:20px; font-size:.94rem; }
  .site-hero-actions { margin-top:24px; gap:18px; }
  .site-hero-art { width:min(100%,590px); height:clamp(230px,60vw,330px); min-height:230px; grid-row:1; margin:0 auto; }
  .site-hero-photo-main { top:0; right:12%; width:52%; height:100%; }
  .site-hero-photo-secondary { left:12%; bottom:0; width:36%; height:70%; }
  .site-hero-art-label { top:3%; }
  .site-hero-art-index { bottom:-3px; }
  .site-scroll-cue { bottom:24px; left:20px; }
  .site-section,.site-access { width:calc(100% - 32px); padding:76px 0; }
  .site-disciplines { grid-template-columns:1fr; gap:34px; }
  .site-section h2,.site-membership h2,.site-access h2 { font-size:clamp(2.5rem,10vw,4rem); }
  .site-discipline-list { gap:22px 14px; }
  .site-discipline { grid-template-columns:68px 1fr; gap:10px; }
  .site-discipline img { width:68px; height:82px; }
  .site-discipline h3 { font-size:.92rem; }
  .site-discipline p,.site-discipline-footnote { font-size:.78rem; }
  .results-kpi-bar { grid-template-columns:repeat(2,1fr); gap:14px; padding:18px; }
  .results-kpi-item { border-right:none; padding-right:0; }
  .result-card { grid-template-columns:1fr; }
  .result-card-media { min-height:220px; height:220px; }
  .results-motivation-banner { flex-direction:column; align-items:flex-start; padding:24px 20px; gap:20px; }
  .site-section-heading { display:block; margin-bottom:28px; }
  .site-section-heading > p { margin-top:14px; }
  .site-pricing { padding-top:74px; }
  .site-plan-card { min-height:270px; padding:23px; }
  .site-membership { padding:74px 20px; grid-template-columns:1fr; gap:30px; }
  .site-membership-content { grid-template-columns:1fr; }
  .site-membership-features { grid-column:1; grid-row:auto; margin-top:10px; }
  .site-access { grid-template-columns:1fr; gap:34px; }
  .site-auth-card { max-width:none; padding:24px; }
  .progress-upload-card { padding:18px; }
  .site-location-grid { grid-template-columns:1fr; }
  .location-map-wrap { min-height:380px; }
  .site-footer { padding:64px 20px 32px; }
  .site-footer-main { grid-template-columns:1fr 1fr; gap:36px 24px; }
}
@media (max-width:420px) {
  .site-nav-inner { width:calc(100% - 24px); gap:8px; }
  .site-nav-actions { gap:6px; }
  .site-brand-copy strong { font-size:.88rem; }
  .site-brand-copy small { font-size:.58rem; }
  .site-brand img { width:38px; height:38px; }
  .site-hero { padding-inline:16px; }
  .site-hero h1 { font-size:clamp(2.35rem,11vw,4rem); letter-spacing:-.07em; }
  .site-hero-art { height:240px; min-height:230px; }
  .site-hero-photo-main { right:9%; width:58%; }
  .site-hero-photo-secondary { left:9%; width:41%; height:68%; }
  .site-hero-art-label { right:0; font-size:.49rem; }
  .site-scroll-cue { left:16px; }
  .site-discipline-list { grid-template-columns:1fr; }
  .site-discipline { grid-template-columns:86px 1fr; }
  .site-discipline img { width:86px; height:88px; }
  .site-footer-main { grid-template-columns:1fr; gap:32px; }
  .site-footer-bottom { flex-direction:column; align-items:flex-start; gap:14px; }
}

/* Responsive app shell: the menu stays available as the CSS viewport narrows at zoom. */
#app-shell, #main-content, #main-content .view { min-width:0; }
#main-content { width:calc(100% - var(--sidebar-w)); transition:margin-left .22s ease,width .22s ease; }
.app-mobile-topbar { position:sticky; top:0; z-index:120; display:flex; align-items:center; gap:12px; min-height:72px; margin:-36px -40px 26px; padding:8px 40px; border-bottom:1px solid var(--border); background:var(--bg-body); backdrop-filter:blur(14px); }
.app-menu-toggle { width:46px; height:46px; flex:0 0 46px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; border:1px solid var(--border-strong); border-radius:12px; background:var(--bg-card); color:var(--text-primary); cursor:pointer; transition:background .18s ease,border-color .18s ease,transform .18s ease; }
.app-menu-toggle:hover { background:var(--bg-card-hover); border-color:var(--red); }
.app-menu-toggle span { width:22px; height:2.5px; border-radius:2px; background:currentColor; transition:transform .2s ease,opacity .2s ease; }
@media (min-width:901px) {
  #app-shell:not(.sidebar-collapsed) .app-menu-toggle span:first-child { transform:translateY(8.5px) rotate(45deg); }
  #app-shell:not(.sidebar-collapsed) .app-menu-toggle span:nth-child(2) { opacity:0; }
  #app-shell:not(.sidebar-collapsed) .app-menu-toggle span:last-child { transform:translateY(-8.5px) rotate(-45deg); }
}
.app-mobile-brand { min-width:0; display:flex; align-items:center; gap:10px; }
.app-mobile-brand img { width:34px; height:34px; flex:0 0 34px; display:block; object-fit:contain; border-radius:8px; }
.app-mobile-brand div { min-width:0; display:flex; flex-direction:column; gap:2px; }
.app-mobile-brand strong { max-width:min(52vw,560px); overflow:hidden; color:var(--text-primary); font-family:var(--font-head); font-size:1.05rem; line-height:1.2; text-overflow:ellipsis; white-space:nowrap; }
.app-mobile-brand small { color:var(--text-muted); font-size:.78rem; line-height:1.2; }
.sidebar-backdrop { display:none; }
#app-shell.sidebar-collapsed #sidebar { transform:translateX(-100%); }
#app-shell.sidebar-collapsed #main-content { width:100%; margin-left:0; }
.sidebar-brand-row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.sidebar-close-button { display:none; width:40px; height:40px; flex:0 0 40px; align-items:center; justify-content:center; border:1px solid var(--border-strong); border-radius:10px; background:var(--bg-card); color:var(--text-secondary); cursor:pointer; }
.sidebar-close-button:hover { border-color:var(--red); color:var(--red-light); }
@media (max-width:900px) {
  #app-shell { display:block; width:100%; overflow-x:hidden; overflow-x:clip; }
  #sidebar { width:min(300px,88vw); max-height:100vh; max-height:100dvh; overflow-y:auto; overscroll-behavior:contain; z-index:220; }
  #sidebar.open { transform:translateX(0); }
  #main-content { width:100%; margin-left:0; min-width:0; padding:0 clamp(14px,4vw,24px) calc(48px + env(safe-area-inset-bottom)); }
  .app-mobile-topbar { position:sticky; top:0; z-index:120; display:flex; align-items:center; gap:12px; min-height:68px; margin:0 0 20px; padding:calc(8px + env(safe-area-inset-top)) 10px 8px; border-bottom:1px solid var(--border); background:var(--bg-body); backdrop-filter:blur(14px); }
  .app-menu-toggle { width:48px; height:48px; flex:0 0 48px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; border:1px solid var(--border-strong); border-radius:12px; background:var(--bg-card); color:var(--text-primary); cursor:pointer; }
  .app-menu-toggle span { width:22px; height:2.5px; border-radius:2px; background:currentColor; transition:transform .2s ease,opacity .2s ease; }
  #app-shell.sidebar-open .app-menu-toggle span:first-child { transform:translateY(8.5px) rotate(45deg); }
  #app-shell.sidebar-open .app-menu-toggle span:nth-child(2) { opacity:0; }
  #app-shell.sidebar-open .app-menu-toggle span:last-child { transform:translateY(-8.5px) rotate(-45deg); }
  .app-mobile-brand { min-width:0; display:flex; align-items:center; gap:10px; }
  .app-mobile-brand img { width:34px; height:34px; flex:0 0 34px; object-fit:cover; border-radius:8px; }
  .app-mobile-brand div { min-width:0; display:flex; flex-direction:column; gap:2px; }
  .app-mobile-brand strong { max-width:calc(100vw - 150px); overflow:hidden; color:var(--text-primary); font-family:var(--font-head); font-size:clamp(.95rem,3vw,1.1rem); line-height:1.2; text-overflow:ellipsis; white-space:nowrap; }
  .app-mobile-brand small { color:var(--text-muted); font-size:.78rem; line-height:1.2; }
  .sidebar-backdrop { position:fixed; inset:0; z-index:180; background:rgba(0,0,0,.62); backdrop-filter:blur(2px); }
  #app-shell.sidebar-open .sidebar-backdrop { display:block; }
  body.sidebar-menu-open { overflow:hidden; }
  .sidebar-nav { padding:14px 12px; }
  .sidebar-close-button { display:flex; }
  .nav-section-label { font-size:.74rem; }
  .nav-item { min-height:48px; padding:11px 14px; gap:12px; font-size:.95rem; }
  .nav-item .nav-icon { width:24px; height:24px; }
  .nav-item .nav-icon svg { width:21px; height:21px; }
  .sidebar-footer { padding-bottom:calc(14px + env(safe-area-inset-bottom)); }
  .page-title { font-size:clamp(1.45rem,5vw,1.85rem); line-height:1.16; }
  .page-subtitle { font-size:.94rem; line-height:1.5; }
  .page-header { gap:12px; margin-bottom:22px; }
  .page-actions { width:100%; }
  .modal-backdrop { padding:12px; }
  .modal { max-height:90vh; max-height:90dvh; }
  .modal-header { padding:18px 18px 12px; }
  .modal-body { padding:18px; }
  .btn-icon { min-width:40px; min-height:40px; }
  .stat-icon svg,.kpi-icon-wrap svg { width:20px; height:20px; }
  .member-pass-card { padding:clamp(16px,5vw,24px); }
  .pass-footer { flex-wrap:wrap; gap:8px 16px; line-height:1.45; }
  .pass-footer > span { min-width:0; overflow-wrap:anywhere; }
  .chart-wrap { height:clamp(180px,55vw,240px); }
}
@media (max-width:520px) {
  .app-mobile-topbar { gap:9px; min-height:64px; margin-bottom:16px; }
  .app-mobile-brand { gap:8px; }
  .app-mobile-brand img { width:30px; height:30px; flex-basis:30px; }
  .app-mobile-brand strong { max-width:calc(100vw - 132px); font-size:.94rem; }
  .app-mobile-brand small { font-size:.76rem; }
  #main-content .card,.chart-card,.stat-card { padding:16px; }
  .empty-state { padding:42px 14px; }
  .empty-icon { width:58px; height:58px; }
  .empty-icon svg { width:28px; height:28px; }
  .member-pass-card { border-radius:16px; }
  .pass-header { align-items:flex-start; gap:10px; flex-wrap:wrap; }
  .pass-logo { font-size:1rem; flex-wrap:wrap; }
  .pass-body { grid-template-columns:minmax(0,1fr) auto; gap:12px; }
  .pass-qr-frame { width:clamp(88px,29vw,116px); height:auto; aspect-ratio:1; padding:8px; }
  .pass-name { font-size:1.08rem; }
  .pass-discipline,.pass-plan-pill { font-size:.82rem; }
  .stat-label { font-size:.77rem; }
  .stat-value { overflow-wrap:anywhere; font-size:clamp(1.4rem,6vw,2.2rem); }
  .stat-delta,.text-sm { font-size:.82rem; }
  #app-shell .text-xs { font-size:.78rem; }
  .table-wrap { margin-inline:-4px; }
  .table-wrap th,.table-wrap td { padding:11px 12px; }
  .modal-title { font-size:1.1rem; }
  #app-shell .form-label { font-size:.84rem; }
  #app-shell input:not([type="checkbox"]),#app-shell select,#app-shell textarea { min-height:44px; font-size:16px; }
  #app-shell textarea { min-height:96px; }
  #app-shell .btn,#app-shell .btn-sm,#app-shell .btn-xs { min-height:42px; }
  #app-shell .btn-icon { min-width:42px; min-height:42px; }
  .toast { min-width:0; width:min(100%,360px); font-size:.88rem; }
  #toast-container { left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom)); align-items:stretch; }
}
@media (max-width:360px) {
  .site-brand { gap:7px; }
  .site-brand img { width:34px; height:34px; }
  .site-brand-copy strong { font-size:.8rem; }
  .site-brand-copy small { font-size:.55rem; }
  .site-mobile-menu summary,#auth-page .site-theme-toggle { width:44px; height:44px; }
  .site-nav-actions { gap:5px; }
  .pass-body { grid-template-columns:1fr; }
  .pass-qr-frame { width:116px; }
  .pass-footer { font-size:.68rem; }
  .app-mobile-brand strong { max-width:calc(100vw - 124px); }
}

/* ============================================================
   BOTÓN FLOTANTE DE WHATSAPP (LANDING)
   ============================================================ */
.site-whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
}
.site-whatsapp-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.42), 0 4px 12px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 2;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
}
.site-whatsapp-icon svg {
  width: 31px;
  height: 31px;
}
.site-whatsapp-pulse {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.6;
  z-index: 1;
  animation: waFloatPulse 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}
@keyframes waFloatPulse {
  0% {
    transform: scale(1);
    opacity: 0.65;
  }
  70% {
    transform: scale(1.45);
    opacity: 0;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}
.site-whatsapp-label {
  background: rgba(12, 14, 18, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
[data-theme="light"] #auth-page .site-whatsapp-label {
  background: rgba(255, 255, 255, 0.96);
  color: #141516 !important;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.site-whatsapp-float:hover .site-whatsapp-label {
  opacity: 1;
  transform: translateX(0);
}
.site-whatsapp-float:hover {
  filter: brightness(1.06);
}
.site-whatsapp-float:hover .site-whatsapp-icon {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.52), 0 6px 16px rgba(0, 0, 0, 0.35);
}
.site-whatsapp-float:active .site-whatsapp-icon {
  transform: scale(0.95);
}

@media (max-width: 640px) {
  .site-whatsapp-float {
    right: calc(16px + env(safe-area-inset-right));
    bottom: calc(18px + env(safe-area-inset-bottom));
  }
  .site-whatsapp-icon {
    width: 52px;
    height: 52px;
  }
  .site-whatsapp-icon svg {
    width: 28px;
    height: 28px;
  }
  .site-whatsapp-pulse {
    width: 52px;
    height: 52px;
  }
  .site-whatsapp-label {
    display: none;
  }
}

@media (prefers-reduced-motion:reduce) {
  #auth-page *, #auth-page *::before, #auth-page *::after { scroll-behavior:auto!important; transition-duration:.01ms!important; animation-duration:.01ms!important; animation-iteration-count:1!important; }
}
