:root{
  --bg:#f3f6f4;
  --surface:#ffffff;
  --surface-2:#f8fbf9;
  --text:#18222a;
  --muted:#6a7884;
  --line:#e5ece8;
  --line2:#92b19f;
  --primary:#0f766e;
  --primary-2:#0b5f58;
  --secondary:#111827;
  --secondary-2:#1f2937;
  --soft-green:#d8f3eb;
  --soft-blue:#e9f2ff;
  --soft-purple:#f0eaff;
  --danger:#dc2626;
  --success:#15803d;
  --shadow:0 20px 40px rgba(16,24,40,.06);
  --radius:24px;
  --radius-sm:16px;
}

*{
  box-sizing:border-box;
}

html, body{
  margin:0;
  padding:0;
  font-family:Inter, Arial, Helvetica, sans-serif;
  color:var(--text);
  background:var(--bg);
}

a{
  color:inherit;
  text-decoration:none;
}

img{
  display:block;
  max-width:100%;
}

button,
input,
select,
textarea{
  font:inherit;
}

.app-body{
  min-height:100vh;
}

.app-shell{
  display:grid;
  grid-template-columns:280px 1fr;
  min-height:100vh;
}

.sidebar{
  background:linear-gradient(180deg, #0d1b1b 0%, #132727 100%);
  color:#fff;
  padding:28px 22px;
  display:flex;
  flex-direction:column;
  gap:24px;
  position:sticky;
  top:0;
  height:100vh;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.brand-mark{
  width:48px;
  height:48px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  background:rgba(255,255,255,.12);
  color:#fff;
}

.brand h2{
  margin:0;
  font-size:18px;
}

.brand p{
  margin:4px 0 0;
  color:rgba(255,255,255,.62);
  font-size:13px;
}

.nav-menu{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.nav-link{
  display:flex;
  align-items:center;
  min-height:46px;
  padding:0 14px;
  border-radius:14px;
  color:rgba(255,255,255,.84);
  transition:.2s ease;
}

.nav-link:hover,
.nav-link.active{
  background:rgba(255,255,255,.08);
  color:#fff;
}

.sidebar-footer{
  margin-top:auto;
  display:grid;
  gap:14px;
}

.mini-user{
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,.06);
  display:grid;
  gap:4px;
}

.mini-user span{
  color:rgba(255,255,255,.62);
  font-size:13px;
}

.main-panel{
  padding:28px;
  display:grid;
  gap:22px;
}

.page-header,
.hero-card,
.profile-hero,
.section-card,
.stat-card,
.student-card,
.error-card{
  background:var(--surface);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

.hero-card,
.profile-hero,
.page-header,
.section-card,
.error-card{
  border-radius:var(--radius);
}

.page-header{
  padding:28px;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
}

.hero-card{
  padding:28px;
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-end;
}

.hero-card h1,
.page-header h1,
.profile-hero h1,
.error-card h1{
  margin:8px 0 4px;
  font-size:32px;
  line-height:1.1;
}

.hero-text,
.page-header p,
.profile-hero p,
.section-header p,
.student-card p,
.table-user p,
.empty-state p,
.error-card p{
  margin:10px 0 0;
  color:var(--muted);
  line-height:1.6;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 12px;
  border-radius:999px;
  background:var(--soft-green);
  color:var(--primary);
  font-size:12px;
  font-weight:700;
  letter-spacing:.03em;
  text-transform:uppercase;
}

.hero-actions,
.actions-row,
.toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}

.stats-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:18px;
}

.stat-card{
  border-radius:22px;
  padding:22px;
  display:grid;
  gap:10px;
}

.stat-card span{
  color:var(--muted);
  font-size:14px;
}

.stat-card strong{
  font-size:34px;
  line-height:1;
}

.section-card{
  padding:24px;
}

.section-header{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  margin-bottom:18px;
}

.section-header h2{
  margin:0;
  font-size:22px;
}

.student-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
}

.student-card{
  border-radius:20px;
  padding:16px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:14px;
  align-items:center;
}

.student-card strong{
  display:block;
  margin-bottom:4px;
}

.student-card p{
  margin:0;
  font-size:14px;
}

.avatar-circle,
.avatar-xl{
  background:linear-gradient(180deg, #d7efe8 0%, #c5ebe0 100%);
  color:#0b5f58;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.avatar-circle{
  width:52px;
  height:52px;
  border-radius:18px;
}

.avatar-circle.small{
  width:42px;
  height:42px;
  border-radius:14px;
}

.avatar-xl{
  width:96px;
  height:96px;
  border-radius:28px;
  font-size:28px;
}

.avatar-circle img,
.avatar-xl img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.status-pill,
.meta-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
}

.status-pill.success{
  background:#dcfce7;
  color:#166534;
}

.status-pill.muted{
  background:#eef2f7;
  color:#475569;
}

.meta-pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}

.meta-pill{
  background:var(--surface-2);
  color:var(--secondary-2);
}

.profile-hero{
  padding:28px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:22px;
}

.profile-main{
  display:flex;
  gap:18px;
  align-items:center;
}

.comparison-grid,
.charts-grid,
.photo-grid{
  display:grid;
  gap:18px;
}

.comparison-grid{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

.mini-card{
  border:1px solid var(--line);
  background:var(--surface-2);
  border-radius:20px;
  padding:18px;
  display:grid;
  gap:10px;
}

.mini-card span{
  color:var(--muted);
  font-size:14px;
}

.mini-card strong{
  font-size:28px;
}

.charts-grid{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

canvas{
  width:100% !important;
  height:320px !important;
}

.photo-grid{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

.photo-card{
  margin:0;
  border-radius:22px;
  overflow:hidden;
  background:var(--surface-2);
  border:1px solid var(--line);
}

.photo-card img{
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
}

.photo-card figcaption{
  padding:14px 16px;
  color:var(--muted);
  font-size:14px;
}

.table-wrap{
  overflow:auto;
}

.data-table{
  width:100%;
  border-collapse:collapse;
}

.data-table th,
.data-table td{
  padding:14px 10px;
  border-bottom:1px solid var(--line);
  text-align:left;
  white-space:nowrap;
}

.data-table th{
  color:var(--muted);
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.02em;
}

.table-user{
  display:flex;
  align-items:center;
  gap:12px;
}

.table-user p{
  margin:4px 0 0;
  font-size:13px;
}

.text-link{
  color:var(--primary);
  font-weight:700;
}

.stack-form{
  display:grid;
  gap:18px;
}

.form-section{
  border:1px solid var(--line);
  background:var(--surface-2);
  border-radius:22px;
  padding:20px;
}

.form-section h3{
  margin:0 0 16px;
  font-size:18px;
}

.form-grid{
  display:grid;
  gap:16px;
}

.form-grid.one{ grid-template-columns:1fr; }
.form-grid.two{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
.form-grid.three{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
.form-grid.four{ grid-template-columns:repeat(4, minmax(0, 1fr)); }

.form-field{
  display:grid;
  gap:8px;
}

.form-field label{
  font-size:14px;
  font-weight:700;
  color:var(--secondary-2);
}

input,
select,
textarea{
  width:100%;
  min-height:48px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:16px;
  padding:12px 14px;
  outline:none;
  transition:.2s ease;
}

textarea{
  min-height:auto;
  resize:vertical;
}

input:focus,
select:focus,
textarea:focus{
  border-color:#9bd5cb;
  box-shadow:0 0 0 4px rgba(15,118,110,.08);
}

.btn{
  min-height:46px;
  padding:0 18px;
  border:none;
  border-radius:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
  font-weight:700;
  transition:.2s ease;
}

.btn:hover{
  transform:translateY(-1px);
}

.btn-block{
  width:100%;
}

.btn-primary{
  background:var(--primary);
  color:#fff;
}

.btn-primary:hover{
  background:var(--primary-2);
}

.btn-secondary{
  background:var(--secondary);
  color:#fff;
}

.btn-secondary:hover,
.btn-dark:hover{
  background:#0b1220;
}

.btn-dark{
  background:#111827;
  color:#fff;
}

.btn-light{
  background:#fff;
  color:var(--secondary);
  border:1px solid var(--line);
}

.btn-ghost{
  background:var(--surface-2);
  color:var(--secondary);
  border:1px solid var(--line);
}

.alert-box,
.info-banner{
  border-radius:18px;
  padding:14px 16px;
  font-size:14px;
}

.alert-box.error{
  background:#fef2f2;
  color:#991b1b;
  border:1px solid #fecaca;
}

.info-banner{
  background:#eff6ff;
  color:#1d4ed8;
  border:1px solid #bfdbfe;
  margin-bottom:18px;
}

.empty-state{
  min-height:220px;
  border:1px dashed var(--line);
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  text-align:center;
  gap:8px;
  padding:24px;
}

.empty-state h3{
  margin:0;
  font-size:22px;
}

.error-wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.error-card{
  width:min(560px, 100%);
  padding:30px;
}

.auth-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:
    radial-gradient(circle at top left, rgba(15,118,110,.10), transparent 28%),
    radial-gradient(circle at bottom right, rgba(17,24,39,.08), transparent 32%),
    linear-gradient(180deg, #f7faf8 0%, #eef4f1 100%);
}

.auth-wrapper{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}

.auth-card{
  width:100%;
  max-width:440px;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(8px);
  border:1px solid rgba(229,236,232,.9);
  border-radius:28px;
  box-shadow:0 24px 50px rgba(16,24,40,.08);
  padding:34px 30px;
}

.auth-header{
  margin-bottom:22px;
}

.auth-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  background:var(--soft-green);
  color:var(--primary);
  font-size:12px;
  font-weight:800;
  letter-spacing:.03em;
  text-transform:uppercase;
  margin-bottom:14px;
}

.auth-header h1{
  margin:0;
  font-size:32px;
  line-height:1.1;
  color:var(--text);
}

.auth-subtitle{
  margin:10px 0 0;
  color:var(--muted);
  line-height:1.65;
  font-size:15px;
}

.auth-form{
  display:grid;
  gap:16px;
  margin-top:8px;
}

.auth-form .btn{
  margin-top:4px;
}

.detail-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
}

.metric-list{
  display:grid;
  gap:10px;
}

.metric-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:16px;
  background:var(--surface-2);
  border:1px solid var(--line);
}

.metric-row span{
  color:var(--muted);
}

.metric-row strong{
  color:var(--text);
  text-align:right;
}

.note-text{
  margin:0;
  color:var(--text);
  line-height:1.7;
}

.comparison-metrics-grid{
  display:grid;
  grid-template-columns:repeat(6, minmax(0, 1fr));
  gap:12px;
}

.compare-card{
  background:var(--surface);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  border-radius:22px;
  padding:20px;
  display:grid;
  gap:4px;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    background .22s ease,
    border-color .22s ease;
}
.compare-card:hover{
  background:linear-gradient(135deg);
  border-color:transparent;
  transform:scale(1.03);
  box-shadow:0 22px 45px rgba(190, 206, 190, 0.308);
  z-index:2;
}
/* Textos */
.compare-card span{
  color:var(--muted);
  font-size:18px;
  font-weight:700;
  transition:color .22s ease;
}

.compare-card strong{
  font-size:28px;
  transition:color .22s ease;
}

.compare-card p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  transition:color .22s ease;
}

.compare-card span{
  color:var(--muted);
  font-size:18px;
  font-weight:700;
}

.compare-card strong{
  font-size:28px;
}

.compare-card p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

.before-after-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
}

.photo-grid.compact{
  grid-template-columns:repeat(3, minmax(0, 1fr));
  margin-top:18px;
}

.compact-photo{
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
  border-radius:18px;
  border:1px solid var(--line);
  background:#fff;
}

.chart-select{
  min-width:220px;
  background:#fff;
}

.checkbox-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
}

.checkbox-grid.two-cols{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.check-card{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface-2);
  cursor:pointer;
}

.check-card input{
  width:18px;
  height:18px;
  min-height:auto;
  margin-top:2px;
}

.check-card strong{
  color:var(--text);
}

.check-card small{
  color:var(--muted);
}

@media (max-width: 980px){
  .checkbox-grid,
  .checkbox-grid.two-cols{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .chart-select{
    min-width:100%;
  }
}

@media (max-width: 1180px){
  .detail-grid,
  .before-after-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .comparison-metrics-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding:0px;
  }
  .compare-card{
    padding:12px;
    gap:2px;

  }
  .compare-card span{
    font-size:16px;
    font-weight:700;
  }

  .compare-card strong{
    font-size:20px;
    }
}

@media (max-width: 640px){
  .auth-card{
    padding:26px 20px;
    border-radius:22px;
  }

  .auth-header h1{
    font-size:28px;
  }
}

