/* ══════════════════════════════════════════════════════════════
   DISCIPLINE BOX — styles.css
   Editable desde el Panel Administrador → Apariencia
   ══════════════════════════════════════════════════════════════ */

/* ─── VARIABLES DE MARCA (EDITABLE DESDE ADMIN) ─── */
:root {
  --orange:      #FC4C04;
  --orange-dim:  #c93a02;
  --black:       #1C1C1C;
  --carbon:      #343434;
  --gray-light:  #ECECEC;
  --gray-mid:    #5a5a5a;
  --gray-dark:   #2a2a2a;
  --text-muted:  #999;
  --card-bg:     #2c2c2c;
  --border:      rgba(252,76,4,0.2);
  --success:     #22c55e;
  --danger:      #ef4444;
  --warning:     #f59e0b;
}

/* ─── RESET & BASE ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  background: var(--black);
  color: var(--gray-light);
  overflow-x: hidden;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 2px; }

/* ─── UTILITY ─── */
.hidden { display: none !important; }
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(28,28,28,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--gray-light);
  cursor: pointer;
  letter-spacing: 2px;
}
.nav-logo span { color: var(--orange); }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-link {
  background: none; border: none;
  color: var(--gray-light);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; cursor: pointer;
  padding: 8px 14px; border-radius: 4px;
  transition: all 0.2s;
}
.nav-link:hover { color: var(--orange); background: rgba(252,76,4,0.1); }
.nav-btn {
  background: var(--orange); color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; cursor: pointer;
  padding: 9px 20px; border: none; border-radius: 4px;
  transition: all 0.2s;
}
.nav-btn:hover { background: var(--orange-dim); transform: translateY(-1px); }
.nav-btn.outline {
  background: transparent; border: 1.5px solid var(--orange);
  color: var(--orange);
}
.nav-btn.outline:hover { background: var(--orange); color: white; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--gray-light); transition: all 0.3s;
}
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: var(--black); border-bottom: 1px solid var(--border);
  padding: 16px 24px; flex-direction: column; gap: 8px; z-index: 999;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link,
.mobile-menu .nav-btn { width: 100%; text-align: left; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(160deg, rgba(252,76,4,0.12) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(28,28,28,0.6) 0%, rgba(28,28,28,0.9) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='600'%3E%3Crect fill='%23343434' width='800' height='600'/%3E%3Cpath fill='%23FC4C04' opacity='0.05' d='M0 0h800v600H0z'/%3E%3Ccircle cx='400' cy='300' r='200' fill='none' stroke='%23FC4C04' stroke-width='1' opacity='0.1'/%3E%3C/svg%3E") center/cover;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding-top: 64px;
  transition: background-image 0.6s ease;
}
/* Cuando hay imagen de fondo personalizada */
.hero.has-bg-image {
  background: none !important;
}
.hero.has-bg-image .hero-bg-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
/* Capa de desvanecimiento sobre la imagen */
.hero.has-bg-image .hero-bg-img::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(160deg, rgba(252,76,4,0.18) 0%, transparent 40%),
    linear-gradient(to bottom,
      rgba(20,20,20,0.45) 0%,
      rgba(20,20,20,0.55) 40%,
      rgba(20,20,20,0.85) 80%,
      rgba(20,20,20,1.00) 100%
    );
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent, transparent 80px,
    rgba(252,76,4,0.02) 80px,
    rgba(252,76,4,0.02) 82px
  );
}
.hero-bg-text {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: min(25vw, 280px);
  color: rgba(252,76,4,0.04);
  white-space: nowrap; letter-spacing: 10px;
  pointer-events: none; user-select: none;
}
.hero-content {
  text-align: center; position: relative; z-index: 2;
  padding: 40px 24px; max-width: 860px;
  animation: fadeUp 1s ease both;
}
.hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 4px;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: ''; display: block; height: 1px; width: 40px;
  background: var(--orange); opacity: 0.5;
}
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: min(12vw, 120px);
  line-height: 0.9; letter-spacing: 4px;
  margin-bottom: 24px;
}
.hero-title span { color: var(--orange); display: block; }
.hero-tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 300; letter-spacing: 6px;
  text-transform: uppercase; color: rgba(236,236,236,0.7);
  margin-bottom: 48px;
}
.hero-tagline b { color: var(--orange); font-weight: 600; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--orange); color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; cursor: pointer;
  padding: 16px 36px; border: none; border-radius: 2px;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: white; opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(252,76,4,0.4); }