@media (max-width: 1180px){
  .stats-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .student-grid,
  .charts-grid,
  .comparison-grid,
  .photo-grid{
    grid-template-columns:1fr;
  }

  .form-grid.three,
  .form-grid.four{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px){
  .app-shell{
    grid-template-columns:1fr;
  }

  .sidebar{
    position:relative;
    height:auto;
  }

  .main-panel{
    padding:18px;
  }

  .hero-card,
  .profile-hero,
  .page-header{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width: 640px){
  .stats-grid{
    grid-template-columns:2fr;
  }

  .form-grid.two,
  .form-grid.three,
  .form-grid.four{
    grid-template-columns:1fr;
  }

  .profile-main{
    flex-direction:column;
    align-items:flex-start;
  }

  .hero-card h1,
  .page-header h1,
  .profile-hero h1{
    font-size:26px;
  }

  .stat-card strong{
    font-size:28px;
  }
}
.alert-box.success{
  background:#ecfdf5;
  color:#065f46;
  border:1px solid #a7f3d0;
  margin-bottom:18px;
}

.inline-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.muted-line{
  margin:4px 0 0;
  color:var(--muted);
  font-size:13px;
}

.row-muted{
  opacity:.72;
}

.table-check{
  width:20px;
  height:20px;
  min-height:auto;
  accent-color:var(--primary);
}

.compact-field{
  min-width:220px;
}

.compact-field input{
  min-height:46px;
}

.nutrition-table td:nth-child(2),
.nutrition-table th:nth-child(2){
  width:150px;
  text-align:center;
}

.switch-check{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:42px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--surface-2);
  cursor:pointer;
  font-weight:800;
  color:var(--secondary-2);
}

.switch-check input{
  width:20px;
  height:20px;
  min-height:auto;
  accent-color:var(--primary);
}

.switch-check:has(input:checked){
  background:#dcfce7;
  border-color:#bbf7d0;
  color:#166534;
}

@media (max-width: 640px){
  .inline-actions{
    flex-direction:column;
  }

  .compact-field{
    min-width:100%;
  }

  .nutrition-table td:nth-child(2),
  .nutrition-table th:nth-child(2){
    width:auto;
  }
}

.info-box {
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #334155;
  background: #f8fafc;
}

.info-box.soft {
  background: #ecfdf5;
  border-color: rgba(22, 163, 74, 0.18);
  color: #14532d;
}

.full-width {
  grid-column: 1 / -1;
}

.field-help {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 0.82rem;
}

.btn-danger{
  background:#dc2626;
  color:#fff;
}

.btn-danger:hover{
  background:#991b1b;
}

.alert-box.warning{
  background:#fffbeb;
  color:#92400e;
  border:1px solid #fde68a;
  margin-bottom:18px;
}

.btn-sm{
  min-height:36px;
  padding:0 12px;
  border-radius:12px;
  font-size:13px;
}

.danger-zone{
  border-color:#fecaca;
}

/* =========================================================
   MONKEYFIT responsive redesign
   Color principal solicitado: #6d7767
   ========================================================= */
:root{
  --primary:#6d7767;
  --primary-2:#596254;
  --primary-3:#475044;
  --primary-soft:#edf1e8;
  --primary-soft-2:#f6f8f3;
  --cream:#f6f3e8;
  --ink:#202620;
  --sidebar-collapsed:88px;
  --sidebar-expanded:282px;
}

body.sidebar-lock{
  overflow:hidden;
}

/* Auth/login */
.monkey-auth-page{
  min-height:100vh;
  padding:0;
  display:block;
  background:#f7f8f5;
}

.auth-split{
  min-height:100vh;
  display:grid;
  grid-template-columns:1fr 1fr;
}

.auth-brand-panel{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(34px, 5vw, 80px);
  color:#fff;
  background:
    linear-gradient(135deg, rgba(109,119,103,.96), rgba(71,80,68,.98)),
    url('/img/auth-pattern.svg');
  background-size:auto, 360px 360px;
}

.auth-brand-panel::before,
.auth-brand-panel::after{
  content:"";
  position:absolute;
  border-radius:999px;
  background:rgba(246,243,232,.12);
  filter:blur(.2px);
}

.auth-brand-panel::before{
  width:340px;
  height:340px;
  left:-120px;
  top:-90px;
}

.auth-brand-panel::after{
  width:420px;
  height:420px;
  right:-160px;
  bottom:-140px;
}

.auth-brand-content{
  position:relative;
  z-index:1;
  width:min(500px, 100%);
  display:grid;
  justify-items:center;
  align-content:center;
  text-align:center;
  gap:28px;
}

.auth-logo{
  width:180px;
  height:180px;
  border-radius:34px;
  object-fit:contain;
  margin-inline:auto;
  /*background:rgba(255,255,255,.0);
  box-shadow:0 24px 80px rgba(0,0,0,.0);*/
}

.auth-kicker{
  display:inline-flex;
  width:max-content;
  min-height:34px;
  align-items:center;
  padding:0 14px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  color:rgba(255,255,255,.86);
  font-weight:800;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.auth-brand-content h1{
  margin:18px 0 0;
  font-size:clamp(42px, 5.4vw, 76px);
  line-height:.95;
  letter-spacing:-.06em;
}

.auth-brand-content p{
  max-width:480px;
  margin:20px 0 0;
  color:rgba(255,255,255,.82);
  font-size:18px;
  line-height:1.7;
}

.auth-form-panel{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(24px, 5vw, 72px);
  background:
    radial-gradient(circle at top right, rgba(109,119,103,.12), transparent 28%),
    linear-gradient(180deg, #fff 0%, #f6f8f3 100%);
}

.auth-card-modern{
  max-width:460px;
  border-radius:32px;
  padding:38px;
  border:1px solid rgba(109,119,103,.16);
  box-shadow:0 30px 90px rgba(32,38,32,.12);
}

.auth-card-modern .auth-header h2{
  margin:0;
  font-size:34px;
  line-height:1.1;
  letter-spacing:-.03em;
  color:var(--ink);
}

.auth-card-modern input{
  min-height:54px;
  border-radius:18px;
  border-color:#d8dfd3;
  background:#fbfcf9;
}

.auth-card-modern input:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 4px rgba(109,119,103,.12);
}

/* App shell/sidebar */
.app-shell{
  grid-template-columns:var(--sidebar-collapsed) 1fr;
  transition:grid-template-columns .22s ease;
}

.app-shell.sidebar-expanded{
  grid-template-columns:var(--sidebar-expanded) 1fr;
}

.mobile-topbar,
.sidebar-backdrop{
  display:none;
}

.sidebar{
  width:var(--sidebar-collapsed);
  padding:18px 14px;
  gap:18px;
  background:linear-gradient(180deg, var(--primary) 0%, var(--primary-3) 100%);
  border-right:1px solid rgba(255,255,255,.12);
  transition:width .22s ease, transform .22s ease;
  overflow:hidden;
  z-index:30;
}

.app-shell.sidebar-expanded .sidebar{
  width:var(--sidebar-expanded);
}

.sidebar-toggle{
  width:46px;
  height:46px;
  border:1px solid rgba(255,255,255,.20);
  border-radius:16px;
  background:rgba(255,255,255,.10);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
  transition:.2s ease;
}

.sidebar-toggle:hover{
  background:rgba(255,255,255,.18);
}

.sidebar-toggle span{
  width:20px;
  height:2px;
  border-radius:999px;
  background:currentColor;
  display:block;
}

.brand-sidebar{
  min-height:58px;
  padding:7px 0;
  align-items:center;
  color:#fff;
}

.brand-logo{
  width:58px;
  height:58px;
  min-width:58px;
  border-radius:20px;
  background:rgba(255,255,255,.14);
  padding:7px;
}

.brand-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.brand-copy,
.nav-text,
.mini-user,
.sidebar-footer .btn .nav-text{
  opacity:0;
  transform:translateX(-8px);
  pointer-events:none;
  white-space:nowrap;
  transition:.18s ease;
}

.app-shell.sidebar-expanded .brand-copy,
.app-shell.sidebar-expanded .nav-text,
.app-shell.sidebar-expanded .mini-user,
.app-shell.sidebar-expanded .sidebar-footer .btn .nav-text{
  opacity:1;
  transform:none;
  pointer-events:auto;
}

.brand-copy strong,
.brand-copy small{
  display:block;
}

.brand-copy strong{
  font-size:16px;
  letter-spacing:-.03em;
}

.brand-copy small{
  color:rgba(255,255,255,.66);
  font-size:11px;
  letter-spacing:.10em;
  font-weight:800;
}

.nav-menu{
  gap:10px;
}

.nav-link{
  min-height:50px;
  padding:0 13px;
  border-radius:18px;
  gap:13px;
  justify-content:flex-start;
}

.nav-link:hover,
.nav-link.active{
  background:rgba(255,255,255,.16);
}

.nav-icon{
  width:24px;
  min-width:24px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  line-height:1;
}
.nav-icon-img{
  width:22px;
  height:22px;
  object-fit:contain;
  display:block;
  filter:brightness(0) invert(1);
}
.nav-icon-img2{
  width:22px;
  height:22px;
  object-fit:contain;
  display:block;
  filter:brightness(0) invert(1);
}

.sidebar-footer .btn{
  padding:0 13px;
  justify-content:flex-start;
  background:rgba(17,24,39,.44);
}

.sidebar-footer{
  gap:12px;
}

.mini-user{
  min-width:220px;
  background:rgba(255,255,255,.10);
}

.main-panel{
  min-width:0;
  padding:28px clamp(18px, 3vw, 34px);
}

.btn-primary{
  background:var(--primary);
}

.btn-primary:hover{
  background:var(--primary-2);
}

.eyebrow{
  background:var(--primary-soft);
  color:var(--primary-2);
}

.text-link{
  color:var(--primary-2);
}

.avatar-circle,
.avatar-xl{
  background:linear-gradient(180deg, #edf1e8 0%, #dfe8d7 100%);
  color:var(--primary-3);
}

.table-check,
.switch-check input{
  accent-color:var(--primary);
}

@media (max-width: 900px){
  .auth-split{
    grid-template-columns:1fr;
  }

  .auth-brand-panel{
    min-height:40vh;
    padding:34px 24px;
    text-align:center;
  }

  .auth-brand-content{
    justify-items:center;
    gap:16px;
  }

  .auth-logo{
    width:94px;
    height:94px;
    border-radius:28px;
  }

  .auth-brand-content h1{
    font-size:clamp(32px, 9vw, 50px);
  }

  .auth-brand-content p{
    margin-top:12px;
    font-size:15px;
  }

  .auth-form-panel{
    align-items:flex-start;
    padding:24px 18px 34px;
  }

  .auth-card-modern{
    max-width:560px;
    padding:28px 22px;
    border-radius:26px;
  }

  .app-shell,
  .app-shell.sidebar-expanded{
    display:block;
    grid-template-columns:1fr;
    padding-top:70px;
  }

  .mobile-topbar{
    position:fixed;
    inset:0 0 auto 0;
    height:70px;
    z-index:40;
    display:grid;
    grid-template-columns:56px 1fr 56px;
    align-items:center;
    padding:0 12px;
    background:linear-gradient(90deg, var(--primary) 0%, var(--primary-3) 100%);
    box-shadow:0 12px 28px rgba(32,38,32,.18);
  }

  .mobile-menu-btn{
    width:46px;
    height:46px;
  }

  .mobile-brand{
    justify-self:center;
    display:flex;
    align-items:center;
    justify-content:center;
  }

  .mobile-brand img{
    width:48px;
    height:48px;
  }

  .sidebar{
    position:fixed;
    top:0;
    left:0;
    bottom:0;
    width:282px;
    height:100vh;
    transform:translateX(-105%);
    padding:18px 16px;
    overflow-y:auto;
  }

  .app-shell.sidebar-open .sidebar{
    transform:translateX(0);
  }

  .app-shell.sidebar-open .sidebar-backdrop{
    display:block;
    position:fixed;
    inset:0;
    z-index:20;
    background:rgba(15,23,15,.42);
    backdrop-filter:blur(2px);
  }

  .desktop-menu-btn{
    display:none;
  }

  .brand-copy,
  .nav-text,
  .mini-user,
  .sidebar-footer .btn .nav-text{
    opacity:1;
    transform:none;
    pointer-events:auto;
  }

  .main-panel{
    padding:18px;
  }

  .data-table th,
  .data-table td{
    padding:12px 10px;
  }
}

@media (max-width: 640px){
  .auth-brand-panel{
    min-height:36vh;
  }

  .nav-icon-img2{
  width:17px;
  height:17px;
  object-fit:contain;
  display:block;
  filter:brightness(0) invert(1);
}

  .auth-form-panel{
    padding:20px 14px 28px;
  }

  .auth-card-modern .auth-header h2{
    font-size:28px;
  }

  .page-header,
  .hero-card,
  .profile-hero,
  .section-card{
    border-radius:20px;
    padding:20px;
  }

  .hero-actions,
  .actions-row,
  .toolbar{
    width:100%;
    flex-direction:column;
    align-items:stretch;
  }

  .hero-actions .btn,
  .actions-row .btn,
  .toolbar .btn{
    width:100%;
  }

  .student-card{
    grid-template-columns:auto 1fr;
  }

  .student-card .status-pill{
    grid-column:1 / -1;
    justify-self:start;
  }
}

/* =========================================================
   Clean dashboard and compact lists
   ========================================================= */
.dashboard-clean{
  align-content:start;
}

.compact-page-header{
  padding:18px 22px;
  align-items:center;
}

.compact-page-header h1,
.compact-section-header h1{
  margin:6px 0 0;
  font-size:24px;
  line-height:1.15;
}

.compact-page-header p,
.compact-section-header p{
  margin-top:6px;
}

.compact-section-header{
  margin-bottom:16px;
  align-items:center;
}

.quick-actions-card{
  padding:20px;
}

.quick-actions-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
}

.quick-action-btn{
  min-height:104px;
  padding:20px;
  border-radius:22px;
  border:1px solid var(--line);
  background:var(--primary);
  display:grid;
  gap:6px;
  align-content:center;
  transition:.18s ease;
}

.quick-action-btn:hover{
  transform:translateY(-2px);
  border-color:rgba(109,119,103,.30);
  box-shadow:0 18px 38px rgba(32,38,32,.08);
}

.quick-action-btn.featured{
  background:linear-gradient(135deg, var(--primary), var(--primary-3));
  color:#fff;
  border-color:transparent;
}

.quick-action-icon{
  width:24px;
  height:24px;
  border-radius:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  /*background:rgba(109,119,103,.12);*/
  color:var(--primary-3);
  font-size:22px;
  font-weight:900;
}

.quick-action-btn.featured .quick-action-icon{
  background:rgba(255,255,255,.16);
  color:#fff;
}

.quick-action-btn strong{
  font-size:18px;
  color:#fff;

}

.quick-action-btn small{
  color:var(--muted);
}

.quick-action-btn.featured small{
  color:rgba(255,255,255,.72);
}

.compact-stats-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
}

.compact-stat-card{
  background:var(--surface);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  border-radius:20px;
  padding:16px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:4px;
}

.compact-stat-card span{
  color:var(--muted);
  font-size:14px;
  font-weight:700;
}

.compact-stat-card strong{
  font-size:28px;
  line-height:1;
}

.compact-list-section{
  padding:20px;
}

.live-search-wrap{
  margin-bottom:14px;
}

.live-search-input{
  min-height:48px;
  border-radius:16px;
  background:#fbfcf9;
}

.clean-list{
  display:grid;
  gap:10px;
  max-height:none;
}

.single-column-list{
  grid-template-columns:1fr;
}

.clean-list-row{
  display:grid;
  grid-template-columns:minmax(240px, 1.25fr) minmax(150px, .75fr) minmax(120px, .5fr) minmax(160px, .7fr);
  gap:14px;
  align-items:center;
  min-height:72px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  transition:.16s ease;
}

.clean-list-row:hover{
  border-color:rgba(109,119,103,.34);
  box-shadow:0 14px 30px rgba(32,38,32,.06);
  transform:translateY(-1px);
}

.row-main{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.row-main strong,
.row-meta strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
}

.row-main small,
.row-meta small,
.row-meta span{
  color:var(--muted);
  font-size:12px;
}

.row-meta{
  display:grid;
  gap:4px;
  min-width:0;
}

.row-meta.stacked{
  justify-items:start;
}

.row-meta.wide-meta{
  min-width:0;
}

.admin-list-row{
  grid-template-columns:minmax(230px, 1.1fr) minmax(130px, .6fr) minmax(210px, 1fr) minmax(150px, .7fr);
}

.student-list-row{
  grid-template-columns:minmax(240px, 1.25fr) minmax(150px, .75fr) minmax(120px, .5fr) minmax(160px, .7fr);
}

.select-row{
  grid-template-columns:minmax(240px, 1.2fr) minmax(150px, .7fr) minmax(220px, 1fr);
}

.reto-list-row{
  grid-template-columns:minmax(260px, 1.3fr) minmax(190px, .9fr) minmax(130px, .55fr) minmax(150px, .65fr);
}

.reto-avatar{
  background:linear-gradient(180deg, var(--primary-soft) 0%, #dfe8d7 100%);
}

.compact-empty{
  min-height:160px;
}

.hidden-by-search{
  display:none !important;
}

@media (max-width: 980px){
  .quick-actions-grid,
  .compact-stats-grid{
    grid-template-columns:repeat(, minmax(0, 1fr));
  }

  .clean-list-row,
  .admin-list-row,
  .student-list-row,
  .select-row,
  .reto-list-row{
    grid-template-columns:1fr;
    align-items:start;
  }

  .row-meta{
    padding-left:54px;
  }

  .row-meta.stacked{
    padding-left:54px;
  }

  .compact-page-header{
    align-items:flex-start;
  }
}

@media (max-width: 640px){
  .compact-page-header,
  .quick-actions-card,
  .compact-list-section{
    padding:16px;
  }
  .compact-stats-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .compact-page-header h1,
  .compact-section-header h1{
    font-size:22px;
  }

  .quick-action-btn{
    min-height:88px;
    border-radius:18px;
    padding:16px;
  }

  .compact-stat-card{
    padding:14px 16px;
  }

  .compact-stat-card strong{
    font-size:24px;
  }

  .clean-list-row{
    border-radius:16px;
  }
}


/* =========================================================
   Ajustes dashboard compacto + scroll horizontal móvil
   ========================================================= */
.quick-actions-card{
  padding:18px 20px;
}

.quick-actions-grid{
  gap:12px;
}

.quick-action-btn{
  min-height:76px;
  padding:12px 16px;
  border-radius:18px;
  display:grid;
  grid-template-columns:auto 1fr;
  grid-template-rows:auto auto;
  column-gap:12px;
  row-gap:2px;
  align-content:center;
  align-items:center;
}

.quick-action-icon{
  width:34px;
  height:34px;
  border-radius:13px;
  font-size:18px;
  grid-row:1 / span 2;
}

.quick-action-btn strong{
  font-size:16px;
  line-height:1.15;
}

.quick-action-btn small{
  font-size:13px;
  line-height:1.2;
}

.dashboard-clean .student-list-row{
  grid-template-columns:minmax(280px, 1.15fr) minmax(160px, .55fr) minmax(150px, .45fr);
}

@media (max-width: 980px){
  .dashboard-clean .clean-list{
    display:grid;
    overflow-x:visible;
    overflow-y:visible;
    padding-bottom:8px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
  }

  .dashboard-clean .clean-list::after{
    /*content:"Desliza a la derecha para ver más";*/
    display:block;
    width:max-content;
    margin-top:6px;
    color:var(--muted);
    font-size:12px;
  }

  .dashboard-clean .clean-list-row,
  .dashboard-clean .student-list-row{
    width:100%;
    min-width:650px;
    grid-template-columns:minmax(280px, 1.15fr) minmax(160px, .55fr) minmax(150px, .45fr);
    align-items:center;
    margin-bottom:10px;
  }

  .dashboard-clean .row-meta,
  .dashboard-clean .row-meta.stacked{
    padding-left:0;
  }

  .dashboard-clean .row-main strong,
  .dashboard-clean .row-main small,
  .dashboard-clean .row-meta span,
  .dashboard-clean .row-meta small,
  .dashboard-clean .row-meta strong{
    white-space:nowrap;
  }
}

@media (max-width: 640px){
  .quick-actions-card{
    padding:8px;
  }

  .quick-actions-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:2px;
  }

  .quick-action-btn{
    min-height:64px;
    padding:10px 12px;
    border-radius:16px;
  }

  .quick-action-icon{
    width:30px;
    height:30px;
    border-radius:11px;
    font-size:10px;
  }

  .quick-action-btn strong{
    font-size:14px;
  }

  .quick-action-btn small{
    font-size:12px;
  }

  .dashboard-clean .clean-list-row,
  .dashboard-clean .student-list-row{
    min-height:64px;
    padding:10px 12px;
    border-radius:14px;
    min-width:620px;
  }

  .dashboard-clean .avatar-circle.small{
    width:40px;
    height:40px;
    border-radius:14px;
  }
}

/* =========================================================
   Correcciones sidebar móvil + hover desktop + headers compactos
   ========================================================= */
@media (min-width: 901px){
  .app-shell:not(.sidebar-pinned) .sidebar:hover{
    width:var(--sidebar-expanded);
    box-shadow:22px 0 50px rgba(32,38,32,.16);
  }

  .app-shell:not(.sidebar-pinned) .sidebar:hover .brand-copy,
  .app-shell:not(.sidebar-pinned) .sidebar:hover .nav-text,
  .app-shell:not(.sidebar-pinned) .sidebar:hover .mini-user,
  .app-shell:not(.sidebar-pinned) .sidebar:hover .sidebar-footer .btn .nav-text{
    opacity:1;
    transform:none;
    pointer-events:auto;
  }

  .app-shell.sidebar-pinned{
    grid-template-columns:var(--sidebar-expanded) 1fr;
  }

  .app-shell.sidebar-pinned .sidebar{
    width:var(--sidebar-expanded);
  }
}

/* Header compacto para listas como Nutricionistas, Alumnos, Retos */
.compact-page-header{
  padding:14px 18px !important;
  min-height:unset !important;
  align-items:center !important;
  border-radius:18px !important;
  gap:14px !important;
}

.compact-page-header .eyebrow{
  padding:5px 10px;
  font-size:11px;
}

.compact-page-header h1{
  margin:5px 0 0 !important;
  font-size:24px !important;
  line-height:1.1 !important;
}

.compact-page-header p{
  margin:5px 0 0 !important;
  line-height:1.35 !important;
  font-size:14px !important;
}

.compact-page-header .btn{
  min-height:40px;
  border-radius:14px;
  padding:0 14px;
}

@media (max-width: 900px){
  .mobile-topbar{
    z-index:1000 !important;
  }

  .app-shell.sidebar-open .mobile-topbar{
    z-index:1000 !important;
  }

  .sidebar{
    z-index:1250 !important;
    top:0 !important;
    bottom:auto !important;
    height:100dvh !important;
    max-height:100dvh !important;
    padding-top:18px !important;
    padding-bottom:max(110px, calc(env(safe-area-inset-bottom) + 110px)) !important;
    box-shadow:22px 0 55px rgba(15,23,15,.28);
  }

  .app-shell.sidebar-open .sidebar-backdrop{
    z-index:1200 !important;
  }

  .sidebar-footer{
    margin-top:18px !important;
    padding-bottom:0 !important;
  }

  .sidebar-footer .logout-link{
    order:-2;
  }

  .sidebar-footer .mini-user{
    order:-1;
  }

  .nav-menu{
    flex:0 0 auto;
  }

  .compact-page-header{
    padding:14px 16px !important;
    flex-direction:row !important;
    align-items:center !important;
  }

  .compact-page-header h1{
    font-size:22px !important;
  }

  .compact-page-header p{
    font-size:13px !important;
  }
}

@media (max-width: 640px){
  .compact-page-header{
    flex-direction:column !important;
    align-items:flex-start !important;
    padding:12px 14px !important;
  }

  .compact-page-header .btn{
    width:100%;
  }
}
.main-panel{
  align-content:start !important;
  grid-auto-rows:max-content;
}

/* Evita que toda la página tenga scroll horizontal */
html,
body{
  max-width:100%;
  overflow-x:hidden;
}

.app-shell,
.main-panel,
.section-card,
.compact-list-section{
  min-width:0;
}

/* En escritorio la lista funciona normal */
.students-scroll-x{
  width:100%;
  max-width:100%;
}

/* En celular, solo esta sección tendrá scroll horizontal */
@media (max-width: 980px){
  .students-scroll-x{
    width:100%;
    max-width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    padding-bottom:8px;
  }

  .students-scroll-x::after{
    content:"Desliza a la derecha para ver más";
    display:block;
    width:max-content;
    margin-top:6px;
    color:var(--muted);
    font-size:12px;
  }

  .students-scroll-x .latest-students-list{
    display:block !important;
    width:max-content;
    min-width:100%;
    overflow:visible !important;
  }

  .students-scroll-x .student-list-row{
    width:650px !important;
    min-width:650px !important;
    max-width:none !important;
    grid-template-columns:minmax(280px, 1.15fr) minmax(160px, .55fr) minmax(150px, .45fr);
    align-items:center;
    margin-bottom:10px;
  }

  .students-scroll-x .row-meta,
  .students-scroll-x .row-meta.stacked{
    padding-left:0 !important;
  }

  .students-scroll-x .row-main strong,
  .students-scroll-x .row-main small,
  .students-scroll-x .row-meta span,
  .students-scroll-x .row-meta small,
  .students-scroll-x .row-meta strong{
    white-space:nowrap;
  }
}

@media (max-width: 640px){
  .students-scroll-x .student-list-row{
    width:620px !important;
    min-width:620px !important;
  }
}

/* Botones rápidos más compactos */
.quick-action-compact{
  min-height:54px !important;
  padding:10px 14px !important;
  border-radius:16px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:left !important;
  gap:0px !important;
}

.quick-action-compact .quick-action-icon{
  width:28px !important;
  height:28px !important;
  min-width:28px !important;
  border-radius:10px !important;
  font-size:17px !important;
  grid-row:auto !important;
}

.quick-action-compact strong{
  font-size:15px !important;
  line-height:1 !important;
  white-space:nowrap;
}

.quick-action-compact small{
  display:none !important;
}
@media (max-width: 640px){
  .quick-action-compact{
    min-height:48px !important;
    padding:9px 12px !important;
    justify-content:flex-start !important;
  }

  .quick-action-compact .quick-action-icon{
    width:26px !important;
    height:26px !important;
    min-width:26px !important;
    font-size:16px !important;
  }

  .quick-action-compact strong{
    font-size:14px !important;
  }
}
/* =========================================================
   Alumno: perfil limpio, KPIs, historial scroll móvil y gráficos modernos
   ========================================================= */
.student-profile-page{
  align-content:start;
  gap:18px;
}

.student-profile-hero{
  padding:20px;
  align-items:center;
}

.student-profile-hero .avatar-xl{
  width:84px;
  height:84px;
  border-radius:24px;
  flex:0 0 auto;
}

.profile-summary-copy h1{
  margin:6px 0 0;
  font-size:28px;
  line-height:1.08;
  letter-spacing:-.03em;
}

.profile-summary-copy .hero-text{
  margin-top:6px;
  line-height:1.4;
}

.compact-meta-pills{
  margin-top:10px;
  gap:8px;
}

.compact-meta-pills .meta-pill,
.compact-meta-pills .status-pill{
  min-height:28px;
  padding:0 10px;
  font-size:12px;
}

.compact-profile-actions{
  justify-content:flex-end;
  max-width:520px;
}

.compact-profile-actions .btn{
  min-height:40px;
  border-radius:14px;
  padding:0 13px;
  font-size:13px;
}

.student-kpi-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:12px;
}

.student-kpi-card{
  min-height:78px;
  padding:14px 16px;
}

.student-kpi-card span{
  font-size:13px;
}

.student-kpi-card strong{
  font-size:24px;
}

.evaluation-history-card{
  padding:18px 20px;
}

.evaluation-table-scroll{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
}

.clean-evaluation-table{
  min-width:760px;
  border-collapse:separate;
  border-spacing:0 8px;
}

.clean-evaluation-table th{
  border-bottom:0;
  padding:0 14px 6px;
  font-size:12px;
}

.clean-evaluation-table td{
  border-bottom:0;
  background:#f1f7f2;
  padding:13px 14px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.clean-evaluation-table td:first-child{
  border-left:1px solid var(--line);
  border-radius:16px 0 0 16px;
}

.clean-evaluation-table td:last-child{
  border-right:1px solid var(--line);
  border-radius:0 16px 16px 0;
}

.clickable-table-row{
  cursor:pointer;
  transition:.16s ease;
}

.clickable-table-row:hover td,
.clickable-table-row:focus td{
  border-color:rgba(109,119,103,.36);
  background:#b4c9b0;
}

.clickable-table-row:focus{
  outline:none;
}

.modern-charts-grid{
  align-items:stretch;
}

.modern-chart-card{
  padding:18px;
  overflow:hidden;
}

.chart-card-header{
  margin-bottom:12px;
}

.chart-card-header h2{
  font-size:20px;
}

.chart-card-header p{
  line-height:1.35;
}

.modern-chart-select{
  min-width:190px;
  min-height:42px;
  border-radius:14px;
  background:#fbfcf9;
}

.chart-canvas-panel{
  height:300px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:22px;
  background:linear-gradient(180deg, #fff 0%, #fbfcf9 100%);
}

.chart-canvas-panel canvas{
  height:100% !important;
}

@media (max-width:1180px){
  .student-kpi-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .student-profile-hero{
    align-items:flex-start;
  }

  .compact-profile-actions{
    max-width:none;
    justify-content:flex-start;
  }
}

@media (max-width:900px){
  .student-profile-hero{
    padding:18px;
  }

  .profile-summary-copy h1{
    font-size:24px;
  }

  .evaluation-table-scroll::after{
    content:"Desliza a la derecha para ver más";
    display:block;
    width:max-content;
    margin-top:6px;
    color:var(--muted);
    font-size:12px;
  }
}

@media (max-width:640px){
  .student-profile-page{
    gap:14px;
  }

  .student-profile-hero{
    padding:16px;
  }

  .student-profile-hero .profile-main{
    flex-direction:row;
    align-items:center;
    gap:12px;
  }

  .student-profile-hero .avatar-xl{
    width:64px;
    height:64px;
    border-radius:20px;
  }

  .profile-summary-copy h1{
    font-size:21px;
  }

  .profile-summary-copy .hero-text{
    font-size:13px;
  }

  .compact-meta-pills{
    gap:6px;
  }

  .student-kpi-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px;
  }

  .student-kpi-card{
    min-height:68px;
    padding:12px;
    align-items:flex-start;
    flex-direction:column;
  }

  .student-kpi-card strong{
    font-size:22px;
  }

  .evaluation-history-card,
  .modern-chart-card{
    padding:14px;
  }

  .clean-evaluation-table{
    min-width:700px;
  }

  .clean-evaluation-table td{
    padding:11px 12px;
  }

  .chart-card-header{
    align-items:flex-start;
  }

  .modern-chart-select{
    width:100%;
    min-width:10%;
  }

  .chart-canvas-panel{
    height:260px;
    padding:8px;
    border-radius:18px;
  }

  .compact-profile-actions{
    width:100%;
    flex-direction:column;
    align-items:stretch;
  }

  .compact-profile-actions .btn,
  .compact-profile-actions form{
    width:100%;
  }
}

.comparison-table-card{
  padding:20px;
}

.comparison-table-wrap{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

.comparison-table{
  width:100%;
  min-width:680px;
  border-collapse:separate;
  border-spacing:1;
}

.comparison-table th,
.comparison-table td{
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  text-align:left;
  vertical-align:middle;
}

.comparison-table th{
  color:var(--muted);
  font-size:16px;
  font-weight:500;
  text-transform:uppercase;

  background:var(--primary-soft-2);
}

.comparison-table th:first-child{
  border-top-left-radius:16px;
}

.comparison-table th:last-child{
  border-top-right-radius:16px;
}

.comparison-table td:first-child{
  font-weight:600;
  color:var(--text);
  width:0px;
}

.measurement-column{
  width:150px;
}

.measurement-head{
  display:grid;
  gap:6px;
  align-items:start;
}

.measurement-head strong{
  color:var(--text);
  font-size:16px;
  text-transform:none;
}

.measurement-head span{
  color:var(--muted);
  font-size:16px;
  font-weight:700;
}

.measurement-head .btn{
  width:max-content;
  margin-top:4px;
}

.comparison-cell-link{
  display:block;
  width:100%;
  min-height:32px;
  padding:6px 8px;
  border-radius:10px;
  color:var(--text);
  font-weight:100;
}



@media (max-width: 640px){
  .comparison-table-card{
    padding:16px;
  }

  .comparison-table{
    min-width:110px;
  }

  .comparison-table th,
  .comparison-table td{
    padding:6px;
  }

  .measurement-column{
    width:320px;
  }
}



.delta-text{
  display:flex;
  align-items:center;
  gap:8px;
}

.delta-arrow{
  width:22px;
  height:22px;
  min-width:22px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  font-weight:100;
  line-height:1px;
  font-family:Arial Black, Arial, sans-serif;
  text-shadow:0 0 1px currentColor;
}

.delta-arrow.arrow-good{
  color:#16a34a;
}

.delta-arrow.arrow-bad{
  color:#dc2626;
}


/* =========================================================
   Lista de alumnos con scroll horizontal en móvil
   ========================================================= */

.alumnos-scroll-x{
  width:100%;
  max-width:100%;
}

@media (max-width: 980px){
  .alumnos-scroll-x{
    width:100%;
    max-width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    padding-bottom:8px;
  }

  .alumnos-scroll-x::after{
    content:"Desliza a la derecha para ver más";
    display:block;
    width:max-content;
    margin-top:6px;
    color:var(--muted);
    font-size:12px;
  }

  .alumnos-scroll-x .alumnos-list-scroll{
    display:block !important;
    width:max-content;
    min-width:100%;
    overflow:visible !important;
  }

  .alumnos-scroll-x .student-list-row{
    width:760px !important;
    min-width:760px !important;
    max-width:none !important;
    display:grid !important;
    grid-template-columns:minmax(280px, 1.25fr) minmax(170px, .75fr) minmax(130px, .5fr) minmax(190px, .7fr) !important;
    align-items:center !important;
    margin-bottom:10px;
  }

  .alumnos-scroll-x .row-meta,
  .alumnos-scroll-x .row-meta.stacked{
    padding-left:0 !important;
  }

  .alumnos-scroll-x .row-main strong,
  .alumnos-scroll-x .row-main small,
  .alumnos-scroll-x .row-meta span,
  .alumnos-scroll-x .row-meta small,
  .alumnos-scroll-x .row-meta strong{
    white-space:nowrap;
  }
}

@media (max-width: 640px){
  .alumnos-scroll-x .student-list-row{
    width:720px !important;
    min-width:780px !important;
    min-height:64px;
    padding:8px 8px;
    border-radius:14px;
  }

  .alumnos-scroll-x .avatar-circle.small{
    width:40px;
    height:40px;
    border-radius:14px;
  }
}

/* =========================================================
   Dashboard portal alumno - versión limpia sin afectar admin
   ========================================================= */
.alumno-dashboard-page{
  align-content:start;
  gap:18px;
}

.alumno-welcome-card{
  padding:18px 20px;
}

.alumno-dashboard-header{
  margin-bottom:14px;
}

.alumno-welcome-main{
  align-items:center;
}

.alumno-dashboard-avatar{
  width:48px;
  height:48px;
  min-width:48px;
  border-radius:16px;
}

.alumno-dashboard-avatar span{
  font-size:18px;
}

.alumno-quick-actions-grid{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.quick-action-disabled{
  opacity:.58;
  cursor:not-allowed;
  filter:grayscale(.15);
}

.quick-action-disabled:hover{
  transform:none !important;
  box-shadow:none !important;
}

.alumno-kpi-grid{
  grid-template-columns:repeat(4, minmax(0, 1fr));
}

.alumno-kpi-grid .compact-stat-card{
  min-height:74px;
}

.alumno-kpi-grid .compact-stat-card strong{
  font-size:24px;
}

.alumno-evaluations-scroll-x{
  width:100%;
  max-width:100%;
}

.alumno-evaluation-row{
  grid-template-columns:minmax(220px, 1.15fr) minmax(100px, .5fr) minmax(90px, .45fr) minmax(110px, .5fr) minmax(90px, .4fr) minmax(90px, .4fr);
}

.alumno-eval-icon{
  background:linear-gradient(180deg, var(--primary-soft) 0%, #dfe8d7 100%);
  color:var(--primary-3);
}

@media (max-width: 1180px){
  .alumno-kpi-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px){
  .alumno-quick-actions-grid{
    grid-template-columns:1fr;
  }

  .alumno-evaluations-scroll-x{
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    padding-bottom:8px;
  }

  .alumno-evaluations-scroll-x::after{
    content:"Desliza a la derecha para ver más";
    display:block;
    width:max-content;
    margin-top:6px;
    color:var(--muted);
    font-size:12px;
  }

  .alumno-evaluations-scroll-x .alumno-evaluations-list{
    display:block !important;
    width:max-content;
    min-width:100%;
    overflow:visible !important;
  }

  .alumno-evaluations-scroll-x .alumno-evaluation-row{
    width:760px !important;
    min-width:760px !important;
    max-width:none !important;
    display:grid !important;
    grid-template-columns:minmax(220px, 1.15fr) minmax(100px, .5fr) minmax(90px, .45fr) minmax(110px, .5fr) minmax(90px, .4fr) minmax(90px, .4fr) !important;
    align-items:center !important;
    margin-bottom:10px;
  }

  .alumno-evaluations-scroll-x .row-meta,
  .alumno-evaluations-scroll-x .row-meta.stacked{
    padding-left:0 !important;
  }

  .alumno-evaluations-scroll-x .row-main strong,
  .alumno-evaluations-scroll-x .row-main small,
  .alumno-evaluations-scroll-x .row-meta span,
  .alumno-evaluations-scroll-x .row-meta small,
  .alumno-evaluations-scroll-x .row-meta strong{
    white-space:nowrap;
  }
}

@media (max-width: 640px){
  .alumno-welcome-card{
    padding:14px;
  }

  .alumno-dashboard-header{
    margin-bottom:10px;
  }

  .alumno-welcome-main{
    align-items:center;
  }

  .alumno-dashboard-avatar{
    width:42px;
    height:42px;
    min-width:42px;
    border-radius:14px;
  }

  .alumno-kpi-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px;
  }

  .alumno-kpi-grid .compact-stat-card{
    min-height:68px;
    padding:12px;
    align-items:flex-start;
    flex-direction:column;
  }

  .alumno-kpi-grid .compact-stat-card span{
    font-size:12px;
  }

  .alumno-kpi-grid .compact-stat-card strong{
    font-size:21px;
  }

  .alumno-evaluations-scroll-x .alumno-evaluation-row{
    width:720px !important;
    min-width:720px !important;
    min-height:64px;
    padding:10px 12px;
    border-radius:14px;
  }
}

.inline-name{
  display:inline !important;
}

/* =========================================================
   Password visibility toggle - Login / Crear contraseña
   ========================================================= */
.password-input-wrap{
  position:relative;
  width:100%;
}

.password-input-wrap input{
  padding-right:56px !important;
}

.password-toggle-btn{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  width:38px;
  height:38px;
  min-height:38px;
  padding:0;
  border:0;
  border-radius:12px;
  background:transparent;
  color:var(--primary-2);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  line-height:1;
  font-size:18px;
  transition:background .18s ease, color .18s ease, transform .18s ease;
}

.password-toggle-btn:hover{
  background:var(--primary-soft);
  color:var(--primary-3);
  transform:translateY(-50%) scale(1.02);
}

.password-toggle-btn:focus-visible{
  outline:3px solid rgba(109,119,103,.22);
  outline-offset:2px;
}

.password-toggle-btn .icon-hide{
  display:none;
}

.password-toggle-btn.is-visible .icon-show{
  display:none;
}

.password-toggle-btn.is-visible .icon-hide{
  display:inline;
}

.auth-card-modern .password-input-wrap input{
  padding-right:58px !important;
}

@media (max-width:640px){
  .password-toggle-btn{
    width:36px;
    height:36px;
    min-height:36px;
    right:7px;
  }
}

/* =========================================================
   Formulario evaluación: campos obligatorios + fecha móvil
   ========================================================= */
.required-mark{
  color:var(--danger);
  font-weight:900;
  margin-left:3px;
}

.evaluation-form-page,
.evaluation-form-page .section-card,
.evaluation-form-page .form-section,
.evaluation-form-page .form-grid,
.evaluation-form-page .form-field{
  min-width:0;
}

.evaluation-date-field input[type="date"]{
  width:100%;
  max-width:100%;
  min-width:0;
}

@media (max-width:640px){
  .evaluation-form-page input[type="date"]{
    width:100%;
    max-width:100%;
    min-width:0;
    display:block;
    -webkit-appearance:none;
    appearance:none;
    padding-left:12px;
    padding-right:12px;
  }

  .evaluation-form-page .form-grid.three,
  .evaluation-form-page .form-grid.four,
  .evaluation-form-page .form-grid.two{
    grid-template-columns:minmax(0, 1fr) !important;
  }
}

/* =========================================================
   Nueva evaluación: selector de alumno con scroll horizontal móvil
   Se deja al final para ganar a las reglas generales de .select-row
   ========================================================= */

.select-student-scroll-x{
  width:100%;
  max-width:100%;
  min-width:0;
}

.select-student-list-scroll{
  width:100%;
  min-width:0;
}

@media (max-width: 980px){
  .select-student-scroll-x{
    display:block;
    width:100%;
    max-width:100%;
    min-width:0;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
    padding-bottom:8px;
  }

  .select-student-scroll-x::after{
    content:"Desliza a la derecha para ver más";
    display:block;
    width:max-content;
    margin-top:6px;
    color:var(--muted);
    font-size:12px;
  }

  .select-student-scroll-x .select-student-list-scroll{
    display:block !important;
    width:max-content !important;
    min-width:100% !important;
    max-width:none !important;
    overflow:visible !important;
  }

  .select-student-scroll-x .select-row{
    width:760px !important;
    min-width:760px !important;
    max-width:none !important;
    display:grid !important;
    grid-template-columns:minmax(300px, 1.2fr) minmax(170px, .7fr) minmax(250px, 1fr) !important;
    align-items:center !important;
    gap:14px !important;
    margin-bottom:10px;
  }

  .select-student-scroll-x .row-main{
    min-width:0;
  }

  .select-student-scroll-x .row-meta,
  .select-student-scroll-x .row-meta.stacked,
  .select-student-scroll-x .row-meta.wide-meta{
    padding-left:0 !important;
    min-width:0;
  }

  .select-student-scroll-x .row-main strong,
  .select-student-scroll-x .row-main small,
  .select-student-scroll-x .row-meta span,
  .select-student-scroll-x .row-meta small,
  .select-student-scroll-x .row-meta strong{
    white-space:nowrap !important;
  }
}

@media (max-width: 640px){
  .select-student-scroll-x .select-row{
    width:720px !important;
    min-width:720px !important;
    min-height:64px;
    padding:10px 12px;
    border-radius:14px;
    grid-template-columns:minmax(280px, 1.15fr) minmax(155px, .65fr) minmax(230px, .95fr) !important;
  }

  .select-student-scroll-x .avatar-circle.small{
    width:40px;
    height:40px;
    border-radius:14px;
  }
}


/* =========================================================
   Retos: añadir usuarios con búsqueda en vivo + selección persistente
   ========================================================= */
.add-users-card{
  display:grid;
  gap:16px;
}

.add-users-live-toolbar{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:12px;
  align-items:center;
  margin-bottom:2px;
}

.add-users-search-wrap{
  margin-bottom:0 !important;
}

.add-users-counter-card{
  min-height:48px;
  min-width:160px;
  padding:8px 14px;
  border-radius:16px;
  background:var(--primary-soft-2);
  border:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
}

.add-users-counter-card span{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
}

.add-users-counter-card strong{
  color:var(--primary-3);
  font-size:24px;
  line-height:1;
}

.selected-users-panel{
  border:1px solid var(--line);
  background:linear-gradient(180deg, #fff 0%, var(--primary-soft-2) 100%);
  border-radius:20px;
  padding:14px;
  display:grid;
  gap:12px;
}

.selected-users-panel-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}

.selected-users-panel-head strong{
  display:block;
  color:var(--text);
}

.selected-users-panel-head small,
.selected-users-empty{
  color:var(--muted);
  font-size:13px;
}

.selected-users-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  min-height:34px;
  align-items:center;
}

.selected-user-chip{
  border:1px solid rgba(109,119,103,.24);
  background:#fff;
  border-radius:999px;
  min-height:35px;
  padding:6px 6px 6px 6px;
  display:inline-grid;
  grid-template-columns:1fr auto;
  column-gap:8px;
  align-items:center;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(32,38,32,.05);
}

.selected-user-chip span,
.selected-user-chip small{
  grid-column:1;
  text-align:left;
  max-width:230px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.selected-user-chip span{
  color:var(--text);
  font-weight:600;
  font-size:13px;
}

.selected-user-chip small{
  color:var(--muted);
  font-size:11px;
}

.selected-user-chip b{
  grid-column:2;
  grid-row:1 / span 2;
  width:16px;
  height:16px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background-color: #c8e4ce62;
  color:var(--primary-3);
  line-height:1;
}

.reto-add-users-table-wrap{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
}

.add-users-table{
  min-width:820px;
}

.add-users-table .selectable-add-user-row{
  cursor:pointer;
}

.add-users-table .selectable-add-user-row:hover td{
  background:var(--primary-soft-2);
}

.add-user-row.is-hidden-by-filter{
  display:none !important;
}

.add-users-actions-row{
  align-items:center;
}

@media (max-width: 980px){
  .add-users-live-toolbar{
    grid-template-columns:1fr;
  }

  .add-users-counter-card{
    width:100%;
  }

  .reto-add-users-table-wrap{
    padding-bottom:8px;
  }

  .reto-add-users-table-wrap::after{
    content:"Desliza a la derecha para ver más";
    display:block;
    width:max-content;
    margin-top:6px;
    color:var(--muted);
    font-size:12px;
  }

  .add-users-table{
    width:820px !important;
    min-width:820px !important;
  }

  .add-users-table th,
  .add-users-table td{
    white-space:nowrap;
  }

  .add-users-table .table-user strong,
  .add-users-table .table-user p{
    white-space:nowrap;
  }
}

@media (max-width: 640px){
  .selected-users-panel{
    padding:12px;
    border-radius:18px;
  }

  .selected-users-list{
    flex-wrap:nowrap;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    padding-bottom:4px;
  }

  .selected-user-chip{
    min-width:max-content;
  }

  .add-users-table{
    width:760px !important;
    min-width:760px !important;
  }
}
/* =========================================================
   Seguimiento nutricional - fecha de control responsive
   ========================================================= */

.seguimiento-date-toolbar{
  width:100%;
  display:block;
}

.seguimiento-date-field{
  width:100%;
  min-width:0;
}

.seguimiento-date-controls{
  display:grid;
  grid-template-columns:minmax(180px, 260px) auto auto;
  align-items:center;
  gap:10px;
  width:100%;
  max-width:100%;
  min-width:0;
}

.seguimiento-date-controls input[type="date"]{
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
  -webkit-appearance:none;
  appearance:none;
}

.required-star{
  color:#dc2626;
  font-weight:900;
  margin-left:3px;
}

@media (max-width:640px){
  .seguimiento-date-controls{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
  }

  .seguimiento-date-controls .btn,
  .seguimiento-date-controls .status-pill{
    width:100%;
  }

  .seguimiento-date-controls .status-pill{
    justify-content:center;
  }
}

/* =========================================================
   Seguimiento nutricional - controles compactos v2
   ========================================================= */

.seguimiento-date-controls{
  grid-template-columns:minmax(0, 240px) auto !important;
  align-items:end !important;
}

.seguimiento-load-date-btn{
  min-height:38px !important;
  padding:0 12px !important;
  border-radius:12px !important;
  font-size:13px !important;
  width:auto !important;
  align-self:end !important;
  white-space:nowrap;
}

.seguimiento-control-header{
  align-items:center !important;
  gap:12px !important;
  margin-bottom:14px !important;
}

.seguimiento-control-title{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  min-width:0;
}

.seguimiento-control-title h2{
  margin:0 !important;
}

.bulk-check-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:34px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--primary-soft-2);
  color:var(--primary-3);
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
  transition:.16s ease;
}

.bulk-check-pill:hover{
  border-color:rgba(109,119,103,.35);
  box-shadow:0 10px 22px rgba(32,38,32,.06);
}

.bulk-check-pill input{
  width:16px;
  height:16px;
  min-height:16px;
  accent-color:var(--primary);
  margin:0;
}

.bulk-check-pill:has(input:checked){
  background:#dcfce7;
  border-color:#bbf7d0;
  color:#166534;
}

@media (max-width:640px){
  .seguimiento-date-controls{
    grid-template-columns:minmax(0, 1fr) auto !important;
    gap:8px !important;
  }

  .seguimiento-load-date-btn{
    min-height:38px !important;
    padding:0 10px !important;
    font-size:12px !important;
    width:auto !important;
  }

  .seguimiento-control-header{
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:space-between !important;
  }

  .seguimiento-control-title{
    gap:7px;
  }

  .seguimiento-control-title h2{
    font-size:18px !important;
  }

  .seguimiento-control-title .status-pill{
    min-height:28px;
    padding:0 9px;
    font-size:12px;
  }

  .bulk-check-pill{
    min-height:32px;
    padding:0 10px;
    font-size:12px;
  }
}


/* =========================================================
   Formulario alumno - campos obligatorios y fecha responsive
   ========================================================= */
.form-required-banner{
  margin-bottom:18px;
}

.required-star{
  color:#dc2626;
  font-weight:900;
  margin-left:3px;
}

.form-section,
.form-grid,
.form-field{
  min-width:0;
}

.form-field input,
.form-field select,
.form-field textarea{
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}

.form-field input[type="date"]{
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
  -webkit-appearance:none;
  appearance:none;
}

/* =========================================================
   Ajustes 2026-06: sidebar fijo, dashboard alumnos y compresión
   ========================================================= */
@media (min-width: 901px){
  .app-shell > .sidebar{
    position:sticky !important;
    top:0 !important;
    align-self:start;
    height:100dvh !important;
    max-height:100dvh !important;
    overflow-y:auto;
    overscroll-behavior:contain;
  }

  .app-shell > .main-panel{
    align-self:start;
  }
}

.dashboard-students-section .dashboard-search-wrap{
  margin:0 0 14px;
}

.dashboard-students-section .live-search-input{
  width:100%;
}

.image-compression-help{
  margin:10px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

.image-compression-status{
  display:block;
  margin-top:6px;
  min-height:18px;
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
}

.image-compression-status[data-state="loading"]{
  color:var(--primary-2);
}

.image-compression-status[data-state="ok"]{
  color:var(--success);
}

.image-compression-status[data-state="warning"]{
  color:#b45309;
}


/* =========================================================
   Ajuste definitivo: sidebar fija en escritorio
   ========================================================= */
@media (min-width: 901px){
  .app-shell{
    align-items:start;
  }

  .app-shell > .sidebar{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    bottom:0 !important;
    height:100vh !important;
    max-height:100vh !important;
    overflow-y:auto !important;
    overscroll-behavior:contain;
    z-index:100 !important;
  }

  .app-shell > .main-panel{
    grid-column:2;
    min-height:100vh;
  }
}

/* =========================================================
   Ajuste 2026-06: sidebar siempre visible en escritorio
   ========================================================= */
@media (min-width: 901px){
  body.app-body{
    overflow-x:hidden;
  }

  .app-shell,
  .app-shell.sidebar-expanded,
  .app-shell.sidebar-pinned{
    display:grid !important;
    align-items:start !important;
    min-height:100vh !important;
  }

  .app-shell{
    grid-template-columns:var(--sidebar-collapsed) minmax(0, 1fr) !important;
  }

  .app-shell.sidebar-expanded,
  .app-shell.sidebar-pinned{
    grid-template-columns:var(--sidebar-expanded) minmax(0, 1fr) !important;
  }

  .app-shell > .sidebar{
    position:fixed !important;
    inset:0 auto 0 0 !important;
    height:100vh !important;
    max-height:100vh !important;
    overflow-y:auto !important;
    overscroll-behavior:contain;
    z-index:1000 !important;
  }

  .app-shell > .main-panel{
    grid-column:2 !important;
    min-width:0 !important;
    min-height:100vh !important;
  }
}

/* =========================================================
   CrossControl module
   ========================================================= */
.crosscontrol-theme{
  --primary:#b91c1c;
  --primary-2:#991b1b;
  --primary-3:#7f1d1d;
  --primary-soft:#fee2e2;
  --primary-soft-2:#fff1f2;
}

.crosscontrol-theme .auth-brand-panel{
  background:linear-gradient(135deg, rgba(185,28,28,.96), rgba(127,29,29,.98)), url('/img/auth-pattern.svg');
}

.status-pill.danger-soft{
  background:#fee2e2;
  color:#991b1b;
}

.status-pill.warning{
  background:#fef3c7;
  color:#92400e;
}

.module-checkbox-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

.module-check-card{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:14px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fbfcf9;
  cursor:pointer;
}

.module-check-card input{
  margin-top:3px;
  accent-color:var(--primary);
}

.module-check-card strong,
.module-check-card small{
  display:block;
}

.module-check-card small{
  margin-top:4px;
  color:var(--muted);
  line-height:1.4;
}

.crosscontrol-check-card{
  background:#fff7f7;
}

.module-pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.module-switch-link{
  margin-top:8px;
  background:rgba(255,255,255,.10);
}

.cross-stats-grid{
  grid-template-columns:repeat(4, minmax(0, 1fr));
}

.compact-date-field{
  max-width:220px;
}

.inline-toolbar{
  margin-bottom:12px;
}

.row-actions{
  justify-content:flex-end;
}

.workout-text{
  white-space:pre-wrap;
  line-height:1.7;
  color:var(--text);
}

.public-landing{
  min-height:100vh;
  background:radial-gradient(circle at top left, rgba(109,119,103,.18), transparent 28%), linear-gradient(135deg, #f6f8f3, #fff7f7);
}

.landing-wrap{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:32px;
}

.landing-card{
  width:min(860px, 100%);
  padding:clamp(28px, 6vw, 64px);
  border-radius:34px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:0 30px 90px rgba(32,38,32,.12);
  text-align:center;
}

.landing-logo-wrap{
  display:flex;
  justify-content:center;
  margin-bottom:18px;
}

.landing-logo{
  width:120px;
  height:120px;
  object-fit:contain;
}

.landing-card h1{
  max-width:720px;
  margin:18px auto 12px;
  font-size:clamp(34px, 5vw, 58px);
  line-height:1;
  letter-spacing:-.05em;
}

.landing-card p{
  max-width:680px;
  margin:0 auto 26px;
  color:var(--muted);
  font-size:17px;
  line-height:1.7;
}

.landing-card .hero-actions{
  justify-content:center;
}

@media (max-width: 900px){
  .cross-stats-grid,
  .module-checkbox-grid{
    grid-template-columns:1fr;
  }

}




.btn-success{
  background:#16a34a;
  color:#fff;
}

.btn-success:hover{
  background:#15803d;
}

/* =========================================================
   MonkeyFit public landing + login variants
   ========================================================= */
.monkeyfit-landing{
  --landing-black:#070707;
  --landing-white:#ffffff;
  --landing-muted:#6f7477;
  --landing-line:#e9e9e9;
  min-height:100vh;
  background:#fff;
  color:#0b0b0b;
}

.landing-navbar{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:18px clamp(20px, 4vw, 58px);
  background:rgba(255,255,255,.88);
  border-bottom:1px solid rgba(10,10,10,.08);
  backdrop-filter:blur(16px);
}

.landing-brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  color:#0b0b0b;
  text-decoration:none;
  font-weight:900;
  letter-spacing:.08em;
}

.landing-brand img{
  width:38px;
  height:38px;
  object-fit:contain;
}

.landing-nav-links{
  display:flex;
  align-items:center;
  gap:22px;
  font-size:14px;
  font-weight:700;
}

.landing-nav-links a{
  color:#111;
  text-decoration:none;
}


.landing-login-btn{
  padding:11px 18px;
  border-radius:999px;
  background:#0b0b0b;
  color:#fff !important;
  box-shadow:0 12px 28px rgba(0,0,0,.16);
}

.landing-hero-section{
  min-height:calc(100vh - 76px);
  display:grid;
  grid-template-columns:minmax(0, 1.08fr) minmax(320px, .72fr);
  align-items:center;
  gap:clamp(32px, 6vw, 86px);
  padding:clamp(50px, 8vw, 110px) clamp(20px, 5vw, 76px);
  background:
    radial-gradient(circle at 86% 20%, rgba(0,0,0,.08), transparent 25%),
    linear-gradient(180deg, #fff 0%, #f7f7f7 100%);
}

.landing-eyebrow,
.landing-section-heading span{
  display:inline-flex;
  width:max-content;
  padding:8px 12px;
  border-radius:999px;
  background:#111;
  color:#fff;
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.landing-hero-copy h1{
  max-width:860px;
  margin:22px 0 18px;
  font-size:clamp(50px, 9vw, 118px);
  line-height:.88;
  letter-spacing:-.08em;
}

.landing-hero-copy p{
  max-width:670px;
  margin:0;
  color:#4c5154;
  font-size:clamp(17px, 2vw, 22px);
  line-height:1.65;
}

.landing-hero-actions,
.contact-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:30px;
}

.landing-hero-card{
  position:relative;
  min-height:460px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:10px;
  padding:34px;
  border-radius:42px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    #090909;
  color:#fff;
  overflow:hidden;
  box-shadow:0 42px 90px rgba(0,0,0,.28);
}

.landing-hero-card::before{
  content:"";
  position:absolute;
  inset:26px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:32px;
}

.hero-card-topline{
  position:absolute;
  top:34px;
  left:34px;
  width:58px;
  height:6px;
  border-radius:999px;
  background:#fff;
}

.landing-hero-card strong{
  position:relative;
  z-index:1;
  font-size:clamp(42px, 5vw, 64px);
  line-height:.92;
  letter-spacing:-.06em;
}

.landing-hero-card > span{
  position:relative;
  z-index:1;
  color:rgba(255,255,255,.72);
  font-weight:700;
}

.hero-card-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:10px;
  margin-top:24px;
}

.hero-card-grid div{
  padding:16px 12px;
  border-radius:20px;
  background:rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.12);
}

.hero-card-grid b,
.hero-card-grid small{
  display:block;
}

.hero-card-grid b{
  font-size:24px;
}

.hero-card-grid small{
  color:rgba(255,255,255,.64);
  margin-top:4px;
}

.landing-section{
  padding:clamp(48px, 7vw, 92px) clamp(20px, 5vw, 76px);
}

.landing-section-heading{
  max-width:760px;
  margin:0 auto 28px;
  text-align:center;
}

.left-heading{
  text-align:left;
  margin:0;
}

.landing-section-heading h2,
.owner-section h2,
.contact-section h2{
  margin:18px 0 12px;
  font-size:clamp(34px, 5vw, 64px);
  line-height:.98;
  letter-spacing:-.06em;
}

.landing-section-heading p,
.owner-section p,
.contact-section p{
  color:#5d6265;
  line-height:1.7;
  font-size:16px;
}

.landing-card-grid-three,
.platform-access-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
}