.btn-primary:hover::after { opacity: 0.1; }
.btn-secondary {
  background: transparent; color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; cursor: pointer;
  padding: 14px 34px; border: 2px solid rgba(236,236,236,0.4); border-radius: 2px;
  transition: all 0.3s;
}
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

/* ─── SECTIONS ─── */
section { padding: 80px 24px; max-width: 1200px; margin: 0 auto; }
.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 4px;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 2px; line-height: 1;
  margin-bottom: 20px;
}
.section-sub {
  color: var(--text-muted); font-size: 1rem; font-weight: 300;
  max-width: 560px; line-height: 1.7;
}
.divider {
  height: 1px;
  background: linear-gradient(90deg, var(--orange), transparent);
  margin-bottom: 60px; opacity: 0.3;
}

/* ─── DISCIPLINES ─── */
.disciplines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px; margin-top: 48px;
}
.discipline-card {
  background: var(--carbon);
  padding: 48px 36px;
  position: relative; overflow: hidden;
  transition: all 0.3s; cursor: default;
}
.discipline-card::before {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--orange); transform: scaleX(0);
  transform-origin: left; transition: transform 0.4s;
}
.discipline-card:hover::before { transform: scaleX(1); }
.discipline-card:hover { background: #3a3a3a; }
.disc-icon { font-size: 2.5rem; margin-bottom: 20px; display: block; }
.disc-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem; letter-spacing: 2px;
  color: var(--gray-light); margin-bottom: 12px;
}
.disc-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* ─── STATS BAR ─── */
.stats-bar { background: var(--orange); padding: 32px 24px; }
.stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px; text-align: center;
}
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem; letter-spacing: 2px;
  color: white; line-height: 1;
}
.stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.75);
  margin-top: 4px;
}

/* ─── PLANS ─── */
.plans-section { background: var(--gray-dark); }
.plans-tabs {
  display: flex; gap: 4px;
  background: var(--carbon); border-radius: 4px;
  padding: 4px; width: fit-content; margin-bottom: 40px;
}
.plan-tab {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; cursor: pointer;
  padding: 10px 24px; border: none; border-radius: 3px;
  background: none; color: var(--text-muted); transition: all 0.2s;
}
.plan-tab.active { background: var(--orange); color: white; }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.plan-card {
  background: var(--carbon); border-radius: 4px;
  padding: 32px 28px; border: 1px solid rgba(255,255,255,0.05);
  position: relative; transition: all 0.3s;
}
.plan-card:hover { border-color: var(--orange); transform: translateY(-4px); }
.plan-card.featured {
  border-color: var(--orange);
  background: linear-gradient(135deg, var(--carbon), #3a2010);
}
.plan-badge {
  position: absolute; top: -12px; left: 24px;
  background: var(--orange); color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 4px 12px; border-radius: 2px;
}
.plan-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem; color: var(--orange);
  letter-spacing: 2px; margin-bottom: 8px;
}
.plan-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--gray-light); margin-bottom: 20px; min-height: 44px;
}
.plan-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem; color: var(--orange);
  letter-spacing: 1px; line-height: 1;
}
.plan-currency {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; color: var(--text-muted);
  margin-bottom: 24px;
}
.plan-btn {
  width: 100%; background: transparent;
  border: 1.5px solid var(--orange); color: var(--orange);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; cursor: pointer;
  padding: 12px; border-radius: 3px; transition: all 0.2s;
}
.plan-btn:hover,
.plan-card.featured .plan-btn { background: var(--orange); color: white; }
.plan-discount {
  margin-top: 32px; padding: 16px;
  background: rgba(252,76,4,0.1); border-left: 3px solid var(--orange);
  border-radius: 2px;
}
.plan-discount p {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem; letter-spacing: 0.5px; color: var(--orange);
}