.landing-info-card,
.platform-access-card,
.landing-branch-list article{
  min-height:210px;
  padding:28px;
  border-radius:30px;
  border:1px solid var(--landing-line);
  background:#fff;
  box-shadow:0 24px 70px rgba(0,0,0,.06);
}

.landing-info-card h3,
.platform-access-card strong,
.landing-branch-list strong{
  display:block;
  margin:0 0 12px;
  font-size:24px;
  letter-spacing:-.03em;
}

.landing-info-card p,
.platform-access-card span,
.landing-branch-list p{
  margin:0;
  color:#666b6e;
  line-height:1.65;
}

.dark-card{
  background:#080808;
  color:#fff;
}

.dark-card p{
  color:rgba(255,255,255,.72);
}

.landing-split-section{
  display:grid;
  grid-template-columns:minmax(0, .9fr) minmax(320px, 1.1fr);
  gap:28px;
  align-items:start;
  background:#f7f7f7;
}

.landing-branch-list{
  display:grid;
  gap:16px;
}

.landing-branch-list small,
.platform-access-card small{
  display:block;
  margin-bottom:10px;
  color:#7a7f82;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.owner-section{
  display:grid;
  grid-template-columns:260px minmax(0, 1fr);
  gap:38px;
  align-items:center;
}

.owner-photo-placeholder{
  width:260px;
  aspect-ratio:1;
  border-radius:36px;
  display:grid;
  place-items:center;
  background:#090909;
  color:#fff;
  font-size:58px;
  font-weight:900;
  letter-spacing:-.08em;
}

.platform-section{
  background:#0b0b0b;
  color:#fff;
}

.platform-section .landing-section-heading p{
  color:rgba(255,255,255,.68);
}

.platform-section .landing-section-heading span{
  background:#fff;
  color:#111;
}

.platform-access-card{
  min-height:190px;
  color:#111;
  text-decoration:none;
  transition:transform .18s ease, box-shadow .18s ease;
}

.platform-access-card:hover{
  transform:translateY(-4px);
  box-shadow:0 30px 80px rgba(0,0,0,.12);
}

.nutrition-access{
  border-color:#dce6d7;
  background:#f6f8f3;
}

.cross-access{
  border-color:#fecaca;
  background:#fff5f5;
}

.contact-section{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.landing-footer{
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:26px clamp(20px, 5vw, 76px);
  background:#0b0b0b;
  color:rgba(255,255,255,.72);
}

.landing-footer a{
  color:#fff;
  text-decoration:none;
}

.login-generic-theme .auth-brand-panel{
  background:linear-gradient(135deg, rgba(12,12,12,.98), rgba(34,34,34,.96)), url('/img/auth-pattern.svg');
}

.login-generic-theme .auth-form-panel{
  background:radial-gradient(circle at top right, rgba(0,0,0,.08), transparent 28%), linear-gradient(180deg, #fff 0%, #f6f6f6 100%);
}

.login-nutrition-theme .auth-brand-panel{
  background:linear-gradient(135deg, rgba(109,119,103,.96), rgba(71,80,68,.98)), url('/img/auth-pattern.svg');
}

.login-crosscontrol-theme .auth-brand-panel{
  background:linear-gradient(135deg, rgba(185,28,28,.96), rgba(127,29,29,.98)), url('/img/auth-pattern.svg');
}

.auth-module-switches{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  margin-top:20px;
  padding-top:18px;
  border-top:1px solid var(--line);
}

.auth-module-switches a{
  padding:9px 13px;
  border-radius:999px;
  background:#f5f5f5;
  color:#202620;
  text-decoration:none;
  font-size:12px;
  font-weight:800;
}

.login-crosscontrol-theme .auth-module-switches a:hover,
.login-crosscontrol-theme .auth-card-modern input:focus{
  border-color:#b91c1c;
  box-shadow:0 0 0 4px rgba(185,28,28,.12);
}

.login-crosscontrol-theme .btn-primary{
  background:#b91c1c;
  color:#fff;
}

.login-crosscontrol-theme .btn-primary:hover{
  background:#991b1b;
}

/* CrossControl sidebar ordering/grouping */
.nav-more-group{
  display:grid;
  gap:4px;
}

.nav-more-title{
  cursor:default;
}

.nav-submenu{
  display:grid;
  gap:4px;
  padding-left:12px;
}

.nav-sub-link{
  min-height:38px;
  padding-top:9px;
  padding-bottom:9px;
  font-size:13px;
}

.nav-sub-link .nav-icon{
  width:26px;
  height:26px;
}

.sidebar:not(.expanded) .nav-submenu,
.app-shell:not(.sidebar-expanded) .nav-submenu{
  padding-left:0;
}

.dashboard-action-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
  margin:18px 0;
}

.dashboard-action-card{
  display:block;
  min-height:150px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:24px;
  background:#fff;
  color:var(--text);
  text-decoration:none;
  box-shadow:0 20px 55px rgba(32,38,32,.06);
}

.dashboard-action-card span,
.dashboard-action-card small,
.dashboard-action-card strong{
  display:block;
}

.dashboard-action-card span{
  color:var(--primary);
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.dashboard-action-card strong{
  margin:10px 0 8px;
  font-size:20px;
}

.dashboard-action-card small{
  color:var(--muted);
  line-height:1.5;
}

@media (max-width: 980px){
  .landing-navbar{
    position:relative;
    align-items:flex-start;
  }
  .landing-nav-links{
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:12px;
  }
  .landing-hero-section,
  .landing-split-section,
  .owner-section{
    grid-template-columns:1fr;
  }
  .landing-hero-card{
    min-height:340px;
  }
  .landing-card-grid-three,
  .platform-access-grid,
  .dashboard-action-grid{
    grid-template-columns:1fr;
  }
  .owner-photo-placeholder{
    width:min(260px, 100%);
  }
  .contact-section{
    align-items:flex-start;
    flex-direction:column;
  }
}

@media (max-width: 640px){
  .landing-navbar{
    padding:14px 18px;
  }
  .landing-brand span{
    font-size:13px;
  }
  .landing-nav-links a:not(.landing-login-btn){
    display:none;
  }
  .landing-hero-section{
    min-height:auto;
    padding-top:46px;
  }
  .landing-hero-card{
    border-radius:28px;
    padding:26px;
  }
  .hero-card-grid{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   Ajustes Landing MonkeyFit dark + CrossControl sidebar
   ========================================================= */
.monkeyfit-landing-dark{
  --landing-black:#050505;
  --landing-white:#ffffff;
  --landing-muted:#a6a9ad;
  --landing-line:rgba(255,255,255,.12);
  background:#050505;
  color:#ffffff;
}

.monkeyfit-landing-dark .landing-navbar{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(5,5,5,.88);
  border-bottom:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

.monkeyfit-landing-dark .landing-brand,
.monkeyfit-landing-dark .landing-nav-links a{
  color:#ffffff;
}



.monkeyfit-landing-dark .landing-hero-section{
  background:
    radial-gradient(circle at 82% 12%, rgba(239,68,68,.26), transparent 24%),
    radial-gradient(circle at 16% 76%, rgba(255,255,255,.12), transparent 22%),
    linear-gradient(180deg, #050505 0%, #0b0b0b 54%, #050505 100%);
}

.monkeyfit-landing-dark .landing-eyebrow,
.monkeyfit-landing-dark .landing-section-heading span{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
  color:#ffffff;
}

.monkeyfit-landing-dark .landing-hero-copy p,
.monkeyfit-landing-dark .landing-section-heading p,
.monkeyfit-landing-dark .owner-section p,
.monkeyfit-landing-dark .contact-section p{
  color:rgba(255,255,255,.68);
}

.monkeyfit-landing-dark .landing-hero-card{
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03)),
    radial-gradient(circle at 80% 12%, rgba(239,68,68,.34), transparent 32%),
    #111111;
  box-shadow:0 42px 95px rgba(0,0,0,.54);
  border:1px solid rgba(255,255,255,.12);
}

.hero-card-year{
  position:relative;
  z-index:1;
  width:max-content;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  color:rgba(255,255,255,.78);
  font-weight:900;
  letter-spacing:.10em;
}

.monkeyfit-landing-dark .landing-section{
  background:#050505;
}

.monkeyfit-landing-dark .landing-info-card,
.monkeyfit-landing-dark .platform-access-card,
.monkeyfit-landing-dark .landing-branch-list article{
  background:#101010;
  color:#ffffff;
  border-color:rgba(255,255,255,.12);
  box-shadow:0 24px 70px rgba(0,0,0,.30);
}

.monkeyfit-landing-dark .landing-info-card p,
.monkeyfit-landing-dark .platform-access-card span,
.monkeyfit-landing-dark .landing-branch-list p{
  color:rgba(255,255,255,.64);
}

.monkeyfit-landing-dark .dark-card{
  background:#ffffff;
  color:#080808;
}

.monkeyfit-landing-dark .dark-card p{
  color:#55585d;
}

.monkeyfit-landing-dark .landing-split-section{
  background:#0b0b0b;
}

.monkeyfit-landing-dark .landing-branch-list small,
.monkeyfit-landing-dark .platform-access-card small{
  color:rgba(255,255,255,.50);
}

.monkeyfit-landing-dark .landing-branch-list article a{
  display:inline-flex;
  margin-top:14px;
  color:#ffffff;
  font-weight:900;
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.45);
}

.monkeyfit-landing-dark .owner-photo-placeholder{
  background:#ffffff;
  color:#080808;
}

.monkeyfit-landing-dark .platform-section{
  background:#111111;
}

.monkeyfit-landing-dark .platform-section .landing-section-heading span{
  background:#ffffff;
  color:#0b0b0b;
}

.monkeyfit-landing-dark .nutrition-access{
  border-color:rgba(109,119,103,.65);
  background:linear-gradient(180deg, rgba(109,119,103,.22), rgba(16,16,16,1));
}

.monkeyfit-landing-dark .cross-access{
  border-color:rgba(239,68,68,.65);
  background:linear-gradient(180deg, rgba(185,28,28,.32), rgba(16,16,16,1));
}

.monkeyfit-landing-dark .landing-footer{
  background:#000000;
  border-top:1px solid rgba(255,255,255,.10);
}

.btn-outline-light{
  background:transparent;
  color:#ffffff;
  border:1px solid rgba(255,255,255,.28);
}

.btn-outline-light:hover{
  background:rgba(255,255,255,.10);
  color:#ffffff;
}

.login-crosscontrol-theme .auth-brand-content{
  justify-items:center;
  text-align:center;
}

.login-crosscontrol-theme .auth-logo{
  display:block;
  margin:0 auto;
}

.login-crosscontrol-theme .auth-card-modern .auth-header{
  text-align:center;
}

.login-crosscontrol-theme .auth-card-modern .auth-badge{
  margin:0 auto 12px;
}

.login-crosscontrol-theme .auth-card-modern{
  align-self:center;
}

.nav-more-group{
  display:block;
}

.nav-more-title{
  cursor:pointer;
  list-style:none;
}

.nav-more-title::-webkit-details-marker,
.nav-more-title::marker{
  display:none;
  content:"";
}

.nav-more-group .nav-submenu{
  display:none;
  gap:4px;
  padding-left:12px;
  margin-top:4px;
}

.nav-more-group[open] .nav-submenu{
  display:grid;
}

.nav-more-group[open] .nav-more-title .nav-text::after{
  content:"";
}

.sidebar:not(.expanded) .nav-more-group .nav-submenu,
.app-shell:not(.sidebar-expanded) .nav-more-group .nav-submenu{
  padding-left:0;
}

@media (max-width: 980px){
  .monkeyfit-landing-dark .landing-navbar{
    position:sticky;
    top:0;
    align-items:center;
  }
}

@media (max-width: 640px){
  .monkeyfit-landing-dark .landing-navbar{
    position:sticky;
    top:0;
  }
}

/* =========================================================
   Corrección final Landing MonkeyFit + Login CrossControl
   - Navbar fija blanca
   - Secciones segmentadas y responsivas
   - Alineación panel izquierdo login CrossControl
   ========================================================= */
.monkeyfit-landing-dark{
  padding-top:78px;
  background:#060606;
  color:#ffffff;
  scroll-behavior:smooth;
}

.monkeyfit-landing-dark .landing-navbar{
  position:fixed !important;
  top:0 !important;
  left:0;
  right:0;
  width:100%;
  min-height:78px;
  z-index:9999;
  background:rgba(255,255,255,.96) !important;
  border-bottom:1px solid rgba(0,0,0,.10) !important;
  box-shadow:0 12px 32px rgba(0,0,0,.10);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

.monkeyfit-landing-dark .landing-brand,
.monkeyfit-landing-dark .landing-nav-links a:not(.landing-login-btn){
  color:#090909 !important;
}

.monkeyfit-landing-dark .landing-brand img{
  filter:none;
}

.monkeyfit-landing-dark .landing-login-btn{
  background:#000000 !important;
  color:#ffffff !important;
  box-shadow:0 12px 28px rgba(0,0,0,.18);
}

.monkeyfit-landing-dark .landing-login-btn:hover{
  transform:translateY(-1px);
}

.monkeyfit-landing-dark main{
  overflow:hidden;
}

.monkeyfit-landing-dark .landing-hero-section{
  min-height:calc(100vh - 78px);
  background:
    radial-gradient(circle at 82% 16%, rgba(239,68,68,.30), transparent 25%),
    radial-gradient(circle at 14% 80%, rgba(255,255,255,.10), transparent 24%),
    linear-gradient(135deg, #050505 0%, #111111 52%, #050505 100%) !important;
  color:#ffffff;
  border-bottom:1px solid rgba(255,255,255,.10);
}

.monkeyfit-landing-dark .landing-hero-copy p{
  color:rgba(255,255,255,.72) !important;
}

.monkeyfit-landing-dark .landing-hero-card{
  border:1px solid rgba(255,255,255,.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.04)),
    radial-gradient(circle at 80% 12%, rgba(239,68,68,.36), transparent 34%),
    #111111 !important;
}

.monkeyfit-landing-dark .landing-section{
  position:relative;
  border-top:1px solid rgba(0,0,0,.08);
}

.monkeyfit-landing-dark #entrenamientos{
  background:#f4f4f1 !important;
  color:#090909;
}

.monkeyfit-landing-dark #entrenamientos .landing-section-heading p,
.monkeyfit-landing-dark #entrenamientos .landing-info-card p{
  color:#5b5f63 !important;
}

.monkeyfit-landing-dark #entrenamientos .landing-section-heading span{
  background:#090909 !important;
  color:#ffffff !important;
  border:0;
}

.monkeyfit-landing-dark #entrenamientos .landing-info-card{
  background:#ffffff !important;
  color:#090909 !important;
  border-color:#e4e4e0 !important;
  box-shadow:0 22px 55px rgba(0,0,0,.08) !important;
}