/* ─── SCHEDULE ─── */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px; margin-top: 40px;
}
.schedule-day { background: var(--carbon); border-radius: 4px; overflow: hidden; }
.schedule-day-header {
  background: var(--orange); padding: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; text-align: center; color: white;
}
.schedule-slot {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
}
.schedule-slot:hover { background: rgba(252,76,4,0.08); }
.slot-time {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem; font-weight: 700; color: var(--orange); letter-spacing: 0.5px;
}
.slot-class { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.slot-spots { font-size: 0.75rem; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.spot-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.spot-dot.full  { background: var(--danger); }
.spot-dot.low   { background: var(--warning); }

/* ─── AUTH MODAL ─── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
  z-index: 2000; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--carbon); border-radius: 8px;
  padding: 40px; width: 100%; max-width: 440px;
  border: 1px solid var(--border); position: relative;
  animation: scaleIn 0.3s ease;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.3rem; cursor: pointer; transition: color 0.2s;
}
.modal-close:hover { color: var(--orange); }
.modal-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem; letter-spacing: 3px;
  text-align: center; margin-bottom: 4px;
}
.modal-logo span { color: var(--orange); }
.modal-subtitle {
  text-align: center; font-size: 0.85rem;
  color: var(--text-muted); margin-bottom: 32px;
  font-family: 'Barlow Condensed', sans-serif; letter-spacing: 1px;
}
.modal-tabs { display: flex; gap: 0; margin-bottom: 28px; }
.modal-tab {
  flex: 1; padding: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; cursor: pointer;
  background: none; border: none;
  border-bottom: 2px solid rgba(255,255,255,0.1);
  color: var(--text-muted); transition: all 0.2s;
}
.modal-tab.active { border-color: var(--orange); color: var(--orange); }

/* ─── FORMS ─── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px;
}
.form-input {
  width: 100%; background: var(--black);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px; color: var(--gray-light);
  font-family: 'Barlow', sans-serif; font-size: 0.95rem;
  padding: 12px 16px; transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: var(--orange); }
.form-select {
  width: 100%; background: var(--black);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px; color: var(--gray-light);
  font-family: 'Barlow', sans-serif; font-size: 0.95rem;
  padding: 12px 16px; transition: border-color 0.2s; cursor: pointer;
}
.form-select:focus { outline: none; border-color: var(--orange); }
.form-submit {
  width: 100%; background: var(--orange); color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; cursor: pointer;
  padding: 14px; border: none; border-radius: 4px;
  margin-top: 8px; transition: all 0.2s;
}
.form-submit:hover { background: var(--orange-dim); transform: translateY(-1px); }
.form-error {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
  border-radius: 4px; padding: 10px 14px; margin-bottom: 16px;
  font-size: 0.85rem; color: #fca5a5;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ─── DASHBOARD LAYOUT ─── */
.dashboard { display: none; min-height: 100vh; padding-top: 64px; }
.dashboard.active { display: flex; }
.sidebar {
  width: 240px; min-height: calc(100vh - 64px);
  background: var(--carbon); border-right: 1px solid var(--border);
  position: sticky; top: 64px; flex-shrink: 0;
  display: flex; flex-direction: column;
}
.sidebar-user { padding: 24px 20px; border-bottom: 1px solid var(--border); }
.sidebar-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--orange); display: flex; align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem;
  color: white; margin-bottom: 10px;
}
.sidebar-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 700; letter-spacing: 1px;
}
.sidebar-role {
  font-size: 0.75rem; color: var(--orange);
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase; letter-spacing: 1.5px;
}
.sidebar-nav { padding: 16px 12px; flex: 1; }
.sidebar-section {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gray-mid);
  padding: 12px 8px 6px; margin-top: 8px;
}
.sidebar-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 4px;
  cursor: pointer; transition: all 0.2s;
  color: var(--text-muted);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.5px;
}
.sidebar-item:hover { background: rgba(255,255,255,0.05); color: var(--gray-light); }
.sidebar-item.active { background: rgba(252,76,4,0.15); color: var(--orange); }
.sidebar-item .icon { font-size: 1rem; width: 20px; text-align: center; }
.sidebar-logout {
  padding: 20px; border-top: 1px solid var(--border);
  cursor: pointer; display: flex; align-items: center; gap: 12px;
  color: var(--text-muted); font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem; font-weight: 600; transition: color 0.2s;
}
.sidebar-logout:hover { color: var(--danger); }
.dash-content { flex: 1; padding: 32px; overflow-x: hidden; background: var(--black); }
.dash-panel { display: none; }
.dash-panel.active { display: block; }
.dash-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem; letter-spacing: 2px; margin-bottom: 4px;
}
.dash-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 32px; }

/* ─── METRIC CARDS ─── */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 32px;
}
.metric-card {
  background: var(--carbon); border-radius: 6px;
  padding: 24px 20px; border: 1px solid rgba(255,255,255,0.05);
  position: relative; overflow: hidden; transition: border-color 0.3s;
}
.metric-card:hover { border-color: var(--border); }
.metric-card::after {
  content: ''; position: absolute;
  top: 0; left: 0; width: 3px; height: 100%;
  background: var(--orange);
}
.metric-icon { font-size: 1.8rem; margin-bottom: 12px; }
.metric-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem; color: var(--gray-light); letter-spacing: 1px;
}
.metric-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-muted); margin-top: 4px;
}
.metric-change { font-size: 0.8rem; color: var(--success); margin-top: 8px; }

/* ─── TABLES ─── */
.table-container { overflow-x: auto; margin-top: 24px; }
table { width: 100%; border-collapse: collapse; }
th {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-muted);
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
td {
  padding: 14px 16px; font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--gray-light);
}
tr:hover td { background: rgba(255,255,255,0.02); }
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase;
}
.badge-orange { background: rgba(252,76,4,0.2);    color: var(--orange);  }
.badge-green  { background: rgba(34,197,94,0.2);   color: var(--success); }
.badge-red    { background: rgba(239,68,68,0.2);   color: var(--danger);  }
.badge-gray   { background: rgba(255,255,255,0.08); color: var(--text-muted); }

/* ─── CALENDAR ─── */
.calendar-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.cal-nav { display: flex; gap: 8px; align-items: center; }
.cal-btn {
  background: var(--carbon); border: 1px solid rgba(255,255,255,0.1);
  color: var(--gray-light); cursor: pointer; padding: 8px 14px;
  border-radius: 4px; font-size: 1rem; transition: all 0.2s;
}
.cal-btn:hover { border-color: var(--orange); color: var(--orange); }
.cal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem; letter-spacing: 2px; min-width: 160px; text-align: center;
}
.week-grid {
  display: grid; grid-template-columns: 60px repeat(7, 1fr);
  gap: 2px; background: var(--gray-dark); border-radius: 6px; overflow: hidden;
}
.week-header {
  background: var(--carbon); padding: 12px 8px; text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-muted);
}
.week-header.today { color: var(--orange); }
.time-label {
  background: var(--carbon); padding: 8px 4px; text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem; color: var(--gray-mid);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.cal-cell {
  background: var(--carbon); min-height: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  position: relative; padding: 2px;
}
.cal-event {
  background: var(--orange); border-radius: 3px;
  padding: 4px 8px; margin: 2px 0; cursor: pointer;
  transition: filter 0.2s; font-size: 0.75rem;
}
.cal-event:hover { filter: brightness(1.2); }
.cal-event-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.78rem; color: white; letter-spacing: 0.5px;
}
.cal-event-spots { font-size: 0.7rem; color: rgba(255,255,255,0.7); }
.cal-event.full { background: var(--gray-mid); }
.cal-event.mine { background: #16803a; }

/* ─── USER PLAN CARD ─── */
.plan-status-card {
  background: var(--carbon); border-radius: 8px;
  padding: 28px; border: 1px solid var(--border);
  margin-bottom: 24px; position: relative; overflow: hidden;
}
.plan-status-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--orange);
}
.plan-status-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem; letter-spacing: 2px; margin-bottom: 20px;
}
.plan-status-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px;
}
.plan-stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px;
}
.plan-stat-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem; color: var(--orange);
}
.plan-progress-bar {
  margin-top: 20px; height: 6px;
  background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden;
}
.plan-progress-fill {
  height: 100%; background: var(--orange); border-radius: 3px; transition: width 0.8s ease;
}