.monkeyfit-landing-dark #entrenamientos .landing-info-card.dark-card{
  background:#090909 !important;
  color:#ffffff !important;
}

.monkeyfit-landing-dark #entrenamientos .landing-info-card.dark-card p{
  color:rgba(255,255,255,.72) !important;
}

.monkeyfit-landing-dark .landing-split-section{
  background:#0b0b0b !important;
  color:#ffffff;
  border-top:1px solid rgba(255,255,255,.12);
  border-bottom:1px solid rgba(255,255,255,.12);
}

.monkeyfit-landing-dark .landing-split-section .landing-section-heading p,
.monkeyfit-landing-dark .landing-split-section .landing-branch-list p{
  color:rgba(255,255,255,.68) !important;
}

.monkeyfit-landing-dark .landing-split-section .landing-branch-list article{
  background:#151515 !important;
  color:#ffffff !important;
  border-color:rgba(255,255,255,.12) !important;
}

.monkeyfit-landing-dark .landing-split-section .landing-section-heading span{
  background:#ffffff !important;
  color:#090909 !important;
  border:0;
}

.monkeyfit-landing-dark .owner-section{
  background:#ffffff !important;
  color:#090909;
}

.monkeyfit-landing-dark .owner-section .landing-eyebrow{
  background:#090909 !important;
  color:#ffffff !important;
  border:0;
}

.monkeyfit-landing-dark .owner-section p{
  color:#565b60 !important;
}

.monkeyfit-landing-dark .owner-photo-placeholder{
  background:#090909 !important;
  color:#ffffff !important;
}