/* ─── NOTIFICATIONS ─── */
.notification-area {
  position: fixed; top: 80px; right: 16px;
  z-index: 3000; display: flex; flex-direction: column; gap: 8px;
}
.notif {
  background: var(--carbon); border-left: 3px solid var(--orange);
  border-radius: 4px; padding: 14px 18px; max-width: 320px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  animation: slideIn 0.4s ease; font-size: 0.9rem;
}
.notif.success { border-color: var(--success); }
.notif.error   { border-color: var(--danger);  }
.notif-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; letter-spacing: 0.5px; margin-bottom: 2px;
}
.notif-msg { color: var(--text-muted); font-size: 0.85rem; }

/* ─── CLASS CARDS ─── */
.class-card {
  background: var(--carbon); border-radius: 6px;
  padding: 20px; border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 12px; display: flex; align-items: center; gap: 16px;
  transition: border-color 0.2s;
}
.class-card:hover { border-color: var(--border); }
.class-time-badge {
  background: rgba(252,76,4,0.15); border-radius: 4px;
  padding: 8px 14px; text-align: center; flex-shrink: 0;
}
.class-time-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem; color: var(--orange); line-height: 1;
}
.class-time-day {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase;
}
.class-info { flex: 1; }
.class-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.class-spots { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.class-spots span       { color: var(--success); font-weight: 600; }
.class-spots span.low   { color: var(--warning); }
.class-spots span.full  { color: var(--danger);  }
.book-btn {
  background: var(--orange); color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; cursor: pointer;
  padding: 10px 20px; border: none; border-radius: 3px;
  transition: all 0.2s; flex-shrink: 0;
}
.book-btn:hover { background: var(--orange-dim); }
.book-btn:disabled { background: var(--gray-mid); cursor: not-allowed; opacity: 0.5; }
.book-btn.booked       { background: var(--success); }
.book-btn.booked:hover { background: #15803d; }

/* ─── ADMIN CARDS & ACTIONS ─── */
.admin-card {
  background: var(--carbon); border-radius: 8px;
  padding: 28px; border: 1px solid rgba(255,255,255,0.05); margin-bottom: 24px;
}
.admin-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem; letter-spacing: 2px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.action-btn {
  background: var(--orange); color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; cursor: pointer;
  padding: 10px 20px; border: none; border-radius: 3px; transition: all 0.2s;
}
.action-btn:hover           { background: var(--orange-dim); }
.action-btn.sm              { padding: 7px 14px; font-size: 0.78rem; }
.action-btn.danger          { background: var(--danger); }
.action-btn.danger:hover    { background: #dc2626; }
.action-btn.secondary       { background: transparent; border: 1.5px solid rgba(255,255,255,0.15); color: var(--gray-light); }
.action-btn.secondary:hover { border-color: var(--orange); color: var(--orange); }

/* ─── CSS EDITOR (Admin Apariencia) ─── */
.css-editor-wrap {
  position: relative;
}
.css-editor {
  width: 100%; min-height: 400px;
  background: #111; color: #e2e8f0;
  border: 1px solid rgba(252,76,4,0.3); border-radius: 6px;
  font-family: 'Courier New', monospace; font-size: 0.85rem;
  line-height: 1.7; padding: 16px;
  resize: vertical; tab-size: 2;
  outline: none; transition: border-color 0.2s;
}
.css-editor:focus { border-color: var(--orange); }
.css-preview-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: rgba(252,76,4,0.06);
  border: 1px solid var(--border); border-radius: 4px;
  margin-bottom: 12px; flex-wrap: wrap; gap: 8px;
}
.css-preview-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--success); display: inline-block; margin-right: 8px;
}
.css-preview-dot.unsaved { background: var(--warning); }
.color-swatches {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px; margin-bottom: 20px;
}
.swatch-row {
  background: var(--black); border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 12px; display: flex; align-items: center; gap: 12px;
}
.swatch-preview {
  width: 40px; height: 40px; border-radius: 6px; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.1);
  cursor: pointer; transition: transform 0.2s;
}
.swatch-preview:hover { transform: scale(1.1); }
.swatch-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px;
}
.swatch-hex {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem; color: var(--orange);
}

/* ─── FOOTER ─── */
footer { background: var(--carbon); border-top: 1px solid var(--border); padding: 48px 24px 24px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px;
}
.footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: 3px; margin-bottom: 12px; }
.footer-logo span { color: var(--orange); }
.footer-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.footer-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--orange); margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center; color: var(--gray-mid); font-size: 0.8rem;
}
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-link {
  width: 36px; height: 36px; border-radius: 4px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 1rem; transition: all 0.2s;
}
.social-link:hover { background: var(--orange); }

/* ─── MAP PLACEHOLDER ─── */
.map-placeholder {
  background: var(--carbon); border-radius: 8px;
  height: 300px; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px;
  border: 1px solid var(--border); margin-top: 32px;
}
.map-placeholder span { font-size: 3rem; }
.map-placeholder p { color: var(--text-muted); font-size: 0.9rem; }

/* ─── MISC ─── */
.tag {
  display: inline-block; padding: 4px 10px;
  background: rgba(252,76,4,0.15); color: var(--orange);
  border-radius: 3px; font-size: 0.78rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-right: 6px;
}
.progress { height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--orange); border-radius: 2px; }
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--orange); border-radius: 50%;
  animation: spin 0.7s linear infinite; display: inline-block;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp  { from { opacity:0; transform:translateY(40px); } to { opacity:1; transform:translateY(0); } }
@keyframes scaleIn { from { opacity:0; transform:scale(0.95);       } to { opacity:1; transform:scale(1);     } }
@keyframes slideIn { from { opacity:0; transform:translateX(40px);  } to { opacity:1; transform:translateX(0);} }
@keyframes pulse   { 0%,100%{opacity:1;} 50%{opacity:0.5;} }
@keyframes spin    { to { transform:rotate(360deg); } }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-title { font-size: 18vw; }
  .schedule-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .dashboard.active { flex-direction: column; }
  .sidebar { width:100%; min-height:auto; position:static; flex-direction:row; overflow-x:auto; }
  .sidebar-user { display:none; }
  .sidebar-nav { display:flex; padding:8px; gap:4px; flex-direction:row; }
  .sidebar-section { display:none; }
  .sidebar-item { flex-direction:column; gap:4px; font-size:0.7rem; padding:8px 10px; }
  .sidebar-logout { padding:12px 16px; }
  .dash-content { padding:20px; }
  .form-row { grid-template-columns:1fr; }
  .week-grid { grid-template-columns:40px repeat(7,1fr); font-size:0.7rem; }
  .stats-inner { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 480px) {
  .schedule-grid { grid-template-columns:1fr; }
  .hero-tagline { letter-spacing:2px; font-size:1rem; }
}

/* ─── LOADING OVERLAY ─── */
.loading-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(4px);
  z-index: 5000; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px;
}
.loading-overlay.active { display: flex; }
.loading-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem; letter-spacing: 4px; color: var(--orange);
}