.monkeyfit-landing-dark .platform-section{
  background:
    radial-gradient(circle at 18% 12%, rgba(239,68,68,.22), transparent 24%),
    linear-gradient(180deg, #111111 0%, #050505 100%) !important;
  color:#ffffff;
  border-top:1px solid rgba(255,255,255,.12);
  border-bottom:1px solid rgba(255,255,255,.12);
}

.monkeyfit-landing-dark .platform-section .landing-section-heading p,
.monkeyfit-landing-dark .platform-access-card span{
  color:rgba(255,255,255,.66) !important;
}

.monkeyfit-landing-dark .platform-access-card{
  background:#121212 !important;
  color:#ffffff !important;
  border-color:rgba(255,255,255,.14) !important;
}

.monkeyfit-landing-dark .platform-section .landing-section-heading span{
  background:#ffffff !important;
  color:#090909 !important;
  border:0;
}

.monkeyfit-landing-dark .contact-section{
  background:#f4f4f1 !important;
  color:#090909;
}

.monkeyfit-landing-dark .contact-section .landing-eyebrow{
  background:#090909 !important;
  color:#ffffff !important;
  border:0;
}

.monkeyfit-landing-dark .contact-section p{
  color:#565b60 !important;
}

.monkeyfit-landing-dark .contact-section .btn-outline-light{
  color:#090909;
  border-color:rgba(0,0,0,.22);
}

.monkeyfit-landing-dark .contact-section .btn-outline-light:hover{
  background:#090909;
  color:#ffffff;
}

.monkeyfit-landing-dark .landing-footer{
  background:#050505 !important;
  border-top:1px solid rgba(255,255,255,.10);
}

/* Alineación real del panel izquierdo del login CrossControl */
.login-crosscontrol-theme .auth-brand-panel{
  display:grid !important;
  place-items:center !important;
  padding:clamp(34px, 5vw, 80px) !important;
}

.login-crosscontrol-theme .auth-brand-content{
  width:min(520px, 100%) !important;
  min-height:560px;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  gap:18px !important;
  margin:0 auto !important;
}

.login-crosscontrol-theme .auth-brand-content > div{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  width:100%;
}

.login-crosscontrol-theme .auth-logo{
  width:150px !important;
  height:150px !important;
  margin:0 auto 8px !important;
  object-fit:contain;
}

.login-crosscontrol-theme .auth-kicker{
  margin:0 auto !important;
}

.login-crosscontrol-theme .auth-brand-content h1{
  margin:16px auto 0 !important;
  max-width:460px;
  text-align:right !important;
}

.login-crosscontrol-theme .auth-brand-content p{
  margin:16px auto 0 !important;
  max-width:430px;
  text-align:center !important;
}

/* + Más debe permanecer cerrado hasta que el usuario haga click,
   salvo cuando esté dentro de alguna ruta hija. */
.nav-more-group:not([open]) .nav-submenu{
  display:none !important;
}

.nav-more-group[open] .nav-submenu{
  display:grid !important;
}

@media (max-width: 980px){
  .monkeyfit-landing-dark{
    padding-top:72px;
  }

  .monkeyfit-landing-dark .landing-navbar{
    position:fixed !important;
    min-height:72px;
    align-items:center !important;
    padding:12px 18px;
  }

  .monkeyfit-landing-dark .landing-nav-links{
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:10px;
  }

  .login-crosscontrol-theme .auth-brand-content{
    min-height:auto;
    gap:14px !important;
  }
}

@media (max-width: 640px){
  .monkeyfit-landing-dark{
    padding-top:68px;
  }

  .monkeyfit-landing-dark .landing-navbar{
    min-height:68px;
    padding:10px 16px;
  }

  .monkeyfit-landing-dark .landing-brand img{
    width:34px;
    height:34px;
  }

  .monkeyfit-landing-dark .landing-brand span{
    font-size:12px;
  }

  .monkeyfit-landing-dark .landing-login-btn{
    padding:9px 13px;
    font-size:12px;
  }

  .monkeyfit-landing-dark .landing-section{
    padding-top:48px;
    padding-bottom:52px;
  }

  .monkeyfit-landing-dark .landing-hero-section{
    padding-top:42px;
  }

  .login-crosscontrol-theme .auth-logo{
    width:94px !important;
    height:94px !important;
  }
}
/* Corrección título CrossControl en login */
.login-crosscontrol-theme .auth-brand-content{
  width: 100% !important;
  max-width: 520px !important;
  padding-inline: 18px !important;
  box-sizing: border-box !important;
}

.login-crosscontrol-theme .auth-brand-content h1{
  width: 100% !important;
  max-width: 100% !important;
  text-align: center !important;
  font-size: clamp(35px, 4.6vw, 54px) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.05em !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

@media (max-width: 900px){
  .login-crosscontrol-theme .auth-brand-content h1{
    font-size: clamp(34px, 12vw, 52px) !important;
    letter-spacing: -0.04em !important;
  }
@media (max-width: 640px){
  .login-crosscontrol-theme .auth-brand-content h1{
    font-size:34px !important;
    line-height:1 !important;
    letter-spacing:-.04em !important;
    white-space:nowrap !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
  }
}
}
/* =========================================================
   CrossControl visual adjustments - dashboard/classes/students/workouts
   ========================================================= */
.student-summary-grid{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.dashboard-subscription-row{
  grid-template-columns:minmax(260px, 1.2fr) minmax(120px, .5fr) minmax(150px, .7fr) minmax(120px, .45fr);
}

.class-filterbar,
.workout-date-toolbar{
  align-items:flex-end;
}

.date-stepper,
.workout-date-toolbar{
  display:flex;
  align-items:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.date-step-btn{
  width:46px;
  height:46px;
  border-radius:16px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--primary);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:30px;
  font-weight:900;
  line-height:1;
  box-shadow:0 12px 26px rgba(15,23,42,.06);
}

.date-step-btn:hover{
  background:var(--primary);
  color:#fff;
}

.date-step-field{
  min-width:210px;
}

.crosscontrol-class-row{
  grid-template-columns:minmax(280px, 1.25fr) minmax(110px, .45fr) minmax(120px, .45fr) auto;
}

a.crosscontrol-class-row:hover,
.subscription-main-link:hover{
  color:var(--primary-2);
}

.student-profile-summary{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
}

.student-profile-summary .compact-stat-card{
  align-items:flex-start;
  flex-direction:column;
}

.student-profile-summary small{
  color:var(--muted);
  font-weight:700;
}

.student-status-text.is-active{
  color:#166534;
}

.student-status-text.is-expired{
  color:#991b1b;
}

.cross-student-hero{
  align-items:center;
}

.student-hero-actions{
  justify-content:flex-end;
}

.more-actions-menu{
  position:relative;
}

.more-actions-menu summary{
  list-style:none;
}

.more-actions-menu summary::-webkit-details-marker{
  display:none;
}

.icon-only-btn{
  width:46px;
  min-width:46px;
  padding:0;
  font-size:18px;
}

.more-actions-panel{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  z-index:20;
  width:min(340px, calc(100vw - 42px));
  padding:10px;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  box-shadow:0 24px 60px rgba(15,23,42,.16);
  display:grid;
  gap:8px;
}

.more-action-item,
.more-action-nested > summary{
  width:100%;
  min-height:42px;
  display:flex;
  align-items:center;
  padding:0 12px;
  border:none;
  border-radius:14px;
  background:#f8fafc;
  color:var(--text);
  cursor:pointer;
  font-weight:800;
  text-align:left;
}

.more-action-item:hover,
.more-action-nested > summary:hover{
  background:var(--primary-soft);
  color:var(--primary-2);
}

.compact-mini-form{
  margin-top:8px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fbfcf9;
  display:grid;
  gap:8px;
}

.compact-mini-form input,
.compact-mini-form select{
  min-height:40px;
  border-radius:12px;
}

.mini-grid-two{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
}

.subscription-history-list{
  gap:12px;
}

.subscription-row{
  grid-template-columns:minmax(260px, 1.25fr) minmax(120px, .45fr) minmax(120px, .45fr) minmax(140px, .55fr) auto;
  align-items:center;
}

.subscription-row.is-selected{
  border-color:rgba(185,28,28,.35);
  box-shadow:0 18px 40px rgba(185,28,28,.08);
}

.subscription-main-link{
  display:grid;
  gap:4px;
  min-width:0;
}

.subscription-main-link strong,
.subscription-main-link small{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
}

.subscription-main-link small{
  color:var(--muted);
  font-size:12px;
}

.icon-actions{
  gap:6px;
}

.icon-action-btn{
  width:34px;
  height:34px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--primary);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-weight:900;
  line-height:1;
}

.icon-action-btn:hover{
  background:var(--primary);
  color:#fff;
}

.icon-action-btn.danger{
  color:#dc2626;
}

.icon-action-btn.danger:hover{
  background:#dc2626;
  color:#fff;
  border-color:#dc2626;
}

.workout-editor-card .section-header{
  align-items:center;
}

.workout-actions{
  display:flex;
  justify-content:flex-end;
}

@media (max-width: 980px){
  .student-summary-grid,
  .student-profile-summary{
    grid-template-columns:1fr;
  }
  .dashboard-subscription-row,
  .crosscontrol-class-row,
  .subscription-row{
    grid-template-columns:1fr;
    align-items:start;
  }
  .subscription-row .row-meta,
  .subscription-row .row-meta.stacked,
  .crosscontrol-class-row .row-meta,
  .crosscontrol-class-row .row-meta.stacked{
    padding-left:0;
  }
  .student-hero-actions{
    justify-content:flex-start;
  }
}

@media (max-width: 640px){
  .date-stepper,
  .workout-date-toolbar{
    display:grid;
    grid-template-columns:46px 1fr 46px;
    width:100%;
  }
  .date-step-field{
    min-width:0;
  }
  .date-stepper .btn,
  .workout-date-toolbar .btn{
    grid-column:1 / -1;
    width:100%;
  }
  .more-actions-menu,
  .more-actions-panel{
    width:100%;
  }
  .more-actions-panel{
    position:static;
    margin-top:8px;
  }
  .mini-grid-two{
    grid-template-columns:1fr;
  }
  .workout-actions .btn{
    width:100%;
  }
}

/* =========================================================
   CrossControl ajustes compactos: alumnos, planes y licencias
   ========================================================= */
.student-compact-row,
.dashboard-subscription-row,
.license-row,
.plan-row-click{
  grid-template-columns:minmax(280px,1.25fr) minmax(120px,.45fr) minmax(140px,.55fr) minmax(120px,.45fr);
  cursor:pointer;
}

.plan-row-click{
  grid-template-columns:minmax(280px,1.25fr) minmax(120px,.45fr) minmax(120px,.45fr) auto;
}

.license-row{
  grid-template-columns:minmax(300px,1.35fr) minmax(180px,.75fr) minmax(120px,.45fr) auto;
}

.favorite-pill{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 9px;
  margin-left:6px;
  border-radius:999px;
  background:#dcfce7;
  color:#166534;
  font-size:11px;
  font-weight:900;
  vertical-align:middle;
}

.icon-actions{
  justify-content:flex-end;
  flex-wrap:nowrap;
}

.icon-action-btn{
  width:34px;
  min-width:34px;
  height:34px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  color:#111827;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  cursor:pointer;
  transition:.18s ease;
}

.icon-action-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 20px rgba(15,23,42,.08);
}

.icon-action-btn.danger{
  color:#b91c1c;
  border-color:#fecaca;
  background:#fff5f5;
}

.status-pill.danger-soft{
  background:#fee2e2;
  color:#991b1b;
}

.btn-success{
  background:#16a34a;
  color:#fff;
}

.btn-success:hover{
  background:#15803d;
}

@media (max-width: 980px){
  .student-compact-row,
  .dashboard-subscription-row,
  .license-row,
  .plan-row-click{
    grid-template-columns:1fr;
    align-items:start;
  }
  .icon-actions{
    justify-content:flex-start;
  }
}

/* =========================================================
   CrossControl alumno: fechas, clases móviles y workouts
   ========================================================= */
.date-nav-toolbar,
.date-stepper,
.workout-date-toolbar{
  align-items:flex-end;
}

.date-step-field{
  display:grid;
  gap:6px;
}

.date-step-field label{
  min-height:18px;
  font-size:13px;
  font-weight:800;
  color:var(--secondary-2);
}

.date-step-field input[type="date"]{
  min-height:46px;
}

.mobile-scroll-list{
  width:100%;
}

.workout-readonly-box{
  margin-top:16px;
}

.crosscontrol-reservation-row{
  grid-template-columns:minmax(280px,1.2fr) minmax(130px,.45fr);
}

.class-action-cell{
  justify-content:flex-end;
}

@media (max-width: 980px){
  .crosscontrol-reservation-row{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .date-stepper,
  .workout-date-toolbar{
    display:grid !important;
    grid-template-columns:46px minmax(0,1fr) 46px;
    align-items:end !important;
    gap:8px;
  }

  .date-step-btn{
    align-self:end;
    width:44px;
    height:46px;
    min-width:44px;
    margin:0;
    position:relative;
    z-index:1;
  }

  .date-step-field{
    min-width:0 !important;
    width:100%;
  }

  .date-step-field input[type="date"]{
    min-width:0;
    width:100%;
    padding-inline:10px;
    font-size:14px;
  }

  .class-filterbar .class-branch-field,
  .date-nav-toolbar > .btn,
  .workout-date-toolbar > .btn{
    grid-column:1 / -1;
    width:100%;
  }

  .mobile-scroll-list{
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    padding-bottom:8px;
  }

  .mobile-scroll-list .clean-list{
    min-width:720px;
  }

  .mobile-scroll-list .crosscontrol-class-row{
    min-width:720px;
    grid-template-columns:minmax(300px,1.25fr) minmax(100px,.45fr) minmax(120px,.45fr) minmax(150px,.55fr);
    align-items:center;
  }

  .mobile-scroll-list .crosscontrol-reservation-row{
    min-width:620px;
    grid-template-columns:minmax(360px,1.2fr) minmax(140px,.45fr);
    align-items:center;
  }

  .mobile-scroll-list .row-meta,
  .mobile-scroll-list .row-meta.stacked{
    padding-left:0 !important;
  }

  .class-action-cell{
    justify-content:flex-start;
  }
}

/* =========================================================
   CrossControl alumno: perfil, inicio limpio, fechas y texto largo
   ========================================================= */
.cross-student-home .student-status-card .section-header{
  align-items:center;
}

.student-home-kpis .compact-stat-card{
  min-height:92px;
}

.subscription-filter-form{
  min-width:min(360px, 100%);
}

.subscription-filter-form select{
  min-height:44px;
  border-radius:14px;
}

.clickable-row{
  cursor:pointer;
}

.clickable-row:hover{
  border-color:rgba(185,28,28,.30);
  box-shadow:0 14px 30px rgba(15,23,42,.06);
  transform:translateY(-1px);
}

.date-stepper,
.workout-date-toolbar{
  align-items:center !important;
}

.date-stepper .date-step-field label,
.workout-date-toolbar .date-step-field label,
.workout-date-toolbar .form-field label{
  display:none;
}

.date-stepper .date-step-field,
.workout-date-toolbar .date-step-field,
.workout-date-toolbar .form-field{
  min-width:220px;
}

.workout-box pre,
.workout-readonly-box pre{
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:break-word;
  max-width:100%;
  margin:0;
}

.class-reservation-detail-row{
  grid-template-columns:minmax(280px,1.2fr) minmax(120px,.45fr) auto;
}

.cross-self-profile-form .form-actions{
  justify-content:flex-end;
}

@media (max-width: 980px){
  .class-reservation-detail-row{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .cross-student-welcome .actions-row{
    width:100%;
    display:grid;
    grid-template-columns:1fr;
  }

  .date-stepper,
  .workout-date-toolbar{
    grid-template-columns:44px minmax(0,1fr) 44px !important;
    align-items:center !important;
  }

  .date-step-btn{
    align-self:center !important;
  }

  .date-stepper .date-step-field,
  .workout-date-toolbar .date-step-field,
  .workout-date-toolbar .form-field{
    min-width:0 !important;
    align-self:center;
  }

  .class-filterbar{
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
  }

  .class-filterbar .date-stepper{
    width:100%;
  }

  .class-filterbar .class-branch-field{
    width:100%;
    grid-column:1 / -1;
  }

  .mobile-scroll-list .subscription-row{
    min-width:720px;
    grid-template-columns:minmax(280px,1.25fr) minmax(120px,.45fr) minmax(140px,.55fr) minmax(120px,.45fr);
    align-items:center;
  }

  .mobile-scroll-list .class-reservation-detail-row{
    min-width:640px;
    grid-template-columns:minmax(300px,1.2fr) minmax(120px,.45fr) minmax(180px,.7fr);
    align-items:center;
  }

  .subscription-filter-form{
    width:100%;
  }

  .cross-self-profile-form .form-actions .btn{
    width:100%;
  }
}

/* =========================================================
   CrossControl alumno - corrección móvil clases/reservas
   ========================================================= */
.student-reservations-section .student-reservation-header{
  display:block;
  margin-bottom:12px;
}

.student-reservation-filter{
  width:100%;
  max-width:420px;
  margin:0 0 14px;
}

.student-reservation-filter select{
  width:100%;
  max-width:100%;
}

.student-reservations-list{
  width:100%;
  min-width:0;
}

.student-reservation-row{
  grid-template-columns:minmax(0,1fr) minmax(120px,.35fr);
  align-items:center;
}

.student-reservation-row .row-main strong,
.student-reservation-row .row-main small{
  display:block;
  white-space:normal;
  overflow-wrap:anywhere;
}

.student-reservation-row .row-main small{
  margin-top:4px;
  color:var(--muted);
}

.student-classes-hero{
  align-items:center;
}

.student-classes-title-row{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.student-classes-title-row h1{
  margin-bottom:0;
}

.student-classes-pills{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.student-classes-browser .section-header{
  margin-bottom:14px;
}

.student-class-filter-form{
  display:grid;
  gap:14px;
  margin-bottom:18px;
}

.student-date-stepper{
  width:min(520px, 100%);
  display:grid;
  grid-template-columns:48px minmax(0,1fr) 48px;
  align-items:center;
  gap:10px;
}

.student-date-stepper .date-step-btn{
  align-self:center !important;
  width:48px;
  min-width:48px;
  height:50px;
  margin:0;
  position:static;
}

.student-date-field{
  min-width:0 !important;
  width:100%;
  display:block;
}

.student-date-field input[type="date"]{
  width:100%;
  min-width:0;
  height:50px;
  min-height:50px;
  text-align:center;
  border-radius:18px;
  padding-inline:12px;
}

.student-class-list{
  width:100%;
  min-width:0;
}

.student-class-row{
  grid-template-columns:minmax(0,1.2fr) minmax(100px,.4fr) minmax(130px,.45fr) auto;
}

.student-class-row .row-main strong,
.student-class-row .row-main small{
  white-space:normal;
  overflow-wrap:anywhere;
}

.workout-box,
.workout-readonly-box{
  max-width:100%;
  overflow:hidden;
}

.workout-box pre,
.workout-readonly-box pre{
  white-space:pre-wrap !important;
  overflow-wrap:anywhere !important;
  word-break:break-word !important;
  max-width:100% !important;
  overflow-x:hidden !important;
}

@media (max-width: 640px){
  .student-reservation-filter{
    max-width:100%;
  }

  .student-reservation-row{
    grid-template-columns:1fr;
    min-width:0 !important;
  }

  .student-reservation-row .row-meta{
    padding-left:0 !important;
  }

  .student-classes-hero{
    align-items:flex-start;
  }

  .student-classes-title-row{
    display:grid;
    gap:10px;
  }

  .student-classes-pills{
    align-items:flex-start;
  }

  .student-class-filter-form{
    gap:12px;
  }

  .student-date-stepper{
    width:100%;
    grid-template-columns:44px minmax(0,1fr) 44px;
    gap:8px;
  }

  .student-date-stepper .date-step-btn{
    width:44px;
    min-width:44px;
    height:48px;
    align-self:center !important;
  }

  .student-date-field input[type="date"]{
    height:48px;
    min-height:48px;
    font-size:14px;
    padding-inline:8px;
  }

  .student-class-row{
    grid-template-columns:1fr;
    min-width:0 !important;
    align-items:start;
  }

  .student-class-row .row-meta,
  .student-class-row .row-meta.stacked{
    padding-left:0 !important;
  }

  .student-class-row .class-action-cell{
    justify-content:flex-start;
  }
}

/* =========================================================
   CrossControl alumno - ajuste final reservas, clases y switch módulos
   ========================================================= */
.student-reservation-scroll{
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  padding-bottom:8px;
}

.student-reservation-scroll .student-reservations-list{
  min-width:640px;
}

.student-reservation-scroll .student-reservation-row{
  grid-template-columns:minmax(360px, 1fr) minmax(110px, .25fr) !important;
  align-items:center;
}

.student-reservation-row .row-main{
  min-width:0;
}

.student-reservation-row .row-main strong,
.student-reservation-row .row-main small{
  display:block;
  max-width:100%;
  white-space:normal;
  overflow-wrap:anywhere;
}

.cc-date-nav{
  width:min(520px, 100%);
  display:grid !important;
  grid-template-columns:50px minmax(0, 1fr) 50px !important;
  align-items:center !important;
  gap:10px;
}

.cc-date-nav .date-step-btn{
  position:static !important;
  inset:auto !important;
  transform:none !important;
  grid-column:auto !important;
  align-self:center !important;
  justify-self:center !important;
  width:50px !important;
  min-width:50px !important;
  height:50px !important;
  margin:0 !important;
  z-index:1;
}

.cc-date-nav .date-step-field{
  grid-column:auto !important;
  min-width:0 !important;
  width:100% !important;
  align-self:center !important;
}

.cc-date-nav .date-step-field input[type="date"]{
  width:100% !important;
  min-width:0 !important;
  height:50px !important;
  min-height:50px !important;
  text-align:center;
  border-radius:18px;
  padding-inline:12px;
}

.student-class-list{
  width:100%;
}

.student-class-row{
  grid-template-columns:minmax(0, 1fr) auto !important;
  gap:12px !important;
  align-items:center !important;
}

.student-class-row .class-main-info{
  min-width:0;
}

.student-class-row .class-main-info strong,
.student-class-row .class-main-info small{
  display:block;
  white-space:normal;
  overflow-wrap:anywhere;
}

.class-side-info{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
  min-width:max-content;
}

.class-cupo-pill{
  white-space:nowrap;
}

.class-action-cell{
  margin:0;
  justify-content:flex-end;
  flex-wrap:nowrap;
}

.class-action-cell form{
  margin:0;
}

.class-reserve-btn{
  min-height:34px;
  padding:0 12px;
  border-radius:12px;
  font-size:12px;
}

.module-switch-link{
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.08);
}

@media (max-width: 640px){
  .student-reservation-scroll .student-reservations-list{
    min-width:620px;
  }

  .student-reservation-scroll .student-reservation-row{
    min-width:620px !important;
    grid-template-columns:minmax(400px, 1fr) minmax(100px, .25fr) !important;
  }

  .cc-date-nav{
    width:100% !important;
    grid-template-columns:44px minmax(0, 1fr) 44px !important;
    gap:8px;
  }

  .cc-date-nav .date-step-btn{
    width:44px !important;
    min-width:44px !important;
    height:48px !important;
  }

  .cc-date-nav .date-step-field input[type="date"]{
    height:48px !important;
    min-height:48px !important;
    font-size:14px;
    padding-inline:8px;
  }

  .student-class-row{
    grid-template-columns:1fr !important;
    min-width:0 !important;
    align-items:start !important;
  }

  .class-side-info{
    width:100%;
    min-width:0;
    justify-content:space-between;
    gap:8px;
  }

  .class-action-cell{
    justify-content:flex-end !important;
  }

  .class-reserve-btn{
    min-width:88px;
  }
}
/*asd*/
.student-reservation-scroll{
  width:100%;
  max-width:100%;
  overflow-x:hidden !important;
}

.student-reservations-list{
  width:100%;
  max-width:100%;
  min-width:0 !important;
}

.student-reservations-list .student-reservation-row{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  display:grid !important;
  grid-template-columns:minmax(0, 1fr) auto !important;
  gap:10px !important;
  align-items:center !important;
}

.student-reservations-list .student-reservation-row .row-main{
  min-width:0 !important;
  max-width:100% !important;
}

.student-reservations-list .student-reservation-row .row-main > div{
  min-width:0 !important;
  max-width:100% !important;
}

.student-reservations-list .student-reservation-row .row-main strong,
.student-reservations-list .student-reservation-row .row-main small{
  display:block;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
}

.student-reservations-list .student-reservation-row .row-meta{
  padding-left:0 !important;
  min-width:auto !important;
  width:auto !important;
  justify-self:end !important;
}

.student-reservations-list .student-reservation-row .row-meta strong{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap !important;
  padding:5px 9px;
  border-radius:999px;
  background:#eef2f7;
  color:#334155;
  font-size:11px;
}
.student-reservations-list .student-reservation-row .row-meta strong.estado-reservada{
  background:#dcfce7;
  color:#166534;
}

.student-reservations-list .student-reservation-row .row-meta strong.estado-cancelada{
  background:#fee2e2;
  color:#991b1b;
}

.student-reservations-list .student-reservation-row .row-meta strong.estado-neutral{
  background:#eef2f7;
  color:#334155;
}

@media (max-width:640px){
  .student-reservation-scroll{
    overflow-x:hidden !important;
  }

  .student-reservations-list,
  .student-reservations-list .student-reservation-row{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }

  .student-reservations-list .student-reservation-row{
    grid-template-columns:minmax(0, 1fr) auto !important;
    padding:12px !important;
  }

  .student-reservations-list .student-reservation-row .row-meta{
    padding-left:0 !important;
  }

  .student-reservations-list .student-reservation-row .row-main small{
    font-size:12px;
    line-height:1.35;
  }
}
/* =========================================================
   CrossControl admin/superadmin - inicio, alumnos y formularios
   ========================================================= */
.form-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin-top:18px;
  width:100%;
}

.form-actions a,
.form-actions button{
  margin:0;
}

.admin-dashboard-kpis .compact-stat-card,
.student-summary-grid .compact-stat-card{
  flex-direction:column;
  justify-content:center;
  text-align:center;
  gap:8px;
  min-height:96px;
}

.admin-dashboard-kpis .compact-stat-card strong{
  font-size:clamp(22px, 2.4vw, 28px);
  white-space:nowrap;
}

.student-summary-grid{
  width:100%;
  max-width:none;
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  justify-content:stretch;
  margin-inline:0;
}

.student-summary-grid .compact-stat-card{
  width:100%;
  min-height:118px;
}

.student-summary-grid .compact-stat-card span,
.student-summary-grid .compact-stat-card strong{
  text-align:center;
  width:100%;
}

.student-summary-grid .compact-stat-card strong{
  font-size:clamp(28px, 4vw, 40px);
}

.dashboard-subscriptions-scroll,
.students-scroll-wrap{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  padding-bottom:8px;
}

.dashboard-subscriptions-list,
.students-list{
  min-width:0;
}

.dashboard-subscription-row,
.student-list-row{
  align-items:center;
}

.dashboard-subscription-row .row-meta,
.dashboard-subscription-row .row-meta.stacked,
.student-list-row .row-meta,
.student-list-row .row-meta.stacked{
  padding-left:0 !important;
}

@media (max-width:980px){
  .quick-actions-grid,
  .compact-stats-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .student-summary-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width:640px){
  .form-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    width:100%;
  }

  .form-actions a,
  .form-actions button{
    width:100%;
  }

  .admin-dashboard-kpis{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }

  .student-summary-grid{
    width:100%;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }

  .admin-dashboard-kpis .compact-stat-card{
    padding:14px 10px;
    min-height:88px;
  }

  .student-summary-grid .compact-stat-card{
    padding:18px 12px;
    min-height:112px;
  }

  .admin-dashboard-kpis .compact-stat-card span,
  .student-summary-grid .compact-stat-card span{
    font-size:12px;
    line-height:1.25;
  }

  .admin-dashboard-kpis .compact-stat-card strong{
    font-size:20px;
  }

  .student-summary-grid .compact-stat-card strong{
    font-size:30px;
  }

  .dashboard-subscriptions-scroll .clean-list,
  .students-scroll-wrap .clean-list{
    min-width:760px !important;
  }

  .dashboard-subscriptions-scroll .dashboard-subscription-row{
    min-width:760px !important;
    grid-template-columns:minmax(300px,1.2fr) minmax(110px,.45fr) minmax(150px,.6fr) minmax(120px,.45fr) !important;
    align-items:center !important;
  }

  .students-scroll-wrap .student-list-row{
    min-width:760px !important;
    grid-template-columns:minmax(300px,1.2fr) minmax(100px,.4fr) minmax(150px,.6fr) minmax(150px,.55fr) !important;
    align-items:center !important;
  }

  .dashboard-subscriptions-scroll .row-meta,
  .dashboard-subscriptions-scroll .row-meta.stacked,
  .students-scroll-wrap .row-meta,
  .students-scroll-wrap .row-meta.stacked{
    padding-left:0 !important;
  }
}

/* Horarios CrossControl - columnas alineadas y scroll móvil */
.horarios-scroll-wrap{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  padding-bottom:6px;
}

.horarios-list{
  min-width:0;
}

.horario-list-row{
  display:grid !important;
  grid-template-columns:minmax(280px, 1.4fr) minmax(80px, .35fr) minmax(90px, .4fr) minmax(120px, .5fr) minmax(96px, auto) !important;
  gap:12px !important;
  align-items:center !important;
  width:100% !important;
  min-width:720px !important;
}

.horario-list-row .row-main,
.horario-list-row .row-main > div,
.horario-list-row .row-meta{
  min-width:0 !important;
}

.horario-list-row .row-main strong,
.horario-list-row .row-main small,
.horario-list-row .row-meta strong,
.horario-list-row .row-meta span{
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

.horario-list-row .row-meta.stacked{
  justify-items:start !important;
}

.horario-row-actions{
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:8px !important;
  min-width:96px !important;
  width:auto !important;
  padding-left:0 !important;
}

.horario-row-actions form{
  margin:0 !important;
  display:inline-flex !important;
}

.horario-row-actions .btn,
.horario-row-actions button,
.horario-row-actions a{
  width:36px !important;
  min-width:36px !important;
  height:36px !important;
  min-height:36px !important;
  padding:0 !important;
  border-radius:12px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}

@media (max-width:640px){
  .horarios-scroll-wrap{
    overflow-x:auto !important;
    padding-bottom:10px;
  }

  .horario-list-row{
    width:max-content !important;
    min-width:720px !important;
    grid-template-columns:280px 80px 90px 120px 96px !important;
  }
}

/* =========================================================
   CrossControl admin/superadmin - ajustes UI alumnos/listas catálogo
   ========================================================= */
.student-summary-grid{
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  width:100% !important;
  max-width:none !important;
  gap:18px !important;
  margin-inline:0 !important;
}

.student-summary-grid .compact-stat-card{
  width:100% !important;
  min-width:0 !important;
  min-height:132px !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:center !important;
  text-align:center !important;
}

.student-summary-grid .compact-stat-card span,
.student-summary-grid .compact-stat-card strong{
  width:100% !important;
  text-align:center !important;
}

.student-summary-grid .compact-stat-card strong{
  font-size:clamp(34px, 4vw, 46px) !important;
  line-height:1 !important;
}

@media (min-width:641px){
  .students-scroll-wrap{
    overflow-x:visible !important;
  }

  .students-list .student-list-row{
    grid-template-columns:minmax(260px, 1.35fr) minmax(82px, .32fr) minmax(140px, .48fr) minmax(150px, .5fr) !important;
    align-items:center !important;
    width:100% !important;
  }

  .students-list .student-list-row .row-meta,
  .students-list .student-list-row .row-meta.stacked{
    min-width:0 !important;
    padding-left:0 !important;
    justify-items:start !important;
  }

  .students-list .student-list-row .row-main,
  .students-list .student-list-row .row-main > div{
    min-width:0 !important;
  }

  .students-list .student-list-row .row-main strong,
  .students-list .student-list-row .row-main small,
  .students-list .student-list-row .row-meta strong,
  .students-list .student-list-row .row-meta small,
  .students-list .student-list-row .row-meta span:not(.status-pill){
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    max-width:100% !important;
  }

  .students-list .student-list-row .status-pill{
    white-space:nowrap !important;
  }
}

.catalog-scroll-wrap{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  padding-bottom:8px;
}

.catalog-list-row{
  align-items:center !important;
}

.catalog-list-row .row-main,
.catalog-list-row .row-main > div,
.catalog-list-row .row-meta{
  min-width:0 !important;
}

.catalog-list-row .row-main strong,
.catalog-list-row .row-main small,
.catalog-list-row .row-meta strong,
.catalog-list-row .row-meta small,
.catalog-list-row .row-meta span:not(.status-pill){
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  max-width:100% !important;
}

.tipo-entrenamiento-row{
  grid-template-columns:minmax(280px, 1.25fr) minmax(90px, .35fr) minmax(125px, .45fr) minmax(96px, auto) !important;
}

.sucursal-list-row{
  grid-template-columns:minmax(280px, 1.3fr) minmax(110px, .45fr) minmax(160px, .6fr) !important;
}

.plan-list-row{
  grid-template-columns:minmax(300px, 1.25fr) minmax(120px, .45fr) minmax(120px, .45fr) minmax(96px, auto) !important;
}

.catalog-row-actions,
.tipo-entrenamiento-row .row-actions,
.plan-list-row .row-actions{
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:8px !important;
  min-width:96px !important;
  width:auto !important;
  padding-left:0 !important;
}

.catalog-row-actions form,
.tipo-entrenamiento-row .row-actions form,
.plan-list-row .row-actions form{
  margin:0 !important;
  display:inline-flex !important;
}

.catalog-row-actions .btn,
.catalog-row-actions button,
.catalog-row-actions a,
.tipo-entrenamiento-row .row-actions .btn,
.tipo-entrenamiento-row .row-actions button,
.tipo-entrenamiento-row .row-actions a,
.plan-list-row .row-actions .btn,
.plan-list-row .row-actions button,
.plan-list-row .row-actions a{
  width:36px !important;
  min-width:36px !important;
  height:36px !important;
  min-height:36px !important;
  padding:0 !important;
  border-radius:12px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}

@media (max-width:640px){
  .student-summary-grid{
    width:100% !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:10px !important;
  }

  .student-summary-grid .compact-stat-card{
    min-height:124px !important;
    padding:18px 10px !important;
  }

  .student-summary-grid .compact-stat-card span{
    font-size:12px !important;
    line-height:1.25 !important;
  }

  .student-summary-grid .compact-stat-card strong{
    font-size:34px !important;
  }

  .tipos-entrenamiento-list,
  .sucursales-list,
  .planes-list{
    min-width:760px !important;
  }

  .tipo-entrenamiento-row{
    width:max-content !important;
    min-width:760px !important;
    grid-template-columns:320px 90px 130px 100px !important;
  }

  .sucursal-list-row{
    width:max-content !important;
    min-width:720px !important;
    grid-template-columns:330px 120px 170px !important;
  }

  .plan-list-row{
    width:max-content !important;
    min-width:760px !important;
    grid-template-columns:330px 120px 130px 100px !important;
  }

  .catalog-row-actions,
  .tipo-entrenamiento-row .row-actions,
  .plan-list-row .row-actions{
    justify-content:flex-end !important;
  }
}

/* =========================================================
   CrossControl UI 4 - iconos SVG, acciones compactas y perfil alumno móvil
   ========================================================= */
.action-svg-icon{
  width:18px;
  height:18px;
  object-fit:contain;
  display:block;
  pointer-events:none;
}

.icon-action-btn .action-svg-icon,
.profile-icon-action .action-svg-icon{
  width:18px;
  height:18px;
}

.icon-actions,
.actions-row.icon-actions,
.row-actions.icon-actions,
.catalog-row-actions,
.horario-row-actions{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:8px !important;
  width:auto !important;
  min-width:96px !important;
}

.icon-actions form,
.catalog-row-actions form,
.horario-row-actions form{
  display:inline-flex !important;
  margin:0 !important;
  width:auto !important;
  min-width:auto !important;
}

.icon-actions .icon-action-btn,
.catalog-row-actions .icon-action-btn,
.horario-row-actions .icon-action-btn,
.profile-icon-action{
  width:36px !important;
  min-width:36px !important;
  height:36px !important;
  min-height:36px !important;
  padding:0 !important;
  border-radius:12px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.horario-row-actions .btn,
.horario-row-actions button,
.horario-row-actions a{
  width:36px !important;
  min-width:36px !important;
  height:36px !important;
  min-height:36px !important;
}

.student-profile-hero-actions{
  display:grid !important;
  grid-template-columns:1fr;
  gap:10px !important;
  justify-items:end;
  align-content:start;
}

.student-new-subscription-btn{
  width:max-content;
}

.student-profile-icon-actions{
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}

.profile-more-actions-menu{
  width:auto;
}

.profile-more-actions-menu .more-actions-panel{
  text-align:left;
}

.student-profile-scroll{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  padding-bottom:8px;
}

.subscription-history-scroll .subscription-history-list,
.license-scroll .license-list,
.recent-reservations-scroll .recent-reservations-list{
  min-width:0;
}

.recent-reservation-row{
  grid-template-columns:minmax(320px, 1.35fr) minmax(100px, .4fr) minmax(120px, .45fr) !important;
}

@media (max-width:980px){
  .student-profile-hero-actions{
    width:100%;
    justify-items:stretch;
  }

  .student-new-subscription-btn{
    width:100% !important;
  }

  .student-profile-icon-actions{
    width:100%;
    display:grid !important;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:10px;
  }

  .student-profile-icon-actions .profile-icon-action,
  .student-profile-icon-actions .profile-more-actions-menu,
  .student-profile-icon-actions .profile-more-actions-menu > summary{
    width:100% !important;
    min-width:0 !important;
  }

  .student-profile-icon-actions .profile-icon-action,
  .student-profile-icon-actions .profile-more-actions-menu > summary{
    height:44px !important;
    min-height:44px !important;
  }

  .student-profile-mobile-kpis{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:10px !important;
  }

  .student-profile-mobile-kpis .compact-stat-card{
    min-height:116px !important;
    padding:16px 10px !important;
    align-items:flex-start !important;
    justify-content:center !important;
  }

  .student-profile-mobile-kpis .compact-stat-card span{
    font-size:12px !important;
  }

  .student-profile-mobile-kpis .compact-stat-card strong{
    font-size:28px !important;
    line-height:1 !important;
  }

  .student-profile-mobile-kpis .compact-stat-card small{
    display:block;
    max-width:100%;
    white-space:normal;
    overflow-wrap:anywhere;
    font-size:11px !important;
    line-height:1.25;
  }

  .subscription-history-scroll .subscription-history-list,
  .license-scroll .license-list,
  .recent-reservations-scroll .recent-reservations-list{
    min-width:760px !important;
  }

  .subscription-history-scroll .subscription-row{
    width:max-content !important;
    min-width:760px !important;
    grid-template-columns:300px 110px 110px 150px 96px !important;
    align-items:center !important;
  }

  .license-scroll .license-row{
    width:max-content !important;
    min-width:760px !important;
    grid-template-columns:330px 180px 120px 96px !important;
    align-items:center !important;
  }

  .recent-reservations-scroll .recent-reservation-row{
    width:max-content !important;
    min-width:680px !important;
    grid-template-columns:390px 100px 120px !important;
    align-items:center !important;
  }

  .subscription-history-scroll .subscription-row .row-meta,
  .subscription-history-scroll .subscription-row .row-meta.stacked,
  .license-scroll .license-row .row-meta,
  .license-scroll .license-row .row-meta.stacked,
  .recent-reservations-scroll .recent-reservation-row .row-meta,
  .recent-reservations-scroll .recent-reservation-row .row-meta.stacked{
    padding-left:0 !important;
    min-width:0 !important;
  }

  .subscription-history-scroll .subscription-row .row-main strong,
  .subscription-history-scroll .subscription-row .row-main small,
  .subscription-history-scroll .subscription-main-link strong,
  .subscription-history-scroll .subscription-main-link small,
  .license-scroll .license-row .row-main strong,
  .license-scroll .license-row .row-main small,
  .recent-reservations-scroll .recent-reservation-row .row-main strong,
  .recent-reservations-scroll .recent-reservation-row .row-main small{
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  .subscription-history-scroll .icon-actions,
  .license-scroll .icon-actions,
  .recent-reservations-scroll .icon-actions,
  .catalog-row-actions,
  .tipo-entrenamiento-row .row-actions,
  .plan-list-row .row-actions,
  .horario-row-actions{
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    justify-content:flex-end !important;
    gap:8px !important;
    width:auto !important;
  }
}

@media (max-width:640px){
  .profile-more-actions-menu .more-actions-panel{
    position:absolute !important;
    right:0;
    top:calc(100% + 8px);
    width:min(320px, calc(100vw - 42px)) !important;
    margin-top:0 !important;
  }

  .catalog-row-actions .icon-action-btn,
  .tipo-entrenamiento-row .row-actions .icon-action-btn,
  .plan-list-row .row-actions .icon-action-btn,
  .horario-row-actions .icon-action-btn,
  .subscription-history-scroll .icon-action-btn,
  .license-scroll .icon-action-btn{
    width:36px !important;
    min-width:36px !important;
    height:36px !important;
    min-height:36px !important;
  }
}


/* Perfil editable alumno - Nutrición y CrossControl */
.student-dashboard-profile-actions{
  display:grid !important;
  gap:10px !important;
  justify-items:stretch;
  align-content:start;
}

.profile-edit-card{
  overflow:hidden;
}

.profile-edit-form .profile-edit-grid{
  align-items:start;
}

.profile-field label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.field-state-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:22px;
  padding:0 8px;
  border-radius:999px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.02em;
  text-transform:uppercase;
  white-space:nowrap;
}

.field-state-badge.editable{
  background:#dcfce7;
  color:#166534;
}

.field-state-badge.readonly{
  background:#eef2f7;
  color:#475569;
}

.profile-field.is-readonly input,
.profile-field.is-readonly select{
  background:#f8fafc;
  color:#64748b;
}

.profile-field.is-editable input,
.profile-field.is-editable select{
  border-color:rgba(109,119,103,.28);
}

@media (max-width:640px){
  .student-dashboard-profile-actions{
    width:100%;
  }

  .profile-field label{
    align-items:flex-start;
  }
}

/* Membresía y contacto del alumno CrossControl */
.student-home-actions{
  display:grid;
  gap:10px;
  justify-items:end;
}

.student-branch-contact{
  width:100%;
  justify-content:center;
}

.btn-whatsapp{
  background:#15803d;
  border-color:#15803d;
  color:#ffffff;
}

.btn-whatsapp:hover{
  background:#166534;
  border-color:#166534;
  color:#ffffff;
}

.membership-renewal-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  border-color:rgba(180,83,9,.22);
  background:linear-gradient(135deg, #fffbeb, #ffffff 72%);
}

.membership-renewal-card.is-expired{
  border-color:rgba(185,28,28,.24);
  background:linear-gradient(135deg, #fff1f2, #ffffff 72%);
}

.membership-renewal-copy{
  max-width:720px;
}

.membership-renewal-copy h2{
  margin:14px 0 8px;
}

.membership-renewal-copy p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

.membership-renewal-actions{
  display:grid;
  min-width:220px;
  gap:10px;
}

.membership-classes-notice{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  background:#fffbeb;
  border-color:#fde68a;
  color:#78350f;
}

.membership-classes-notice strong,
.membership-classes-notice span{
  display:block;
}

.membership-classes-notice span{
  margin-top:4px;
}

/* Contactos hardcodeados de la landing pública */
.landing-branch-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
}

.monkeyfit-landing-dark .landing-branch-list article .landing-branch-actions a{
  margin-top:0;
}

.monkeyfit-landing-dark .landing-branch-list article .landing-branch-whatsapp{
  padding:9px 14px;
  border:1px solid #ffffff;
  border-radius:999px;
  background:#ffffff;
  color:#090909;
  text-decoration:none;
}

@media (max-width:640px){
  .student-home-actions,
  .membership-renewal-actions{
    width:100%;
    justify-items:stretch;
  }

  .student-home-actions .actions-row{
    width:100%;
    display:grid;
    grid-template-columns:1fr;
  }

  .membership-renewal-card,
  .membership-classes-notice{
    align-items:stretch;
    flex-direction:column;
  }

  .membership-renewal-actions{
    min-width:0;
  }

  .membership-renewal-actions .btn,
  .membership-classes-notice .btn{
    width:100%;
  }
}
