/* ════════════════════════════════════════════════════════
   AndyAzhTEC Classroom — styles.css
   Estética neon tech/gaming + modo oscuro/claro
════════════════════════════════════════════════════════ */

/* ── RESET ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: dark;
  --font-title: 'Orbitron', monospace;
  --font-main: 'Exo 2', sans-serif;

  --cyan: #00f5ff;
  --cyan-dim: #00b4cc;
  --violet: #a855f7;
  --violet-dim: #7c3aed;
  --lilac: #c084fc;
  --pink: #e879f9;
  --green: #22c55e;
  --yellow: #f59e0b;
  --red: #ef4444;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --transition: 0.25s ease;
}

/* ── DARK THEME ─────────────────────────────────────── */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg-main: #050510;
  --bg-secondary: #0e0e2a;
  --bg-sidebar: rgba(7, 7, 24, 0.92);
  --bg-card: rgba(10, 10, 30, 0.82);
  --bg-card-strong: rgba(15, 5, 35, 0.92);
  --bg-input: rgba(20, 10, 50, 0.8);

  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-soft: #cbd5e1;

  --border: rgba(168, 85, 247, 0.28);
  --border-strong: rgba(0, 245, 255, 0.42);

  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 32px rgba(168, 85, 247, 0.26);
  --hero-gradient: radial-gradient(circle at top left, rgba(0, 245, 255, 0.18), transparent 35%),
                   radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.22), transparent 40%),
                   linear-gradient(135deg, rgba(15, 5, 35, 0.96), rgba(5, 5, 16, 0.94));
}

/* ── LIGHT THEME ────────────────────────────────────── */
:root[data-theme="light"] {
  color-scheme: light;

  --bg-main: #f8fafc;
  --bg-secondary: #eef2ff;
  --bg-sidebar: rgba(255, 255, 255, 0.92);
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-strong: rgba(245, 243, 255, 0.96);
  --bg-input: rgba(255, 255, 255, 0.9);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-soft: #334155;

  --border: rgba(124, 58, 237, 0.22);
  --border-strong: rgba(8, 145, 178, 0.35);

  --shadow-card: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 28px rgba(124, 58, 237, 0.14);
  --hero-gradient: radial-gradient(circle at top left, rgba(8, 145, 178, 0.18), transparent 35%),
                   radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.18), transparent 42%),
                   linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 242, 255, 0.94));
}

/* ── BASE ───────────────────────────────────────────── */
html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-main);
  background:
    radial-gradient(circle at 20% 0%, rgba(168, 85, 247, 0.18), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(0, 245, 255, 0.14), transparent 26%),
    var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* ── APP LAYOUT ─────────────────────────────────────── */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

/* ── SIDEBAR ────────────────────────────────────────── */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.25rem;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.65rem 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.brand-logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--violet-dim), var(--cyan-dim));
  box-shadow: 0 0 24px rgba(0, 245, 255, 0.28);
}

.brand-text {
  min-width: 0;
}

.brand-main {
  display: block;
  font-family: var(--font-title);
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--lilac);
  text-shadow: 0 0 12px rgba(192, 132, 252, 0.5);
  line-height: 1.1;
}

.brand-main span {
  color: var(--violet);
}

.brand-main strong {
  color: var(--cyan);
}

.brand-text small {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.sidebar-nav {
  display: grid;
  gap: 0.35rem;
  padding: 0.4rem 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 44px;
  padding: 0.7rem 0.85rem;
  border-radius: 13px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 700;
  transition: var(--transition);
  border: 1px solid transparent;
}

.nav-item i {
  width: 20px;
  text-align: center;
}

.nav-item:hover {
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.08);
  border-color: var(--border-strong);
  transform: translateX(3px);
}

.nav-item.active {
  color: var(--cyan);
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.12), rgba(168, 85, 247, 0.12));
  border-color: var(--border-strong);
  box-shadow: 0 0 22px rgba(0, 245, 255, 0.12);
}

.nav-item-featured {
  color: var(--lilac);
  background: rgba(168, 85, 247, 0.08);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
}

.mini-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.mini-status strong {
  display: block;
  font-size: 0.85rem;
}

.mini-status small {
  display: block;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.pulse-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse 1.8s infinite;
}

/* ── MAIN ───────────────────────────────────────────── */
.main-content {
  min-width: 0;
  padding: 1.5rem;
}

/* ── TOPBAR ─────────────────────────────────────────── */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.eyebrow {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.topbar h1 {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.theme-toggle,
.user-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 46px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: var(--shadow-card);
}

.theme-toggle {
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  color: var(--cyan);
  transform: translateY(-1px);
}

.user-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--violet), var(--cyan-dim));
}

.user-pill strong,
.user-pill small {
  display: block;
  line-height: 1.15;
}

.user-pill small {
  color: var(--text-muted);
  font-size: 0.76rem;
}

/* ── HERO ───────────────────────────────────────────── */
.hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 320px;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--hero-gradient);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  margin-bottom: 1.5rem;
}

.hero-panel::before {
  content: '';
  position: absolute;
  inset: auto -20% -45% auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(0, 245, 255, 0.09);
  filter: blur(18px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  color: var(--lilac);
  background: rgba(168, 85, 247, 0.13);
  border: 1px solid var(--border);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.hero-copy h2 {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-copy h2 span {
  display: block;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(0, 245, 255, 0.45);
}

.hero-copy p {
  max-width: 720px;
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.72rem 1.1rem;
  border-radius: 13px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 800;
  transition: var(--transition);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--violet-dim), var(--violet));
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(168, 85, 247, 0.52);
}

.btn-outline {
  color: var(--cyan);
  border-color: var(--border-strong);
  background: rgba(0, 245, 255, 0.06);
}

.btn-outline:hover {
  transform: translateY(-2px);
  background: rgba(0, 245, 255, 0.12);
}

.hero-orb {
  justify-self: center;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--cyan), var(--violet), var(--pink));
  box-shadow: 0 0 50px rgba(168, 85, 247, 0.24);
  animation: float 4s ease-in-out infinite;
}

.orb-inner {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-main);
}

.orb-inner i {
  font-size: 5rem;
  color: var(--cyan);
  filter: drop-shadow(0 0 16px rgba(0, 245, 255, 0.75));
}

/* ── STATS ──────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.stat-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  flex: 0 0 auto;
}

.stat-icon.cyan { background: linear-gradient(135deg, var(--cyan-dim), var(--cyan)); color: #031014; }
.stat-icon.violet { background: linear-gradient(135deg, var(--violet-dim), var(--violet)); }
.stat-icon.pink { background: linear-gradient(135deg, var(--pink), var(--violet)); }
.stat-icon.green { background: linear-gradient(135deg, var(--green), #14b8a6); color: #031014; }

.stat-number {
  display: block;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.15rem;
}

.stat-card p {
  color: var(--text-muted);
  font-size: 0.86rem;
}

/* ── COURSES PREVIEW ────────────────────────────────── */
.courses-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.course-card {
  position: relative;
  overflow: hidden;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.course-card::before {
  content: '';
  position: absolute;
  inset: -80px -120px auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  opacity: 0.16;
  filter: blur(4px);
  pointer-events: none;
}

.course-card-complete::before {
  background: var(--cyan);
}

.course-card-soon::before {
  background: var(--violet);
}

.course-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.course-card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--violet-dim), var(--cyan-dim));
  box-shadow: 0 0 22px rgba(0, 245, 255, 0.18);
}

.course-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.course-chip.complete {
  color: #052e16;
  background: rgba(34, 197, 94, 0.9);
}

.course-chip.soon {
  color: #ffffff;
  background: linear-gradient(135deg, var(--violet), var(--pink));
}

.course-card h3 {
  position: relative;
  font-family: var(--font-title);
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.course-card p {
  position: relative;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.course-card ul {
  position: relative;
  display: grid;
  gap: 0.45rem;
  list-style: none;
  margin-bottom: 1rem;
}

.course-card li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.course-card li i {
  width: 18px;
  color: var(--cyan);
}

.course-card-actions {
  position: relative;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* ── CONTENT GRID ───────────────────────────────────── */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 1rem;
}

.panel {
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.course-panel {
  grid-row: span 2;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.panel h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  line-height: 1.2;
}

.panel > p {
  color: var(--text-muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.status-badge.active {
  color: #052e16;
  background: rgba(34, 197, 94, 0.9);
}

.course-progress {
  margin: 1.25rem 0;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
}

.progress-info strong {
  color: var(--cyan);
}

.progress-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.45);
}

.quick-list {
  display: grid;
  gap: 0.7rem;
}

.quick-list div {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--bg-card-strong);
}

.quick-list i {
  color: var(--cyan);
}

.quick-list span {
  color: var(--text-muted);
}

.quick-list strong {
  font-size: 0.86rem;
}

.module-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.module-item {
  min-height: 86px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card-strong);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  display: grid;
  place-items: center;
  gap: 0.35rem;
}

.module-item i {
  color: var(--cyan);
  font-size: 1.35rem;
}

.module-item span {
  font-weight: 800;
}

.module-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 0 22px rgba(0, 245, 255, 0.12);
}

.announcements-panel {
  grid-column: 2;
}

.timeline {
  display: grid;
  gap: 0.9rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 0.7rem;
}

.timeline-item > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 0.45rem;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.7);
}

.timeline-item strong {
  display: block;
}

.timeline-item p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ── ANIMATIONS ─────────────────────────────────────── */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .sidebar {
    padding: 1rem 0.7rem;
  }

  .brand {
    justify-content: center;
    padding-inline: 0;
  }

  .brand-text,
  .nav-item span,
  .mini-status div {
    display: none;
  }

  .nav-item {
    justify-content: center;
    padding-inline: 0;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-orb {
    display: none;
  }

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

  .content-grid {
    grid-template-columns: 1fr;
  }

  .announcements-panel {
    grid-column: auto;
  }
}

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

  .sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .brand {
    justify-content: flex-start;
  }

  .brand-text,
  .nav-item span,
  .mini-status div {
    display: block;
  }

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

  .nav-item {
    justify-content: flex-start;
  }

  .sidebar-footer {
    display: none;
  }

  .main-content {
    padding: 1rem;
  }

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

  .topbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .theme-toggle,
  .user-pill {
    flex: 1;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

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



/* ── SIDEBAR SUBMENU ────────────────────────────────── */
.nav-item-parent {
  position: relative;
}

.submenu-chevron {
  margin-left: auto;
  font-size: 0.72rem;
  opacity: 0.85;
  transition: transform var(--transition);
}

.nav-item-parent.submenu-open .submenu-chevron {
  transform: rotate(180deg);
}

.sidebar-submenu {
  display: grid;
  gap: 0.15rem;
  max-height: 0;
  overflow: hidden;
  padding-left: 2.35rem;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height 0.25s ease,
    opacity 0.2s ease,
    transform 0.2s ease,
    padding-top 0.2s ease,
    padding-bottom 0.2s ease;
}

.sidebar-submenu.open {
  max-height: 140px;
  opacity: 1;
  transform: translateY(0);
  padding-top: 0.2rem;
  padding-bottom: 0.55rem;
}

.submenu-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.55rem;
  min-height: 32px;
  padding: 0.35rem 0.5rem;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: var(--transition);
}

.submenu-item:hover {
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.07);
  border-color: rgba(0, 245, 255, 0.18);
}

.submenu-item.active {
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.1);
  border-color: var(--border-strong);
}

.submenu-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  opacity: 0.9;
}

.submenu-dot.complete {
  background: var(--green);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.75);
}

.submenu-dot.soon {
  background: var(--violet);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.85);
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .submenu-chevron,
  .sidebar-submenu {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .submenu-chevron {
    display: inline-block !important;
  }

  .sidebar-submenu {
    padding-left: 0.8rem;
    grid-column: 1 / -1;
  }

  .sidebar-submenu.open {
    display: grid !important;
  }
}


/* ── COURSE DETAIL PAGES ────────────────────────────── */
.course-detail-hero {
  margin-bottom: 1.5rem;
}

.course-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 1rem;
}

.course-main-panel {
  grid-column: span 1;
}

.module-list-vertical {
  grid-template-columns: 1fr;
}

.module-list-vertical .module-item {
  min-height: 72px;
  grid-template-columns: 36px 1fr;
  justify-content: flex-start;
  text-align: left;
  padding: 0.85rem;
}

.module-list-vertical .module-item i {
  justify-self: center;
}

.soon-status {
  color: #ffffff;
  background: linear-gradient(135deg, var(--violet), var(--pink));
}

@media (max-width: 1100px) {
  .course-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* -- LOGIN PAGE --------------------------------------- */
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.login-shell {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1.1fr);
  gap: 1rem;
}

.login-card,
.login-side-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--hero-gradient);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.login-card {
  display: grid;
  align-content: center;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.login-brand-logo {
  flex: 0 0 auto;
}

.login-brand small {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.login-copy h1 {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.08;
  margin-bottom: 0.8rem;
}

.login-copy p {
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.login-form {
  display: grid;
  gap: 0.9rem;
}

.login-form label > span {
  display: block;
  color: var(--text-soft);
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.input-wrap {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-input);
  overflow: hidden;
}

.input-wrap i {
  display: grid;
  place-items: center;
  color: var(--cyan);
}

.input-wrap input,
.input-wrap select {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-main);
  padding: 0.75rem 0.85rem 0.75rem 0;
}

.login-btn {
  width: 100%;
  margin-top: 0.35rem;
}

.login-note {
  color: var(--text-muted);
  font-size: 0.84rem;
  text-align: center;
}

.login-side-panel {
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.login-side-panel h2 {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-top: 1rem;
}

.login-side-panel p {
  color: var(--text-muted);
  max-width: 560px;
}

.login-orb {
  width: 220px;
  height: 220px;
}

.login-feature-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.login-feature-list div {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  text-align: left;
  color: var(--text-soft);
  font-weight: 800;
}

.login-feature-list i {
  color: var(--cyan);
}

.logout-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.logout-btn:hover {
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.08);
  transform: translateY(-1px);
}

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

  .login-side-panel {
    display: none;
  }
}

@media (max-width: 560px) {
  .login-feature-list {
    grid-template-columns: 1fr;
  }
}

/* -- VERIFICADOR AYRPC -------------------------------- */
.verifier-hero {
  margin-bottom: 1.5rem;
}

.verifier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.65fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.verifier-form {
  display: grid;
  gap: 0.9rem;
}

.verifier-form label > span {
  display: block;
  color: var(--text-soft);
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.verifier-alert {
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.08);
  color: var(--text-main);
}

.verifier-alert strong {
  color: var(--red);
}

.verifier-alert span {
  color: var(--text-muted);
}

.verifier-loading {
  place-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  padding: 1rem;
}

.loader {
  width: 34px;
  height: 34px;
  border: 4px solid rgba(148, 163, 184, 0.22);
  border-top: 4px solid var(--cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.verifier-debug {
  color: var(--text-muted);
  font-size: 0.78rem;
  white-space: pre-wrap;
}

.verifier-result-panel {
  margin-bottom: 1.5rem;
}

.classroom-apto-box {
  background: var(--hero-gradient);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.apto-info {
  min-width: 150px;
}

.apto-titulo {
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--lilac);
}

.result-title {
  font-size: 0.76rem;
}

.apto-valor {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-top: 0.25rem;
}

.apto-si {
  color: var(--green);
  text-shadow: 0 0 16px rgba(34, 197, 94, 0.65);
}

.apto-no {
  color: var(--red);
  text-shadow: 0 0 16px rgba(239, 68, 68, 0.65);
}

.resultado-valor {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 900;
  margin-top: 0.25rem;
}

.resultado-ok {
  color: var(--green);
}

.resultado-bad {
  color: var(--red);
}

.resultado-neutral {
  color: var(--text-muted);
}

#botonesWrap {
  flex: 1;
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn-grande {
  width: 160px;
  min-height: 118px;
  border-radius: 16px;
  border: 1px solid var(--border);
  color: #ffffff;
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 0.45rem;
  text-align: center;
  font-weight: 900;
  padding: 0.8rem;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.btn-grande span,
.btn-grande i {
  font-size: 1.7rem;
}

.btn-grande:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: var(--border-strong);
  box-shadow: 0 0 28px rgba(0, 245, 255, 0.18);
}

.btn-certificado {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #1a0e00;
}

.btn-linkedin {
  background: linear-gradient(135deg, #0a66c2, #004d93);
}

.btn-recuperatorio {
  background: linear-gradient(135deg, #f97316, #dc2626);
}

.btn-constancia {
  background: linear-gradient(135deg, var(--green), #14b8a6);
  color: #04130b;
}

.verifier-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.verifier-data div {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--bg-card-strong);
}

.verifier-data b {
  color: var(--cyan);
}

.table-wrap {
  overflow-x: auto;
}

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

.verifier-table td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
}

.estado-ok {
  color: var(--green) !important;
  font-weight: 900;
}

.estado-bad {
  color: var(--red) !important;
  font-weight: 900;
}

.estado-neutral {
  color: var(--text-muted) !important;
  font-weight: 900;
}

.verifier-graphs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.verifier-graphs > div {
  display: grid;
  place-items: center;
  gap: 0.4rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card-strong);
}

.plotWrap {
  width: 220px;
  height: 220px;
}

.plotLabel {
  color: var(--text-muted);
  font-weight: 800;
  text-align: center;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {
  .verifier-grid {
    grid-template-columns: 1fr;
  }

  .verifier-data {
    grid-template-columns: 1fr;
  }
}

/* -- VERIFIER SINGLE COLUMN FIX ----------------------- */
.verifier-grid {
  grid-template-columns: minmax(0, 1fr);
}

.verifier-search-panel {
  max-width: 720px;
}

#contenido {
  gap: 1.5rem;
}


/* -- HOME STUDENT PANEL ------------------------------- */
.student-home-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.student-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.student-summary-grid div {
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card-strong);
}

.student-summary-grid span {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.student-summary-grid strong {
  display: block;
  color: var(--cyan);
  font-family: var(--font-title);
  font-size: 0.92rem;
  word-break: break-word;
}

.home-actions-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.home-course-list {
  display: grid;
  gap: 0.75rem;
}

.home-course-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card-strong);
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

.home-course-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.home-course-item i {
  color: var(--cyan);
  font-size: 1.35rem;
}

.home-course-item strong,
.home-course-item span {
  display: block;
}

.home-course-item span {
  color: var(--text-muted);
  font-size: 0.86rem;
}

/* -- MOBILE HARD FIX ---------------------------------- */
@media (max-width: 980px) {
  .app-shell {
    display: block !important;
  }

  .sidebar {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    width: 100% !important;
    padding: 0.85rem !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
  }

  .brand {
    justify-content: flex-start !important;
    margin-bottom: 0.75rem !important;
  }

  .brand-text,
  .nav-item span,
  .mini-status div {
    display: block !important;
  }

  .sidebar-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
  }

  .nav-item {
    justify-content: flex-start !important;
    min-height: 44px !important;
    padding: 0.65rem 0.75rem !important;
    font-size: 0.82rem !important;
    transform: none !important;
  }

  .nav-item:hover {
    transform: none !important;
  }

  .submenu-chevron {
    display: inline-block !important;
    margin-left: auto !important;
  }

  .sidebar-submenu {
    grid-column: 1 / -1 !important;
    padding-left: 0.5rem !important;
  }

  .sidebar-submenu.open {
    display: grid !important;
  }

  .sidebar-footer {
    display: none !important;
  }

  .main-content {
    padding: 1rem !important;
  }

  .topbar {
    display: grid !important;
    gap: 1rem !important;
  }

  .topbar-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.7rem !important;
  }

  .theme-toggle,
  .user-pill,
  .logout-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .logout-btn {
    height: 46px !important;
  }

  .hero-panel {
    grid-template-columns: 1fr !important;
    padding: 1.1rem !important;
  }

  .hero-copy h2 {
    font-size: clamp(1.8rem, 9vw, 2.6rem) !important;
  }

  .hero-orb {
    display: none !important;
  }

  .student-home-panel,
  .content-grid,
  .course-detail-grid,
  .verifier-grid {
    grid-template-columns: 1fr !important;
  }

  .stats-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px) {
  body {
    overflow-x: hidden !important;
  }

  .sidebar-nav {
    grid-template-columns: 1fr !important;
  }

  .brand-main {
    font-size: 0.95rem !important;
  }

  .brand-text small {
    font-size: 0.68rem !important;
  }

  .section,
  .main-content {
    max-width: 100% !important;
  }

  .student-summary-grid,
  .module-list,
  .course-metrics-grid,
  .login-feature-list {
    grid-template-columns: 1fr !important;
  }

  .btn,
  .module-item,
  .home-course-item {
    width: 100% !important;
  }

  .panel,
  .hero-panel,
  .stat-card,
  .course-card {
    border-radius: 16px !important;
  }

  .stat-number {
    font-size: 1rem !important;
  }
}


/* -- MOBILE SIDEBAR DRAWER ---------------------------- */
.mobile-menu-toggle {
  display: none;
}

.mobile-sidebar-overlay {
  display: none;
}

@media (max-width: 980px) {
  .mobile-menu-toggle {
    position: fixed;
    top: 0.9rem;
    left: 0.9rem;
    z-index: 12000;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    gap: 4px;
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0,245,255,0.18), rgba(168,85,247,0.18));
    backdrop-filter: blur(16px);
    box-shadow: 0 0 24px rgba(0,245,255,0.18), var(--shadow-card);
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  }

  .mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: var(--cyan);
    box-shadow: 0 0 8px rgba(0,245,255,0.7);
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .mobile-menu-toggle:hover {
    transform: translateY(-1px) scale(1.03);
    border-color: var(--cyan);
    box-shadow: 0 0 30px rgba(0,245,255,0.28), var(--shadow-card);
  }

  .mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mobile-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 10990;
    display: block;
    background: rgba(0,0,0,0.58);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .mobile-sidebar-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .app-shell {
    display: block !important;
  }

  .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 11000 !important;
    width: min(82vw, 330px) !important;
    height: 100vh !important;
    padding: 4.6rem 0.85rem 1rem !important;
    border-right: 1px solid var(--border) !important;
    border-bottom: none !important;
    transform: translateX(-105%) !important;
    opacity: 0.98;
    transition: transform 0.28s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s ease !important;
    overflow-y: auto !important;
  }

  body.mobile-sidebar-open .sidebar {
    transform: translateX(0) !important;
    box-shadow: 24px 0 60px rgba(0,0,0,0.42), 0 0 40px rgba(168,85,247,0.2) !important;
  }

  body.mobile-sidebar-open {
    overflow: hidden !important;
  }

  .sidebar-nav {
    grid-template-columns: 1fr !important;
  }

  .main-content {
    padding-top: 4.6rem !important;
  }

  .topbar h1 {
    padding-left: 0 !important;
  }
}

@media (max-width: 420px) {
  .sidebar {
    width: 86vw !important;
  }

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

/* -- STICKY TOPBAR USER MENU -------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 5000;
  padding: 0.85rem 0;
  background:
    linear-gradient(180deg, var(--bg-main) 0%, rgba(5, 5, 16, 0.78) 100%);
  backdrop-filter: blur(18px);
}

:root[data-theme="light"] .topbar {
  background:
    linear-gradient(180deg, var(--bg-main) 0%, rgba(248, 250, 252, 0.8) 100%);
}

.theme-toggle-icon {
  width: 46px;
  height: 46px;
  justify-content: center;
  padding: 0;
}

.user-menu {
  position: relative;
}

.user-menu-toggle {
  border: 1px solid var(--border);
  cursor: pointer;
}

.user-menu-chevron {
  color: var(--text-muted);
  font-size: 0.75rem;
  transition: transform var(--transition);
}

.user-menu.open .user-menu-chevron {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  width: 220px;
  display: none;
  padding: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card-strong);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  z-index: 7000;
}

.user-menu.open .user-dropdown {
  display: grid;
  gap: 0.3rem;
}

.user-dropdown a,
.user-dropdown button {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 40px;
  padding: 0.65rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
  transition: var(--transition);
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.08);
  border-color: var(--border-strong);
}

.user-dropdown i {
  color: var(--cyan);
}

.profile-hero {
  margin-bottom: 1.5rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 1rem;
}

.profile-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.profile-data-grid div {
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card-strong);
}

.profile-data-grid span {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.profile-data-grid strong {
  display: block;
  color: var(--cyan);
  font-family: var(--font-title);
  font-size: 0.92rem;
  word-break: break-word;
}

@media (max-width: 980px) {
  .topbar {
    top: 0;
    padding-top: 0.3rem;
  }

  .theme-toggle-icon {
    width: 100% !important;
  }

  .user-menu,
  .user-menu-toggle {
    width: 100%;
  }

  .user-dropdown {
    position: static;
    width: 100%;
    margin-top: 0.5rem;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .profile-data-grid {
    grid-template-columns: 1fr;
  }
}

/* -- SOFT TOPBAR GLASS FIX ---------------------------- */
.topbar {
  margin: -0.35rem -0.35rem 1.35rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(168, 85, 247, 0.16);
  border-radius: 0 0 22px 22px;
  background:
    radial-gradient(circle at top left, rgba(0, 245, 255, 0.10), transparent 34%),
    radial-gradient(circle at top right, rgba(168, 85, 247, 0.12), transparent 38%),
    rgba(5, 5, 16, 0.48);
  backdrop-filter: blur(18px);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

:root[data-theme="light"] .topbar {
  background:
    radial-gradient(circle at top left, rgba(8, 145, 178, 0.10), transparent 34%),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.10), transparent 38%),
    rgba(248, 250, 252, 0.64);
  box-shadow:
    0 12px 30px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.topbar > div:first-child {
  padding: 0.25rem 0.35rem;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.035),
    rgba(168, 85, 247, 0.055)
  );
}

.topbar h1 {
  text-shadow:
    0 0 16px rgba(0, 245, 255, 0.12),
    0 0 24px rgba(168, 85, 247, 0.10);
}

.topbar-actions {
  padding: 0.25rem;
  border: 1px solid rgba(168, 85, 247, 0.13);
  border-radius: 999px;
  background: rgba(5, 5, 16, 0.26);
  backdrop-filter: blur(16px);
}

:root[data-theme="light"] .topbar-actions {
  background: rgba(255, 255, 255, 0.52);
}

.theme-toggle,
.user-pill {
  box-shadow: none;
  background: rgba(10, 10, 30, 0.46);
}

:root[data-theme="light"] .theme-toggle,
:root[data-theme="light"] .user-pill {
  background: rgba(255, 255, 255, 0.58);
}

.user-menu-toggle {
  max-width: 280px;
}

.user-menu-toggle strong {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .topbar {
    margin: 0 0 1rem;
    padding: 0.75rem;
    border-radius: 18px;
  }

  .topbar > div:first-child {
    padding-left: 3.25rem;
  }

  .topbar-actions {
    border-radius: 18px;
    padding: 0.55rem;
  }

  .user-menu-toggle {
    max-width: none;
  }

  .user-menu-toggle strong {
    max-width: 100%;
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .topbar h1 {
    font-size: clamp(1.65rem, 12vw, 2.45rem);
  }

  .topbar .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 1.35px;
  }
}


/* -- MOBILE COMPACT HEADER FIX ------------------------ */
@media (max-width: 980px) {
  .main-content {
    padding-top: 5.1rem !important;
  }

  .mobile-menu-toggle {
    top: 0.72rem !important;
    left: 0.75rem !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
    z-index: 13000 !important;
  }

  .topbar {
    position: fixed !important;
    top: 0.55rem !important;
    left: 0.65rem !important;
    right: 0.65rem !important;
    z-index: 9000 !important;

    min-height: 54px !important;
    margin: 0 !important;
    padding: 0.5rem 0.55rem 0.5rem 3.55rem !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 0.55rem !important;

    border-radius: 18px !important;
    border: 1px solid rgba(168, 85, 247, 0.22) !important;

    background:
      radial-gradient(circle at top left, rgba(0, 245, 255, 0.12), transparent 36%),
      radial-gradient(circle at top right, rgba(168, 85, 247, 0.13), transparent 38%),
      rgba(5, 5, 16, 0.72) !important;

    backdrop-filter: blur(18px) !important;
    box-shadow:
      0 14px 36px rgba(0, 0, 0, 0.26),
      inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  }

  :root[data-theme="light"] .topbar {
    background:
      radial-gradient(circle at top left, rgba(8, 145, 178, 0.12), transparent 36%),
      radial-gradient(circle at top right, rgba(124, 58, 237, 0.13), transparent 38%),
      rgba(248, 250, 252, 0.76) !important;
  }

  .topbar > div:first-child {
    min-width: 0 !important;
    padding: 0 !important;
    padding-left: 0 !important;
    background: transparent !important;
  }

  .topbar .eyebrow {
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;

    max-width: 100% !important;
    margin: 0 0 0.1rem !important;

    font-size: 0.58rem !important;
    line-height: 1 !important;
    letter-spacing: 1.25px !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .topbar h1 {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;

    font-size: clamp(1.15rem, 7vw, 1.8rem) !important;
    line-height: 0.95 !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;

    text-shadow:
      0 0 10px rgba(0, 245, 255, 0.15),
      0 0 18px rgba(168, 85, 247, 0.12) !important;
  }

  .topbar-actions {
    width: auto !important;
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.4rem !important;

    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
  }

  .theme-toggle-icon {
    width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    flex: 0 0 40px !important;
    padding: 0 !important;
    border-radius: 14px !important;
  }

  .user-menu {
    width: auto !important;
    max-width: 155px !important;
  }

  .user-menu-toggle {
    width: auto !important;
    max-width: 155px !important;
    min-height: 40px !important;
    padding: 0.35rem 0.5rem !important;
    border-radius: 999px !important;
    gap: 0.45rem !important;
  }

  .user-avatar {
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 30px !important;
  }

  .user-menu-toggle strong {
    max-width: 78px !important;
    font-size: 0.78rem !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .user-menu-toggle small {
    font-size: 0.66rem !important;
    line-height: 1 !important;
  }

  .user-menu-chevron {
    font-size: 0.62rem !important;
  }

  .user-dropdown {
    position: fixed !important;
    top: 4.55rem !important;
    right: 0.75rem !important;
    width: min(260px, calc(100vw - 1.5rem)) !important;
    margin: 0 !important;
  }

  .hero-panel {
    margin-top: 0 !important;
  }
}

@media (max-width: 430px) {
  .topbar {
    left: 0.55rem !important;
    right: 0.55rem !important;
    padding-left: 3.35rem !important;
    gap: 0.35rem !important;
  }

  .mobile-menu-toggle {
    left: 0.62rem !important;
    width: 42px !important;
    height: 42px !important;
  }

  .topbar h1 {
    font-size: clamp(1.05rem, 6.5vw, 1.55rem) !important;
  }

  .topbar .eyebrow {
    font-size: 0.54rem !important;
    letter-spacing: 1px !important;
  }

  .theme-toggle-icon {
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    flex-basis: 38px !important;
  }

  .user-menu {
    max-width: 128px !important;
  }

  .user-menu-toggle {
    max-width: 128px !important;
    padding: 0.32rem 0.42rem !important;
  }

  .user-menu-toggle strong {
    max-width: 58px !important;
    font-size: 0.72rem !important;
  }

  .user-menu-toggle small {
    font-size: 0.6rem !important;
  }

  .user-avatar {
    width: 28px !important;
    height: 28px !important;
    flex-basis: 28px !important;
  }
}


/* -- AYRPC CLASSES PAGE ------------------------------- */
.classes-hero {
  margin-bottom: 1.5rem;
}

.classes-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: 1rem;
  align-items: start;
}

.classes-list {
  display: grid;
  gap: 0.75rem;
}

.class-row-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card-strong);
}

.class-row-main {
  min-width: 0;
}

.class-number {
  display: inline-flex;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  color: var(--cyan);
  border: 1px solid var(--border-strong);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.class-row-main strong,
.class-row-main small {
  display: block;
}

.class-row-main strong {
  font-family: var(--font-title);
  font-size: 0.95rem;
}

.class-row-main small {
  color: var(--text-muted);
}

.class-row-status {
  display: grid;
  gap: 0.55rem;
  justify-items: end;
}

.class-status {
  font-weight: 900;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.class-status.ok {
  color: var(--green);
}

.class-status.bad {
  color: var(--red);
}

.class-status.warn {
  color: var(--yellow);
}

.class-status.neutral {
  color: var(--text-muted);
}

.video-player-box {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #000;
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
}

#youtubePlayer {
  width: 100%;
  height: 100%;
}

.watch-progress-box {
  margin-bottom: 1rem;
}

.recovery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

#quizButton:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.7);
}

.quiz-box {
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.recovery-quiz-form {
  display: grid;
  gap: 1rem;
}

.quiz-question {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card-strong);
}

.quiz-question legend {
  padding: 0 0.35rem;
  color: var(--cyan);
  font-weight: 900;
}

.quiz-question label {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  color: var(--text-soft);
}

@media (max-width: 1100px) {
  .classes-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .class-row-card {
    grid-template-columns: 1fr;
  }

  .class-row-status {
    justify-items: stretch;
  }
}

/* -- SIDEBAR COURSE CHILD ITEMS ----------------------- */
.submenu-child {
  margin-left: 0.65rem;
  opacity: 0.92;
  font-size: 0.8rem;
}

.submenu-line {
  width: 14px;
  height: 1px;
  border-radius: 999px;
  background: var(--border-strong);
  box-shadow: 0 0 8px rgba(0, 245, 255, 0.35);
}

.submenu-child span:last-child {
  color: var(--text-muted);
}

.submenu-child:hover span:last-child,
.submenu-child.active span:last-child {
  color: var(--cyan);
}

@media (max-width: 980px) {
  .submenu-child {
    margin-left: 0.35rem;
  }
}


/* -- GESTION PAGE ------------------------------------- */
.gestion-hero {
  margin-bottom: 1.5rem;
}

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

.gestion-card {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.gestion-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  font-size: 1.45rem;
  box-shadow: var(--shadow-card);
}

.gestion-icon.certificado {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #1a0e00;
}

.gestion-icon.constancia {
  background: linear-gradient(135deg, var(--green), #14b8a6);
  color: #04130b;
}

.gestion-icon.baja {
  background: linear-gradient(135deg, #ef4444, #991b1b);
}

.gestion-card h3 {
  font-family: var(--font-title);
  margin-bottom: 0.45rem;
}

.gestion-card p:not(.eyebrow) {
  color: var(--text-muted);
}

.danger-zone {
  border-color: rgba(239, 68, 68, 0.35);
}

.danger-btn {
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.06);
}

.danger-btn:hover {
  color: #ffffff;
  background: rgba(239, 68, 68, 0.18);
}

@media (max-width: 1100px) {
  .gestion-grid {
    grid-template-columns: 1fr;
  }
}


/* -- EXAMPRO EMBED PAGE ------------------------------- */
.exampro-shell {
  display: grid;
  gap: 1rem;
  min-height: calc(100vh - 135px);
}

.exampro-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.exampro-toolbar h3 {
  font-family: var(--font-title);
  margin: 0;
}

.exampro-frame {
  width: 100%;
  min-height: calc(100vh - 245px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #050510;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.exampro-fallback {
  display: none;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.exampro-fallback strong,
.exampro-fallback span {
  display: block;
}

.exampro-fallback span {
  color: var(--text-muted);
}

@media (max-width: 980px) {
  .exampro-shell {
    min-height: auto;
  }

  .exampro-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .exampro-frame {
    min-height: 72vh;
  }
}


/* -- AYRPC 2025 CLASSES POLISH ------------------------ */
.class-row-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card-strong);
}

.class-thumb-wrap {
  position: relative;
}

.class-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #050510;
  display: block;
}

.class-thumb-badge {
  position: absolute;
  left: 0.55rem;
  bottom: 0.55rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(5, 5, 16, 0.82);
  border: 1px solid var(--border-strong);
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.class-row-main {
  min-width: 0;
  display: grid;
  gap: 0.45rem;
}

.class-row-main strong {
  font-family: var(--font-title);
  font-size: 1rem;
}

.class-row-main small {
  color: var(--text-muted);
  line-height: 1.45;
  font-size: 0.9rem;
}

.class-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.class-meta-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.class-row-status {
  display: grid;
  gap: 0.65rem;
  justify-items: end;
}

.class-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.class-status.ok {
  color: var(--green);
  border-color: rgba(34, 197, 94, 0.3);
}

.class-status.bad {
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.3);
}

.class-status.warn {
  color: var(--yellow);
  border-color: rgba(234, 179, 8, 0.3);
}

.class-status.neutral {
  color: var(--text-muted);
}

.recovery-note {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card-strong);
  color: var(--text-soft);
  line-height: 1.45;
}

.recovery-note.ok {
  color: var(--green);
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.06);
}

.recovery-note.bad {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.32);
  background: rgba(239, 68, 68, 0.08);
}

.recovery-note.warn {
  color: #fde68a;
  border-color: rgba(234, 179, 8, 0.28);
  background: rgba(234, 179, 8, 0.08);
}

.recovery-note.neutral {
  color: var(--text-muted);
}

.watch-progress-box {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.progress-info strong {
  color: var(--cyan);
  font-family: var(--font-title);
}

.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--lilac));
  box-shadow: 0 0 18px rgba(0,245,255,0.28);
}

@media (max-width: 1200px) {
  .class-row-card {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .class-row-status {
    grid-column: 1 / -1;
    justify-items: start;
  }
}

@media (max-width: 700px) {
  .class-row-card {
    grid-template-columns: 1fr;
  }
}


/* ── EXAMPRO-LIKE RUBRIC BUILDER ────────────────────── */
.exampro-rubric-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(0,245,255,0.035), transparent 36%),
    rgba(15, 23, 42, 0.42);
}

.exampro-rubric-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.exampro-rubric-head > div {
  width: 100%;
  display: grid;
  gap: 0.45rem;
}

.exampro-question-code {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.exampro-question-title {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.72rem 0.85rem;
  background: rgba(2, 6, 23, 0.62);
  color: var(--text-main);
  font-family: var(--font-title);
  outline: none;
}

.exampro-rubric-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.exampro-rubric-meta label,
.multiple-choice-editor label,
.observation-box {
  display: grid;
  gap: 0.4rem;
}

.exampro-rubric-meta label {
  min-width: 190px;
}

.exampro-rubric-meta span,
.multiple-choice-editor span,
.observation-box span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.exampro-rubric-meta select,
.multiple-choice-editor select,
.multiple-choice-editor input,
.criterion-minimum-box textarea,
.criterion-item textarea,
.criterion-item input,
.observation-box textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.72rem 0.85rem;
  background: rgba(2, 6, 23, 0.62);
  color: var(--text-main);
  outline: none;
}

.criterion-minimum-box,
.multiple-choice-editor {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem;
  border: 1px solid rgba(59, 130, 246, 0.24);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.38);
}

.criterion-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #60a5fa;
  font-weight: 900;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.criteria-list-box {
  display: grid;
  gap: 0.6rem;
}

.criterion-item {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.34);
}

.criterion-item-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
}

.criterion-item-head strong {
  color: #ff5d5d;
  line-height: 1.35;
}

.criterion-item label {
  display: grid;
  gap: 0.35rem;
}

.criterion-item label span {
  color: #facc15;
  font-size: 0.76rem;
  font-weight: 900;
}

.criterion-delete-btn,
.rubric-trash-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.55);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.criterion-delete-btn:hover,
.rubric-trash-btn:hover {
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.4);
}

.exampro-result-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.result-btn {
  min-height: 48px;
  border-radius: 12px;
  font-weight: 900;
  font-family: var(--font-text);
  cursor: pointer;
  transition: var(--transition);
}

.result-btn.correct {
  color: #22c55e;
  border: 2px solid rgba(34, 197, 94, 0.85);
  background: rgba(34, 197, 94, 0.05);
}

.result-btn.partial {
  color: #facc15;
  border: 2px solid rgba(245, 158, 11, 0.85);
  background: rgba(245, 158, 11, 0.07);
}

.result-btn.incorrect {
  color: #ff5d5d;
  border: 2px solid rgba(239, 68, 68, 0.85);
  background: rgba(239, 68, 68, 0.08);
}

.result-btn.active {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08), 0 0 24px currentColor;
  transform: translateY(-1px);
}

.preview-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.6rem 0;
}

.preview-pill {
  display: inline-flex;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 900;
}

.preview-pill.correct {
  color: var(--green);
}

.preview-pill.partial {
  color: var(--yellow);
}

.preview-pill.incorrect {
  color: var(--red);
}

.preview-minimum {
  color: var(--text-soft);
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.42);
}

.preview-criteria-list {
  display: grid;
  gap: 0.6rem;
  padding: 0;
  list-style: none;
}

.preview-criteria-list li {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.38);
  border: 1px solid var(--border);
}

.preview-criteria-list li strong {
  color: #ff5d5d;
}

.preview-criteria-list li span {
  color: var(--text-soft);
}

.preview-criteria-list li small {
  color: #facc15;
}

@media (max-width: 700px) {
  .exampro-rubric-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .exampro-result-buttons {
    grid-template-columns: 1fr;
  }
}


/* ── STUDENT QUIZ / FEEDBACK EXAMPRO STYLE ───────────── */
.student-quiz-shell,
.student-feedback-shell {
  display: grid;
  gap: 1rem;
}

.student-quiz-header,
.student-feedback-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card-strong);
}

.student-feedback-top.approved {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.07);
}

.student-feedback-top.retry {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.07);
}

.student-quiz-header h3,
.student-feedback-top h3 {
  font-family: var(--font-title);
  margin: 0;
}

.student-quiz-pass-pill,
.student-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: #fde68a;
  font-weight: 900;
  white-space: nowrap;
}

.student-quiz-form,
.student-feedback-list {
  display: grid;
  gap: 1rem;
}

.student-question-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.42);
}

.student-question-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.student-question-title {
  display: flex;
  gap: 0.65rem;
  align-items: start;
  min-width: 0;
}

.student-question-title strong {
  color: var(--text-main);
  line-height: 1.4;
}

.student-question-number {
  min-width: 34px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(96, 165, 250, 0.45);
  border-radius: 8px;
  color: #93c5fd;
  font-weight: 900;
  font-size: 0.82rem;
}

.student-question-type {
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  background: rgba(185, 28, 28, 0.42);
  color: #fecaca;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
  text-transform: uppercase;
}

.student-options-list {
  display: grid;
  gap: 0.5rem;
}

.student-option-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.42);
  color: var(--text-main);
  cursor: pointer;
}

.student-option-item input {
  width: 18px;
  height: 18px;
}

.student-answer-textarea {
  width: 100%;
  min-height: 150px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.48);
  color: var(--text-main);
  resize: vertical;
  outline: none;
}

.student-answer-textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,245,255,0.08);
}

.student-practical-box {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.08);
  color: #fde68a;
  line-height: 1.5;
}

.student-quiz-submit {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.student-feedback-note {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card-strong);
  color: var(--text-soft);
  line-height: 1.45;
}

.student-feedback-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.42);
}

.student-feedback-card.correct {
  border-color: rgba(34, 197, 94, 0.28);
}

.student-feedback-card.partial {
  border-color: rgba(245, 158, 11, 0.28);
}

.student-feedback-card.incorrect {
  border-color: rgba(239, 68, 68, 0.28);
}

.student-feedback-question,
.student-feedback-result {
  display: grid;
  gap: 0.55rem;
}

.student-feedback-question strong {
  color: var(--text-muted);
}

.student-feedback-question p:last-child,
.student-feedback-result p:last-child {
  color: var(--text-soft);
  line-height: 1.5;
  white-space: pre-wrap;
}

.feedback-result-badge {
  width: fit-content;
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-weight: 900;
}

.feedback-result-badge.correct {
  background: rgba(34, 197, 94, 0.18);
  color: var(--green);
}

.feedback-result-badge.partial {
  background: rgba(245, 158, 11, 0.18);
  color: var(--yellow);
}

.feedback-result-badge.incorrect {
  background: rgba(239, 68, 68, 0.18);
  color: var(--red);
}

.feedback-minimum-box {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.42);
}

.feedback-minimum-box p {
  color: var(--text-soft);
  line-height: 1.6;
}

.feedback-criteria-box {
  display: grid;
  gap: 0.65rem;
}

.criterion-title.detected {
  color: var(--green);
}

.feedback-criterion-item {
  display: grid;
  gap: 0.3rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.42);
}

.feedback-criterion-item.ok strong {
  color: var(--green);
}

.feedback-criterion-item.missing strong {
  color: var(--red);
}

.feedback-criterion-item span {
  color: var(--text-soft);
  line-height: 1.45;
}

@media (max-width: 700px) {
  .student-quiz-header,
  .student-feedback-top,
  .student-question-head {
    align-items: stretch;
    flex-direction: column;
  }

  .student-quiz-submit {
    justify-content: stretch;
  }

  .student-quiz-submit .btn {
    width: 100%;
  }
}


/* ── ROLE VISIBILITY DOCENTE / MODERADOR ─────────────── */
.teacher-only,
.moderator-only,
.staff-only {
  display: none !important;
}

body.role-teacher .teacher-only,
body.role-teacher .staff-only {
  display: flex !important;
}

body.role-moderator .moderator-only,
body.role-moderator .staff-only {
  display: flex !important;
}

.recent-activity-empty {
  min-height: 120px;
}


/* ── TEACHER ADMIN SIDEBAR / ADMIN PAGE ─────────────── */
.teacher-admin-zone {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.teacher-admin-label {
  display: block;
  margin: 0 0 0.45rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 1.6px;
}

.admin-nav-item {
  border-color: rgba(245, 158, 11, 0.28) !important;
  background: rgba(245, 158, 11, 0.06) !important;
}

.admin-nav-item i,
.admin-nav-item span {
  color: #facc15 !important;
}

.admin-layout {
  display: grid;
  gap: 1rem;
}

.admin-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.5fr) auto;
  gap: 1rem;
  align-items: end;
}

.admin-form label {
  display: grid;
  gap: 0.45rem;
}

.admin-form label span {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.78rem 0.9rem;
  background: var(--bg-card-strong);
  color: var(--text-main);
  outline: none;
}

.admin-form input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,245,255,0.08);
}

.moderators-list {
  display: grid;
  gap: 0.75rem;
}

.moderator-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card-strong);
}

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

.moderator-card strong {
  color: var(--cyan);
  font-family: var(--font-title);
}

.moderator-card span {
  color: var(--text-soft);
}

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

.empty-admin-state,
.admin-note-box {
  min-height: 90px;
  display: grid;
  place-items: center;
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: var(--text-muted);
  background: var(--bg-card-strong);
}

@media (max-width: 980px) {
  .teacher-admin-zone {
    margin-top: 1rem;
  }

  .admin-form {
    grid-template-columns: 1fr;
  }

  .moderator-card {
    align-items: stretch;
    flex-direction: column;
  }
}


/* ── FIX ADMIN ZONE BOTTOM SIDEBAR ──────────────────── */
.sidebar {
  display: flex !important;
  flex-direction: column !important;
}

.sidebar-nav {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}

.teacher-admin-zone.teacher-only {
  display: none !important;
}

body.role-teacher .teacher-admin-zone.teacher-only {
  display: block !important;
}

.teacher-admin-zone {
  width: 100% !important;
  margin-top: auto !important;
  padding-top: 1rem !important;
  border-top: 1px solid var(--border) !important;
}

.teacher-admin-label {
  display: block !important;
  margin: 0 0 0.45rem 0.75rem !important;
  color: var(--text-muted) !important;
  font-size: 0.68rem !important;
  font-weight: 900 !important;
  letter-spacing: 1.6px !important;
}

.teacher-admin-zone .admin-nav-item {
  width: 100% !important;
  margin: 0 !important;
  border: 1px solid rgba(245, 158, 11, 0.32) !important;
  border-radius: 14px !important;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.10), rgba(168, 85, 247, 0.06)) !important;
  box-shadow: none !important;
}

.teacher-admin-zone .admin-nav-item:hover,
.teacher-admin-zone .admin-nav-item.active {
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(168, 85, 247, 0.10)) !important;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.12) !important;
}

.teacher-admin-zone .admin-nav-item i,
.teacher-admin-zone .admin-nav-item span {
  color: #facc15 !important;
}

body.role-teacher .sidebar-submenu .teacher-only {
  display: flex !important;
}

@media (max-width: 980px) {
  .teacher-admin-zone {
    margin-top: 1rem !important;
  }
}


/* ── MOBILE CLASSES ORDER FIX ───────────────────────── */
@media (max-width: 1100px) {
  .classes-layout {
    display: flex !important;
    flex-direction: column !important;
  }

  .classes-layout > .recovery-panel {
    order: 1 !important;
  }

  .classes-layout > .panel:not(.recovery-panel) {
    order: 2 !important;
  }
}

@media (max-width: 700px) {
  .recovery-panel {
    position: relative !important;
    z-index: 2 !important;
  }

  .video-player-box {
    margin-top: 0.25rem !important;
  }

  .classes-list {
    margin-top: 0.35rem !important;
  }
}


/* ── FIX CLASS CARD BUTTON OVERLAP ───────────────────── */
.class-row-card {
  overflow: hidden !important;
}

.class-row-main {
  min-width: 0 !important;
}

.class-row-main strong,
.class-row-main small {
  overflow-wrap: anywhere !important;
}

.class-row-status {
  min-width: 150px !important;
}

.class-row-status .btn {
  min-width: 145px !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: normal !important;
  line-height: 1.2 !important;
}

@media (max-width: 1380px) {
  .classes-layout {
    grid-template-columns: minmax(360px, 0.75fr) minmax(0, 1.25fr) !important;
  }

  .class-row-card {
    grid-template-columns: 150px minmax(0, 1fr) !important;
  }

  .class-row-status {
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
  }

  .class-row-status .btn {
    min-width: 160px !important;
    max-width: 220px !important;
  }
}

@media (max-width: 1100px) {
  .classes-layout {
    grid-template-columns: 1fr !important;
  }

  .class-row-card {
    grid-template-columns: 170px minmax(0, 1fr) auto !important;
  }

  .class-row-status {
    grid-column: auto !important;
    display: grid !important;
    justify-items: end !important;
  }
}

@media (max-width: 760px) {
  .class-row-card {
    grid-template-columns: 1fr !important;
    gap: 0.8rem !important;
  }

  .class-thumb-wrap {
    width: 100% !important;
  }

  .class-row-status {
    grid-column: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: stretch !important;
    gap: 0.65rem !important;
  }

  .class-row-status .class-status {
    width: fit-content !important;
  }

  .class-row-status .btn {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 48px !important;
  }
}

@media (min-width: 1101px) and (max-width: 1500px) {
  .class-thumb {
    min-width: 0 !important;
  }

  .class-row-main small {
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
}


/* ── RESPONSIVE CLASSES FINAL FIX ───────────────────── */
.classes-layout {
  align-items: start !important;
}

.class-row-card {
  min-width: 0 !important;
  overflow: hidden !important;
}

.class-thumb-wrap,
.class-row-main,
.class-row-status {
  min-width: 0 !important;
}

.class-row-main strong {
  display: block !important;
  max-width: 100% !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  line-height: 1.22 !important;
}

.class-row-main small {
  display: block !important;
  max-width: 100% !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  line-height: 1.35 !important;
}

.class-row-status .btn {
  white-space: normal !important;
  text-align: center !important;
}

/* Desktop ancho */
@media (min-width: 1501px) {
  .classes-layout {
    grid-template-columns: minmax(520px, 0.9fr) minmax(0, 1.1fr) !important;
  }

  .class-row-card {
    grid-template-columns: 200px minmax(0, 1fr) auto !important;
  }

  .class-row-status {
    grid-column: auto !important;
    min-width: 150px !important;
    justify-items: end !important;
  }

  .class-row-status .btn {
    min-width: 145px !important;
  }
}

/* Ventanas medianas: evitar que se rompa la card */
@media (min-width: 1101px) and (max-width: 1500px) {
  .classes-layout {
    grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.28fr) !important;
    gap: 1rem !important;
  }

  .class-row-card {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .class-thumb-wrap {
    width: 100% !important;
  }

  .class-thumb {
    width: 100% !important;
    max-height: 210px !important;
    object-fit: cover !important;
  }

  .class-row-main {
    display: grid !important;
    gap: 0.45rem !important;
  }

  .class-row-main strong {
    font-size: 1rem !important;
  }

  .class-row-main small {
    font-size: 0.9rem !important;
  }

  .class-meta-line {
    margin-top: 0.2rem !important;
  }

  .class-row-status {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    justify-items: stretch !important;
    gap: 0.65rem !important;
  }

  .class-row-status .btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 46px !important;
  }
}

/* Tablet/mobile: reproductor arriba, lista abajo */
@media (max-width: 1100px) {
  .classes-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .classes-layout > .recovery-panel {
    order: 1 !important;
    width: 100% !important;
  }

  .classes-layout > .panel:not(.recovery-panel) {
    order: 2 !important;
    width: 100% !important;
  }

  .class-row-card {
    grid-template-columns: 180px minmax(0, 1fr) !important;
    gap: 0.85rem !important;
  }

  .class-row-status {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
  }

  .class-row-status .btn {
    min-width: 180px !important;
  }
}

/* Mobile posta */
@media (max-width: 760px) {
  .classes-layout {
    gap: 1rem !important;
  }

  .class-row-card {
    grid-template-columns: 1fr !important;
    padding: 0.9rem !important;
  }

  .class-thumb {
    width: 100% !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
  }

  .class-row-main strong {
    font-size: 1.05rem !important;
  }

  .class-row-main small {
    font-size: 0.92rem !important;
  }

  .class-row-status {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: stretch !important;
  }

  .class-row-status .class-status {
    width: fit-content !important;
  }

  .class-row-status .btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .video-player-box {
    width: 100% !important;
  }
}

/* Mobile angosto */
@media (max-width: 480px) {
  .classes-hero {
    margin-bottom: 1rem !important;
  }

  .recovery-panel,
  .classes-layout > .panel {
    padding: 0.9rem !important;
  }

  .student-question-title {
    flex-direction: column !important;
  }
}




















/* ── CLASSROOM ORB IMG FINAL ────────────────────────── */
.hero-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(190px, 20vw, 280px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

.hero-orb .orb-inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.hero-orb .orb-inner .classroom-orb-img {
  position: absolute;
  width: 68%;
  max-width: 168px;
  height: auto;
  object-fit: contain;
  margin: 0;
  padding: 0;
  z-index: 30;
  pointer-events: none;
}

.hero-orb .orb-inner .classroom-orb-img-dark {
  display: block;
  filter: drop-shadow(0 0 22px rgba(0, 245, 255, 0.36));
}

.hero-orb .orb-inner .classroom-orb-img-light {
  display: none;
  filter: drop-shadow(0 0 18px rgba(124, 58, 237, 0.25));
}

html[data-theme="light"] .hero-orb .orb-inner .classroom-orb-img-dark,
:root[data-theme="light"] .hero-orb .orb-inner .classroom-orb-img-dark {
  display: none;
}

html[data-theme="light"] .hero-orb .orb-inner .classroom-orb-img-light,
:root[data-theme="light"] .hero-orb .orb-inner .classroom-orb-img-light {
  display: block;
}

html[data-theme="dark"] .hero-orb .orb-inner .classroom-orb-img-dark,
:root[data-theme="dark"] .hero-orb .orb-inner .classroom-orb-img-dark {
  display: block;
}

.hero-orb .orb-inner i.fa-microchip {
  display: none;
}

@media (max-width: 900px) {
  .hero-orb {
    width: clamp(150px, 36vw, 220px);
  }

  .hero-orb .orb-inner .classroom-orb-img {
    width: 64%;
    max-width: 140px;
  }
}

@media (max-width: 560px) {
  .hero-orb {
    width: clamp(125px, 42vw, 180px);
  }

  .hero-orb .orb-inner .classroom-orb-img {
    width: 60%;
    max-width: 112px;
  }
}


/* ── CLASSROOM LOGO ORB HARD RESET ──────────────────── */
.hero-orb,
.orb-inner,
.classroom-orb-img,
.classroom-orb-picture,
.theme-orb-icon,
.home-classroom-icon,
.login-classroom-icon {
  display: none !important;
}

.classroom-logo-orb {
  width: clamp(190px, 20vw, 280px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 999px;
  border: 3px solid transparent;
  background:
    linear-gradient(var(--bg-main), var(--bg-main)) padding-box,
    linear-gradient(135deg, var(--cyan), var(--violet), var(--lilac)) border-box;
  box-shadow:
    0 0 34px rgba(0, 245, 255, 0.12),
    0 0 44px rgba(168, 85, 247, 0.15),
    inset 0 0 36px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.classroom-logo-orb-img {
  width: 68%;
  height: auto;
  display: block;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.classroom-logo-orb-img-dark {
  display: block;
  filter: drop-shadow(0 0 22px rgba(0, 245, 255, 0.38));
}

.classroom-logo-orb-img-light {
  display: none;
  filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.26));
}

html[data-theme="light"] .classroom-logo-orb-img-dark,
:root[data-theme="light"] .classroom-logo-orb-img-dark {
  display: none;
}

html[data-theme="light"] .classroom-logo-orb-img-light,
:root[data-theme="light"] .classroom-logo-orb-img-light {
  display: block;
}

html[data-theme="dark"] .classroom-logo-orb-img-dark,
:root[data-theme="dark"] .classroom-logo-orb-img-dark {
  display: block;
}

@media (max-width: 900px) {
  .classroom-logo-orb {
    width: clamp(150px, 36vw, 220px);
  }

  .classroom-logo-orb-img {
    width: 66%;
  }
}

@media (max-width: 560px) {
  .classroom-logo-orb {
    width: clamp(125px, 42vw, 180px);
  }

  .classroom-logo-orb-img {
    width: 64%;
  }
}


/* ── LOGIN ORB FINAL FIX ────────────────────────────── */
.login-side-panel .classroom-logo-orb,
.login-classroom-logo-orb {
  margin: 0 auto 2.25rem auto;
}

.classroom-logo-orb-img {
  width: 76%;
}

@media (max-width: 900px) {
  .classroom-logo-orb-img {
    width: 72%;
  }
}

@media (max-width: 560px) {
  .classroom-logo-orb-img {
    width: 68%;
  }
}

/* ============================================================
   LOGIN - MOBILE FIX
   ============================================================ */

@media (max-width: 680px) {

  body.login-page,
  .login-page {
    min-height: 100dvh;
    overflow-x: hidden;
  }

  .login-shell,
  .auth-shell,
  .login-wrapper,
  .auth-wrapper {
    width: 100%;
    min-height: 100dvh;
    padding: 24px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .login-card,
  .auth-card,
  .campus-card {
    width: min(100%, 420px);
    margin: 0 auto;
    padding: 28px 20px 24px;
    border-radius: 24px;
  }

  .login-brand,
  .auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
  }

  .login-brand img,
  .auth-brand img,
  .brand-icon,
  .login-logo {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
  }

  .login-brand-title,
  .auth-brand-title {
    font-size: 1.05rem;
    line-height: 1.1;
  }

  .login-brand-subtitle,
  .auth-brand-subtitle {
    font-size: .78rem;
    letter-spacing: .22em;
  }

  .login-pill,
  .auth-pill,
  .access-pill {
    width: fit-content;
    max-width: 100%;
    padding: 10px 16px;
    font-size: .82rem;
    letter-spacing: .06em;
    margin-bottom: 24px;
  }

  .login-card h1,
  .auth-card h1,
  .campus-card h1 {
    font-size: clamp(2.15rem, 10vw, 3rem);
    line-height: .95;
    margin: 0 0 18px;
  }

  .login-description,
  .auth-description,
  .campus-description {
    font-size: .95rem;
    line-height: 1.45;
    margin-bottom: 28px;
  }

  .form-group,
  .login-field,
  .auth-field {
    margin-bottom: 18px;
  }

  .form-group label,
  .login-field label,
  .auth-field label {
    font-size: 1rem;
    margin-bottom: 9px;
  }

  .input-wrap,
  .login-input-wrap,
  .auth-input-wrap {
    min-height: 58px;
    border-radius: 16px;
  }

  .input-wrap input,
  .login-input-wrap input,
  .auth-input-wrap input,
  .login-card input,
  .auth-card input {
    height: 58px;
    font-size: 1rem;
    padding: 0 16px 0 50px;
  }

  .input-wrap i,
  .login-input-wrap i,
  .auth-input-wrap i {
    left: 18px;
    font-size: 1.1rem;
  }

  .login-card button,
  .auth-card button,
  .btn-login,
  .btn-enter,
  .theme-toggle {
    min-height: 58px;
    border-radius: 16px;
    font-size: 1rem;
  }

  .theme-toggle {
    margin-top: 16px;
  }

  .login-footer,
  .auth-footer {
    margin-top: 22px;
    font-size: .8rem;
    text-align: center;
  }
}

@media (max-width: 390px) {

  .login-shell,
  .auth-shell,
  .login-wrapper,
  .auth-wrapper {
    padding: 18px 10px;
  }

  .login-card,
  .auth-card,
  .campus-card {
    padding: 24px 18px 22px;
    border-radius: 22px;
  }

  .login-brand img,
  .auth-brand img,
  .brand-icon,
  .login-logo {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  .login-card h1,
  .auth-card h1,
  .campus-card h1 {
    font-size: clamp(2rem, 9vw, 2.55rem);
  }

  .login-pill,
  .auth-pill,
  .access-pill {
    font-size: .76rem;
    padding: 9px 14px;
  }
}


/* ============================================================
   MOBILE ONLY HOTFIX - INDEX + LOGIN
   No afecta desktop
   ============================================================ */

@media (max-width: 768px) {

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  * {
    box-sizing: border-box;
  }

  /* -----------------------------
     INDEX / HOME MOBILE
  ----------------------------- */

  .app,
  .page,
  .main,
  .dashboard,
  .dashboard-page,
  .classroom-page,
  .home-page,
  .content,
  .main-content,
  .page-content,
  .hero,
  .hero-card,
  .welcome-card,
  .campus-hero,
  .dashboard-hero {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .hero-card,
  .welcome-card,
  .campus-hero,
  .dashboard-hero {
    width: calc(100vw - 28px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 28px 26px !important;
    border-radius: 22px !important;
    min-height: auto !important;
  }

  .hero h1,
  .hero-title,
  .welcome-title,
  .campus-hero h1,
  .dashboard-hero h1,
  .hero-card h1,
  .welcome-card h1 {
    max-width: 100% !important;
    font-size: clamp(2.3rem, 11vw, 3.25rem) !important;
    line-height: .98 !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }

  .hero p,
  .hero-subtitle,
  .welcome-subtitle,
  .campus-hero p,
  .dashboard-hero p {
    max-width: 100% !important;
    font-size: clamp(1rem, 4.2vw, 1.15rem) !important;
    line-height: 1.55 !important;
    white-space: normal !important;
  }

  .hero-actions,
  .welcome-actions,
  .campus-actions,
  .dashboard-actions {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .hero-actions a,
  .hero-actions button,
  .welcome-actions a,
  .welcome-actions button,
  .campus-actions a,
  .campus-actions button,
  .dashboard-actions a,
  .dashboard-actions button {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 58px !important;
  }

  /* Decoraciones gigantes del index */
  .classroom-logo-orb,
  .hero-orb,
  .orb-inner,
  .hero-visual,
  .hero-decoration,
  .dashboard-decoration,
  .campus-decoration {
    max-width: 42vw !important;
    width: 42vw !important;
    height: 42vw !important;
    right: -13vw !important;
    bottom: -8vw !important;
    left: auto !important;
    top: auto !important;
    opacity: .72 !important;
    pointer-events: none !important;
  }

  .classroom-logo-orb img,
  .classroom-logo-orb-img,
  .hero-orb img,
  .orb-inner img,
  .hero-visual img,
  .hero-decoration img,
  .dashboard-decoration img,
  .campus-decoration img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  /* -----------------------------
     LOGIN MOBILE
  ----------------------------- */

  .login-page,
  body.login-page {
    min-height: 100dvh !important;
    overflow-x: hidden !important;
  }

  .login-shell,
  .auth-shell,
  .login-wrapper,
  .auth-wrapper {
    width: 100% !important;
    max-width: 100vw !important;
    min-height: 100dvh !important;
    padding: 24px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow-x: hidden !important;
  }

  .login-card,
  .auth-card,
  .campus-card {
    width: calc(100vw - 28px) !important;
    max-width: 430px !important;
    margin: 0 auto !important;
    padding: 28px 20px 24px !important;
    border-radius: 24px !important;
    overflow: hidden !important;
  }

  .login-card h1,
  .auth-card h1,
  .campus-card h1 {
    max-width: 100% !important;
    font-size: clamp(2.15rem, 10vw, 3rem) !important;
    line-height: .98 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .login-card input,
  .auth-card input,
  .campus-card input {
    max-width: 100% !important;
  }

  .login-card button,
  .auth-card button,
  .campus-card button {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Logo/orb del login: que NO desaparezca en mobile */
  .login-card .classroom-logo-orb,
  .auth-card .classroom-logo-orb,
  .campus-card .classroom-logo-orb,
  .login-card .hero-orb,
  .auth-card .hero-orb,
  .campus-card .hero-orb {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 74px !important;
    height: 74px !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 0 18px 0 !important;
  }

  .login-card .classroom-logo-orb img,
  .auth-card .classroom-logo-orb img,
  .campus-card .classroom-logo-orb img,
  .login-card .classroom-logo-orb-img,
  .auth-card .classroom-logo-orb-img,
  .campus-card .classroom-logo-orb-img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    opacity: 1 !important;
  }
}

@media (max-width: 420px) {

  .hero-card,
  .welcome-card,
  .campus-hero,
  .dashboard-hero {
    width: calc(100vw - 24px) !important;
    padding: 24px 20px !important;
  }

  .hero h1,
  .hero-title,
  .welcome-title,
  .campus-hero h1,
  .dashboard-hero h1,
  .hero-card h1,
  .welcome-card h1 {
    font-size: clamp(2rem, 10.5vw, 2.7rem) !important;
  }

  .classroom-logo-orb,
  .hero-orb,
  .orb-inner,
  .hero-visual,
  .hero-decoration,
  .dashboard-decoration,
  .campus-decoration {
    max-width: 36vw !important;
    width: 36vw !important;
    height: 36vw !important;
    right: -10vw !important;
    bottom: -4vw !important;
  }

  .login-card,
  .auth-card,
  .campus-card {
    width: calc(100vw - 24px) !important;
    padding: 24px 18px 22px !important;
  }
}


/* ============================================================
   MOBILE - SOLO AJUSTE DEL PNG DECORATIVO
   ============================================================ */

@media (max-width: 768px) {

  .hero-card,
  .welcome-card,
  .campus-hero,
  .dashboard-hero {
    position: relative !important;
    overflow: hidden !important;
  }

  /* SOLO el PNG/orb/mascota */
  .classroom-logo-orb,
  .hero-orb,
  .orb-inner,
  .hero-visual,
  .hero-decoration,
  .dashboard-decoration,
  .campus-decoration {
    display: block !important;
    position: relative !important;
    width: min(42vw, 190px) !important;
    height: min(42vw, 190px) !important;
    max-width: 190px !important;
    max-height: 190px !important;
    margin: 26px auto -18px auto !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    opacity: .96 !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }

  .classroom-logo-orb img,
  .classroom-logo-orb-img,
  .hero-orb img,
  .orb-inner img,
  .hero-visual img,
  .hero-decoration img,
  .dashboard-decoration img,
  .campus-decoration img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
}

@media (max-width: 430px) {
  .classroom-logo-orb,
  .hero-orb,
  .orb-inner,
  .hero-visual,
  .hero-decoration,
  .dashboard-decoration,
  .campus-decoration {
    width: min(46vw, 165px) !important;
    height: min(46vw, 165px) !important;
    max-width: 165px !important;
    max-height: 165px !important;
    margin: 22px auto -14px auto !important;
  }
}


/* ============================================================
   ALUMNOS - EXAMPRO CLASSROOM
   ============================================================ */

.students-page-panel {
  display: grid;
  gap: 22px;
}

.students-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 22px;
  align-items: center;
}

.students-hero-panel h2 {
  margin: 0 0 12px;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
}

.students-hero-panel p {
  margin: 0;
  color: var(--text-muted);
  max-width: 760px;
}

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

.student-stat-card {
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, .045);
}

.student-stat-card span {
  display: block;
  color: var(--text-muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.student-stat-card strong {
  display: block;
  margin-top: 6px;
  font-family: "Orbitron", sans-serif;
  font-size: 1.5rem;
}

.students-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.students-search span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-weight: 700;
}

.students-search-box {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: rgba(0, 0, 0, .18);
}

.students-search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-main);
  font: inherit;
}

.students-toolbar-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.students-status {
  margin-bottom: 18px;
  color: var(--text-muted);
}

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

.student-card {
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(255, 214, 10, .12), transparent 38%),
    rgba(255, 255, 255, .045);
  box-shadow: var(--shadow-soft);
}

.student-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.student-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  border-radius: 16px;
  background: rgba(255, 214, 10, .14);
  color: var(--accent);
  border: 1px solid rgba(255, 214, 10, .25);
}

.student-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.15;
}

.student-card p {
  margin: 4px 0 0;
  color: var(--text-muted);
}

.student-card-data {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: .9rem;
}

.student-card-data span {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.student-card-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.student-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.student-badge.success {
  color: #7CFFB2;
  background: rgba(36, 255, 126, .10);
  border: 1px solid rgba(36, 255, 126, .18);
}

.student-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.student-card-stats span {
  padding: 10px 8px;
  border-radius: 14px;
  text-align: center;
  background: rgba(0, 0, 0, .15);
  color: var(--text-muted);
  font-size: .78rem;
}

.student-card-stats strong {
  display: block;
  color: var(--text-main);
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
}

.student-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.student-card-actions .btn {
  justify-content: center;
  min-height: 44px;
  padding-inline: 12px;
  font-size: .86rem;
}

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

  .students-hero-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .students-toolbar {
    grid-template-columns: 1fr;
  }

  .students-stats-grid {
    grid-template-columns: 1fr;
  }

  .students-grid {
    grid-template-columns: 1fr;
  }

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


/* ============================================================
   ADMIN SIDEBAR SPACING FIX
   ============================================================ */

.teacher-admin-zone .admin-nav-item + .admin-nav-item {
  margin-top: 12px;
}

.teacher-admin-zone .admin-nav-item {
  margin-bottom: 0;
}

/* === CLASSROOM SIDEBAR SCROLL FIX === */
/* Evita que los submenús de Cursos se recorten en monitores chicos y mobile */

.sidebar{
  min-height:100vh;
  max-height:100vh;
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:thin;
  scrollbar-color:rgba(0,245,255,.28) transparent;
}

.sidebar::-webkit-scrollbar{
  width:5px;
}

.sidebar::-webkit-scrollbar-track{
  background:transparent;
}

.sidebar::-webkit-scrollbar-thumb{
  background:rgba(0,245,255,.24);
  border-radius:999px;
}

.sidebar nav,
.sidebar .nav,
.sidebar .nav-list,
.sidebar .sidebar-nav{
  overflow:visible;
  min-height:0;
}

.nav-submenu,
.submenu,
.course-submenu{
  overflow:visible;
}

.nav-item,
.nav-sub-item,
.sidebar a{
  flex-shrink:0;
}

/* En pantallas bajas, compactamos un poco el menú para que entren más opciones */
@media (max-height:760px) and (min-width:901px){
  .sidebar{
    padding-top:.9rem;
    padding-bottom:.9rem;
  }

  .brand{
    margin-bottom:.85rem;
  }

  .nav-item{
    min-height:42px;
    padding-top:.58rem;
    padding-bottom:.58rem;
  }

  .nav-sub-item{
    padding-top:.42rem;
    padding-bottom:.42rem;
  }

  .sidebar .mini-status,
  .mini-status{
    padding:.65rem;
  }
}

/* Mobile: la sidebar desplegable también debe scrollear por dentro */
@media (max-width:900px){
  .sidebar{
    max-height:100dvh;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    padding-bottom:1.25rem;
  }

  .sidebar.is-open,
  body.sidebar-open .sidebar,
  body.menu-open .sidebar{
    overflow-y:auto;
  }

  .nav-submenu,
  .submenu,
  .course-submenu{
    max-height:none;
  }
}
/* === END CLASSROOM SIDEBAR SCROLL FIX === */

/* === CLASSROOM HOME INDEX POLISH === */
/* Home: actividad reciente debajo de la hero + Pelusita integrada */

.page-home .student-home-panel.home-student-panel {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  margin-top: 0;
}

.page-home .home-recent-panel {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.page-home .home-recent-panel .panel-header {
  align-items: center;
}

.home-panel-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .7rem;
  border: 1px solid rgba(0,245,255,.28);
  border-radius: 999px;
  background: rgba(0,245,255,.08);
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

.home-recent-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 1.25rem;
  min-height: 150px;
}

.home-recent-copy {
  display: grid;
  gap: .9rem;
}

.home-recent-copy p {
  max-width: 760px;
  color: var(--text-muted);
  line-height: 1.65;
}

.home-mini-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.home-mini-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 42px;
  padding: .65rem .85rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card-strong);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 900;
  transition: var(--transition);
}

.home-mini-link i {
  color: var(--cyan);
}

.home-mini-link:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 0 24px rgba(0,245,255,.13);
}

.home-pelusita-hint {
  justify-self: end;
  max-width: 300px;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(249,115,22,.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 15% 20%, rgba(249,115,22,.16), transparent 38%),
    rgba(15,5,35,.45);
  color: #fed7aa;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.35;
  box-shadow: 0 0 30px rgba(249,115,22,.09);
}

.home-pelusita-hint i {
  color: #f97316;
  font-size: 1.15rem;
  filter: drop-shadow(0 0 8px rgba(249,115,22,.35));
}

/* En home usamos la Pelusita real del JS, con su animación/interacción */
.page-home .pelusita-wrapper {
  display: flex !important;
  top: auto !important;
  left: auto !important;
  right: clamp(18px, 3vw, 42px) !important;
  bottom: clamp(18px, 3vh, 34px) !important;
  transform: scale(.88);
  transform-origin: bottom right;
  z-index: 6500;
}

.page-home .pelusita-dialog {
  width: min(340px, calc(100vw - 34px));
}

@media (max-width: 900px) {
  .home-recent-content {
    grid-template-columns: 1fr;
  }

  .home-pelusita-card {
    justify-self: center;
    width: min(100%, 260px);
  }
}

@media (max-width: 560px) {
  .page-home .home-recent-panel .panel-header {
    display: grid;
  }

  .home-panel-pill {
    width: max-content;
  }

  .home-mini-actions {
    display: grid;
  }

  .home-mini-link {
    justify-content: center;
    text-align: center;
  }

  .home-pelusita-card {
    min-height: 120px;
  }
}

@media (max-width: 720px) {
  .page-home .pelusita-wrapper {
    right: 10px !important;
    bottom: 10px !important;
    transform: scale(.74) !important;
  }

  .home-pelusita-hint {
    justify-self: stretch;
    max-width: none;
  }
}

/* === END CLASSROOM HOME INDEX POLISH === */

/* === HOME ACTIVITY SOON ANIMATION === */

.home-newsletter-soon {
  position: relative;
  min-height: 170px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgba(0,245,255,.22);
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 25%, rgba(0,245,255,.16), transparent 34%),
    radial-gradient(circle at 92% 78%, rgba(168,85,247,.18), transparent 38%),
    rgba(15,5,35,.42);
}

.home-newsletter-soon::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(0,245,255,.08), transparent);
  transform: translateX(-110%);
  animation: homeSoonSweep 3.8s ease-in-out infinite;
  pointer-events: none;
}

.home-newsletter-orb {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  border: 1px solid rgba(0,245,255,.32);
  background:
    radial-gradient(circle at 35% 25%, rgba(0,245,255,.28), transparent 38%),
    rgba(0,245,255,.08);
  color: var(--cyan);
  box-shadow:
    0 0 28px rgba(0,245,255,.16),
    inset 0 0 22px rgba(255,255,255,.04);
  animation: homeSoonPulse 2.2s ease-in-out infinite;
}

.home-newsletter-orb i {
  font-size: 1.55rem;
  filter: drop-shadow(0 0 10px rgba(0,245,255,.5));
}

.home-newsletter-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .25rem;
}

.home-newsletter-kicker {
  width: max-content;
  display: inline-flex;
  align-items: center;
  padding: .32rem .62rem;
  border: 1px solid rgba(168,85,247,.28);
  border-radius: 999px;
  background: rgba(168,85,247,.10);
  color: #c4b5fd;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.home-newsletter-copy strong {
  font-family: var(--font-title);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1;
  color: var(--text-main);
  text-shadow: 0 0 22px rgba(0,245,255,.18);
  animation: homeSoonTextBlink 2.4s ease-in-out infinite;
}

.home-newsletter-copy p {
  max-width: 720px;
  color: var(--text-muted);
  line-height: 1.55;
}

.home-newsletter-signal {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

.home-newsletter-signal span {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0,245,255,.52);
  border-radius: 999px;
  animation: homeSoonRadar 2.4s ease-out infinite;
}

.home-newsletter-signal span:nth-child(2) {
  animation-delay: .55s;
}

.home-newsletter-signal span:nth-child(3) {
  animation-delay: 1.1s;
}

@keyframes homeSoonSweep {
  0%, 45% { transform: translateX(-115%); opacity: 0; }
  55% { opacity: 1; }
  100% { transform: translateX(115%); opacity: 0; }
}

@keyframes homeSoonPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 24px rgba(0,245,255,.14), inset 0 0 22px rgba(255,255,255,.04);
  }
  50% {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 0 38px rgba(0,245,255,.28), inset 0 0 26px rgba(255,255,255,.06);
  }
}

@keyframes homeSoonTextBlink {
  0%, 100% { opacity: .86; }
  50% { opacity: 1; text-shadow: 0 0 30px rgba(0,245,255,.32); }
}

@keyframes homeSoonRadar {
  0% {
    width: 16px;
    height: 16px;
    opacity: .8;
    transform: scale(.8);
  }
  100% {
    width: 72px;
    height: 72px;
    opacity: 0;
    transform: scale(1);
  }
}

@media (max-width: 720px) {
  .home-newsletter-soon {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .home-newsletter-kicker {
    margin-inline: auto;
  }

  .home-newsletter-copy p {
    max-width: 100%;
  }

  .home-newsletter-signal {
    display: none;
  }
}
/* === END HOME ACTIVITY SOON ANIMATION === */

/* === CURSOS HUB REDESIGN === */

.courses-hub-panel {
  padding: clamp(1rem, 2.4vw, 1.45rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 12% 0%, rgba(0,245,255,.12), transparent 32%),
    radial-gradient(circle at 92% 100%, rgba(168,85,247,.16), transparent 38%),
    var(--bg-card);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.courses-hub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.courses-hub-header h3 {
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
}

.courses-hub-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .7rem;
  border: 1px solid rgba(0,245,255,.28);
  border-radius: 999px;
  background: rgba(0,245,255,.08);
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

.courses-hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 1rem;
}

.course-hub-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.25rem);
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 12%, rgba(168,85,247,.16), transparent 32%),
    var(--bg-card-strong);
}

.course-hub-card::before {
  content: '';
  position: absolute;
  right: -90px;
  top: -90px;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: rgba(0,245,255,.08);
  filter: blur(4px);
  pointer-events: none;
}

.course-hub-top,
.course-hub-copy,
.course-attendance-panel,
.course-status-grid,
.course-submenu-card {
  position: relative;
  z-index: 1;
}

.course-hub-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.course-hub-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--violet-dim), var(--cyan-dim));
  color: #fff;
  box-shadow: 0 0 24px rgba(0,245,255,.16);
}

.course-hub-copy h3 {
  margin-bottom: .45rem;
  font-family: var(--font-title);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.course-hub-copy p {
  color: var(--text-muted);
  line-height: 1.6;
}

.course-attendance-panel {
  display: grid;
  gap: .7rem;
  padding: .9rem;
  border: 1px solid rgba(0,245,255,.20);
  border-radius: 18px;
  background: rgba(0,245,255,.055);
}

.course-attendance-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.course-attendance-main span {
  color: var(--text-muted);
  font-weight: 800;
}

.course-attendance-main strong {
  font-family: var(--font-title);
  font-size: 1.45rem;
  color: var(--cyan);
}

.course-attendance-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.course-attendance-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 22px rgba(0,245,255,.25);
  transition: width .45s ease;
}

.course-attendance-panel p {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.5;
}

.course-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
}

.course-status-grid div {
  padding: .8rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}

.course-status-grid span {
  display: block;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: .25rem;
}

.course-status-grid strong {
  color: var(--text-main);
}

.course-status-recuperatorio.is-active {
  border-color: rgba(34,197,94,.45);
  background: rgba(34,197,94,.09);
}

.course-status-recuperatorio.is-active strong {
  color: #86efac;
}

.course-status-recuperatorio.is-locked {
  border-color: rgba(249,115,22,.35);
  background: rgba(249,115,22,.08);
}

.course-status-recuperatorio.is-locked strong {
  color: #fed7aa;
}

.course-submenu-card {
  display: grid;
  gap: .75rem;
  padding: .9rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(15,5,35,.36);
}

.course-submenu-title {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--cyan);
  font-weight: 900;
  font-size: .88rem;
}

.course-submenu-actions {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
}

.btn-course-recovery.disabled {
  opacity: .65;
  filter: grayscale(.25);
}

.page-cursos .pelusita-wrapper {
  display: flex !important;
  top: auto !important;
  left: auto !important;
  right: clamp(18px, 3vw, 42px) !important;
  bottom: clamp(18px, 3vh, 34px) !important;
  transform: scale(.84);
  transform-origin: bottom right;
}

@media (max-width: 1100px) {
  .courses-hub-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .courses-hub-header {
    display: grid;
  }

  .courses-hub-pill {
    width: max-content;
  }

  .course-status-grid {
    grid-template-columns: 1fr;
  }

  .course-submenu-actions {
    display: grid;
  }

  .course-submenu-actions .btn {
    justify-content: center;
    text-align: center;
  }

  .page-cursos .pelusita-wrapper {
    right: 10px !important;
    bottom: 10px !important;
    transform: scale(.72) !important;
  }
}
/* === END CURSOS HUB REDESIGN === */

/* === AYRPC 2025 ACADEMIC PANEL === */

.ayrpc-student-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.ayrpc-student-card,
.ayrpc-recovery-card,
.ayrpc-attendance-panel,
.ayrpc-chart-panel {
  overflow: hidden;
  position: relative;
}

.ayrpc-student-card::before,
.ayrpc-recovery-card::before,
.ayrpc-attendance-panel::before,
.ayrpc-chart-panel::before {
  content: '';
  position: absolute;
  inset: -40% auto auto -20%;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(0,245,255,.075);
  filter: blur(8px);
  pointer-events: none;
}

.ayrpc-student-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.ayrpc-student-grid div,
.ayrpc-chart-summary div {
  padding: .85rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  min-width: 0;
}

.ayrpc-student-grid span,
.ayrpc-chart-summary span {
  display: block;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: .25rem;
}

.ayrpc-student-grid strong,
.ayrpc-chart-summary strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

.ayrpc-recovery-card.is-active {
  border-color: rgba(34,197,94,.45);
  box-shadow: 0 0 34px rgba(34,197,94,.10);
}

.ayrpc-recovery-card.is-locked {
  border-color: rgba(249,115,22,.35);
}

.ayrpc-recovery-card.is-approved {
  border-color: rgba(0,245,255,.40);
}

.ayrpc-recovery-card p {
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.ayrpc-recovery-actions {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
}

.ayrpc-recovery-actions .disabled {
  opacity: .62;
  filter: grayscale(.35);
}

.ayrpc-academic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 1rem;
}

.ayrpc-attendance-total {
  font-family: var(--font-title);
  color: var(--cyan);
  font-weight: 900;
  font-size: 1.45rem;
}

.ayrpc-attendance-progress {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  margin-bottom: 1rem;
}

.ayrpc-attendance-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 24px rgba(0,245,255,.22);
  transition: width .45s ease;
}

.ayrpc-class-list {
  display: grid;
  gap: .7rem;
}

.ayrpc-class-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem;
  padding: .85rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}

.ayrpc-class-row span {
  display: block;
  color: var(--text-muted);
  font-size: .76rem;
  font-weight: 900;
  margin-bottom: .15rem;
}

.ayrpc-class-row strong {
  color: var(--text-main);
}

.ayrpc-class-status {
  display: grid;
  justify-items: end;
  gap: .15rem;
  text-align: right;
}

.ayrpc-class-status b {
  font-size: .82rem;
}

.ayrpc-class-status small {
  color: var(--text-muted);
}

.ayrpc-class-row.ok {
  border-color: rgba(34,197,94,.35);
}

.ayrpc-class-row.ok .ayrpc-class-status b {
  color: #86efac;
}

.ayrpc-class-row.warn {
  border-color: rgba(234,179,8,.38);
}

.ayrpc-class-row.warn .ayrpc-class-status b {
  color: #fde68a;
}

.ayrpc-class-row.bad {
  border-color: rgba(239,68,68,.38);
}

.ayrpc-class-row.bad .ayrpc-class-status b {
  color: #fca5a5;
}

.ayrpc-chart-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}

.ayrpc-time-chart {
  display: grid;
  gap: .65rem;
}

.ayrpc-chart-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 86px;
  align-items: center;
  gap: .7rem;
}

.ayrpc-chart-row > span {
  color: var(--cyan);
  font-weight: 900;
}

.ayrpc-chart-row div {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.ayrpc-chart-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  box-shadow: 0 0 18px rgba(0,245,255,.20);
}

.ayrpc-chart-row small {
  color: var(--text-muted);
  text-align: right;
  font-size: .78rem;
}

.ayrpc-loading-line {
  color: var(--text-muted);
  font-weight: 800;
  padding: .9rem;
  border: 1px dashed var(--border);
  border-radius: 16px;
}

.page-curso-ayrpc-2025 .pelusita-wrapper {
  display: flex !important;
  top: auto !important;
  left: auto !important;
  right: clamp(18px, 3vw, 42px) !important;
  bottom: clamp(18px, 3vh, 34px) !important;
  transform: scale(.84);
  transform-origin: bottom right;
}

@media (max-width: 1180px) {
  .ayrpc-student-dashboard,
  .ayrpc-academic-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .ayrpc-student-grid,
  .ayrpc-chart-summary {
    grid-template-columns: 1fr;
  }

  .ayrpc-class-row {
    grid-template-columns: 1fr;
  }

  .ayrpc-class-status {
    justify-items: start;
    text-align: left;
  }

  .ayrpc-recovery-actions {
    display: grid;
  }

  .ayrpc-recovery-actions .btn {
    justify-content: center;
  }

  .ayrpc-chart-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .ayrpc-chart-row small {
    grid-column: 2;
    text-align: left;
  }

  .page-curso-ayrpc-2025 .pelusita-wrapper {
    right: 10px !important;
    bottom: 10px !important;
    transform: scale(.72) !important;
  }
}
/* === END AYRPC 2025 ACADEMIC PANEL === */

/* === AYRPC 2026 PROMISE PAGE === */

.ayrpc2026-promise-shell {
  display: grid;
  gap: 1rem;
}

.ayrpc2026-promise-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 12% 12%, rgba(0,245,255,.16), transparent 34%),
    radial-gradient(circle at 92% 88%, rgba(168,85,247,.18), transparent 38%),
    var(--bg-card);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.ayrpc2026-promise-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,245,255,.06), transparent);
  transform: translateX(-120%);
  animation: ayrpc2026Sweep 4.5s ease-in-out infinite;
  pointer-events: none;
}

.ayrpc2026-promise-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
}

.ayrpc2026-promise-copy h2 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: .98;
}

.ayrpc2026-promise-copy h2 span {
  display: block;
  color: var(--cyan);
  font-size: .55em;
  margin-top: .25rem;
  text-shadow: 0 0 22px rgba(0,245,255,.22);
}

.ayrpc2026-promise-copy p {
  max-width: 760px;
  color: var(--text-muted);
  line-height: 1.65;
}

.ayrpc2026-promise-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.ayrpc2026-promise-visual {
  position: relative;
  z-index: 1;
  min-height: 330px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  text-align: center;
  border: 1px solid rgba(0,245,255,.18);
  border-radius: 26px;
  background:
    radial-gradient(circle at center, rgba(0,245,255,.12), transparent 48%),
    rgba(15,5,35,.38);
}

.ayrpc2026-orbit {
  position: relative;
  width: min(250px, 70vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.ayrpc2026-orbit span {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(0,245,255,.25);
  border-radius: 50%;
  animation: ayrpc2026Orbit 7s linear infinite;
}

.ayrpc2026-orbit span:nth-child(2) {
  inset: 22%;
  border-color: rgba(168,85,247,.32);
  animation-duration: 5.5s;
  animation-direction: reverse;
}

.ayrpc2026-orbit span:nth-child(3) {
  inset: 32%;
  border-color: rgba(249,115,22,.28);
  animation-duration: 4.2s;
}

.ayrpc2026-orbit i {
  font-size: clamp(3.2rem, 8vw, 5rem);
  color: var(--cyan);
  filter: drop-shadow(0 0 26px rgba(0,245,255,.34));
  animation: ayrpc2026Pulse 2.5s ease-in-out infinite;
}

.ayrpc2026-promise-visual strong {
  font-family: var(--font-title);
  color: var(--text-main);
  letter-spacing: .08em;
  text-shadow: 0 0 20px rgba(0,245,255,.20);
}

.ayrpc2026-promise-visual small {
  color: var(--text-muted);
  font-weight: 800;
}

.ayrpc2026-soon-panel {
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 100%, rgba(168,85,247,.12), transparent 34%),
    var(--bg-card-strong);
}

.ayrpc2026-soon-panel h3 {
  font-family: var(--font-title);
  margin-bottom: .55rem;
}

.ayrpc2026-soon-panel p {
  color: var(--text-muted);
  line-height: 1.6;
}

.ayrpc2026-soon-line {
  height: 10px;
  overflow: hidden;
  margin-top: 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.ayrpc2026-soon-line span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  box-shadow: 0 0 24px rgba(0,245,255,.22);
  animation: ayrpc2026Line 2.8s ease-in-out infinite alternate;
}

.page-curso-ayrpc-2026 .pelusita-wrapper {
  display: flex !important;
  top: auto !important;
  left: auto !important;
  right: clamp(18px, 3vw, 42px) !important;
  bottom: clamp(18px, 3vh, 34px) !important;
  transform: scale(.84);
  transform-origin: bottom right;
}

@keyframes ayrpc2026Sweep {
  0%, 45% { transform: translateX(-120%); opacity: 0; }
  55% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

@keyframes ayrpc2026Orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ayrpc2026Pulse {
  0%, 100% { transform: scale(1); opacity: .86; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes ayrpc2026Line {
  from { width: 28%; }
  to { width: 78%; }
}

@media (max-width: 980px) {
  .ayrpc2026-promise-card {
    grid-template-columns: 1fr;
  }

  .ayrpc2026-promise-visual {
    min-height: 260px;
  }
}

@media (max-width: 680px) {
  .ayrpc2026-promise-actions {
    display: grid;
  }

  .ayrpc2026-promise-actions .btn {
    justify-content: center;
  }

  .page-curso-ayrpc-2026 .pelusita-wrapper {
    right: 10px !important;
    bottom: 10px !important;
    transform: scale(.72) !important;
  }
}
/* === END AYRPC 2026 PROMISE PAGE === */

/* Moderadores: acceso visible al bloque administrativo lateral */
body.role-moderator .teacher-admin-zone.teacher-only {
  display: block;
}

body.role-moderator .sidebar-submenu .teacher-only {
  display: flex;
}

/* === ALUMNOS TABLE POLISH - MODERADORES CLASSROOM === */
.students-grid {
  display: block;
  width: 100%;
}

.students-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(0, 245, 255, 0.06), transparent 34%),
    rgba(2, 6, 23, 0.35);
}

.students-table {
  width: 100%;
  min-width: 1360px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.86rem;
}

.students-table th,
.students-table td {
  padding: 0.82rem 0.72rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  vertical-align: middle;
}

.students-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(8, 12, 30, 0.98);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.students-table tbody tr {
  transition: background 0.18s ease, transform 0.18s ease;
}

.students-table tbody tr:hover {
  background: rgba(0, 245, 255, 0.035);
}

.students-table-index {
  width: 44px;
  color: var(--text-muted);
  font-family: var(--font-title);
  text-align: center;
}

.students-table-name-cell {
  min-width: 230px;
}

.students-table-student {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.student-table-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border: 1px solid rgba(0, 245, 255, 0.28);
  border-radius: 12px;
  background: rgba(0, 245, 255, 0.08);
  color: var(--cyan);
}

.students-table-student strong {
  display: block;
  max-width: 210px;
  color: var(--text-main);
  line-height: 1.15;
}

.students-table-student small {
  display: block;
  margin-top: 0.22rem;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.students-table-dni,
.students-table-phone,
.students-table-twitch {
  white-space: nowrap;
  color: var(--text-soft);
}

.students-table-email {
  max-width: 240px;
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-badge.course {
  max-width: 110px;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

.student-badge.info {
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.10);
  border: 1px solid rgba(6, 182, 212, 0.22);
}

.student-badge.warning {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.24);
}

.student-badge.danger {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.24);
}

.student-badge.muted {
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.students-table-actions {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 245px;
}

.btn-table {
  min-height: 34px;
  padding: 0.45rem 0.62rem;
  border-radius: 10px;
  font-size: 0.76rem;
  white-space: nowrap;
}

.btn-table-contact {
  border-color: rgba(0, 245, 255, 0.25);
}

.btn-table-disabled {
  opacity: 0.38;
  cursor: not-allowed;
  filter: grayscale(1);
}

@media (max-width: 760px) {
  .students-table {
    min-width: 1180px;
    font-size: 0.8rem;
  }

  .students-table th,
  .students-table td {
    padding: 0.7rem 0.55rem;
  }
}

/* === ALUMNOS SOURCE FILTER === */
.students-source-filter {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 190px;
}

.students-source-filter span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.students-source-filter select {
  min-height: 44px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0 0.9rem;
  background: var(--surface-soft);
  color: var(--text-main);
  font-weight: 800;
  outline: none;
}

.students-source-filter select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

@media (max-width: 760px) {
  .students-source-filter {
    width: 100%;
  }
}

/* === ALUMNOS COMPACT TABLE + FLOATING PROFILE === */
.students-table-wrap.compact {
  overflow-x: auto;
}

.students-table-compact th,
.students-table-compact td {
  white-space: nowrap;
}

.students-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  padding: 0;
}

.students-sort-btn i {
  opacity: 0.55;
  font-size: 0.78rem;
}

.students-sort-btn.active i {
  opacity: 1;
  color: var(--accent);
}

.student-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.student-profile-modal.show {
  display: flex;
}

.student-profile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.student-profile-dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  border: 1px solid var(--border-color);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.22), transparent 34%),
    var(--surface-main);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  padding: 1.35rem;
}

.student-profile-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-main);
  cursor: pointer;
}

.student-profile-top {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-right: 2.5rem;
  margin-bottom: 1.25rem;
}

.student-profile-avatar {
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.28);
  color: var(--accent);
  font-size: 1.55rem;
}

.student-profile-top h3 {
  margin: 0.1rem 0 0.25rem;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.student-profile-top p {
  margin: 0;
  color: var(--text-muted);
}

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

.student-profile-field {
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.42);
  padding: 0.9rem;
  min-width: 0;
}

.student-profile-field span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.student-profile-field strong {
  display: block;
  word-break: break-word;
}

.student-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.student-profile-source {
  display: block;
  margin-top: 1rem;
  color: var(--text-muted);
}

body.student-profile-open {
  overflow: hidden;
}

/* === SIDEBAR ADMIN POLISH === */
.sidebar {
  overflow-y: auto;
}

.teacher-admin-zone,
.staff-only.teacher-admin-zone,
.sidebar .teacher-admin-zone {
  margin-top: 0.85rem;
  padding-bottom: 1rem;
}

.teacher-admin-zone .nav-item,
.staff-only.teacher-admin-zone .nav-item {
  margin-bottom: 0.35rem;
}

@media (max-width: 760px) {
  .student-profile-grid {
    grid-template-columns: 1fr;
  }

  .student-profile-dialog {
    border-radius: 22px;
    padding: 1rem;
  }
}

/* === SIDEBAR ADMIN AREA CLEAN === */
.sidebar .teacher-admin-zone,
.sidebar .staff-only.teacher-admin-zone,
.teacher-admin-zone {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  width: 100%;
  box-sizing: border-box;
  margin: 0.95rem 0 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(139, 92, 246, 0.10), rgba(15, 23, 42, 0.12)),
    rgba(15, 23, 42, 0.34);
  overflow: hidden;
}

.sidebar .teacher-admin-zone::before,
.sidebar .staff-only.teacher-admin-zone::before,
.teacher-admin-zone::before {
  content: none !important;
  display: none !important;
}

.sidebar .teacher-admin-zone .sidebar-section-title,
.sidebar .staff-only.teacher-admin-zone .sidebar-section-title,
.teacher-admin-zone .sidebar-section-title {
  display: block !important;
  margin: 0 0 0.28rem;
  padding: 0 0.1rem;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sidebar .teacher-admin-zone .nav-item,
.sidebar .staff-only.teacher-admin-zone .nav-item,
.teacher-admin-zone .nav-item {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 40px;
  box-sizing: border-box;
  margin: 0;
  padding: 0.64rem 0.72rem;
  border-radius: 13px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.sidebar .teacher-admin-zone .nav-item span,
.sidebar .staff-only.teacher-admin-zone .nav-item span,
.teacher-admin-zone .nav-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar .teacher-admin-zone .nav-item i,
.sidebar .staff-only.teacher-admin-zone .nav-item i,
.teacher-admin-zone .nav-item i {
  flex: 0 0 auto;
  color: var(--accent);
}

.sidebar .teacher-admin-zone .nav-item:hover,
.sidebar .staff-only.teacher-admin-zone .nav-item:hover,
.teacher-admin-zone .nav-item:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.22);
  transform: none;
}

.sidebar .teacher-admin-zone .nav-item.active,
.sidebar .staff-only.teacher-admin-zone .nav-item.active,
.teacher-admin-zone .nav-item.active {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.36);
  color: var(--warning, #fbbf24);
}

@media (max-height: 780px) {
  .sidebar .teacher-admin-zone,
  .sidebar .staff-only.teacher-admin-zone,
  .teacher-admin-zone {
    padding: 0.62rem;
    border-radius: 15px;
    gap: 0.34rem;
  }

  .sidebar .teacher-admin-zone .nav-item,
  .sidebar .staff-only.teacher-admin-zone .nav-item,
  .teacher-admin-zone .nav-item {
    min-height: 36px;
    padding: 0.52rem 0.62rem;
  }
}

/* === ARCHIVOS / DRIVE EMBED === */
.files-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.files-hero h2 {
  margin: 0.25rem 0 0.4rem;
}

.files-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--text-muted);
}

.files-drive-panel {
  border: 1px solid var(--border-color);
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 36%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.14), transparent 32%),
    var(--surface-main);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.files-drive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.files-drive-toolbar h3 {
  margin: 0.15rem 0 0;
}

.files-drive-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.10);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.drive-frame-shell {
  position: relative;
  width: 100%;
  min-height: clamp(560px, calc(100vh - 260px), 920px);
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.32);
}

.drive-files-frame {
  display: block;
  width: 100%;
  height: clamp(560px, calc(100vh - 260px), 920px);
  border: 0;
  background: #ffffff;
}

.files-drive-note {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .files-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .files-drive-panel {
    padding: 0.75rem;
    border-radius: 20px;
  }

  .files-drive-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .drive-frame-shell,
  .drive-files-frame {
    min-height: calc(100vh - 230px);
    height: calc(100vh - 230px);
    border-radius: 16px;
  }
}

/* === ASISTENCIAS ADMIN === */
.attendance-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.attendance-hero h2 {
  margin: 0.25rem 0 0.4rem;
}

.attendance-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--text-muted);
}

.attendance-hero-badge,
.attendance-alerts-chip,
.attendance-sheet-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(139, 92, 246, 0.24);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.10);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.attendance-alerts-panel {
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 34%),
    var(--surface-main);
  padding: 1rem;
  margin-bottom: 1rem;
}

.attendance-alerts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

.attendance-alerts-header h3 {
  margin: 0.15rem 0 0;
}

.attendance-alerts-panel p {
  margin: 0;
  color: var(--text-muted);
}

.attendance-sheets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.attendance-sheet-card {
  display: flex;
  gap: 1rem;
  min-height: 190px;
  border: 1px solid var(--border-color);
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.10), transparent 36%),
    var(--surface-main);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem;
}

.attendance-sheet-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 20px;
  background: rgba(34, 211, 238, 0.10);
  color: var(--accent);
  font-size: 1.45rem;
}

.attendance-sheet-content {
  min-width: 0;
}

.attendance-sheet-content h3 {
  margin: 0.65rem 0 0.4rem;
}

.attendance-sheet-content p {
  margin: 0;
  color: var(--text-muted);
}

.attendance-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

@media (max-width: 920px) {
  .attendance-hero,
  .attendance-alerts-header {
    align-items: stretch;
    flex-direction: column;
  }

  .attendance-sheets-grid {
    grid-template-columns: 1fr;
  }

  .attendance-sheet-card {
    flex-direction: column;
  }
}

/* === NOTIFICATIONS BELL === */
.notifications-widget {
  position: relative;
  z-index: 50;
}

.notifications-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-main);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.notifications-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.10);
}

.notifications-dot {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  padding: 0 0.28rem;
  border: 2px solid var(--surface-main);
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 900;
  line-height: 1;
}

.notifications-dot.is-hidden {
  display: none;
}

.notifications-panel {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  width: min(390px, calc(100vw - 2rem));
  display: none;
  border: 1px solid var(--border-color);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.14), transparent 36%),
    var(--surface-main);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.notifications-widget.open .notifications-panel {
  display: block;
}

.notifications-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.notifications-panel-header h3 {
  margin: 0.15rem 0 0;
}

.notifications-chip {
  padding: 0.35rem 0.58rem;
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.10);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.notifications-list {
  max-height: 380px;
  overflow: auto;
  padding: 0.65rem;
}

.notification-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid transparent;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.025);
}

.notification-item + .notification-item {
  margin-top: 0.55rem;
}

.notification-item.unread {
  border-color: rgba(34, 211, 238, 0.18);
  background: rgba(34, 211, 238, 0.075);
}

.notification-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.10);
  color: var(--accent);
}

.notification-item strong {
  display: block;
  margin-bottom: 0.18rem;
}

.notification-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.notification-item small {
  display: block;
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.notifications-panel-footer {
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--border-color);
}

.notifications-panel-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 640px) {
  .notifications-panel {
    position: fixed;
    top: 74px;
    right: 1rem;
    left: 1rem;
    width: auto;
  }
}

/* === NOTIFICATIONS BELL START === */
.notifications-widget {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  z-index: 120;
}

.notifications-toggle {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: rgba(13, 10, 28, 0.98);
  color: #f4f7ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
}

.notifications-toggle:hover {
  border-color: rgba(0, 238, 255, 0.42);
  background: rgba(18, 14, 38, 0.98);
}

.notifications-dot {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 999px;
  border: 2px solid #140d28;
  background: #ff4d5a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notifications-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(390px, calc(100vw - 32px));
  border-radius: 20px;
  border: 1px solid rgba(100, 80, 200, 0.36);
  background: #0b0918;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  display: none;
}

.notifications-widget.open .notifications-panel {
  display: block;
}

.notifications-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(115, 104, 180, 0.25);
  background: #100d24;
}

.notifications-panel-header h3 {
  margin: 2px 0 0;
  font-size: 20px;
}

.notifications-chip {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #d7c7ff;
  border: 1px solid rgba(168, 85, 247, 0.32);
  background: rgba(168, 85, 247, 0.16);
}

.notifications-list {
  max-height: 360px;
  overflow: auto;
  padding: 12px;
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  background: #120f26;
}

.notification-item + .notification-item {
  margin-top: 10px;
}

.notification-item.unread {
  border-color: rgba(0, 238, 255, 0.18);
  background: #10172a;
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #10e7ff;
  background: rgba(0, 238, 255, 0.12);
}

.notification-item strong {
  display: block;
  margin-bottom: 4px;
  color: #f4f7ff;
}

.notification-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #b9c0d9;
}

.notification-item small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #7fdfff;
}

.notifications-panel-footer {
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(115, 104, 180, 0.25);
  background: #100d24;
}

.notifications-panel-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #19e6ff;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 760px) {
  .notifications-toggle {
    width: 42px;
    height: 42px;
  }

  .notifications-panel {
    position: fixed;
    top: 76px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}
/* === NOTIFICATIONS BELL END === */

/* === FIX ARCHIVOS / ASISTENCIAS GAP === */
body.page-archivos .main-content,
body.page-asistencias .main-content {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  align-content: stretch !important;
  gap: 1rem !important;
}

body.page-archivos .topbar,
body.page-asistencias .topbar {
  flex: 0 0 auto !important;
  margin-bottom: 0 !important;
}

body.page-archivos .files-hero,
body.page-asistencias .attendance-hero {
  margin-top: 0 !important;
}

body.page-archivos .files-drive-panel,
body.page-asistencias .attendance-alerts-panel,
body.page-asistencias .attendance-sheets-grid {
  margin-top: 0 !important;
}

body.page-archivos .main-content > *,
body.page-asistencias .main-content > * {
  position: relative;
}

/* === MOBILE RESPONSIVE FIXES: CURSOS + ALUMNOS === */

/* Cursos: evitar que iconos grandes/orbes rompan el ancho en mobile */
@media (max-width: 760px) {
  .courses-hero,
  .course-hero,
  .hero-section,
  .course-detail-hero {
    overflow: hidden;
  }

  .hero-orb,
  .course-card-icon,
  .course-hero-icon,
  .orb-inner {
    max-width: 100%;
    flex-shrink: 0;
  }

  .hero-orb {
    width: clamp(88px, 34vw, 132px);
    height: clamp(88px, 34vw, 132px);
    margin-inline: auto;
  }

  .orb-inner {
    width: 100%;
    height: 100%;
  }

  .hero-orb i,
  .course-card-icon i,
  .course-hero-icon i,
  .orb-inner i {
    font-size: clamp(2.1rem, 10vw, 4rem);
  }

  .course-card,
  .course-card-top,
  .course-card-body,
  .course-card-footer {
    min-width: 0;
  }
}

/* Alumnos: cortar overflow horizontal en mobile */
@media (max-width: 860px) {
  body:has(.students-page-panel) {
    overflow-x: hidden;
  }

  .students-page-panel,
  .students-hero-panel,
  .students-toolbar,
  .students-list-panel,
  .students-grid,
  .students-table-wrap,
  .students-table-wrap.compact {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .students-hero-panel {
    grid-template-columns: 1fr !important;
  }

  .students-stats-grid {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .student-stat-card {
    min-width: 0;
  }

  .students-toolbar {
    grid-template-columns: 1fr !important;
  }

  .students-search,
  .students-search-box,
  .students-source-filter,
  .students-actions,
  .students-actions .btn,
  #studentsSearchInput,
  #studentsSourceSelect {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .students-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .students-table-wrap.compact {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }

  .students-table-compact {
    min-width: 620px;
  }
}

/* Alumnos ultra mobile: en vez de romper pantalla, tabla scrolleable */
@media (max-width: 520px) {
  .students-page-panel {
    gap: 0.85rem;
  }

  .students-hero-panel,
  .students-toolbar,
  .students-list-panel {
    padding-inline: 0.85rem;
  }

  .students-table-compact {
    min-width: 560px;
  }

  .students-table-student {
    min-width: 0;
  }

  .students-table-student strong,
  .students-table-student small {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Evitar que botones/filtros de alumnos empujen el layout */
.students-table-actions,
.students-table-actions .btn,
.btn-table {
  max-width: 100%;
  min-width: 0;
}

/* === MOBILE CURSOS HERO FIX === */
@media (max-width: 760px) {
  body.page-cursos .hero-orb,
  body.page-cursos .orb-inner,
  .page-cursos .hero-orb,
  .page-cursos .orb-inner {
    display: none !important;
  }

  body.page-cursos .hero,
  body.page-cursos .hero-section,
  body.page-cursos .courses-hero,
  body.page-cursos .course-detail-hero,
  .page-cursos .hero,
  .page-cursos .hero-section,
  .page-cursos .courses-hero,
  .page-cursos .course-detail-hero {
    min-height: auto !important;
    padding: 1.15rem !important;
    overflow: hidden !important;
  }

  body.page-cursos .hero-copy,
  body.page-cursos .hero-content,
  .page-cursos .hero-copy,
  .page-cursos .hero-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.page-cursos .hero h1,
  body.page-cursos .hero h2,
  body.page-cursos .hero-copy h1,
  body.page-cursos .hero-copy h2,
  .page-cursos .hero h1,
  .page-cursos .hero h2,
  .page-cursos .hero-copy h1,
  .page-cursos .hero-copy h2 {
    font-size: clamp(2rem, 11vw, 3.2rem) !important;
    line-height: 1.02 !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  body.page-cursos .hero p,
  body.page-cursos .hero-copy p,
  .page-cursos .hero p,
  .page-cursos .hero-copy p {
    font-size: 0.96rem !important;
    line-height: 1.55 !important;
  }

  body.page-cursos .stats-grid,
  body.page-cursos .course-stats,
  .page-cursos .stats-grid,
  .page-cursos .course-stats {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  body.page-cursos .course-card,
  body.page-cursos .stat-card,
  .page-cursos .course-card,
  .page-cursos .stat-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

/* === CURSOS MOBILE HARD FIX === */
@media (max-width: 760px) {
  body.page-cursos .hero-orb,
  body.page-cursos .orb-inner,
  body.page-cursos .hero-orb *,
  body.page-cursos .orb-inner *,
  body.page-cursos .hero-visual,
  body.page-cursos .course-visual,
  body.page-cursos .course-orb,
  body.page-cursos .hero-illustration {
    display: none !important;
  }

  body.page-cursos .hero,
  body.page-cursos .hero-section,
  body.page-cursos .courses-hero,
  body.page-cursos .course-detail-hero,
  body.page-cursos section[class*="hero"] {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 1.05rem !important;
    margin-bottom: 0.9rem !important;
    overflow: hidden !important;
  }

  body.page-cursos .hero-copy,
  body.page-cursos .hero-content,
  body.page-cursos section[class*="hero"] > div {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.page-cursos .hero-copy h1,
  body.page-cursos .hero-copy h2,
  body.page-cursos .hero h1,
  body.page-cursos .hero h2,
  body.page-cursos section[class*="hero"] h1,
  body.page-cursos section[class*="hero"] h2 {
    font-size: clamp(2rem, 10vw, 3.05rem) !important;
    line-height: 1.05 !important;
    margin-bottom: 0.75rem !important;
  }

  body.page-cursos .hero-copy p,
  body.page-cursos .hero p,
  body.page-cursos section[class*="hero"] p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    max-width: 100% !important;
  }
}

/* === MOBILE AYRPC 2025 HERO FIX === */
@media (max-width: 760px) {
  body.page-curso-ayrpc-2025 .hero-orb,
  body.page-curso-ayrpc-2025 .orb-inner,
  body.page-curso-ayrpc-2025 .hero-orb *,
  body.page-curso-ayrpc-2025 .orb-inner *,
  body.page-ayrpc2025-mobilefix .hero-orb,
  body.page-ayrpc2025-mobilefix .orb-inner,
  body.page-ayrpc2025-mobilefix .hero-orb *,
  body.page-ayrpc2025-mobilefix .orb-inner * {
    display: none !important;
  }

  body.page-curso-ayrpc-2025 .course-hero,
  body.page-curso-ayrpc-2025 .hero,
  body.page-curso-ayrpc-2025 .hero-section,
  body.page-curso-ayrpc-2025 section[class*="hero"],
  body.page-ayrpc2025-mobilefix .course-hero,
  body.page-ayrpc2025-mobilefix .hero,
  body.page-ayrpc2025-mobilefix .hero-section,
  body.page-ayrpc2025-mobilefix section[class*="hero"] {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 1.05rem !important;
    margin-bottom: 0.9rem !important;
    overflow: hidden !important;
  }

  body.page-curso-ayrpc-2025 .hero-copy,
  body.page-curso-ayrpc-2025 .hero-content,
  body.page-curso-ayrpc-2025 section[class*="hero"] > div,
  body.page-ayrpc2025-mobilefix .hero-copy,
  body.page-ayrpc2025-mobilefix .hero-content,
  body.page-ayrpc2025-mobilefix section[class*="hero"] > div {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.page-curso-ayrpc-2025 .hero-actions,
  body.page-ayrpc2025-mobilefix .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  body.page-curso-ayrpc-2025 .hero-actions .btn,
  body.page-ayrpc2025-mobilefix .hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  body.page-curso-ayrpc-2025 h1,
  body.page-curso-ayrpc-2025 h2,
  body.page-ayrpc2025-mobilefix h1,
  body.page-ayrpc2025-mobilefix h2 {
    font-size: clamp(2rem, 10vw, 3.05rem) !important;
    line-height: 1.05 !important;
  }
}

/* === MOBILE HEADER FINAL STANDARD === */
@media (max-width: 760px) {
  .topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 0.55rem !important;
    min-height: 76px !important;
    padding: 0.85rem 0.82rem 0.85rem 4.9rem !important;
    border-radius: 18px !important;
    overflow: visible !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 0.95rem !important;
    left: 0.85rem !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    z-index: 9999 !important;
    transform: none !important;
  }

  .topbar > div:first-child {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .topbar .eyebrow {
    margin: 0 !important;
    max-width: 100% !important;
    font-size: 0.62rem !important;
    line-height: 1 !important;
    letter-spacing: 0.09em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .topbar h1 {
    margin: 0.18rem 0 0 !important;
    max-width: 100% !important;
    font-size: clamp(1.45rem, 7vw, 2.05rem) !important;
    line-height: 0.95 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .topbar-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.42rem !important;
    width: auto !important;
    min-width: max-content !important;
    max-width: max-content !important;
    height: 42px !important;
  }

  .topbar-actions > *,
  .notifications-widget,
  .user-menu {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    flex: 0 0 42px !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    align-self: center !important;
  }

  .theme-toggle,
  .theme-toggle-icon,
  .notifications-toggle,
  .profile-pill,
  .user-pill,
  .user-menu-toggle {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    flex: 0 0 42px !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    overflow: visible !important;
  }

  .theme-toggle i,
  .theme-toggle-icon i,
  .notifications-toggle i,
  .profile-pill i,
  .user-pill i,
  .user-menu-toggle i {
    font-size: 0.95rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .profile-pill span,
  .profile-pill strong,
  .profile-pill small,
  .user-pill strong,
  .user-pill small,
  .user-menu-toggle strong,
  .user-menu-toggle small,
  .user-menu-chevron {
    display: none !important;
  }

  .user-avatar {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    flex: 0 0 32px !important;
    margin: 0 !important;
  }

  .notifications-dot {
    top: -6px !important;
    right: -5px !important;
    min-width: 18px !important;
    height: 18px !important;
    font-size: 0.62rem !important;
    z-index: 3 !important;
  }

  .notifications-panel {
    right: 0 !important;
  }
}

@media (max-width: 430px) {
  .topbar {
    min-height: 72px !important;
    padding-left: 4.6rem !important;
    padding-right: 0.62rem !important;
    gap: 0.38rem !important;
  }

  .mobile-menu-toggle {
    top: 0.88rem !important;
    left: 0.72rem !important;
    width: 43px !important;
    height: 43px !important;
    min-width: 43px !important;
    min-height: 43px !important;
    max-width: 43px !important;
    max-height: 43px !important;
  }

  .topbar-actions {
    gap: 0.32rem !important;
    height: 39px !important;
  }

  .topbar-actions > *,
  .notifications-widget,
  .user-menu,
  .theme-toggle,
  .theme-toggle-icon,
  .notifications-toggle,
  .profile-pill,
  .user-pill,
  .user-menu-toggle {
    width: 39px !important;
    height: 39px !important;
    min-width: 39px !important;
    min-height: 39px !important;
    max-width: 39px !important;
    max-height: 39px !important;
    flex-basis: 39px !important;
  }

  .topbar h1 {
    font-size: clamp(1.28rem, 7vw, 1.82rem) !important;
  }

  .topbar .eyebrow {
    font-size: 0.58rem !important;
  }
}

/* === CLASSROOM NEWSLETTER MOCK === */
.classroom-news-section {
  margin-bottom: 1rem;
}

.classroom-news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.classroom-news-header h2,
.notification-prefs-header h2 {
  margin: 0.2rem 0 0.4rem;
}

.classroom-news-header p,
.notification-prefs-header p {
  margin: 0;
  color: var(--text-muted);
}

.classroom-news-list {
  display: grid;
  gap: 0.8rem;
}

.classroom-news-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.classroom-news-item.unread {
  border-color: rgba(34, 211, 238, 0.22);
  background: rgba(34, 211, 238, 0.06);
}

.classroom-news-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.10);
  color: var(--accent);
}

.classroom-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.classroom-news-meta span {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.10);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.classroom-news-item h3 {
  margin: 0 0 0.25rem;
}

.classroom-news-item p {
  margin: 0;
  color: var(--text-muted);
}

.classroom-news-item small {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-muted);
}

.classroom-news-empty,
.notification-empty {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1.25rem;
  color: var(--text-muted);
}

.news-composer-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.news-composer-modal.show {
  display: flex;
}

.news-composer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(10px);
}

.news-composer-dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid var(--border-color);
  border-radius: 26px;
  background: var(--surface-main);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  padding: 1.25rem;
}

.news-composer-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-main);
  cursor: pointer;
}

.news-composer-header {
  padding-right: 2.5rem;
  margin-bottom: 1rem;
}

.news-composer-header h2 {
  margin: 0.15rem 0 0.35rem;
}

.news-composer-header p {
  margin: 0;
  color: var(--text-muted);
}

.news-composer-form {
  display: grid;
  gap: 0.85rem;
}

.news-composer-form label {
  display: grid;
  gap: 0.35rem;
}

.news-composer-form label > span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-composer-form input,
.news-composer-form textarea,
.news-composer-form select {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text-main);
  padding: 0.75rem 0.85rem;
  font: inherit;
  box-sizing: border-box;
}

.news-composer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.news-mail-option {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 0.6rem !important;
  color: var(--text-muted);
}

.news-mail-option input {
  width: auto;
}

.news-mail-option.disabled {
  opacity: 0.68;
}

.news-composer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.notifications-read-all {
  border: 0;
  background: transparent;
  color: #19e6ff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
}

.notifications-dot.is-hidden {
  display: none !important;
}

.notification-prefs-card {
  margin-top: 1rem;
}

.notification-prefs-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.notification-pref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.notification-pref-row strong {
  display: block;
  margin-bottom: 0.2rem;
}

.notification-pref-row p {
  margin: 0;
  color: var(--text-muted);
}

.notification-pref-row input {
  width: 44px;
  height: 24px;
  accent-color: var(--accent);
}

.notification-pref-row.locked {
  opacity: 0.82;
}

@media (max-width: 760px) {
  .classroom-news-header,
  .notification-pref-row,
  .news-composer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .classroom-news-header .btn,
  .news-composer-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .classroom-news-item {
    grid-template-columns: 1fr;
  }

  .news-composer-grid {
    grid-template-columns: 1fr;
  }
}

/* === AYRPC 2025 NOTEBOOK VIEW FIX === */

/* Pantallas tipo 1366x768 / notebooks */
@media (min-width: 1000px) and (max-height: 820px) {
  .page-curso-ayrpc-2025 .main-content {
    padding-top: 1rem !important;
  }

  .page-curso-ayrpc-2025 .topbar {
    min-height: auto !important;
    padding: .75rem 1rem !important;
    margin-bottom: 1rem !important;
  }

  .page-curso-ayrpc-2025 .topbar h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.75rem) !important;
  }

  .page-curso-ayrpc-2025 .hero-panel {
    min-height: auto !important;
    padding: 1.35rem 1.65rem !important;
    margin-bottom: 1rem !important;
  }

  .page-curso-ayrpc-2025 .hero-copy {
    gap: .7rem !important;
  }

  .page-curso-ayrpc-2025 .hero-copy h2 {
    font-size: clamp(2.1rem, 4.7vw, 3.55rem) !important;
    line-height: .98 !important;
  }

  .page-curso-ayrpc-2025 .hero-copy p {
    margin-top: .25rem !important;
  }

  .page-curso-ayrpc-2025 .hero-actions {
    margin-top: .55rem !important;
  }

  .page-curso-ayrpc-2025 .ayrpc-student-dashboard {
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr) !important;
    gap: .75rem !important;
    margin-bottom: .75rem !important;
  }

  .page-curso-ayrpc-2025 .panel {
    padding: .9rem !important;
  }

  .page-curso-ayrpc-2025 .panel-header {
    margin-bottom: .75rem !important;
  }

  .page-curso-ayrpc-2025 .ayrpc-student-grid {
    gap: .55rem !important;
  }

  .page-curso-ayrpc-2025 .ayrpc-student-grid div,
  .page-curso-ayrpc-2025 .ayrpc-chart-summary div {
    padding: .65rem !important;
  }

  .page-curso-ayrpc-2025 .ayrpc-recovery-card {
    min-height: 180px !important;
  }

  .page-curso-ayrpc-2025 .ayrpc-recovery-card p {
    max-width: calc(100% - 92px) !important;
    margin-bottom: .75rem !important;
    font-size: .92rem !important;
  }

  .page-curso-ayrpc-2025 .ayrpc-recovery-actions {
    padding-right: 86px !important;
  }

  .page-curso-ayrpc-2025 .ayrpc-recovery-actions .btn {
    min-height: 42px !important;
    padding: .65rem .85rem !important;
  }

  .page-curso-ayrpc-2025 .pelusita-wrapper {
    transform: scale(.68) !important;
    right: 10px !important;
    bottom: 10px !important;
  }
}

/* Para evitar que Pelusita tape botones dentro de cards */
.page-curso-ayrpc-2025 .ayrpc-recovery-card .pelusita-wrapper,
.page-curso-ayrpc-2025 .ayrpc-student-card .pelusita-wrapper {
  pointer-events: auto;
}

/* Si Pelusita queda flotando cerca de acciones, dejamos aire */
.page-curso-ayrpc-2025 .ayrpc-recovery-actions {
  position: relative;
  z-index: 2;
}

/* === END AYRPC 2025 NOTEBOOK VIEW FIX === */

/* === CURSOS CLEAN FINAL PAGE === */

.courses-clean-shell {
  display: grid;
  gap: 1rem;
}

.courses-clean-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: clamp(1.1rem, 2.4vw, 1.75rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 10% 10%, rgba(0,245,255,.14), transparent 34%),
    radial-gradient(circle at 90% 90%, rgba(168,85,247,.16), transparent 38%),
    var(--bg-card);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.courses-clean-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .8rem;
}

.courses-clean-copy h2 {
  font-family: var(--font-title);
  font-size: clamp(2.15rem, 5vw, 4.4rem);
  line-height: .95;
}

.courses-clean-copy h2 span {
  display: block;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(0,245,255,.28);
}

.courses-clean-copy p {
  max-width: 760px;
  color: var(--text-muted);
  line-height: 1.55;
}

.courses-clean-orb {
  width: clamp(110px, 15vw, 180px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(0,245,255,.22);
  background:
    radial-gradient(circle at center, rgba(0,245,255,.16), transparent 58%),
    rgba(15,5,35,.45);
  color: var(--cyan);
  font-size: clamp(3rem, 6vw, 5rem);
  filter: drop-shadow(0 0 24px rgba(0,245,255,.24));
}

.courses-clean-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.course-clean-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 10%, rgba(168,85,247,.13), transparent 34%),
    var(--bg-card-strong);
}

.course-clean-card::before {
  content: '';
  position: absolute;
  right: -90px;
  top: -90px;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: rgba(0,245,255,.07);
  pointer-events: none;
}

.course-clean-top,
.course-clean-body,
.course-clean-actions {
  position: relative;
  z-index: 1;
}

.course-clean-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
}

.course-clean-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--violet-dim), var(--cyan-dim));
  color: #fff;
  box-shadow: 0 0 24px rgba(0,245,255,.14);
}

.course-clean-body h3 {
  margin-bottom: .45rem;
  font-family: var(--font-title);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.course-clean-body p {
  color: var(--text-muted);
  line-height: 1.55;
}

.course-clean-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.page-cursos .pelusita-wrapper {
  display: flex !important;
  top: auto !important;
  left: auto !important;
  right: clamp(18px, 3vw, 42px) !important;
  bottom: clamp(18px, 3vh, 34px) !important;
  transform: scale(.78) !important;
  transform-origin: bottom right;
  z-index: 6500;
}

/* Pantallas chicas tipo 1280x720 */
@media (min-width: 900px) and (max-height: 760px) {
  .page-cursos .main-content {
    padding-top: .75rem !important;
  }

  .page-cursos .topbar {
    padding: .75rem 1rem !important;
    margin-bottom: .9rem !important;
    min-height: auto !important;
  }

  .page-cursos .topbar h1 {
    font-size: clamp(1.8rem, 3.6vw, 2.6rem) !important;
  }

  .courses-clean-shell {
    gap: .75rem !important;
  }

  .courses-clean-hero {
    padding: 1rem 1.35rem !important;
  }

  .courses-clean-copy {
    gap: .55rem !important;
  }

  .courses-clean-copy h2 {
    font-size: clamp(2rem, 4.4vw, 3.35rem) !important;
  }

  .courses-clean-copy p {
    font-size: .95rem !important;
    max-width: 620px !important;
  }

  .courses-clean-orb {
    width: 112px !important;
    font-size: 3.1rem !important;
  }

  .course-clean-card {
    padding: .95rem !important;
    gap: .75rem !important;
  }

  .course-clean-icon {
    width: 44px !important;
    height: 44px !important;
  }

  .course-clean-body h3 {
    font-size: 1.75rem !important;
  }

  .course-clean-body p {
    font-size: .92rem !important;
  }

  .course-clean-actions .btn {
    min-height: 40px !important;
    padding: .62rem .8rem !important;
  }

  .page-cursos .pelusita-wrapper {
    transform: scale(.66) !important;
    right: 10px !important;
    bottom: 10px !important;
  }
}

@media (max-width: 980px) {
  .courses-clean-hero {
    grid-template-columns: 1fr;
  }

  .courses-clean-orb {
    display: none;
  }

  .courses-clean-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .course-clean-actions {
    display: grid;
  }

  .course-clean-actions .btn {
    justify-content: center;
  }

  .page-cursos .pelusita-wrapper {
    right: 10px !important;
    bottom: 10px !important;
    transform: scale(.72) !important;
  }
}
/* === END CURSOS CLEAN FINAL PAGE === */

/* === CLASSROOM SIDEBAR V2 === */

.sidebar-v2 {
  height: 100dvh !important;
  max-height: 100dvh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  gap: .85rem;
}

.sidebar-v2-brand {
  flex: 0 0 auto;
}

.sidebar-v2-brand-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}

.sidebar-v2-logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 24px rgba(0,245,255,.22);
}

.sidebar-v2-brand-text {
  display: grid;
  gap: .15rem;
}

.sidebar-v2-brand-text span {
  color: var(--text-main);
  font-family: var(--font-title);
  font-weight: 900;
  letter-spacing: .04em;
}

.sidebar-v2-brand-text span span {
  color: var(--violet);
}

.sidebar-v2-brand-text span strong {
  color: var(--cyan);
}

.sidebar-v2-brand-text small {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
}

.sidebar-v2-nav {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: .48rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: .18rem;
  scrollbar-width: thin;
}

.sidebar-v2-nav::-webkit-scrollbar {
  width: 5px;
}

.sidebar-v2-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(0,245,255,.35);
}

.sidebar-v2-link,
.sidebar-v2-subitem,
.sidebar-v2-admin-btn,
.sidebar-v2-admin-popover a,
.sidebar-v2-pelusita {
  font-family: var(--font-text);
}

.sidebar-v2-link {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .68rem .75rem;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-v2-link i:first-child {
  width: 18px;
  color: currentColor;
}

.sidebar-v2-link:hover,
.sidebar-v2-link.active,
.sidebar-v2-toggle.open {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0,245,255,.08);
}

.sidebar-v2-featured {
  color: var(--lilac);
  background: rgba(168,85,247,.12);
}

.sidebar-v2-chevron {
  margin-left: auto;
  font-size: .72rem;
  transition: transform .18s ease;
}

.sidebar-v2-toggle.open .sidebar-v2-chevron {
  transform: rotate(180deg);
}

.sidebar-v2-submenu {
  display: grid;
  gap: .25rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-left: 1.2rem;
  transition: max-height .22s ease, opacity .18s ease;
}

.sidebar-v2-submenu.open {
  max-height: 190px;
  opacity: 1;
  padding-bottom: .25rem;
}

.sidebar-v2-subitem {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .35rem .55rem;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 800;
  font-size: .86rem;
  transition: var(--transition);
}

.sidebar-v2-subitem:hover,
.sidebar-v2-subitem.active {
  color: var(--cyan);
  background: rgba(0,245,255,.07);
}

.sidebar-v2-spacer {
  flex: 0 0 auto;
}

.sidebar-v2-staff {
  position: relative;
  flex: 0 0 auto;
}

.sidebar-v2-admin-btn {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem .75rem;
  border: 1px solid rgba(249,115,22,.38);
  border-radius: 14px;
  background: rgba(249,115,22,.08);
  color: #facc15;
  font-weight: 900;
  cursor: pointer;
}

.sidebar-v2-admin-btn i:last-child {
  margin-left: auto;
  font-size: .72rem;
  transition: transform .18s ease;
}

.sidebar-v2-admin-btn.open i:last-child {
  transform: rotate(180deg);
}

.sidebar-v2-admin-popover {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + .55rem);
  display: grid;
  gap: .35rem;
  padding: .55rem;
  border: 1px solid rgba(249,115,22,.34);
  border-radius: 16px;
  background:
    radial-gradient(circle at 10% 10%, rgba(249,115,22,.12), transparent 40%),
    rgba(15,5,35,.98);
  box-shadow: 0 18px 42px rgba(0,0,0,.38), 0 0 26px rgba(249,115,22,.10);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 30;
}

.sidebar-v2-admin-popover.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sidebar-v2-admin-popover a {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .48rem .55rem;
  border-radius: 11px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 850;
}

.sidebar-v2-admin-popover a:hover,
.sidebar-v2-admin-popover a.active {
  color: #facc15;
  background: rgba(249,115,22,.10);
}

.sidebar-v2-pelusita {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .75rem;
  border: 1px solid rgba(0,245,255,.26);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 50%, rgba(0,245,255,.13), transparent 42%),
    rgba(15,5,35,.52);
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
}

.sidebar-v2-pelusita img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0,245,255,.18));
}

.sidebar-v2-pelusita strong,
.sidebar-v2-pelusita small {
  display: block;
}

.sidebar-v2-pelusita strong {
  font-family: var(--font-title);
  color: var(--cyan);
  line-height: 1.05;
}

.sidebar-v2-pelusita small {
  color: var(--text-muted);
  font-weight: 800;
  font-size: .75rem;
}

/* Pantallas bajas */
@media (max-height: 760px) {
  .sidebar-v2 {
    gap: .55rem;
  }

  .sidebar-v2-logo {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .sidebar-v2-brand-text span {
    font-size: .86rem;
  }

  .sidebar-v2-brand-text small {
    font-size: .62rem;
  }

  .sidebar-v2-nav {
    gap: .32rem;
  }

  .sidebar-v2-link {
    min-height: 36px;
    padding: .45rem .62rem;
    font-size: .86rem;
  }

  .sidebar-v2-subitem {
    min-height: 25px;
    padding: .25rem .5rem;
    font-size: .78rem;
  }

  .sidebar-v2-submenu.open {
    max-height: 140px;
  }

  .sidebar-v2-admin-btn {
    min-height: 34px;
    padding: .45rem .6rem;
    font-size: .82rem;
  }

  .sidebar-v2-admin-popover {
    bottom: calc(100% + .4rem);
  }

  .sidebar-v2-admin-popover a {
    min-height: 30px;
    font-size: .8rem;
  }

  .sidebar-v2-pelusita {
    padding: .48rem .55rem;
  }

  .sidebar-v2-pelusita img {
    width: 34px;
    height: 34px;
  }

  .sidebar-v2-pelusita small {
    display: none;
  }
}

/* Si la altura es muy baja, priorizamos navegación y Pelusita compacta */
@media (max-height: 640px) {
  .sidebar-v2-pelusita {
    justify-content: center;
  }

  .sidebar-v2-pelusita div {
    display: none;
  }
}

/* Mobile/offcanvas */
@media (max-width: 760px) {
  .sidebar-v2 {
    overflow: hidden !important;
  }

  .sidebar-v2-nav {
    overflow-y: auto;
  }
}

/* === END CLASSROOM SIDEBAR V2 === */

/* === SIDEBAR PELUSITA DOCK === */

.sidebar-v2-pelusita {
  display: none !important;
}

.sidebar-v2-pelusita-dock {
  flex: 0 0 auto;
  min-height: 92px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: visible;
  border: 1px solid rgba(0,245,255,.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 10%, rgba(0,245,255,.13), transparent 42%),
    radial-gradient(circle at 20% 90%, rgba(168,85,247,.16), transparent 48%),
    rgba(15,5,35,.52);
  box-shadow: 0 0 26px rgba(0,245,255,.08);
  cursor: pointer;
}

/* La Pelusita real deja de ser flotante y pasa a vivir dentro del dock */
.sidebar-v2-pelusita-dock .pelusita-wrapper,
.pelusita-wrapper.pelusita-sidebar-docked {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  z-index: 1 !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: auto !important;
  pointer-events: auto !important;
}

/* Ocultamos el globo/dialog dentro del sidebar; el diálogo se abre con la interacción normal */
.sidebar-v2-pelusita-dock .pelusita-bubble,
.sidebar-v2-pelusita-dock .pelusita-dialog {
  display: none !important;
}

.sidebar-v2-pelusita-dock .pelusita-char {
  width: 82px !important;
  height: 82px !important;
  display: grid !important;
  place-items: center !important;
  animation: sidebarPelusitaFloat 2.6s ease-in-out infinite;
}

.sidebar-v2-pelusita-dock .pelusita-img {
  width: 78px !important;
  height: 78px !important;
  object-fit: contain !important;
  filter:
    drop-shadow(0 0 10px rgba(0,245,255,.20))
    drop-shadow(0 0 14px rgba(168,85,247,.14));
}

.sidebar-v2-pelusita-dock::after {
  content: "Pelusita";
  position: absolute;
  right: .7rem;
  bottom: .45rem;
  color: var(--cyan);
  font-family: var(--font-title);
  font-size: .72rem;
  font-weight: 900;
  opacity: .9;
  text-shadow: 0 0 12px rgba(0,245,255,.28);
}

@keyframes sidebarPelusitaFloat {
  0%, 100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-5px) rotate(1deg);
  }
}

/* Pantallas bajas: Pelusita compacta pero viva */
@media (max-height: 760px) {
  .sidebar-v2-pelusita-dock {
    min-height: 72px;
  }

  .sidebar-v2-pelusita-dock .pelusita-char {
    width: 62px !important;
    height: 62px !important;
  }

  .sidebar-v2-pelusita-dock .pelusita-img {
    width: 60px !important;
    height: 60px !important;
  }

  .sidebar-v2-pelusita-dock::after {
    display: none;
  }
}

/* Alturas muy bajas: no la matamos, la dejamos modo mini */
@media (max-height: 640px) {
  .sidebar-v2-pelusita-dock {
    min-height: 54px;
  }

  .sidebar-v2-pelusita-dock .pelusita-char {
    width: 48px !important;
    height: 48px !important;
  }

  .sidebar-v2-pelusita-dock .pelusita-img {
    width: 46px !important;
    height: 46px !important;
  }
}

/* === END SIDEBAR PELUSITA DOCK === */

/* === SIDEBAR PELUSITA DOCK FIX V2 === */

/* Sacamos la jaula rara: Pelusita vive en el footer, pero sin parecer botón cuadrado */
.sidebar-v2-pelusita-dock {
  min-height: 86px !important;
  display: grid !important;
  place-items: center !important;
  position: relative !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer !important;
  padding: 0 !important;
}

.sidebar-v2-pelusita-dock::after {
  display: none !important;
}

/* Pelusita animada, libre y centrada */
.sidebar-v2-pelusita-dock .pelusita-wrapper,
.pelusita-wrapper.pelusita-sidebar-docked {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: 100% !important;
  height: auto !important;
  display: grid !important;
  place-items: center !important;
  pointer-events: auto !important;
  z-index: 10 !important;
}

.sidebar-v2-pelusita-dock .pelusita-char {
  width: 86px !important;
  height: 86px !important;
  display: grid !important;
  place-items: center !important;
  animation: sidebarPelusitaFloat 2.6s ease-in-out infinite !important;
}

.sidebar-v2-pelusita-dock .pelusita-img {
  width: 84px !important;
  height: 84px !important;
  object-fit: contain !important;
  filter:
    drop-shadow(0 0 10px rgba(0,245,255,.22))
    drop-shadow(0 0 14px rgba(168,85,247,.18)) !important;
}

/* El globito chico no va en sidebar */
.sidebar-v2-pelusita-dock .pelusita-bubble {
  display: none !important;
}

/*
  El diálogo NO vive dentro del cuadrito del footer.
  Aunque el wrapper esté dentro del sidebar, el diálogo se posiciona fixed contra la ventana.
*/
.sidebar-v2-pelusita-dock .pelusita-dialog,
.pelusita-wrapper.pelusita-sidebar-docked .pelusita-dialog {
  position: fixed !important;
  left: clamp(285px, 24vw, 360px) !important;
  right: auto !important;
  bottom: 24px !important;
  width: min(360px, calc(100vw - 330px)) !important;
  max-width: 360px !important;
  z-index: 9999 !important;
  display: none !important;
}

/* Cuando Pelusita abre diálogo */
.sidebar-v2-pelusita-dock .pelusita-dialog.show,
.pelusita-wrapper.pelusita-sidebar-docked .pelusita-dialog.show {
  display: block !important;
}

/* Por si el JS usa clase open en vez de show */
.sidebar-v2-pelusita-dock .pelusita-dialog.open,
.pelusita-wrapper.pelusita-sidebar-docked .pelusita-dialog.open {
  display: block !important;
}

/* Mobile / sidebar offcanvas: el diálogo aparece arriba de la side, no cortado */
@media (max-width: 760px) {
  .sidebar-v2-pelusita-dock .pelusita-dialog,
  .pelusita-wrapper.pelusita-sidebar-docked .pelusita-dialog {
    left: 14px !important;
    right: 14px !important;
    bottom: 18px !important;
    width: auto !important;
    max-width: none !important;
  }
}

/* Pantallas bajas: Pelusita más compacta */
@media (max-height: 760px) {
  .sidebar-v2-pelusita-dock {
    min-height: 68px !important;
  }

  .sidebar-v2-pelusita-dock .pelusita-char {
    width: 64px !important;
    height: 64px !important;
  }

  .sidebar-v2-pelusita-dock .pelusita-img {
    width: 62px !important;
    height: 62px !important;
  }
}

@media (max-height: 640px) {
  .sidebar-v2-pelusita-dock {
    min-height: 52px !important;
  }

  .sidebar-v2-pelusita-dock .pelusita-char {
    width: 50px !important;
    height: 50px !important;
  }

  .sidebar-v2-pelusita-dock .pelusita-img {
    width: 48px !important;
    height: 48px !important;
  }
}

/* === END SIDEBAR PELUSITA DOCK FIX V2 === */

/* === PELUSITA GLOBAL HELP DIALOG === */

.pelusita-global-dialog {
  position: fixed;
  left: clamp(285px, 24vw, 365px);
  bottom: 22px;
  width: min(390px, calc(100vw - 330px));
  max-width: 390px;
  z-index: 12000;
  display: grid;
  gap: .8rem;
  padding: .95rem;
  border: 1px solid rgba(0,245,255,.34);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 12%, rgba(0,245,255,.18), transparent 38%),
    radial-gradient(circle at 92% 100%, rgba(168,85,247,.20), transparent 42%),
    rgba(12, 5, 28, .96);
  box-shadow:
    0 24px 70px rgba(0,0,0,.52),
    0 0 32px rgba(0,245,255,.15);
  color: var(--text-main);
  opacity: 0;
  transform: translateY(14px) scale(.98);
  pointer-events: none;
  transition:
    opacity .18s ease,
    transform .18s ease;
}

.pelusita-global-dialog.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.pelusita-global-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

.pelusita-global-kicker {
  display: block;
  color: var(--cyan);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .22rem;
}

.pelusita-global-head h3 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.22rem;
  color: var(--text-main);
}

.pelusita-global-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.pelusita-global-close:hover {
  color: var(--cyan);
  border-color: rgba(0,245,255,.32);
  background: rgba(0,245,255,.08);
}

.pelusita-global-body {
  padding: .8rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}

.pelusita-global-body p {
  margin: 0;
  color: var(--text-muted);
  white-space: pre-line;
  line-height: 1.55;
  font-weight: 700;
}

.pelusita-global-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
}

.pelusita-global-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .65rem .75rem;
  border: 1px solid rgba(0,245,255,.25);
  border-radius: 14px;
  background: rgba(0,245,255,.06);
  color: var(--cyan);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-text);
}

.pelusita-global-primary {
  grid-column: span 2;
  color: #fff;
  border-color: rgba(168,85,247,.38);
  background: linear-gradient(135deg, var(--violet), var(--pink));
  box-shadow: 0 0 22px rgba(168,85,247,.18);
}

.pelusita-global-action:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(0,245,255,.13);
}

.pelusita-global-action.is-disabled {
  opacity: .48;
  cursor: not-allowed;
  filter: grayscale(.35);
  pointer-events: none;
}

.pelusita-global-action .fa-whatsapp {
  color: #22c55e;
}

.pelusita-global-action .fa-envelope {
  color: #facc15;
}

/* En mobile el globo se centra abajo */
@media (max-width: 760px) {
  .pelusita-global-dialog {
    left: 12px;
    right: 12px;
    bottom: 14px;
    width: auto;
    max-width: none;
  }
}

@media (max-width: 420px) {
  .pelusita-global-actions {
    grid-template-columns: 1fr;
  }

  .pelusita-global-primary {
    grid-column: auto;
  }
}

/* === END PELUSITA GLOBAL HELP DIALOG === */

/* === PELUSITA GLOBAL HELP DIALOG COMPACT === */

.pelusita-global-dialog {
  width: min(330px, calc(100vw - 320px)) !important;
  max-width: 330px !important;
  padding: .72rem !important;
  gap: .58rem !important;
  border-radius: 18px !important;
}

.pelusita-global-kicker {
  font-size: .64rem !important;
  margin-bottom: .15rem !important;
}

.pelusita-global-head h3 {
  font-size: 1rem !important;
}

.pelusita-global-close {
  width: 30px !important;
  height: 30px !important;
  border-radius: 10px !important;
}

.pelusita-global-body {
  padding: .62rem !important;
  border-radius: 14px !important;
}

.pelusita-global-body p {
  font-size: .86rem !important;
  line-height: 1.45 !important;
}

.pelusita-global-actions {
  grid-template-columns: 1fr !important;
  gap: .45rem !important;
}

.pelusita-global-primary {
  grid-column: auto !important;
}

.pelusita-global-action {
  min-height: 38px !important;
  padding: .55rem .65rem !important;
  border-radius: 12px !important;
  font-size: .86rem !important;
}

.pelusita-contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height .2s ease,
    opacity .18s ease;
}

.pelusita-contact-panel.show {
  max-height: 70px;
  opacity: 1;
}

.pelusita-contact-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  padding: .5rem .55rem;
  border: 1px solid rgba(0,245,255,.22);
  border-radius: 12px;
  background: rgba(0,245,255,.055);
  color: var(--cyan);
  text-decoration: none;
  font-weight: 900;
  font-size: .82rem;
  transition: var(--transition);
}

.pelusita-contact-link:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(0,245,255,.12);
}

.pelusita-contact-link.whatsapp i {
  color: #22c55e;
}

.pelusita-contact-link.mail i {
  color: #facc15;
}

@media (max-width: 760px) {
  .pelusita-global-dialog {
    width: auto !important;
    max-width: none !important;
    left: 12px !important;
    right: 12px !important;
  }
}

/* === END PELUSITA GLOBAL HELP DIALOG COMPACT === */

/* === LOGIN NO PELUSITA FLOAT === */

body.page-login .pelusita-wrapper,
body.login-page .pelusita-wrapper,
body[data-page="login"] .pelusita-wrapper {
  display: none !important;
}

/* === END LOGIN NO PELUSITA FLOAT === */

/* === LOGIN COPY CLEAN === */

.login-lead,
.login-side-lead {
  max-width: 36rem;
  margin: .8rem 0 1.35rem;
  color: var(--text-muted);
  font-weight: 700;
  line-height: 1.55;
}

.login-side-lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.login-hint {
  margin-top: .85rem;
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 700;
  text-align: center;
}

/* === END LOGIN COPY CLEAN === */

/* === Comunidad MVP 20260620 === */

.page-community .main-content {
  gap: 1.25rem;
}

.community-hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid rgba(120, 255, 245, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(153, 87, 255, 0.18), transparent 34%),
    radial-gradient(circle at bottom left, rgba(0, 229, 255, 0.15), transparent 30%),
    rgba(11, 16, 30, 0.68);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.community-hero-copy {
  position: relative;
  z-index: 1;
}

.community-hero-copy h2 {
  margin: 0.9rem 0 0.7rem;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.community-hero-copy h2 span {
  display: block;
  color: var(--accent, #77f7ff);
  font-size: 0.55em;
  margin-top: 0.45rem;
}

.community-hero-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--text-muted, rgba(235, 245, 255, 0.72));
  font-size: 1rem;
  line-height: 1.7;
}

.community-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.community-orb {
  position: relative;
  width: min(220px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  border: 1px solid rgba(120, 255, 245, 0.22);
  background:
    radial-gradient(circle, rgba(120, 255, 245, 0.22), transparent 58%),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 0 40px rgba(120, 255, 245, 0.1),
    0 0 70px rgba(120, 255, 245, 0.13);
}

.community-orb i {
  font-size: 4rem;
  color: var(--accent, #77f7ff);
  filter: drop-shadow(0 0 20px rgba(120, 255, 245, 0.55));
}

.community-orb span {
  position: absolute;
  inset: 18%;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: inherit;
}

.community-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.community-panel {
  border: 1px solid rgba(120, 255, 245, 0.15);
  border-radius: 24px;
  background: rgba(11, 16, 30, 0.62);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.community-filters-panel {
  position: sticky;
  top: 1rem;
  padding: 1rem;
}

.community-main-area {
  min-width: 0;
  display: grid;
  gap: 1rem;
}

.community-filter-group,
.community-field {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.community-filter-group label,
.community-field label,
.community-reply-form label {
  color: var(--text-muted, rgba(235, 245, 255, 0.72));
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.community-filter-group input,
.community-filter-group select,
.community-field input,
.community-field select,
.community-field textarea,
.community-reply-form textarea {
  width: 100%;
  border: 1px solid rgba(120, 255, 245, 0.16);
  border-radius: 16px;
  background: rgba(2, 6, 18, 0.48);
  color: var(--text-main, #eef7ff);
  padding: 0.85rem 0.95rem;
  outline: none;
  font: inherit;
}

.community-field textarea,
.community-reply-form textarea {
  resize: vertical;
}

.community-search-box {
  position: relative;
}

.community-search-box i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted, rgba(235, 245, 255, 0.62));
  pointer-events: none;
}

.community-search-box input {
  padding-left: 2.45rem;
}

.community-mini-stats {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.community-mini-stats span {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  border-radius: 16px;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-muted, rgba(235, 245, 255, 0.72));
}

.community-mini-stats strong {
  color: var(--accent, #77f7ff);
}

.community-composer-panel {
  padding: 1rem;
}

.community-form {
  margin-top: 1rem;
}

.community-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.community-field-wide {
  grid-column: 1 / -1;
}

.community-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.community-form-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted, rgba(235, 245, 255, 0.68));
  font-size: 0.85rem;
}

.community-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.community-toolbar h3 {
  margin: 0.2rem 0 0;
  font-size: 1.35rem;
}

.community-sort-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.community-pill {
  border: 1px solid rgba(120, 255, 245, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-muted, rgba(235, 245, 255, 0.72));
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}

.community-pill.active {
  color: var(--text-main, #eef7ff);
  border-color: rgba(120, 255, 245, 0.42);
  background: rgba(120, 255, 245, 0.13);
}

.community-list {
  display: grid;
  gap: 1rem;
}

.community-post-card {
  border: 1px solid rgba(120, 255, 245, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(120, 255, 245, 0.06), transparent 28%),
    rgba(11, 16, 30, 0.64);
  padding: 1rem;
  box-shadow: 0 16px 52px rgba(0, 0, 0, 0.22);
}

.community-post-head,
.community-post-meta,
.community-post-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.community-post-head {
  justify-content: space-between;
}

.community-post-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.community-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.4rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.community-badge.type-consulta {
  color: #8cecff;
  background: rgba(0, 229, 255, 0.1);
}

.community-badge.type-aporte {
  color: #d8b4ff;
  background: rgba(153, 87, 255, 0.13);
}

.community-badge.type-recomendacion {
  color: #b8ffcf;
  background: rgba(95, 255, 154, 0.1);
}

.community-badge.status-abierto {
  color: #ffe08a;
  background: rgba(255, 190, 77, 0.1);
}

.community-badge.status-resuelto {
  color: #9dffbd;
  background: rgba(75, 255, 139, 0.11);
}

.community-badge.course {
  color: var(--text-muted, rgba(235, 245, 255, 0.74));
  background: rgba(255, 255, 255, 0.045);
}

.community-post-card h3 {
  margin: 0.95rem 0 0.55rem;
  font-size: 1.3rem;
}

.community-post-content {
  margin: 0;
  color: var(--text-muted, rgba(235, 245, 255, 0.74));
  line-height: 1.65;
  white-space: pre-wrap;
}

.community-post-meta {
  margin-top: 0.9rem;
  color: var(--text-muted, rgba(235, 245, 255, 0.64));
  font-size: 0.85rem;
}

.community-post-actions {
  margin-top: 1rem;
}

.btn-sm {
  min-height: auto;
  padding: 0.58rem 0.75rem;
  font-size: 0.86rem;
}

.community-danger {
  border-color: rgba(255, 94, 123, 0.24) !important;
  color: #ff9bad !important;
}

.community-icon-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(120, 255, 245, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-main, #eef7ff);
  cursor: pointer;
}

.community-comments {
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 1rem;
}

.community-comments-list {
  display: grid;
  gap: 0.75rem;
}

.community-comment {
  border-radius: 18px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.045);
}

.community-comment-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--text-muted, rgba(235, 245, 255, 0.68));
  font-size: 0.82rem;
}

.community-comment-meta strong {
  color: var(--text-main, #eef7ff);
}

.community-comment p,
.community-no-comments {
  margin: 0.4rem 0 0;
  color: var(--text-muted, rgba(235, 245, 255, 0.74));
  line-height: 1.55;
}

.community-reply-form {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.community-empty {
  text-align: center;
  border: 1px dashed rgba(120, 255, 245, 0.22);
  border-radius: 24px;
  padding: 2rem;
  background: rgba(11, 16, 30, 0.42);
}

.community-empty-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(120, 255, 245, 0.1);
  color: var(--accent, #77f7ff);
  font-size: 2rem;
}

.community-empty h3 {
  margin: 0;
}

.community-empty p {
  color: var(--text-muted, rgba(235, 245, 255, 0.72));
}

html[data-theme="light"] .community-hero-panel,
html[data-theme="light"] .community-panel,
html[data-theme="light"] .community-post-card {
  background: rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] .community-filter-group input,
html[data-theme="light"] .community-filter-group select,
html[data-theme="light"] .community-field input,
html[data-theme="light"] .community-field select,
html[data-theme="light"] .community-field textarea,
html[data-theme="light"] .community-reply-form textarea {
  background: rgba(255, 255, 255, 0.76);
}

@media (max-width: 980px) {
  .community-hero-panel,
  .community-shell {
    grid-template-columns: 1fr;
  }

  .community-orb {
    display: none;
  }

  .community-filters-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .community-hero-panel,
  .community-composer-panel,
  .community-post-card,
  .community-filters-panel {
    border-radius: 20px;
    padding: 0.9rem;
  }

  .community-form-grid {
    grid-template-columns: 1fr;
  }

  .community-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .community-sort-pills {
    justify-content: flex-start;
  }

  .community-post-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .community-comment-meta {
    flex-direction: column;
    gap: 0.2rem;
  }
}

/* === NOTIFICATIONS LOCAL V2 20260620 === */

.notifications-panel-footer-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.notifications-panel-footer-v2 .notifications-read-all {
  flex: 1 1 auto;
}

.notifications-read-all.danger {
  color: #ff9bad;
  border-color: rgba(255, 94, 123, 0.28);
}

.notification-pref-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  border: 1px solid rgba(120, 255, 245, 0.18);
  color: var(--text-muted, rgba(235, 245, 255, 0.68));
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  vertical-align: middle;
}

.notification-prefs-card-v2 {
  margin-top: 1rem;
}

.notification-prefs-card-v2 .notification-prefs-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 860px) {
  .notification-prefs-card-v2 .notification-prefs-list {
    grid-template-columns: 1fr;
  }

  .notifications-panel-footer-v2 {
    flex-direction: column;
  }
}

/* === Comunidad Adjuntos Imagenes 20260620 === */

.community-file-drop {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 132px;
  border: 1px dashed rgba(120, 255, 245, 0.28);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(120, 255, 245, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.community-file-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.community-file-drop div {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  text-align: center;
  padding: 1rem;
  pointer-events: none;
}

.community-file-drop i {
  font-size: 2rem;
  color: var(--accent, #77f7ff);
  filter: drop-shadow(0 0 14px rgba(120, 255, 245, 0.35));
}

.community-file-drop strong {
  color: var(--text-main, #eef7ff);
}

.community-file-drop span {
  color: var(--text-muted, rgba(235, 245, 255, 0.68));
  font-size: 0.85rem;
}

.community-attachment-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.community-attachment-preview-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(120, 255, 245, 0.14);
  border-radius: 18px;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.045);
}

.community-attachment-preview-item img {
  width: 74px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.community-attachment-preview-item div {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.community-attachment-preview-item strong,
.community-attachment-preview-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-attachment-preview-item strong {
  color: var(--text-main, #eef7ff);
  font-size: 0.9rem;
}

.community-attachment-preview-item span {
  color: var(--text-muted, rgba(235, 245, 255, 0.64));
  font-size: 0.78rem;
}

.community-attachment-remove {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 94, 123, 0.25);
  border-radius: 12px;
  background: rgba(255, 94, 123, 0.08);
  color: #ff9bad;
  cursor: pointer;
}

.community-attachments-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.95rem;
}

.community-attachment-thumb {
  position: relative;
  border: 1px solid rgba(120, 255, 245, 0.15);
  border-radius: 16px;
  padding: 0;
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  cursor: zoom-in;
}

.community-attachment-thumb::after {
  content: "\\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  opacity: 0;
  transform: translateY(4px);
  transition: 0.18s ease;
}

.community-attachment-thumb:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.community-attachment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.18s ease;
}

.community-attachment-thumb:hover img {
  transform: scale(1.04);
}

.community-attachment-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 1rem;
}

.community-attachment-modal.open {
  display: grid;
}

.community-attachment-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.community-attachment-modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.75rem;
  max-width: min(980px, 96vw);
  max-height: 92vh;
  padding: 0.85rem;
  border: 1px solid rgba(120, 255, 245, 0.2);
  border-radius: 22px;
  background: rgba(11, 16, 30, 0.92);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
}

.community-attachment-modal-dialog img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 16px;
}

.community-attachment-modal-dialog strong {
  color: var(--text-muted, rgba(235, 245, 255, 0.72));
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.community-attachment-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.48);
}

html[data-theme="light"] .community-file-drop,
html[data-theme="light"] .community-attachment-preview-item,
html[data-theme="light"] .community-attachment-thumb {
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 760px) {
  .community-attachment-preview,
  .community-attachments-gallery {
    grid-template-columns: 1fr;
  }

  .community-attachment-preview-item {
    grid-template-columns: 68px minmax(0, 1fr) 34px;
  }

  .community-attachment-preview-item img {
    width: 68px;
    height: 54px;
  }
}

/* === Notifications Settings Button 20260620 === */

.notifications-settings-link {
  text-decoration: none;
  justify-content: center;
  text-align: center;
}

.notification-prefs-highlight {
  animation: notificationPrefsPulse 1.45s ease;
}

@keyframes notificationPrefsPulse {
  0% {
    box-shadow: 0 0 0 rgba(120, 255, 245, 0);
    transform: translateY(0);
  }

  35% {
    box-shadow: 0 0 0 4px rgba(120, 255, 245, 0.18), 0 0 38px rgba(120, 255, 245, 0.24);
    transform: translateY(-2px);
  }

  100% {
    box-shadow: 0 0 0 rgba(120, 255, 245, 0);
    transform: translateY(0);
  }
}

/* === Light Theme Fix Notifications Admin Pelusita 20260620 === */

/* Campanita / notificaciones en modo claro */
html[data-theme="light"] .notifications-widget {
  color: #201735;
}

html[data-theme="light"] .notifications-toggle {
  background: rgba(255, 255, 255, 0.92);
  color: #201735;
  border-color: rgba(91, 55, 160, 0.18);
  box-shadow: 0 10px 28px rgba(91, 55, 160, 0.13);
}

html[data-theme="light"] .notifications-toggle:hover {
  background: rgba(246, 240, 255, 0.98);
  color: #140c24;
}

html[data-theme="light"] .notifications-toggle i {
  color: #201735;
}

html[data-theme="light"] .notifications-panel {
  background:
    radial-gradient(circle at top left, rgba(126, 87, 194, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.96);
  border-color: rgba(91, 55, 160, 0.16);
  color: #201735;
  box-shadow: 0 24px 70px rgba(70, 45, 120, 0.18);
}

html[data-theme="light"] .notifications-panel .eyebrow,
html[data-theme="light"] .notifications-panel-header h3,
html[data-theme="light"] .notification-item strong {
  color: #201735;
}

html[data-theme="light"] .notification-item {
  background: rgba(248, 244, 255, 0.78);
  border-color: rgba(91, 55, 160, 0.11);
}

html[data-theme="light"] .notification-item.unread {
  background: rgba(235, 226, 255, 0.95);
  border-color: rgba(126, 87, 194, 0.24);
}

html[data-theme="light"] .notification-item p,
html[data-theme="light"] .notification-item small,
html[data-theme="light"] .notification-empty p {
  color: rgba(32, 23, 53, 0.72);
}

html[data-theme="light"] .notification-empty strong {
  color: #201735;
}

html[data-theme="light"] .notification-icon {
  background: rgba(126, 87, 194, 0.12);
  color: #5e35b1;
}

html[data-theme="light"] .notifications-chip {
  background: rgba(126, 87, 194, 0.10);
  border-color: rgba(126, 87, 194, 0.18);
  color: #5e35b1;
}

html[data-theme="light"] .notifications-read-all {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(91, 55, 160, 0.16);
  color: #352257;
}

html[data-theme="light"] .notifications-read-all:hover {
  background: rgba(238, 229, 255, 0.92);
}

html[data-theme="light"] .notifications-read-all.danger {
  color: #bd3151;
  border-color: rgba(189, 49, 81, 0.24);
  background: rgba(255, 240, 244, 0.75);
}

/* Sidebar Administrar / staff en modo claro */
html[data-theme="light"] .sidebar-v2-staff,
html[data-theme="light"] .sidebar-v2-admin-popover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(32, 23, 53, 0.16);
  color: #201735;
  box-shadow: 0 18px 44px rgba(70, 45, 120, 0.14);
}

html[data-theme="light"] .sidebar-v2-admin-btn {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(32, 23, 53, 0.20);
  color: #201735;
}

html[data-theme="light"] .sidebar-v2-admin-btn i,
html[data-theme="light"] .sidebar-v2-admin-btn span {
  color: #201735;
}

html[data-theme="light"] .sidebar-v2-admin-popover a {
  color: rgba(32, 23, 53, 0.78);
}

html[data-theme="light"] .sidebar-v2-admin-popover a:hover,
html[data-theme="light"] .sidebar-v2-admin-popover a.active {
  background: rgba(255, 206, 45, 0.20);
  color: #201735;
}

/* Pelusita / globos en modo claro */
html[data-theme="light"] .pelusita-dialog,
html[data-theme="light"] .pelusita-panel,
html[data-theme="light"] .pelusita-card,
html[data-theme="light"] .pelusita-message,
html[data-theme="light"] .pelusita-bubble,
html[data-theme="light"] .pelusita-chat,
html[data-theme="light"] .pelusita-guide-card {
  background:
    radial-gradient(circle at top left, rgba(126, 87, 194, 0.10), transparent 34%),
    rgba(255, 255, 255, 0.96) !important;
  color: #201735 !important;
  border-color: rgba(91, 55, 160, 0.16) !important;
  box-shadow: 0 22px 60px rgba(70, 45, 120, 0.16) !important;
}

html[data-theme="light"] .pelusita-dialog *,
html[data-theme="light"] .pelusita-panel *,
html[data-theme="light"] .pelusita-card *,
html[data-theme="light"] .pelusita-message *,
html[data-theme="light"] .pelusita-bubble *,
html[data-theme="light"] .pelusita-chat *,
html[data-theme="light"] .pelusita-guide-card * {
  color: inherit;
}

html[data-theme="light"] .pelusita-dialog .eyebrow,
html[data-theme="light"] .pelusita-panel .eyebrow,
html[data-theme="light"] .pelusita-guide-card .eyebrow {
  color: #008fa3 !important;
}

html[data-theme="light"] .pelusita-dialog button,
html[data-theme="light"] .pelusita-panel button,
html[data-theme="light"] .pelusita-card button {
  border-color: rgba(91, 55, 160, 0.16);
}

/* Preferencias seccionadas */
.notification-prefs-sections {
  display: grid;
  gap: 1rem;
}

.notification-pref-section {
  border: 1px solid rgba(120, 255, 245, 0.14);
  border-radius: 22px;
  padding: 1rem;
  background:
    radial-gradient(circle at top left, rgba(120, 255, 245, 0.07), transparent 32%),
    rgba(255, 255, 255, 0.035);
}

.notification-pref-section-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.notification-pref-section-head > i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 15px;
  background: rgba(120, 255, 245, 0.10);
  color: var(--accent, #77f7ff);
  border: 1px solid rgba(120, 255, 245, 0.16);
}

.notification-pref-section-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.notification-pref-section-head p {
  margin: 0.25rem 0 0;
  color: var(--text-muted, rgba(235, 245, 255, 0.68));
  line-height: 1.45;
}

.notification-pref-section .notification-prefs-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

html[data-theme="light"] .notification-pref-section {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(91, 55, 160, 0.13);
}

html[data-theme="light"] .notification-pref-section-head > i {
  background: rgba(126, 87, 194, 0.10);
  color: #5e35b1;
  border-color: rgba(126, 87, 194, 0.15);
}

html[data-theme="light"] .notification-pref-section-head h3 {
  color: #201735;
}

html[data-theme="light"] .notification-pref-section-head p {
  color: rgba(32, 23, 53, 0.68);
}

html[data-theme="light"] .notification-pref-row {
  background: rgba(248, 244, 255, 0.72);
  border-color: rgba(91, 55, 160, 0.12);
}

html[data-theme="light"] .notification-pref-row strong {
  color: #201735;
}

html[data-theme="light"] .notification-pref-row p {
  color: rgba(32, 23, 53, 0.66);
}

html[data-theme="light"] .notification-pref-tag {
  background: rgba(126, 87, 194, 0.10);
  color: #5e35b1;
  border-color: rgba(126, 87, 194, 0.18);
}

@media (max-width: 880px) {
  .notification-pref-section .notification-prefs-list {
    grid-template-columns: 1fr;
  }
}

/* === Light Theme Contrast Blue Violet 20260620 === */

/*
  En modo claro bajamos el cian/amarillo neón a tonos azul/violeta.
  El objetivo es mantener la estética tech sin perder legibilidad.
*/

html[data-theme="light"] {
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --accent-soft: rgba(79, 70, 229, 0.12);
  --accent-border: rgba(79, 70, 229, 0.24);
}

/* Títulos hero / títulos grandes donde el span venía cian neón */
html[data-theme="light"] .hero-copy h2 span,
html[data-theme="light"] .community-hero-copy h2 span,
html[data-theme="light"] .section-title span,
html[data-theme="light"] .course-hero h2 span,
html[data-theme="light"] .page-title span,
html[data-theme="light"] .hero-panel h2 span,
html[data-theme="light"] .classroom-title-accent {
  color: #2563eb !important;
  text-shadow: 0 8px 28px rgba(37, 99, 235, 0.18) !important;
}

/* Títulos o textos que quedaron directamente con colores neón */
html[data-theme="light"] .text-cyan,
html[data-theme="light"] .text-accent,
html[data-theme="light"] .accent-text,
html[data-theme="light"] .cyber-accent,
html[data-theme="light"] .neon-text,
html[data-theme="light"] .home-newsletter-kicker,
html[data-theme="light"] .community-mini-stats strong {
  color: #2563eb !important;
  text-shadow: none !important;
}

/* Eyebrows / labels superiores */
html[data-theme="light"] .eyebrow,
html[data-theme="light"] .badge,
html[data-theme="light"] .panel-header .eyebrow,
html[data-theme="light"] .home-panel-pill,
html[data-theme="light"] .community-form-hint,
html[data-theme="light"] .community-filter-group label,
html[data-theme="light"] .community-field label,
html[data-theme="light"] .community-reply-form label {
  color: #4f46e5 !important;
  text-shadow: none !important;
}

/* Badges tipo Nueva etapa / AyRPC 2025 */
html[data-theme="light"] .badge {
  background: rgba(124, 58, 237, 0.10) !important;
  border-color: rgba(124, 58, 237, 0.26) !important;
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.10) !important;
}

html[data-theme="light"] .badge i {
  color: #7c3aed !important;
}

/* Botones primarios: violeta legible sobre claro */
html[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
  color: #ffffff !important;
  border-color: rgba(79, 70, 229, 0.18) !important;
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.22) !important;
}

html[data-theme="light"] .btn-primary i,
html[data-theme="light"] .btn-primary span {
  color: inherit !important;
}

/* Botones outline que antes quedaban cian lavado */
html[data-theme="light"] .btn-outline {
  color: #4338ca !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(67, 56, 202, 0.32) !important;
  box-shadow: 0 10px 26px rgba(67, 56, 202, 0.10) !important;
}

html[data-theme="light"] .btn-outline:hover {
  color: #312e81 !important;
  background: rgba(238, 242, 255, 0.95) !important;
  border-color: rgba(67, 56, 202, 0.42) !important;
}

html[data-theme="light"] .btn-outline i,
html[data-theme="light"] .btn-outline span {
  color: inherit !important;
}

/* Tarjetas/hero con bordes cian: pasarlos a violeta suave */
html[data-theme="light"] .hero-panel,
html[data-theme="light"] .community-hero-panel,
html[data-theme="light"] .panel,
html[data-theme="light"] .community-panel,
html[data-theme="light"] .community-post-card {
  border-color: rgba(79, 70, 229, 0.16) !important;
}

/* Comunidad: badges de tipo/estado/curso con contraste real */
html[data-theme="light"] .community-badge.type-consulta {
  color: #1d4ed8 !important;
  background: rgba(37, 99, 235, 0.10) !important;
  border-color: rgba(37, 99, 235, 0.20) !important;
}

html[data-theme="light"] .community-badge.type-aporte {
  color: #6d28d9 !important;
  background: rgba(124, 58, 237, 0.11) !important;
  border-color: rgba(124, 58, 237, 0.20) !important;
}

html[data-theme="light"] .community-badge.type-recomendacion {
  color: #047857 !important;
  background: rgba(5, 150, 105, 0.10) !important;
  border-color: rgba(5, 150, 105, 0.20) !important;
}

html[data-theme="light"] .community-badge.status-abierto {
  color: #7c2d12 !important;
  background: rgba(234, 88, 12, 0.11) !important;
  border-color: rgba(234, 88, 12, 0.22) !important;
}

html[data-theme="light"] .community-badge.status-resuelto {
  color: #047857 !important;
  background: rgba(5, 150, 105, 0.10) !important;
  border-color: rgba(5, 150, 105, 0.20) !important;
}

html[data-theme="light"] .community-badge.course {
  color: #312e81 !important;
  background: rgba(79, 70, 229, 0.08) !important;
  border-color: rgba(79, 70, 229, 0.18) !important;
}

/* Pills y chips */
html[data-theme="light"] .community-pill {
  color: #4338ca !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(67, 56, 202, 0.18) !important;
}

html[data-theme="light"] .community-pill.active {
  color: #312e81 !important;
  background: rgba(224, 231, 255, 0.92) !important;
  border-color: rgba(67, 56, 202, 0.34) !important;
}

/* Íconos/orbes que usaban cian muy brillante */
html[data-theme="light"] .community-orb i,
html[data-theme="light"] .home-newsletter-orb i,
html[data-theme="light"] .community-empty-icon,
html[data-theme="light"] .community-file-drop i {
  color: #4f46e5 !important;
  filter: drop-shadow(0 0 14px rgba(79, 70, 229, 0.18)) !important;
}

html[data-theme="light"] .community-orb,
html[data-theme="light"] .home-newsletter-orb,
html[data-theme="light"] .community-empty-icon {
  border-color: rgba(79, 70, 229, 0.16) !important;
  background: rgba(79, 70, 229, 0.08) !important;
}

/* Sidebar: amarillos/celestes activos en modo claro pasan a violeta/azul */
html[data-theme="light"] .sidebar-v2-link.active,
html[data-theme="light"] .sidebar-v2-subitem.active,
html[data-theme="light"] .sidebar-v2-admin-popover a.active {
  color: #312e81 !important;
  background: rgba(224, 231, 255, 0.92) !important;
  border-color: rgba(67, 56, 202, 0.18) !important;
}

html[data-theme="light"] .sidebar-v2-link.active i,
html[data-theme="light"] .sidebar-v2-link.active span,
html[data-theme="light"] .sidebar-v2-subitem.active span,
html[data-theme="light"] .sidebar-v2-admin-popover a.active i,
html[data-theme="light"] .sidebar-v2-admin-popover a.active span {
  color: #312e81 !important;
}

/* Administrar: evitar amarillo lavado */
html[data-theme="light"] .sidebar-v2-admin-btn,
html[data-theme="light"] .sidebar-v2-admin-btn i,
html[data-theme="light"] .sidebar-v2-admin-btn span {
  color: #312e81 !important;
}

/* Inputs/selects con foco más visible */
html[data-theme="light"] .community-filter-group input:focus,
html[data-theme="light"] .community-filter-group select:focus,
html[data-theme="light"] .community-field input:focus,
html[data-theme="light"] .community-field select:focus,
html[data-theme="light"] .community-field textarea:focus,
html[data-theme="light"] .community-reply-form textarea:focus {
  border-color: rgba(79, 70, 229, 0.42) !important;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.10) !important;
}

/* Por si algún componente dejó color inline mediante clases antiguas */
html[data-theme="light"] [class*="cyan"],
html[data-theme="light"] [class*="neon"] {
  text-shadow: none;
}

/* === Light Notifications Panel Polish 20260620 === */

/* Panel completo de notificaciones en modo claro */
html[data-theme="light"] .notifications-panel {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.97) !important;
  border: 1px solid rgba(79, 70, 229, 0.18) !important;
  color: #201735 !important;
}

/* Header superior de la campanita */
html[data-theme="light"] .notifications-panel-header {
  background:
    linear-gradient(135deg, rgba(238, 242, 255, 0.98), rgba(245, 243, 255, 0.98)) !important;
  border-bottom: 1px solid rgba(79, 70, 229, 0.14) !important;
}

html[data-theme="light"] .notifications-panel-header .eyebrow {
  color: #4f46e5 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .notifications-panel-header h3 {
  color: #201735 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .notifications-chip {
  background: rgba(124, 58, 237, 0.11) !important;
  color: #5b21b6 !important;
  border: 1px solid rgba(124, 58, 237, 0.20) !important;
}

/* Lista */
html[data-theme="light"] .notifications-list {
  background: rgba(255, 255, 255, 0.72) !important;
}

/* Footer/botonera */
html[data-theme="light"] .notifications-panel-footer,
html[data-theme="light"] .notifications-panel-footer-v2 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.5rem !important;
  padding: 0.75rem !important;
  background: rgba(248, 244, 255, 0.95) !important;
  border-top: 1px solid rgba(79, 70, 229, 0.14) !important;
}

html[data-theme="light"] .notifications-read-all,
html[data-theme="light"] .notifications-settings-link {
  min-height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  margin: 0 !important;
  padding: 0.55rem 0.65rem !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  border: 1px solid rgba(79, 70, 229, 0.18) !important;
  color: #312e81 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.08) !important;
}

html[data-theme="light"] .notifications-read-all i,
html[data-theme="light"] .notifications-settings-link i {
  color: inherit !important;
}

html[data-theme="light"] .notifications-read-all:hover,
html[data-theme="light"] .notifications-settings-link:hover {
  background: rgba(224, 231, 255, 0.94) !important;
  border-color: rgba(79, 70, 229, 0.30) !important;
  color: #1e1b4b !important;
}

html[data-theme="light"] .notifications-read-all.danger {
  grid-column: 1 / -1 !important;
  color: #be123c !important;
  background: rgba(255, 241, 242, 0.94) !important;
  border-color: rgba(225, 29, 72, 0.22) !important;
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.07) !important;
}

html[data-theme="light"] .notifications-read-all.danger:hover {
  background: rgba(255, 228, 230, 0.98) !important;
  color: #9f1239 !important;
}

/* Dark también recibe una mejora de respiración sin cambiar estética */
.notifications-panel-footer-v2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.notifications-panel-footer-v2 .notifications-read-all,
.notifications-panel-footer-v2 .notifications-settings-link {
  margin: 0;
}

.notifications-panel-footer-v2 .notifications-read-all.danger {
  grid-column: 1 / -1;
}

/* Mobile */
@media (max-width: 520px) {
  html[data-theme="light"] .notifications-panel-footer,
  html[data-theme="light"] .notifications-panel-footer-v2,
  .notifications-panel-footer-v2 {
    grid-template-columns: 1fr !important;
  }

  html[data-theme="light"] .notifications-read-all.danger,
  .notifications-panel-footer-v2 .notifications-read-all.danger {
    grid-column: auto !important;
  }
}

/* === Comunidad Filtros Desplegables 20260620 === */

.community-top-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.community-search-box-main input {
  min-height: 48px;
}

.community-filter-toggle {
  min-height: 48px;
  white-space: nowrap;
}

.community-filter-toggle.active {
  border-color: rgba(120, 255, 245, 0.38);
  background: rgba(120, 255, 245, 0.12);
}

.community-filters-panel {
  overflow: hidden;
  max-height: 820px;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 0.28s ease,
    opacity 0.2s ease,
    transform 0.2s ease,
    padding 0.2s ease,
    border-width 0.2s ease;
}

.community-filters-panel.is-collapsed {
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  pointer-events: none;
}

.community-filters-panel.is-collapsed > * {
  visibility: hidden;
}

/* Al estar colapsado, el layout deja más aire para los hilos */
.community-shell {
  grid-template-columns: 1fr;
}

.community-filters-panel {
  position: static;
  order: 2;
}

.community-main-area {
  order: 1;
}

/* Cuando se despliega, queda como panel horizontal arriba de la lista */
.community-filters-panel:not(.is-collapsed) {
  display: block;
}

.community-filters-panel:not(.is-collapsed) .community-filter-group {
  margin-top: 0;
}

.community-filters-panel:not(.is-collapsed) {
  display: grid;
  gap: 0.95rem;
}

.community-filters-panel:not(.is-collapsed) .panel-header {
  margin-bottom: 0;
}

.community-filters-panel:not(.is-collapsed) {
  grid-template-columns: 1fr;
}

@media (min-width: 920px) {
  .community-filters-panel:not(.is-collapsed) {
    grid-template-columns: 1.2fr repeat(3, minmax(180px, 1fr));
    align-items: end;
  }

  .community-filters-panel:not(.is-collapsed) .panel-header {
    align-self: center;
  }

  .community-filters-panel:not(.is-collapsed) .community-mini-stats {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    display: grid;
  }
}

html[data-theme="light"] .community-filter-toggle.active {
  color: #312e81 !important;
  background: rgba(224, 231, 255, 0.95) !important;
  border-color: rgba(67, 56, 202, 0.32) !important;
}

@media (max-width: 680px) {
  .community-top-controls {
    grid-template-columns: 1fr;
  }

  .community-filter-toggle {
    width: 100%;
    justify-content: center;
  }

  .community-search-box-main input {
    font-size: 0.95rem;
  }
}

/* === Comunidad Search Filters Visual Polish 20260620 === */

/* Barra superior de búsqueda + filtros */
.community-top-controls {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 0.85rem !important;
  align-items: stretch !important;
  padding: 0.85rem !important;
  border: 1px solid rgba(120, 255, 245, 0.16) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at top left, rgba(120, 255, 245, 0.10), transparent 34%),
    radial-gradient(circle at bottom right, rgba(153, 87, 255, 0.10), transparent 38%),
    rgba(11, 16, 30, 0.60) !important;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: blur(16px) !important;
}

/* Caja buscador principal */
.community-search-box-main {
  width: 100% !important;
  min-width: 0 !important;
  position: relative !important;
  display: block !important;
}

.community-search-box-main i {
  left: 1.05rem !important;
  color: rgba(120, 255, 245, 0.88) !important;
  z-index: 1 !important;
  filter: drop-shadow(0 0 10px rgba(120, 255, 245, 0.30)) !important;
}

.community-search-box-main input {
  width: 100% !important;
  min-width: 0 !important;
  height: 54px !important;
  min-height: 54px !important;
  padding: 0 1rem 0 3rem !important;
  border: 1px solid rgba(120, 255, 245, 0.22) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(135deg, rgba(120, 255, 245, 0.08), rgba(153, 87, 255, 0.04)),
    rgba(2, 6, 18, 0.72) !important;
  color: var(--text-main, #eef7ff) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  outline: none !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 10px 28px rgba(0, 0, 0, 0.16) !important;
}

.community-search-box-main input::placeholder {
  color: rgba(235, 245, 255, 0.48) !important;
  font-weight: 600 !important;
}

.community-search-box-main input:focus {
  border-color: rgba(120, 255, 245, 0.55) !important;
  box-shadow:
    0 0 0 4px rgba(120, 255, 245, 0.10),
    0 0 34px rgba(120, 255, 245, 0.12) !important;
}

/* Botón filtros como pieza de UI, no botón suelto croto */
.community-filter-toggle {
  min-width: 170px !important;
  height: 54px !important;
  min-height: 54px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(120, 255, 245, 0.28) !important;
  background:
    linear-gradient(135deg, rgba(120, 255, 245, 0.09), rgba(153, 87, 255, 0.08)),
    rgba(2, 6, 18, 0.62) !important;
  color: var(--accent, #77f7ff) !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18) !important;
}

.community-filter-toggle i,
.community-filter-toggle span {
  color: inherit !important;
}

.community-filter-toggle:hover,
.community-filter-toggle.active {
  border-color: rgba(120, 255, 245, 0.48) !important;
  background:
    linear-gradient(135deg, rgba(120, 255, 245, 0.16), rgba(153, 87, 255, 0.12)),
    rgba(2, 6, 18, 0.72) !important;
  transform: translateY(-1px) !important;
}

/* Panel desplegado de filtros */
.community-filters-panel:not(.is-collapsed) {
  margin-top: 0 !important;
  padding: 1rem !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at top left, rgba(120, 255, 245, 0.08), transparent 34%),
    rgba(11, 16, 30, 0.66) !important;
  border: 1px solid rgba(120, 255, 245, 0.16) !important;
}

/* Modo claro: azul/violeta legible */
html[data-theme="light"] .community-top-controls {
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.08), transparent 34%),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.86) !important;
  border-color: rgba(79, 70, 229, 0.15) !important;
  box-shadow: 0 18px 48px rgba(70, 45, 120, 0.11) !important;
}

html[data-theme="light"] .community-search-box-main i {
  color: #4f46e5 !important;
  filter: none !important;
}

html[data-theme="light"] .community-search-box-main input {
  background:
    linear-gradient(135deg, rgba(79, 70, 229, 0.055), rgba(124, 58, 237, 0.045)),
    rgba(255, 255, 255, 0.92) !important;
  color: #201735 !important;
  border-color: rgba(79, 70, 229, 0.20) !important;
  box-shadow: 0 10px 24px rgba(70, 45, 120, 0.08) !important;
}

html[data-theme="light"] .community-search-box-main input::placeholder {
  color: rgba(32, 23, 53, 0.48) !important;
}

html[data-theme="light"] .community-search-box-main input:focus {
  border-color: rgba(79, 70, 229, 0.44) !important;
  box-shadow:
    0 0 0 4px rgba(79, 70, 229, 0.10),
    0 12px 28px rgba(70, 45, 120, 0.10) !important;
}

html[data-theme="light"] .community-filter-toggle {
  color: #312e81 !important;
  background:
    linear-gradient(135deg, rgba(79, 70, 229, 0.09), rgba(124, 58, 237, 0.075)),
    rgba(255, 255, 255, 0.90) !important;
  border-color: rgba(79, 70, 229, 0.22) !important;
  box-shadow: 0 10px 24px rgba(70, 45, 120, 0.09) !important;
}

html[data-theme="light"] .community-filter-toggle:hover,
html[data-theme="light"] .community-filter-toggle.active {
  color: #1e1b4b !important;
  background: rgba(224, 231, 255, 0.96) !important;
  border-color: rgba(79, 70, 229, 0.34) !important;
}

html[data-theme="light"] .community-filters-panel:not(.is-collapsed) {
  background: rgba(255, 255, 255, 0.86) !important;
  border-color: rgba(79, 70, 229, 0.15) !important;
}

/* Mobile: que no parezca input huérfano */
@media (max-width: 680px) {
  .community-top-controls {
    grid-template-columns: 1fr !important;
    padding: 0.8rem !important;
    border-radius: 22px !important;
  }

  .community-search-box-main,
  .community-search-box-main input,
  .community-filter-toggle {
    width: 100% !important;
  }

  .community-search-box-main input,
  .community-filter-toggle {
    height: 56px !important;
    min-height: 56px !important;
    border-radius: 18px !important;
  }

  .community-filter-toggle {
    min-width: 0 !important;
  }
}

/* === Pelusita Mobile Sidebar Dock 20260620 === */

/*
  En mobile Pelusita no puede quedar enterrada abajo del menú.
  La dejamos como dock fijo dentro de la sidebar, visible al abrir el panel.
*/

@media (max-width: 860px) {
  .sidebar-v2 {
    position: fixed;
    overflow-y: auto;
    padding-bottom: 128px !important;
  }

  .sidebar-v2-pelusita-dock {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 12 !important;
    display: grid !important;
    place-items: center !important;
    min-height: 96px !important;
    margin-top: 1rem !important;
    padding: 0.55rem 0.5rem 0.8rem !important;
    background:
      linear-gradient(to top, rgba(3, 5, 18, 0.98), rgba(3, 5, 18, 0.84), rgba(3, 5, 18, 0)) !important;
    border-top: 1px solid rgba(120, 255, 245, 0.10) !important;
    pointer-events: auto !important;
  }

  .pelusita-sidebar-docked {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: grid !important;
    place-items: center !important;
  }

  .pelusita-sidebar-docked img,
  .pelusita-sidebar-docked .pelusita-img,
  .pelusita-sidebar-docked .pelusita-avatar,
  .pelusita-sidebar-docked canvas {
    max-width: 82px !important;
    max-height: 82px !important;
    object-fit: contain !important;
  }

  .pelusita-sidebar-docked .pelusita-label,
  .pelusita-sidebar-docked .pelusita-tooltip,
  .pelusita-sidebar-docked .pelusita-bubble {
    display: none !important;
  }

  html[data-theme="light"] .sidebar-v2-pelusita-dock {
    background:
      linear-gradient(to top, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0)) !important;
    border-top-color: rgba(79, 70, 229, 0.12) !important;
  }
}

@media (max-width: 520px) {
  .sidebar-v2 {
    padding-bottom: 112px !important;
  }

  .sidebar-v2-pelusita-dock {
    min-height: 86px !important;
    padding-bottom: 0.65rem !important;
  }

  .pelusita-sidebar-docked img,
  .pelusita-sidebar-docked .pelusita-img,
  .pelusita-sidebar-docked .pelusita-avatar,
  .pelusita-sidebar-docked canvas {
    max-width: 74px !important;
    max-height: 74px !important;
  }
}

/* === Classroom Sound Toggle 20260620 === */

.sound-toggle {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(153, 87, 255, 0.36);
  background:
    radial-gradient(circle at top left, rgba(120, 255, 245, 0.12), transparent 38%),
    rgba(11, 16, 30, 0.72);
  color: var(--text-main, #eef7ff);
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.sound-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(120, 255, 245, 0.48);
  background:
    radial-gradient(circle at top left, rgba(120, 255, 245, 0.18), transparent 40%),
    rgba(17, 24, 42, 0.86);
}

.sound-toggle i {
  font-size: 1.05rem;
  color: inherit;
}

.sound-toggle.is-muted {
  color: #ff9bad;
  border-color: rgba(255, 94, 123, 0.30);
  background:
    radial-gradient(circle at top left, rgba(255, 94, 123, 0.13), transparent 38%),
    rgba(11, 16, 30, 0.72);
}

html[data-theme="light"] .sound-toggle {
  background: rgba(255, 255, 255, 0.92);
  color: #312e81;
  border-color: rgba(79, 70, 229, 0.18);
  box-shadow: 0 10px 28px rgba(70, 45, 120, 0.10);
}

html[data-theme="light"] .sound-toggle:hover {
  background: rgba(238, 242, 255, 0.96);
  border-color: rgba(79, 70, 229, 0.32);
  color: #1e1b4b;
}

html[data-theme="light"] .sound-toggle.is-muted {
  color: #be123c;
  background: rgba(255, 241, 242, 0.94);
  border-color: rgba(225, 29, 72, 0.22);
}

@media (max-width: 620px) {
  .sound-toggle {
    width: 42px;
    height: 42px;
  }
}

/* === Comunidad Filters Toggle Fix 20260620 === */

/* Estado cerrado */
.community-filters-panel.is-collapsed {
  display: none !important;
}

/* Estado abierto */
.community-filters-panel:not(.is-collapsed) {
  display: grid !important;
  max-height: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
  border-width: 1px !important;
  padding: 1rem !important;
}

/* Que los hijos no queden ocultos por una regla anterior */
.community-filters-panel:not(.is-collapsed) > * {
  visibility: visible !important;
}

/* Desktop: filtros en fila prolija */
@media (min-width: 920px) {
  .community-filters-panel:not(.is-collapsed) {
    grid-template-columns: 1.2fr repeat(3, minmax(170px, 1fr)) !important;
    gap: 0.95rem !important;
    align-items: end !important;
  }

  .community-filters-panel:not(.is-collapsed) .community-mini-stats {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Mobile: filtros abajo del botón, pero no invasivos */
@media (max-width: 919px) {
  .community-filters-panel:not(.is-collapsed) {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }
}

/* === Comunidad Filters Front Layer Fix 20260620 === */

.community-main-area {
  position: relative;
  z-index: 2;
}

.community-top-controls {
  position: relative;
  z-index: 8;
}

.community-filters-panel {
  position: relative !important;
  z-index: 12 !important;
  margin-top: 0.85rem !important;
  order: initial !important;
}

.community-filters-panel.is-collapsed {
  display: none !important;
}

.community-filters-panel:not(.is-collapsed) {
  display: grid !important;
  position: relative !important;
  z-index: 20 !important;
  max-height: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
  margin-top: 0.85rem !important;
  margin-bottom: 0.3rem !important;
  padding: 1rem !important;
  border-radius: 24px !important;
  border: 1px solid rgba(120, 255, 245, 0.18) !important;
  background:
    radial-gradient(circle at top left, rgba(120, 255, 245, 0.08), transparent 34%),
    radial-gradient(circle at top right, rgba(153, 87, 255, 0.08), transparent 36%),
    rgba(11, 16, 30, 0.78) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22) !important;
}

.community-filters-panel:not(.is-collapsed) > * {
  visibility: visible !important;
}

.community-list,
.community-toolbar,
.community-empty {
  position: relative;
  z-index: 1;
}

@media (min-width: 920px) {
  .community-filters-panel:not(.is-collapsed) {
    grid-template-columns: 1.15fr repeat(3, minmax(170px, 1fr)) !important;
    gap: 0.95rem !important;
    align-items: end !important;
  }

  .community-filters-panel:not(.is-collapsed) .community-mini-stats {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 919px) {
  .community-filters-panel:not(.is-collapsed) {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }
}

html[data-theme="light"] .community-filters-panel:not(.is-collapsed) {
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.06), transparent 34%),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.06), transparent 36%),
    rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(79, 70, 229, 0.16) !important;
  box-shadow: 0 16px 40px rgba(70, 45, 120, 0.12) !important;
}

/* === Comunidad Desktop Filters Layout Fix 20260620 === */

/*
  Desktop:
  - buscador + botón en una barra superior prolija
  - panel de filtros debajo en ancho completo
  - publicaciones debajo
*/

.community-main-area {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
  align-items: stretch !important;
}

.community-top-controls {
  display: grid !important;
  grid-template-columns: minmax(360px, 1fr) auto !important;
  gap: 0.85rem !important;
  align-items: center !important;
  width: 100% !important;
  max-width: none !important;
}

.community-search-box-main {
  width: 100% !important;
  max-width: none !important;
}

.community-search-box-main input {
  width: 100% !important;
  max-width: none !important;
}

.community-filter-toggle {
  width: auto !important;
  min-width: 190px !important;
  justify-content: center !important;
}

/* El panel abierto siempre va debajo de la barra, ocupando todo el ancho */
.community-filters-panel {
  width: 100% !important;
  max-width: none !important;
  grid-column: 1 / -1 !important;
}

.community-filters-panel:not(.is-collapsed) {
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  grid-column: 1 / -1 !important;
}

/* Desktop: header pequeño + tres selects + stats abajo */
@media (min-width: 920px) {
  .community-filters-panel:not(.is-collapsed) {
    grid-template-columns: minmax(180px, 0.85fr) repeat(3, minmax(190px, 1fr)) !important;
    gap: 1rem !important;
    align-items: end !important;
  }

  .community-filters-panel:not(.is-collapsed) .panel-header {
    align-self: center !important;
    margin: 0 !important;
  }

  .community-filters-panel:not(.is-collapsed) .community-filter-group {
    margin: 0 !important;
  }

  .community-filters-panel:not(.is-collapsed) .community-mini-stats {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
    margin-top: 0.2rem !important;
  }
}

/* Toolbar de hilos separada del panel */
.community-toolbar {
  margin-top: 0.25rem !important;
}

/* Desktop grande: que no quede todo pegado a los bordes */
@media (min-width: 1200px) {
  .community-top-controls,
  .community-filters-panel:not(.is-collapsed),
  .community-toolbar,
  .community-list,
  .community-empty {
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
  }
}

/* Mobile/tablet: apilado limpio */
@media (max-width: 919px) {
  .community-top-controls {
    grid-template-columns: 1fr !important;
  }

  .community-filter-toggle {
    width: 100% !important;
    min-width: 0 !important;
  }

  .community-filters-panel:not(.is-collapsed) {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .community-filters-panel:not(.is-collapsed) .community-filter-group {
    margin-top: 0 !important;
  }
}

/* === Comunidad Hero Filters Spacing 20260620 === */

/* Separación visual entre el hero de Comunidad y la barra de búsqueda/filtros */
.page-community .community-main-area {
  margin-top: 1.35rem !important;
}

/* En desktop grande le damos un poco más de aire */
@media (min-width: 920px) {
  .page-community .community-main-area {
    margin-top: 1.65rem !important;
  }
}

/* En mobile un poco menos para no robar pantalla */
@media (max-width: 680px) {
  .page-community .community-main-area {
    margin-top: 1rem !important;
  }
}

/* === Clases Mobile Header Description Fix 20260620 === */

/* La descripción larga de Clases vive en el hero, no en el topbar */
.page-lead {
  max-width: 760px;
}

/* En la página de clases evitamos que el topbar se coma media pantalla en mobile */
@media (max-width: 760px) {
  .topbar .page-lead {
    display: none !important;
  }

  .classes-hero .hero-copy h2 {
    font-size: clamp(2rem, 11vw, 3.2rem) !important;
    line-height: 1.02 !important;
  }

  .classes-hero .hero-copy h2 span {
    display: block !important;
    margin-top: 0.35rem !important;
    font-size: 0.48em !important;
    line-height: 1.1 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .classes-hero .hero-copy p {
    max-width: 100% !important;
    margin-top: 0.85rem !important;
    font-size: 1rem !important;
    line-height: 1.55 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .classes-hero {
    padding-top: 1.1rem !important;
  }
}

@media (max-width: 430px) {
  .classes-hero .hero-copy h2 {
    font-size: clamp(1.75rem, 10vw, 2.5rem) !important;
  }

  .classes-hero .hero-copy p {
    font-size: 0.96rem !important;
    line-height: 1.5 !important;
  }
}

/* === Notifications Broom Clear Button 20260620 === */

.notifications-panel-footer-v2 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) 42px !important;
  align-items: center;
}

.notifications-clear-all-icon {
  grid-column: auto !important;
  width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  display: inline-grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 94, 123, 0.24) !important;
  border-radius: 14px !important;
  background: rgba(255, 94, 123, 0.08) !important;
  color: #ff9bad !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
}

.notifications-clear-all-icon:hover {
  background: rgba(255, 94, 123, 0.15) !important;
  border-color: rgba(255, 94, 123, 0.36) !important;
  color: #ffc0cc !important;
  transform: translateY(-1px);
}

.notifications-clear-all-icon i {
  color: inherit !important;
}

html[data-theme="light"] .notifications-clear-all-icon {
  background: rgba(255, 241, 242, 0.94) !important;
  border-color: rgba(225, 29, 72, 0.22) !important;
  color: #be123c !important;
}

html[data-theme="light"] .notifications-clear-all-icon:hover {
  background: rgba(255, 228, 230, 0.98) !important;
  border-color: rgba(225, 29, 72, 0.32) !important;
  color: #9f1239 !important;
}

@media (max-width: 520px) {
  .notifications-panel-footer-v2 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 42px !important;
  }

  .notifications-clear-all-icon {
    width: 38px !important;
    justify-self: end !important;
  }
}

@media (max-width: 390px) {
  .notifications-panel-footer-v2 {
    grid-template-columns: 1fr 1fr !important;
  }

  .notifications-clear-all-icon {
    width: 100% !important;
    justify-self: stretch !important;
  }
}

/* === Notifications Individual Actions Final 20260621 === */

.notification-item {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr);
  padding-right: 2.75rem !important;
}

.notification-content {
  min-width: 0;
}

.notification-delete-btn {
  position: absolute;
  top: 0.62rem;
  right: 0.62rem;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 94, 123, 0.24);
  border-radius: 11px;
  background: rgba(255, 94, 123, 0.08);
  color: #ff9bad;
  cursor: pointer;
  opacity: 0.88;
}

.notification-delete-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
  background: rgba(255, 94, 123, 0.16);
  border-color: rgba(255, 94, 123, 0.40);
}

.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.notification-action-btn {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border: 1px solid rgba(120, 255, 245, 0.18);
  border-radius: 999px;
  background: rgba(120, 255, 245, 0.07);
  color: var(--accent, #77f7ff);
  padding: 0.32rem 0.62rem;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.notification-action-btn:hover {
  border-color: rgba(120, 255, 245, 0.34);
  background: rgba(120, 255, 245, 0.12);
}

.notifications-panel-footer-v2 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) 42px !important;
  align-items: center;
}

.notifications-clear-all-icon {
  width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  display: inline-grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 94, 123, 0.24) !important;
  border-radius: 14px !important;
  background: rgba(255, 94, 123, 0.08) !important;
  color: #ff9bad !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
}

.notifications-clear-all-icon:hover {
  background: rgba(255, 94, 123, 0.15) !important;
  border-color: rgba(255, 94, 123, 0.36) !important;
  color: #ffc0cc !important;
  transform: translateY(-1px);
}

.notifications-clear-all-icon i {
  color: inherit !important;
}

html[data-theme="light"] .notification-delete-btn,
html[data-theme="light"] .notifications-clear-all-icon {
  background: rgba(255, 241, 242, 0.94) !important;
  border-color: rgba(225, 29, 72, 0.22) !important;
  color: #be123c !important;
}

html[data-theme="light"] .notification-delete-btn:hover,
html[data-theme="light"] .notifications-clear-all-icon:hover {
  background: rgba(255, 228, 230, 0.98) !important;
  border-color: rgba(225, 29, 72, 0.32) !important;
  color: #9f1239 !important;
}

html[data-theme="light"] .notification-action-btn {
  background: rgba(224, 231, 255, 0.72);
  border-color: rgba(79, 70, 229, 0.20);
  color: #312e81;
}

html[data-theme="light"] .notification-action-btn:hover {
  background: rgba(224, 231, 255, 0.96);
  border-color: rgba(79, 70, 229, 0.32);
  color: #1e1b4b;
}

@media (max-width: 520px) {
  .notification-item {
    padding-right: 2.45rem !important;
  }

  .notification-delete-btn {
    width: 28px;
    height: 28px;
    top: 0.55rem;
    right: 0.55rem;
  }

  .notification-action-btn {
    width: 100%;
    justify-content: center;
  }

  .notifications-panel-footer-v2 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 42px !important;
  }
}

@media (max-width: 390px) {
  .notifications-panel-footer-v2 {
    grid-template-columns: 1fr 1fr !important;
  }

  .notifications-clear-all-icon {
    width: 100% !important;
  }
}

/* === Home CMD Terminal Feed FORCED 20260621 === */

.home-terminal-feed-section {
  margin-top: 1.15rem;
}

.home-terminal-feed {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(120, 255, 245, 0.18);
  border-radius: 26px;
  padding: 1rem;
  background:
    linear-gradient(rgba(120, 255, 245, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 255, 245, 0.025) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(0, 229, 255, 0.12), transparent 34%),
    radial-gradient(circle at bottom right, rgba(159, 92, 255, 0.14), transparent 38%),
    rgba(3, 8, 20, 0.96);
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    inset 0 0 34px rgba(0, 229, 255, 0.035);
  font-family: "Roboto Mono", "Consolas", "Courier New", monospace;
}

.home-terminal-feed::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(120, 255, 245, 0.035), transparent);
  opacity: 0.72;
  transform: translateY(-70%);
  animation: terminalScan 7s linear infinite;
}

@keyframes terminalScan {
  to {
    transform: translateY(70%);
  }
}

.home-terminal-feed-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0.25rem 0.85rem;
  border-bottom: 1px solid rgba(120, 255, 245, 0.11);
  margin-bottom: 1rem;
}

.home-terminal-window {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.home-terminal-dots {
  display: flex;
  gap: 0.42rem;
}

.home-terminal-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: 0 0 15px currentColor;
}

.home-terminal-dots span:nth-child(1) {
  background: #ff5f57;
  color: #ff5f57;
}

.home-terminal-dots span:nth-child(2) {
  background: #febb2e;
  color: #febb2e;
}

.home-terminal-dots span:nth-child(3) {
  background: #28c840;
  color: #28c840;
}

.home-terminal-title,
.home-terminal-path,
.home-terminal-status,
.home-terminal-prompt,
.home-terminal-tags span,
.home-terminal-entry small {
  font-family: "Roboto Mono", "Consolas", "Courier New", monospace;
}

.home-terminal-title {
  color: rgba(235, 245, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.home-terminal-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.home-terminal-path {
  color: rgba(235, 245, 255, 0.62);
  font-size: 0.78rem;
}

.home-terminal-status {
  padding: 0.22rem 0.58rem;
  border: 1px solid rgba(120, 255, 245, 0.18);
  border-radius: 999px;
  background: rgba(120, 255, 245, 0.08);
  color: #78fff5;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-terminal-feed-head {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

.home-terminal-feed-head h3 {
  margin: 0.15rem 0 0.35rem;
  color: #eaf7ff;
  font-family: "Roboto Mono", "Consolas", "Courier New", monospace;
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
  line-height: 1.14;
  text-shadow: 0 0 16px rgba(120, 255, 245, 0.18);
}

.home-terminal-feed-head p:last-child {
  max-width: 920px;
  margin: 0;
  color: rgba(220, 235, 255, 0.70);
  font-size: 0.95rem;
  line-height: 1.6;
}

.home-terminal-console {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.8rem;
}

.home-terminal-entry {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  border: 1px solid rgba(120, 255, 245, 0.11);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.055), rgba(159, 92, 255, 0.045)),
    rgba(6, 13, 29, 0.78);
}

.home-terminal-entry.is-highlight {
  border-color: rgba(120, 255, 245, 0.22);
  box-shadow:
    0 0 0 1px rgba(120, 255, 245, 0.045),
    0 16px 34px rgba(0, 0, 0, 0.18);
}

.home-terminal-entry.is-muted {
  opacity: 0.9;
}

.home-terminal-prompt {
  color: #78fff5;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(120, 255, 245, 0.24);
}

.home-terminal-entry-body {
  min-width: 0;
}

.home-terminal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-bottom: 0.45rem;
}

.home-terminal-tags span {
  padding: 0.18rem 0.48rem;
  border: 1px solid rgba(120, 255, 245, 0.16);
  border-radius: 999px;
  background: rgba(120, 255, 245, 0.08);
  color: #78fff5;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.home-terminal-entry h4 {
  margin: 0 0 0.35rem;
  color: #f0f8ff;
  font-size: 1rem;
  line-height: 1.28;
  font-weight: 800;
}

.home-terminal-entry p {
  margin: 0;
  color: rgba(220, 235, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.58;
}

.home-terminal-entry small {
  display: inline-block;
  margin-top: 0.55rem;
  color: rgba(120, 255, 245, 0.66);
  font-size: 0.72rem;
  font-weight: 700;
}

html[data-theme="light"] .home-terminal-feed {
  background:
    linear-gradient(rgba(79, 70, 229, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.025) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 34%),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.10), transparent 38%),
    rgba(255, 255, 255, 0.94);
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
  border-color: rgba(79, 70, 229, 0.16);
  box-shadow: 0 18px 42px rgba(50, 35, 90, 0.10);
}

html[data-theme="light"] .home-terminal-feed-top {
  border-bottom-color: rgba(79, 70, 229, 0.12);
}

html[data-theme="light"] .home-terminal-title,
html[data-theme="light"] .home-terminal-path {
  color: rgba(32, 23, 53, 0.68);
}

html[data-theme="light"] .home-terminal-feed-head h3,
html[data-theme="light"] .home-terminal-entry h4 {
  color: #201735;
  text-shadow: none;
}

html[data-theme="light"] .home-terminal-feed-head p:last-child,
html[data-theme="light"] .home-terminal-entry p {
  color: rgba(32, 23, 53, 0.70);
}

html[data-theme="light"] .home-terminal-status,
html[data-theme="light"] .home-terminal-tags span {
  color: #4f46e5;
  border-color: rgba(79, 70, 229, 0.18);
  background: rgba(79, 70, 229, 0.07);
}

html[data-theme="light"] .home-terminal-prompt {
  color: #2563eb;
  text-shadow: none;
}

html[data-theme="light"] .home-terminal-entry {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.045), rgba(124, 58, 237, 0.04)),
    rgba(255, 255, 255, 0.78);
  border-color: rgba(79, 70, 229, 0.12);
}

html[data-theme="light"] .home-terminal-entry small {
  color: rgba(79, 70, 229, 0.62);
}

@media (max-width: 860px) {
  .home-terminal-feed {
    padding: 0.9rem;
    border-radius: 22px;
  }

  .home-terminal-feed-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-terminal-meta {
    justify-content: flex-start;
  }

  .home-terminal-entry {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (max-width: 520px) {
  .home-terminal-title,
  .home-terminal-path {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .home-terminal-feed-head h3 {
    font-size: 1.32rem;
  }

  .home-terminal-feed-head p:last-child,
  .home-terminal-entry p {
    font-size: 0.9rem;
  }

  .home-terminal-entry {
    padding: 0.82rem;
  }
}

/* === Home Avisos Novedades Title 20260621 === */

.home-terminal-feed-head h3#homeTerminalFeedTitle {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #78fff5;
}

.home-terminal-title {
  text-transform: none;
}

html[data-theme="light"] .home-terminal-feed-head h3#homeTerminalFeedTitle {
  color: #2563eb;
}

/* === Data Change Requests 20260621 === */

/* Perfil */
.profile-change-request-panel {
  margin-top: 1rem;
  border-color: rgba(255, 94, 123, 0.22) !important;
  background:
    radial-gradient(circle at top left, rgba(255, 94, 123, 0.10), transparent 34%),
    radial-gradient(circle at bottom right, rgba(153, 87, 255, 0.10), transparent 42%),
    rgba(10, 12, 28, 0.78) !important;
}

.profile-change-request-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.profile-change-request-head h3 {
  margin: 0.15rem 0 0.35rem;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.profile-change-request-head p {
  margin: 0;
  color: rgba(230, 240, 255, 0.72);
  line-height: 1.55;
}

.profile-change-request-toggle {
  white-space: nowrap;
}

.profile-change-request-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.profile-change-request-form[hidden] {
  display: none !important;
}

.profile-change-request-form label {
  color: rgba(245, 248, 255, 0.92);
  font-weight: 800;
}

.profile-change-request-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 130px;
  border: 1px solid rgba(120, 255, 245, 0.18);
  border-radius: 18px;
  background: rgba(4, 8, 20, 0.64);
  color: rgba(245, 248, 255, 0.94);
  padding: 0.9rem 1rem;
  font: inherit;
  line-height: 1.5;
  outline: none;
}

.profile-change-request-form textarea:focus {
  border-color: rgba(120, 255, 245, 0.42);
  box-shadow: 0 0 0 3px rgba(120, 255, 245, 0.08);
}

.profile-change-request-help {
  margin: 0;
  color: rgba(230, 240, 255, 0.60);
  font-size: 0.92rem;
}

.profile-change-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Alumnos admin */
.admin-data-change-panel {
  margin-bottom: 1rem;
  border-color: rgba(255, 71, 104, 0.34) !important;
  background:
    radial-gradient(circle at top left, rgba(255, 71, 104, 0.12), transparent 34%),
    radial-gradient(circle at bottom right, rgba(153, 87, 255, 0.10), transparent 42%),
    rgba(14, 8, 22, 0.86) !important;
  box-shadow:
    0 18px 46px rgba(255, 71, 104, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.admin-data-change-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-data-change-head h2 {
  margin: 0.15rem 0 0.35rem;
}

.admin-data-change-head p {
  margin: 0;
  color: rgba(230, 240, 255, 0.68);
}

.eyebrow.danger {
  color: #ff6b8a !important;
}

.admin-data-change-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 71, 104, 0.36);
  background: rgba(255, 71, 104, 0.12);
  color: #ff9bad;
  font-weight: 900;
  white-space: nowrap;
}

.admin-data-change-list {
  display: grid;
  gap: 0.75rem;
}

.admin-data-change-empty {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(230, 240, 255, 0.66);
  padding: 0.8rem;
  border: 1px dashed rgba(120, 255, 245, 0.16);
  border-radius: 16px;
}

.admin-data-change-empty i {
  color: #78fff5;
}

.admin-data-change-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 71, 104, 0.22);
  background: rgba(7, 10, 24, 0.68);
}

.admin-data-change-item.is-resolved {
  border-color: rgba(52, 211, 153, 0.22);
  opacity: 0.82;
}

.admin-data-change-alert {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 71, 104, 0.14);
  color: #ff6b8a;
}

.admin-data-change-item.is-resolved .admin-data-change-alert {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
}

.admin-data-change-titleline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.admin-data-change-titleline strong {
  font-size: 1rem;
}

.admin-data-change-titleline span {
  color: #ff9bad;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.admin-data-change-item.is-resolved .admin-data-change-titleline span {
  color: #34d399;
}

.admin-data-change-body p {
  margin: 0;
  color: rgba(245, 248, 255, 0.84);
  line-height: 1.55;
  white-space: pre-wrap;
}

.admin-data-change-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.admin-data-change-meta span {
  border: 1px solid rgba(120, 255, 245, 0.12);
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  color: rgba(230, 240, 255, 0.70);
  font-size: 0.78rem;
}

.admin-data-change-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.admin-data-change-actions button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border: 1px solid rgba(120, 255, 245, 0.18);
  border-radius: 999px;
  background: rgba(120, 255, 245, 0.07);
  color: #78fff5;
  padding: 0.32rem 0.68rem;
  font-weight: 850;
  cursor: pointer;
}

.admin-data-change-actions button.danger {
  border-color: rgba(255, 71, 104, 0.24);
  background: rgba(255, 71, 104, 0.08);
  color: #ff9bad;
}

/* Notificación roja */
.notification-item.is-danger {
  border-color: rgba(255, 71, 104, 0.30) !important;
  background:
    radial-gradient(circle at top left, rgba(255, 71, 104, 0.10), transparent 40%),
    rgba(20, 8, 20, 0.86) !important;
}

.notification-item.is-danger .notification-icon {
  background: rgba(255, 71, 104, 0.16) !important;
  color: #ff6b8a !important;
}

/* Light mode */
html[data-theme="light"] .profile-change-request-panel,
html[data-theme="light"] .admin-data-change-panel {
  background:
    radial-gradient(circle at top left, rgba(225, 29, 72, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.94) !important;
}

html[data-theme="light"] .profile-change-request-head p,
html[data-theme="light"] .admin-data-change-head p,
html[data-theme="light"] .profile-change-request-help,
html[data-theme="light"] .admin-data-change-body p {
  color: rgba(32, 23, 53, 0.72);
}

html[data-theme="light"] .profile-change-request-form label {
  color: #201735;
}

html[data-theme="light"] .profile-change-request-form textarea {
  background: rgba(255, 255, 255, 0.88);
  color: #201735;
  border-color: rgba(79, 70, 229, 0.16);
}

html[data-theme="light"] .admin-data-change-item {
  background: rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] .admin-data-change-meta span {
  color: rgba(32, 23, 53, 0.66);
  border-color: rgba(79, 70, 229, 0.14);
}

html[data-theme="light"] .notification-item.is-danger {
  background:
    radial-gradient(circle at top left, rgba(225, 29, 72, 0.08), transparent 40%),
    rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(225, 29, 72, 0.22) !important;
}

@media (max-width: 720px) {
  .profile-change-request-head,
  .admin-data-change-head,
  .admin-data-change-titleline {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-change-request-toggle {
    width: 100%;
    justify-content: center;
  }

  .admin-data-change-item {
    grid-template-columns: 1fr;
  }
}

/* === Profile Data Change Placement V2 20260621 === */

/* Card de información registrada con acción arriba a la derecha */
.profile-info-panel-with-change-action {
  position: relative;
}

.profile-info-change-action-host {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.profile-change-request-top-button {
  margin-left: auto;
  white-space: nowrap;
  min-height: 40px;
  border-color: rgba(255, 94, 123, 0.30) !important;
  background:
    linear-gradient(135deg, rgba(255, 94, 123, 0.10), rgba(153, 87, 255, 0.10)) !important;
  color: #ffb4c2 !important;
  box-shadow: 0 10px 24px rgba(255, 94, 123, 0.08);
}

.profile-change-request-top-button:hover {
  border-color: rgba(255, 94, 123, 0.48) !important;
  background:
    linear-gradient(135deg, rgba(255, 94, 123, 0.16), rgba(153, 87, 255, 0.15)) !important;
  color: #ffd5de !important;
}

/* Ocultamos el botón viejo dentro de la card completa para que no duplique */
.profile-change-request-old-toggle-hidden {
  display: none !important;
}

/* La card completa existe, pero aparece solo al abrir */
.profile-change-request-panel {
  display: none;
  animation: profileChangeRequestIn 0.22s ease both;
}

.profile-change-request-panel.is-open {
  display: block;
}

/* Mantenemos la card linda, pero como formulario desplegable debajo de Información registrada */
.profile-change-request-panel .profile-change-request-head {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0.9rem;
}

.profile-change-request-panel .profile-change-request-head > div {
  max-width: 920px;
}

.profile-change-request-panel .profile-change-request-head h3::before {
  content: "Solicitud de corrección";
  display: block;
  margin-bottom: 0.28rem;
  color: #ff7d99;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: "Orbitron", sans-serif;
}

.profile-change-request-panel .profile-change-request-form {
  margin-top: 0;
}

@keyframes profileChangeRequestIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modo claro */
html[data-theme="light"] .profile-change-request-top-button {
  border-color: rgba(225, 29, 72, 0.22) !important;
  background:
    linear-gradient(135deg, rgba(225, 29, 72, 0.08), rgba(124, 58, 237, 0.08)) !important;
  color: #be123c !important;
}

html[data-theme="light"] .profile-change-request-top-button:hover {
  border-color: rgba(225, 29, 72, 0.34) !important;
  background:
    linear-gradient(135deg, rgba(225, 29, 72, 0.12), rgba(124, 58, 237, 0.12)) !important;
  color: #9f1239 !important;
}

html[data-theme="light"] .profile-change-request-panel .profile-change-request-head {
  border-bottom-color: rgba(32, 23, 53, 0.08);
}

/* Mobile */
@media (max-width: 760px) {
  .profile-info-change-action-host {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-change-request-top-button {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
}

/* === Pelusita Light Mode Dialogs Definitive Fix 20260621 === */

/*
  Fix definitivo:
  En modo claro, cualquier globo/card/dialog de Pelusita debe pasar a superficie clara.
  Esto pisa estilos viejos que quedaban oscuros por gradientes globales o componentes legacy.
*/

html[data-theme="light"] .pelusita-dialog,
html[data-theme="light"] .pelusita-dialog-card,
html[data-theme="light"] .pelusita-dialog-panel,
html[data-theme="light"] .pelusita-dialog-box,
html[data-theme="light"] .pelusita-bubble,
html[data-theme="light"] .pelusita-message,
html[data-theme="light"] .pelusita-tooltip,
html[data-theme="light"] .pelusita-popover,
html[data-theme="light"] .pelusita-chat,
html[data-theme="light"] .pelusita-chatbox,
html[data-theme="light"] .pelusita-speech,
html[data-theme="light"] .pelusita-speech-bubble,
html[data-theme="light"] [class*="pelusita"][class*="dialog"],
html[data-theme="light"] [class*="pelusita"][class*="bubble"],
html[data-theme="light"] [class*="pelusita"][class*="message"],
html[data-theme="light"] [class*="pelusita"][class*="tooltip"],
html[data-theme="light"] [class*="pelusita"][class*="popover"] {
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.08), transparent 34%),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(79, 70, 229, 0.18) !important;
  color: #201735 !important;
  box-shadow:
    0 18px 44px rgba(50, 35, 90, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(18px);
}

/* Texto interno */
html[data-theme="light"] .pelusita-dialog *,
html[data-theme="light"] .pelusita-dialog-card *,
html[data-theme="light"] .pelusita-dialog-panel *,
html[data-theme="light"] .pelusita-dialog-box *,
html[data-theme="light"] .pelusita-bubble *,
html[data-theme="light"] .pelusita-message *,
html[data-theme="light"] .pelusita-tooltip *,
html[data-theme="light"] .pelusita-popover *,
html[data-theme="light"] .pelusita-chat *,
html[data-theme="light"] .pelusita-chatbox *,
html[data-theme="light"] .pelusita-speech *,
html[data-theme="light"] .pelusita-speech-bubble *,
html[data-theme="light"] [class*="pelusita"][class*="dialog"] *,
html[data-theme="light"] [class*="pelusita"][class*="bubble"] *,
html[data-theme="light"] [class*="pelusita"][class*="message"] *,
html[data-theme="light"] [class*="pelusita"][class*="tooltip"] *,
html[data-theme="light"] [class*="pelusita"][class*="popover"] * {
  color: inherit;
}

/* Títulos / strong */
html[data-theme="light"] .pelusita-dialog h1,
html[data-theme="light"] .pelusita-dialog h2,
html[data-theme="light"] .pelusita-dialog h3,
html[data-theme="light"] .pelusita-dialog h4,
html[data-theme="light"] .pelusita-dialog strong,
html[data-theme="light"] .pelusita-bubble h1,
html[data-theme="light"] .pelusita-bubble h2,
html[data-theme="light"] .pelusita-bubble h3,
html[data-theme="light"] .pelusita-bubble h4,
html[data-theme="light"] .pelusita-bubble strong,
html[data-theme="light"] [class*="pelusita"][class*="dialog"] h1,
html[data-theme="light"] [class*="pelusita"][class*="dialog"] h2,
html[data-theme="light"] [class*="pelusita"][class*="dialog"] h3,
html[data-theme="light"] [class*="pelusita"][class*="dialog"] h4,
html[data-theme="light"] [class*="pelusita"][class*="dialog"] strong,
html[data-theme="light"] [class*="pelusita"][class*="bubble"] h1,
html[data-theme="light"] [class*="pelusita"][class*="bubble"] h2,
html[data-theme="light"] [class*="pelusita"][class*="bubble"] h3,
html[data-theme="light"] [class*="pelusita"][class*="bubble"] h4,
html[data-theme="light"] [class*="pelusita"][class*="bubble"] strong {
  color: #201735 !important;
}

/* Párrafos / textos secundarios */
html[data-theme="light"] .pelusita-dialog p,
html[data-theme="light"] .pelusita-dialog small,
html[data-theme="light"] .pelusita-dialog span,
html[data-theme="light"] .pelusita-bubble p,
html[data-theme="light"] .pelusita-bubble small,
html[data-theme="light"] .pelusita-bubble span,
html[data-theme="light"] [class*="pelusita"][class*="dialog"] p,
html[data-theme="light"] [class*="pelusita"][class*="dialog"] small,
html[data-theme="light"] [class*="pelusita"][class*="dialog"] span,
html[data-theme="light"] [class*="pelusita"][class*="bubble"] p,
html[data-theme="light"] [class*="pelusita"][class*="bubble"] small,
html[data-theme="light"] [class*="pelusita"][class*="bubble"] span {
  color: rgba(32, 23, 53, 0.76) !important;
}

/* Links / acentos */
html[data-theme="light"] .pelusita-dialog a,
html[data-theme="light"] .pelusita-bubble a,
html[data-theme="light"] [class*="pelusita"][class*="dialog"] a,
html[data-theme="light"] [class*="pelusita"][class*="bubble"] a {
  color: #2563eb !important;
}

/* Iconos dentro del globo */
html[data-theme="light"] .pelusita-dialog i,
html[data-theme="light"] .pelusita-bubble i,
html[data-theme="light"] [class*="pelusita"][class*="dialog"] i,
html[data-theme="light"] [class*="pelusita"][class*="bubble"] i {
  color: #4f46e5 !important;
}

/* Botones internos */
html[data-theme="light"] .pelusita-dialog button,
html[data-theme="light"] .pelusita-bubble button,
html[data-theme="light"] [class*="pelusita"][class*="dialog"] button,
html[data-theme="light"] [class*="pelusita"][class*="bubble"] button {
  color: #201735;
}

/* Flechita del globo si existe */
html[data-theme="light"] .pelusita-dialog::before,
html[data-theme="light"] .pelusita-dialog::after,
html[data-theme="light"] .pelusita-bubble::before,
html[data-theme="light"] .pelusita-bubble::after,
html[data-theme="light"] .pelusita-speech-bubble::before,
html[data-theme="light"] .pelusita-speech-bubble::after,
html[data-theme="light"] [class*="pelusita"][class*="dialog"]::before,
html[data-theme="light"] [class*="pelusita"][class*="dialog"]::after,
html[data-theme="light"] [class*="pelusita"][class*="bubble"]::before,
html[data-theme="light"] [class*="pelusita"][class*="bubble"]::after {
  border-color: rgba(255, 255, 255, 0.96) !important;
}

/* Casos donde el globo se renderiza como card genérica dentro del dock */
html[data-theme="light"] .sidebar-v2-pelusita-dock .panel,
html[data-theme="light"] .sidebar-v2-pelusita-dock .card,
html[data-theme="light"] .sidebar-v2-pelusita-dock [role="dialog"],
html[data-theme="light"] .sidebar-v2-pelusita-dock [aria-live],
html[data-theme="light"] .pelusita-widget .panel,
html[data-theme="light"] .pelusita-widget .card,
html[data-theme="light"] .pelusita-widget [role="dialog"],
html[data-theme="light"] .pelusita-widget [aria-live] {
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(79, 70, 229, 0.18) !important;
  color: #201735 !important;
}

/* Inputs si algún diálogo de Pelusita los trae */
html[data-theme="light"] .pelusita-dialog input,
html[data-theme="light"] .pelusita-dialog textarea,
html[data-theme="light"] .pelusita-bubble input,
html[data-theme="light"] .pelusita-bubble textarea,
html[data-theme="light"] [class*="pelusita"][class*="dialog"] input,
html[data-theme="light"] [class*="pelusita"][class*="dialog"] textarea,
html[data-theme="light"] [class*="pelusita"][class*="bubble"] input,
html[data-theme="light"] [class*="pelusita"][class*="bubble"] textarea {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(79, 70, 229, 0.18) !important;
  color: #201735 !important;
}

/* Placeholder */
html[data-theme="light"] .pelusita-dialog input::placeholder,
html[data-theme="light"] .pelusita-dialog textarea::placeholder,
html[data-theme="light"] .pelusita-bubble input::placeholder,
html[data-theme="light"] .pelusita-bubble textarea::placeholder,
html[data-theme="light"] [class*="pelusita"][class*="dialog"] input::placeholder,
html[data-theme="light"] [class*="pelusita"][class*="dialog"] textarea::placeholder,
html[data-theme="light"] [class*="pelusita"][class*="bubble"] input::placeholder,
html[data-theme="light"] [class*="pelusita"][class*="bubble"] textarea::placeholder {
  color: rgba(32, 23, 53, 0.42) !important;
}

/* === Gestion Certificate Course Selector 20260621 === */

.gestion-course-selector {
  display: grid;
  gap: 0.45rem;
  margin: 0.9rem 0 0.85rem;
  padding: 0.85rem;
  border: 1px solid rgba(120, 255, 245, 0.16);
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(120, 255, 245, 0.08), transparent 38%),
    rgba(4, 8, 20, 0.42);
}

.gestion-course-selector label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #78fff5;
  font-weight: 900;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gestion-course-selector select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(120, 255, 245, 0.20);
  border-radius: 13px;
  background: rgba(5, 8, 20, 0.82);
  color: rgba(245, 248, 255, 0.94);
  padding: 0 0.75rem;
  font-weight: 850;
  outline: none;
}

.gestion-course-selector select:focus {
  border-color: rgba(120, 255, 245, 0.46);
  box-shadow: 0 0 0 3px rgba(120, 255, 245, 0.08);
}

.gestion-course-selector small {
  color: rgba(230, 240, 255, 0.62);
  line-height: 1.45;
}

/* Modo claro */
html[data-theme="light"] .gestion-course-selector {
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.78);
  border-color: rgba(79, 70, 229, 0.16);
}

html[data-theme="light"] .gestion-course-selector label {
  color: #4f46e5;
}

html[data-theme="light"] .gestion-course-selector select {
  background: rgba(255, 255, 255, 0.92);
  color: #201735;
  border-color: rgba(79, 70, 229, 0.18);
}

html[data-theme="light"] .gestion-course-selector small {
  color: rgba(32, 23, 53, 0.62);
}

/* === Centro de Notificaciones Admin 20260621 === */

.notifications-center-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.85fr) minmax(0, 1.15fr);
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
}

.notifications-center-composer,
.notifications-center-list-panel {
  min-width: 0;
}

.notification-admin-form {
  display: grid;
  gap: 1rem;
}

.notification-admin-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.notification-admin-form label {
  display: grid;
  gap: 0.4rem;
}

.notification-admin-form label.full {
  grid-column: 1 / -1;
}

.notification-admin-form label span {
  color: rgba(235, 245, 255, 0.82);
  font-weight: 850;
  font-size: 0.84rem;
}

.notification-admin-form input,
.notification-admin-form select,
.notification-admin-form textarea,
.notification-admin-toolbar input,
.notification-admin-toolbar select {
  width: 100%;
  border: 1px solid rgba(120, 255, 245, 0.16);
  border-radius: 14px;
  background: rgba(5, 8, 20, 0.72);
  color: rgba(245, 248, 255, 0.94);
  padding: 0.72rem 0.78rem;
  font: inherit;
  outline: none;
}

.notification-admin-form textarea {
  resize: vertical;
  min-height: 130px;
}

.notification-admin-form input:focus,
.notification-admin-form select:focus,
.notification-admin-form textarea:focus,
.notification-admin-toolbar input:focus,
.notification-admin-toolbar select:focus {
  border-color: rgba(120, 255, 245, 0.42);
  box-shadow: 0 0 0 3px rgba(120, 255, 245, 0.08);
}

.notification-admin-mail-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 221, 87, 0.24);
  border-radius: 18px;
  background: rgba(255, 221, 87, 0.07);
}

.notification-admin-mail-note i {
  color: #ffdd57;
  font-size: 1.2rem;
  margin-top: 0.15rem;
}

.notification-admin-mail-note strong {
  color: #ffdd57;
}

.notification-admin-mail-note p {
  margin: 0.2rem 0 0;
  color: rgba(235, 245, 255, 0.70);
  line-height: 1.5;
}

.notification-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.notification-admin-counter {
  min-width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(120, 255, 245, 0.18);
  background: rgba(120, 255, 245, 0.08);
  color: #78fff5;
  font-weight: 900;
}

.notification-admin-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.notification-admin-toolbar label {
  position: relative;
  display: block;
}

.notification-admin-toolbar label i {
  position: absolute;
  left: 0.78rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(120, 255, 245, 0.8);
}

.notification-admin-toolbar label input {
  padding-left: 2.35rem;
}

.notification-admin-bulk {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.notification-admin-bulk button,
.notification-admin-item-actions button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  border: 1px solid rgba(120, 255, 245, 0.16);
  border-radius: 999px;
  background: rgba(120, 255, 245, 0.07);
  color: #78fff5;
  padding: 0.35rem 0.75rem;
  font-weight: 850;
  cursor: pointer;
}

.notification-admin-bulk button.danger,
.notification-admin-item-actions button.danger {
  border-color: rgba(255, 71, 104, 0.24);
  background: rgba(255, 71, 104, 0.08);
  color: #ff9bad;
}

.notification-admin-list {
  display: grid;
  gap: 0.8rem;
}

.notification-admin-empty {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.4rem;
  padding: 2rem 1rem;
  border: 1px dashed rgba(120, 255, 245, 0.18);
  border-radius: 18px;
  color: rgba(235, 245, 255, 0.66);
}

.notification-admin-empty i {
  color: #78fff5;
  font-size: 1.5rem;
}

.notification-admin-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  border: 1px solid rgba(120, 255, 245, 0.14);
  border-radius: 18px;
  padding: 0.9rem;
  background: rgba(5, 8, 20, 0.58);
}

.notification-admin-item.is-info {
  border-color: rgba(59, 130, 246, 0.32);
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.11), transparent 38%), rgba(5, 8, 20, 0.62);
}

.notification-admin-item.is-warning {
  border-color: rgba(255, 221, 87, 0.34);
  background: radial-gradient(circle at top left, rgba(255, 221, 87, 0.12), transparent 38%), rgba(5, 8, 20, 0.62);
}

.notification-admin-item.is-danger {
  border-color: rgba(255, 71, 104, 0.34);
  background: radial-gradient(circle at top left, rgba(255, 71, 104, 0.12), transparent 38%), rgba(5, 8, 20, 0.62);
}

.notification-admin-item.is-neutral {
  border-color: rgba(153, 87, 255, 0.30);
  background: radial-gradient(circle at top left, rgba(153, 87, 255, 0.12), transparent 38%), rgba(5, 8, 20, 0.62);
}

.notification-admin-item-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(120, 255, 245, 0.08);
  color: #78fff5;
}

.notification-admin-item.is-warning .notification-admin-item-icon {
  background: rgba(255, 221, 87, 0.12);
  color: #ffdd57;
}

.notification-admin-item.is-danger .notification-admin-item-icon {
  background: rgba(255, 71, 104, 0.13);
  color: #ff6b8a;
}

.notification-admin-item.is-info .notification-admin-item-icon {
  background: rgba(59, 130, 246, 0.13);
  color: #60a5fa;
}

.notification-admin-item-body {
  min-width: 0;
}

.notification-admin-item-top {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: flex-start;
}

.notification-admin-item-top h4 {
  margin: 0 0 0.35rem;
}

.notification-admin-item-top small {
  color: rgba(235, 245, 255, 0.52);
  white-space: nowrap;
}

.notification-admin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.notification-admin-tags span {
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(120, 255, 245, 0.08);
  color: rgba(235, 245, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 800;
}

.notification-admin-item p {
  margin: 0.65rem 0 0;
  color: rgba(235, 245, 255, 0.72);
  line-height: 1.55;
  white-space: pre-wrap;
}

.notification-admin-link {
  display: inline-flex;
  margin-top: 0.55rem;
  color: #78fff5;
  font-weight: 800;
}

.notification-admin-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

/* Light mode */
html[data-theme="light"] .notification-admin-form input,
html[data-theme="light"] .notification-admin-form select,
html[data-theme="light"] .notification-admin-form textarea,
html[data-theme="light"] .notification-admin-toolbar input,
html[data-theme="light"] .notification-admin-toolbar select {
  background: rgba(255, 255, 255, 0.92);
  color: #201735;
  border-color: rgba(79, 70, 229, 0.16);
}

html[data-theme="light"] .notification-admin-form label span,
html[data-theme="light"] .notification-admin-item p,
html[data-theme="light"] .notification-admin-mail-note p {
  color: rgba(32, 23, 53, 0.72);
}

html[data-theme="light"] .notification-admin-item {
  background: rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] .notification-admin-tags span {
  color: rgba(32, 23, 53, 0.72);
}

html[data-theme="light"] .notification-admin-item-top small {
  color: rgba(32, 23, 53, 0.52);
}

/* Responsive */
@media (max-width: 1050px) {
  .notifications-center-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .notification-admin-form .form-grid,
  .notification-admin-toolbar {
    grid-template-columns: 1fr;
  }

  .notification-admin-item,
  .notification-admin-mail-note {
    grid-template-columns: 1fr;
  }

  .notification-admin-item-top {
    flex-direction: column;
  }

  .notification-admin-item-top small {
    white-space: normal;
  }
}

/* === Bell Notification Severity Colors 20260621 === */

/*
  Colores por tipo/severidad en campanita:
  - Azul: Comunidad / info
  - Amarillo: Avisos comunes
  - Rojo: Exámenes, recuperatorios, notas, datos críticos
  - Violeta: Sistema / neutral
*/

.notification-item.is-info,
.notification-item.is-community {
  border-color: rgba(59, 130, 246, 0.36) !important;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 42%),
    rgba(8, 14, 32, 0.88) !important;
}

.notification-item.is-info .notification-icon,
.notification-item.is-community .notification-icon {
  background: rgba(59, 130, 246, 0.20) !important;
  color: #60a5fa !important;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.16);
}

.notification-item.is-info .notification-action-btn,
.notification-item.is-community .notification-action-btn {
  border-color: rgba(59, 130, 246, 0.24) !important;
  background: rgba(59, 130, 246, 0.10) !important;
  color: #93c5fd !important;
}

.notification-item.is-warning,
.notification-item.is-announcement {
  border-color: rgba(255, 221, 87, 0.42) !important;
  background:
    radial-gradient(circle at top left, rgba(255, 221, 87, 0.18), transparent 42%),
    rgba(20, 17, 8, 0.88) !important;
}

.notification-item.is-warning .notification-icon,
.notification-item.is-announcement .notification-icon {
  background: rgba(255, 221, 87, 0.20) !important;
  color: #ffdd57 !important;
  box-shadow: 0 0 18px rgba(255, 221, 87, 0.16);
}

.notification-item.is-warning .notification-action-btn,
.notification-item.is-announcement .notification-action-btn {
  border-color: rgba(255, 221, 87, 0.26) !important;
  background: rgba(255, 221, 87, 0.10) !important;
  color: #ffe58a !important;
}

.notification-item.is-danger,
.notification-item.is-academic {
  border-color: rgba(255, 71, 104, 0.42) !important;
  background:
    radial-gradient(circle at top left, rgba(255, 71, 104, 0.18), transparent 42%),
    rgba(24, 8, 18, 0.88) !important;
}

.notification-item.is-danger .notification-icon,
.notification-item.is-academic .notification-icon {
  background: rgba(255, 71, 104, 0.20) !important;
  color: #ff6b8a !important;
  box-shadow: 0 0 18px rgba(255, 71, 104, 0.16);
}

.notification-item.is-danger .notification-action-btn,
.notification-item.is-academic .notification-action-btn {
  border-color: rgba(255, 71, 104, 0.26) !important;
  background: rgba(255, 71, 104, 0.10) !important;
  color: #ff9bad !important;
}

.notification-item.is-neutral,
.notification-item.is-system {
  border-color: rgba(153, 87, 255, 0.36) !important;
  background:
    radial-gradient(circle at top left, rgba(153, 87, 255, 0.18), transparent 42%),
    rgba(14, 10, 32, 0.88) !important;
}

.notification-item.is-neutral .notification-icon,
.notification-item.is-system .notification-icon {
  background: rgba(153, 87, 255, 0.20) !important;
  color: #b894ff !important;
  box-shadow: 0 0 18px rgba(153, 87, 255, 0.16);
}

.notification-item.is-neutral .notification-action-btn,
.notification-item.is-system .notification-action-btn {
  border-color: rgba(153, 87, 255, 0.24) !important;
  background: rgba(153, 87, 255, 0.10) !important;
  color: #c8b5ff !important;
}

/* Borde izquierdo tipo alerta visual */
.notification-item.is-info,
.notification-item.is-community,
.notification-item.is-warning,
.notification-item.is-announcement,
.notification-item.is-danger,
.notification-item.is-academic,
.notification-item.is-neutral,
.notification-item.is-system {
  border-left-width: 4px !important;
}

/* Unread más potente */
.notification-item.is-unread.is-info,
.notification-item.is-unread.is-community {
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.08),
    0 14px 30px rgba(59, 130, 246, 0.08);
}

.notification-item.is-unread.is-warning,
.notification-item.is-unread.is-announcement {
  box-shadow:
    0 0 0 1px rgba(255, 221, 87, 0.08),
    0 14px 30px rgba(255, 221, 87, 0.08);
}

.notification-item.is-unread.is-danger,
.notification-item.is-unread.is-academic {
  box-shadow:
    0 0 0 1px rgba(255, 71, 104, 0.08),
    0 14px 30px rgba(255, 71, 104, 0.08);
}

.notification-item.is-unread.is-neutral,
.notification-item.is-unread.is-system {
  box-shadow:
    0 0 0 1px rgba(153, 87, 255, 0.08),
    0 14px 30px rgba(153, 87, 255, 0.08);
}

/* Botón X mantiene rojo, pero sin comerse el color del tipo */
.notification-item .notification-delete-btn {
  border-color: rgba(255, 94, 123, 0.28) !important;
  background: rgba(255, 94, 123, 0.10) !important;
  color: #ff9bad !important;
}

/* Modo claro */
html[data-theme="light"] .notification-item.is-info,
html[data-theme="light"] .notification-item.is-community {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.10), transparent 42%),
    rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(59, 130, 246, 0.28) !important;
}

html[data-theme="light"] .notification-item.is-info .notification-icon,
html[data-theme="light"] .notification-item.is-community .notification-icon {
  background: rgba(59, 130, 246, 0.12) !important;
  color: #2563eb !important;
}

html[data-theme="light"] .notification-item.is-warning,
html[data-theme="light"] .notification-item.is-announcement {
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(245, 158, 11, 0.34) !important;
}

html[data-theme="light"] .notification-item.is-warning .notification-icon,
html[data-theme="light"] .notification-item.is-announcement .notification-icon {
  background: rgba(245, 158, 11, 0.13) !important;
  color: #b45309 !important;
}

html[data-theme="light"] .notification-item.is-danger,
html[data-theme="light"] .notification-item.is-academic {
  background:
    radial-gradient(circle at top left, rgba(225, 29, 72, 0.10), transparent 42%),
    rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(225, 29, 72, 0.30) !important;
}

html[data-theme="light"] .notification-item.is-danger .notification-icon,
html[data-theme="light"] .notification-item.is-academic .notification-icon {
  background: rgba(225, 29, 72, 0.12) !important;
  color: #be123c !important;
}

html[data-theme="light"] .notification-item.is-neutral,
html[data-theme="light"] .notification-item.is-system {
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.10), transparent 42%),
    rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(124, 58, 237, 0.26) !important;
}

html[data-theme="light"] .notification-item.is-neutral .notification-icon,
html[data-theme="light"] .notification-item.is-system .notification-icon {
  background: rgba(124, 58, 237, 0.12) !important;
  color: #6d28d9 !important;
}

html[data-theme="light"] .notification-item.is-info .notification-action-btn,
html[data-theme="light"] .notification-item.is-community .notification-action-btn {
  background: rgba(59, 130, 246, 0.08) !important;
  border-color: rgba(59, 130, 246, 0.20) !important;
  color: #1d4ed8 !important;
}

html[data-theme="light"] .notification-item.is-warning .notification-action-btn,
html[data-theme="light"] .notification-item.is-announcement .notification-action-btn {
  background: rgba(245, 158, 11, 0.09) !important;
  border-color: rgba(245, 158, 11, 0.22) !important;
  color: #92400e !important;
}

html[data-theme="light"] .notification-item.is-danger .notification-action-btn,
html[data-theme="light"] .notification-item.is-academic .notification-action-btn {
  background: rgba(225, 29, 72, 0.08) !important;
  border-color: rgba(225, 29, 72, 0.20) !important;
  color: #9f1239 !important;
}

html[data-theme="light"] .notification-item.is-neutral .notification-action-btn,
html[data-theme="light"] .notification-item.is-system .notification-action-btn {
  background: rgba(124, 58, 237, 0.08) !important;
  border-color: rgba(124, 58, 237, 0.20) !important;
  color: #5b21b6 !important;
}

/* === Notification Links And Home Avisos Styles 20260622 === */

.notification-link-btn {
  border-color: rgba(34, 211, 238, 0.28) !important;
  background: rgba(34, 211, 238, 0.10) !important;
  color: #67e8f9 !important;
}

.notification-link-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.16);
}

.home-notifications-feed {
  display: grid;
  gap: 14px;
}

.home-notice-card {
  position: relative;
}

.home-notice-card.is-info {
  border-color: rgba(59, 130, 246, 0.30) !important;
}

.home-notice-card.is-warning {
  border-color: rgba(255, 221, 87, 0.36) !important;
  background:
    radial-gradient(circle at top left, rgba(255, 221, 87, 0.08), transparent 42%),
    rgba(7, 12, 24, 0.72) !important;
}

.home-notice-card.is-danger {
  border-color: rgba(255, 71, 104, 0.40) !important;
  background:
    radial-gradient(circle at top left, rgba(255, 71, 104, 0.10), transparent 42%),
    rgba(7, 12, 24, 0.72) !important;
}

.home-notice-card.is-neutral {
  border-color: rgba(153, 87, 255, 0.32) !important;
}

.home-notice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 10px;
  color: var(--text-muted, #94a3b8);
  font-size: 0.82rem;
}

.home-notice-meta strong {
  color: rgba(103, 232, 249, 0.86);
}

.home-notice-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.10);
  color: #67e8f9;
  font-weight: 800;
  text-decoration: none;
}

.home-notice-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.16);
}

html[data-theme="light"] .notification-link-btn {
  background: rgba(14, 165, 233, 0.08) !important;
  border-color: rgba(14, 165, 233, 0.22) !important;
  color: #0369a1 !important;
}

html[data-theme="light"] .home-notice-link {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.22);
  color: #0369a1;
}

/* === Notification Stable Link Button And Online Badge Styles 20260622 === */

.notification-link-btn {
  animation: none !important;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease !important;
}

.notification-link-btn i {
  animation: none !important;
}

.notification-online-badge {
  border-color: rgba(34, 211, 238, 0.38) !important;
  background: rgba(34, 211, 238, 0.12) !important;
  color: #67e8f9 !important;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.10);
}

.notifications-panel .notification-online-badge::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.75);
  vertical-align: middle;
}

html[data-theme="light"] .notification-online-badge {
  border-color: rgba(14, 165, 233, 0.30) !important;
  background: rgba(14, 165, 233, 0.08) !important;
  color: #0369a1 !important;
}

/* === Home Avisos Persistent Shell Styles 20260622 === */

.home-avisos-shell {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.08), rgba(153, 87, 255, 0.08)),
    rgba(4, 10, 24, 0.82);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.home-avisos-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

.home-avisos-shell > * {
  position: relative;
  z-index: 1;
}

.home-avisos-topbar,
.home-avisos-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  color: rgba(226, 232, 240, 0.82);
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
}

.home-avisos-topbar {
  border-bottom: 1px solid rgba(34, 211, 238, 0.14);
}

.home-avisos-footer {
  border-top: 1px solid rgba(34, 211, 238, 0.14);
}

.home-avisos-window-dots {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.home-avisos-window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.home-avisos-window-dots span:nth-child(1) {
  background: #ff5f57;
}

.home-avisos-window-dots span:nth-child(2) {
  background: #ffbd2e;
}

.home-avisos-window-dots span:nth-child(3) {
  background: #28c840;
}

.home-avisos-path {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
  color: rgba(226, 232, 240, 0.64);
}

.home-avisos-path span {
  padding: 4px 8px;
  border: 1px solid rgba(34, 211, 238, 0.30);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.10);
  color: #67e8f9;
  font-weight: 900;
  font-size: 0.72rem;
}

.home-avisos-header {
  padding: 22px 20px 12px;
}

.home-avisos-header .eyebrow {
  margin: 0 0 8px;
  color: #22d3ee;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-avisos-header h2 {
  margin: 0;
  color: #7df9ff;
  font-family: var(--font-display, inherit);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-avisos-header p {
  margin: 10px 0 0;
  color: rgba(226, 232, 240, 0.72);
  font-weight: 700;
}

.home-avisos-dynamic-feed {
  display: grid;
  gap: 14px;
  padding: 12px 18px 18px;
}

.home-avisos-dynamic-feed .home-cmd-card {
  margin: 0 !important;
}

html[data-theme="light"] .home-avisos-shell {
  background:
    linear-gradient(90deg, rgba(14, 165, 233, 0.08), rgba(124, 58, 237, 0.07)),
    rgba(255, 255, 255, 0.86);
  border-color: rgba(14, 165, 233, 0.22);
}

html[data-theme="light"] .home-avisos-header h2 {
  color: #0891b2;
}

html[data-theme="light"] .home-avisos-header p,
html[data-theme="light"] .home-avisos-topbar,
html[data-theme="light"] .home-avisos-footer {
  color: rgba(15, 23, 42, 0.70);
}

@media (max-width: 720px) {
  .home-avisos-path {
    display: none;
  }

  .home-avisos-topbar,
  .home-avisos-footer {
    padding-inline: 14px;
  }

  .home-avisos-header {
    padding-inline: 14px;
  }

  .home-avisos-dynamic-feed {
    padding-inline: 12px;
  }
}

/* === Home Avisos Single Renderer Final Styles 20260622 === */

.home-avisos-final {
  margin-top: 24px !important;
}

.home-avisos-final .home-avisos-dynamic-feed {
  display: grid;
  gap: 14px;
  padding: 12px 18px 18px;
}

.home-avisos-final .home-cmd-card {
  margin: 0 !important;
}

.home-avisos-final .home-notice-card {
  width: 100%;
}

.home-avisos-final .home-notice-card + .home-notice-card {
  margin-top: 0 !important;
}

/* === Home Avisos Single Panel Merge Styles 20260622 === */

.home-avisos-single-panel {
  margin-top: 24px !important;
}

.home-avisos-single-panel .home-avisos-dynamic-feed {
  display: grid !important;
  gap: 14px !important;
  padding: 12px 18px 18px !important;
}

.home-avisos-single-panel .home-cmd-card,
.home-avisos-single-panel .home-notice-card {
  margin: 0 !important;
  width: 100%;
}

.home-avisos-single-panel [data-home-notification-id] {
  animation: none !important;
}

/* === Home Avisos One Panel Enforcer Styles 20260622 === */

.home-avisos-locked {
  margin-top: 24px !important;
}

.home-avisos-locked .home-avisos-dynamic-feed {
  display: grid !important;
  gap: 14px !important;
  padding: 12px 18px 18px !important;
}

.home-avisos-locked .home-cmd-card,
.home-avisos-locked .home-notice-card {
  width: 100% !important;
  margin: 0 !important;
}

.home-avisos-locked [data-home-notification-id] {
  animation: none !important;
}

/* === Home Avisos Renderer Clean Final Styles 20260622 === */

.home-avisos-clean-final {
  margin-top: 24px !important;
}

.home-avisos-clean-final .home-avisos-dynamic-feed {
  display: grid !important;
  gap: 14px !important;
  padding: 12px 18px 18px !important;
}

.home-avisos-clean-final .home-cmd-card,
.home-avisos-clean-final .home-notice-card {
  width: 100% !important;
  margin: 0 !important;
}

.home-avisos-clean-final [data-home-notification-id] {
  animation: none !important;
}

/* === Home Avisos Stable Final Styles 20260622 === */

.home-avisos-stable-shell {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.08), rgba(153, 87, 255, 0.08)),
    rgba(4, 10, 24, 0.82);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.home-avisos-stable-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

.home-avisos-stable-shell > * {
  position: relative;
  z-index: 1;
}

.home-avisos-stable-topbar,
.home-avisos-stable-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  color: rgba(226, 232, 240, 0.82);
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
}

.home-avisos-stable-topbar {
  border-bottom: 1px solid rgba(34, 211, 238, 0.14);
}

.home-avisos-stable-footer {
  border-top: 1px solid rgba(34, 211, 238, 0.14);
}

.home-avisos-stable-dots {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.home-avisos-stable-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.home-avisos-stable-dots span:nth-child(1) {
  background: #ff5f57;
}

.home-avisos-stable-dots span:nth-child(2) {
  background: #ffbd2e;
}

.home-avisos-stable-dots span:nth-child(3) {
  background: #28c840;
}

.home-avisos-stable-path {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
  color: rgba(226, 232, 240, 0.64);
}

.home-avisos-stable-path span {
  padding: 4px 8px;
  border: 1px solid rgba(34, 211, 238, 0.30);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.10);
  color: #67e8f9;
  font-weight: 900;
  font-size: 0.72rem;
}

.home-avisos-stable-header {
  padding: 22px 20px 12px;
}

.home-avisos-stable-header p {
  margin: 0 0 8px;
  color: #22d3ee;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-avisos-stable-header h2 {
  margin: 0;
  color: #7df9ff;
  font-family: var(--font-display, inherit);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-avisos-stable-header small {
  display: block;
  margin-top: 10px;
  color: rgba(226, 232, 240, 0.72);
  font-weight: 700;
}

.home-avisos-stable-feed {
  display: grid;
  gap: 14px;
  padding: 12px 18px 18px;
}

.home-avisos-stable-feed .home-cmd-card,
.home-avisos-stable-feed .home-notice-card {
  width: 100%;
  margin: 0 !important;
}

html[data-theme="light"] .home-avisos-stable-shell {
  background:
    linear-gradient(90deg, rgba(14, 165, 233, 0.08), rgba(124, 58, 237, 0.07)),
    rgba(255, 255, 255, 0.86);
  border-color: rgba(14, 165, 233, 0.22);
}

html[data-theme="light"] .home-avisos-stable-header h2 {
  color: #0891b2;
}

html[data-theme="light"] .home-avisos-stable-header small,
html[data-theme="light"] .home-avisos-stable-topbar,
html[data-theme="light"] .home-avisos-stable-footer {
  color: rgba(15, 23, 42, 0.70);
}

@media (max-width: 720px) {
  .home-avisos-stable-path {
    display: none;
  }

  .home-avisos-stable-topbar,
  .home-avisos-stable-footer,
  .home-avisos-stable-header {
    padding-inline: 14px;
  }

  .home-avisos-stable-feed {
    padding-inline: 12px;
  }
}

/* === LINKEDIN RECOMMENDATION PANEL === */

.linkedin-recommendation-panel {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(0, 245, 255, .22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 119, 181, .22), transparent 36%),
    radial-gradient(circle at 100% 100%, rgba(168, 85, 247, .16), transparent 42%),
    rgba(10, 5, 26, .74);
  box-shadow: 0 20px 48px rgba(0,0,0,.28);
}

.linkedin-recommendation-panel[hidden] {
  display: none !important;
}

.linkedin-recommendation-panel.show {
  animation: linkedinPanelIn .25s ease both;
}

.linkedin-recommendation-head {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  margin-bottom: .85rem;
}

.linkedin-recommendation-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(0, 119, 181, .18);
  border: 1px solid rgba(0, 119, 181, .36);
  color: #60a5fa;
  font-size: 1.25rem;
}

.linkedin-recommendation-head h3 {
  margin: 0 0 .25rem;
  font-family: var(--font-title);
  color: var(--text-main);
}

.linkedin-recommendation-head p,
.linkedin-recommendation-note {
  margin: 0;
  color: var(--text-muted);
  font-weight: 700;
  line-height: 1.45;
}

.linkedin-recommendation-steps {
  display: grid;
  gap: .6rem;
  margin: .85rem 0;
  padding-left: 1.15rem;
}

.linkedin-recommendation-steps li {
  padding: .65rem .75rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}

.linkedin-recommendation-steps strong {
  display: block;
  color: var(--cyan);
  margin-bottom: .25rem;
}

.linkedin-recommendation-steps span {
  display: block;
  color: var(--text-muted);
  font-weight: 700;
  line-height: 1.42;
}

.linkedin-recommendation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .85rem;
}

.linkedin-recommendation-actions .btn {
  flex: 1 1 180px;
}

.linkedin-recommendation-note {
  margin-top: .8rem;
  font-size: .82rem;
}

@keyframes linkedinPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === END LINKEDIN RECOMMENDATION PANEL === */

/* === LIGHT MODE PASTEL KAWAII THEME 20260622 === */
/*
  Regla visual:
  - Dark mode conserva neon/cyber/glow.
  - Light mode cambia a pastel kawaii, legible, sin resplandores fuertes.
*/

:root[data-theme="light"],
html[data-theme="light"] {
  color-scheme: light;

  /* Paleta pastel base */
  --bg-main: #fff9ff;
  --bg-secondary: #f2fbff;
  --bg-sidebar: rgba(255, 253, 255, 0.94);
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-strong: rgba(255, 249, 255, 0.96);
  --bg-input: rgba(255, 255, 255, 0.96);

  --text-main: #172033;
  --text-muted: #64748b;
  --text-soft: #334155;

  /* Reemplazos pastel de los acentos neon */
  --cyan: #0891b2;
  --cyan-dim: #67d8e8;
  --violet: #9b7bea;
  --violet-dim: #bda7f5;
  --lilac: #a78bfa;
  --pink: #f3a6c8;
  --green: #58b894;
  --yellow: #f6c453;
  --red: #ec7fa5;

  --border: rgba(167, 139, 250, 0.22);
  --border-strong: rgba(8, 145, 178, 0.24);

  --shadow-card: 0 18px 42px rgba(85, 72, 120, 0.12);
  --shadow-glow: 0 14px 34px rgba(180, 160, 230, 0.16);

  --hero-gradient:
    radial-gradient(circle at top left, rgba(186, 230, 253, 0.58), transparent 34%),
    radial-gradient(circle at top right, rgba(233, 213, 255, 0.62), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 241, 255, 0.90));
}

/* Fondo general claro: más suave, menos gris frío */
html[data-theme="light"] body,
:root[data-theme="light"] body {
  background:
    radial-gradient(circle at top left, rgba(186, 230, 253, 0.38), transparent 32%),
    radial-gradient(circle at top right, rgba(253, 186, 216, 0.28), transparent 28%),
    linear-gradient(135deg, #fffaff 0%, #f2fbff 48%, #fff7ed 100%) !important;
  color: var(--text-main) !important;
}

/* Apagar glow radioactivo en modo claro */
html[data-theme="light"] *,
:root[data-theme="light"] * {
  text-shadow: none;
}

html[data-theme="light"] .hero-card,
html[data-theme="light"] .welcome-card,
html[data-theme="light"] .panel,
html[data-theme="light"] .card,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .course-card,
html[data-theme="light"] .gestion-card,
html[data-theme="light"] .class-row-card,
html[data-theme="light"] .login-card,
html[data-theme="light"] .auth-card,
html[data-theme="light"] .campus-card,
html[data-theme="light"] .exampro-panel,
html[data-theme="light"] .notifications-panel,
html[data-theme="light"] .home-avisos-stable-shell,
:root[data-theme="light"] .hero-card,
:root[data-theme="light"] .welcome-card,
:root[data-theme="light"] .panel,
:root[data-theme="light"] .card,
:root[data-theme="light"] .stat-card,
:root[data-theme="light"] .course-card,
:root[data-theme="light"] .gestion-card,
:root[data-theme="light"] .class-row-card,
:root[data-theme="light"] .login-card,
:root[data-theme="light"] .auth-card,
:root[data-theme="light"] .campus-card,
:root[data-theme="light"] .exampro-panel,
:root[data-theme="light"] .notifications-panel,
:root[data-theme="light"] .home-avisos-stable-shell {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(250,245,255,0.84)) !important;
  border-color: rgba(167, 139, 250, 0.22) !important;
  box-shadow: 0 16px 36px rgba(85, 72, 120, 0.12) !important;
}

/* Header/topbar: glass pastel, no cyber oscuro */
html[data-theme="light"] .topbar,
:root[data-theme="light"] .topbar {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.88), rgba(244, 232, 255, 0.78)) !important;
  border-color: rgba(167, 139, 250, 0.22) !important;
  box-shadow: 0 12px 30px rgba(85, 72, 120, 0.10) !important;
}

html[data-theme="light"] .topbar-actions,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .user-pill,
html[data-theme="light"] .notifications-toggle,
:root[data-theme="light"] .topbar-actions,
:root[data-theme="light"] .theme-toggle,
:root[data-theme="light"] .user-pill,
:root[data-theme="light"] .notifications-toggle {
  background: rgba(255, 255, 255, 0.78) !important;
  border-color: rgba(167, 139, 250, 0.22) !important;
  color: #172033 !important;
  box-shadow: 0 8px 20px rgba(85, 72, 120, 0.08) !important;
}

/* Sidebar: pastel limpio */
html[data-theme="light"] .sidebar,
html[data-theme="light"] .sidebar-v2,
:root[data-theme="light"] .sidebar,
:root[data-theme="light"] .sidebar-v2 {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248, 242, 255, 0.92)) !important;
  border-color: rgba(167, 139, 250, 0.22) !important;
  box-shadow: 12px 0 34px rgba(85, 72, 120, 0.10) !important;
}

html[data-theme="light"] .nav-item.active,
html[data-theme="light"] .sidebar-v2-link.active,
html[data-theme="light"] .sidebar-v2-subitem.active,
:root[data-theme="light"] .nav-item.active,
:root[data-theme="light"] .sidebar-v2-link.active,
:root[data-theme="light"] .sidebar-v2-subitem.active {
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.86), rgba(243, 232, 255, 0.92)) !important;
  border-color: rgba(14, 165, 233, 0.34) !important;
  color: #075985 !important;
  box-shadow: none !important;
}

/* Logo y textos tech: color sólido pastel/legible */
html[data-theme="light"] .brand-text strong,
html[data-theme="light"] .brand-text span,
html[data-theme="light"] .page-title h1,
html[data-theme="light"] .hero-card h1,
html[data-theme="light"] .welcome-card h1,
html[data-theme="light"] .campus-card h1,
html[data-theme="light"] .home-avisos-stable-header h2,
:root[data-theme="light"] .brand-text strong,
:root[data-theme="light"] .brand-text span,
:root[data-theme="light"] .page-title h1,
:root[data-theme="light"] .hero-card h1,
:root[data-theme="light"] .welcome-card h1,
:root[data-theme="light"] .campus-card h1,
:root[data-theme="light"] .home-avisos-stable-header h2 {
  color: #0f8ea3 !important;
  text-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.95),
    -1px -1px 0 rgba(224, 242, 254, 0.65) !important;
}

/* Botones en claro: pastel, no neon */
html[data-theme="light"] .btn,
html[data-theme="light"] button,
html[data-theme="light"] .notification-link-btn,
:root[data-theme="light"] .btn,
:root[data-theme="light"] button,
:root[data-theme="light"] .notification-link-btn {
  box-shadow: 0 10px 24px rgba(85, 72, 120, 0.12) !important;
}

html[data-theme="light"] .btn-primary,
html[data-theme="light"] .primary-btn,
html[data-theme="light"] .btn:not(.danger-btn):not(.secondary-btn),
:root[data-theme="light"] .btn-primary,
:root[data-theme="light"] .primary-btn,
:root[data-theme="light"] .btn:not(.danger-btn):not(.secondary-btn) {
  background: linear-gradient(135deg, #c4b5fd, #f0abfc) !important;
  color: #2e1065 !important;
  border-color: rgba(147, 51, 234, 0.18) !important;
}

html[data-theme="light"] .btn-secondary,
html[data-theme="light"] .secondary-btn,
html[data-theme="light"] .notification-link-btn,
:root[data-theme="light"] .btn-secondary,
:root[data-theme="light"] .secondary-btn,
:root[data-theme="light"] .notification-link-btn {
  background: rgba(224, 242, 254, 0.88) !important;
  color: #075985 !important;
  border-color: rgba(14, 165, 233, 0.26) !important;
}

/* Inputs: blanco pastel legible */
html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select,
:root[data-theme="light"] input,
:root[data-theme="light"] textarea,
:root[data-theme="light"] select {
  background: rgba(255,255,255,0.92) !important;
  color: #172033 !important;
  border-color: rgba(167, 139, 250, 0.24) !important;
  box-shadow: none !important;
}

html[data-theme="light"] input:focus,
html[data-theme="light"] textarea:focus,
html[data-theme="light"] select:focus,
:root[data-theme="light"] input:focus,
:root[data-theme="light"] textarea:focus,
:root[data-theme="light"] select:focus {
  border-color: rgba(14, 165, 233, 0.42) !important;
  box-shadow: 0 0 0 4px rgba(186, 230, 253, 0.55) !important;
}

/* Campanita y panel de notificaciones */
html[data-theme="light"] .notifications-panel,
:root[data-theme="light"] .notifications-panel {
  background: rgba(255, 253, 255, 0.96) !important;
  border-color: rgba(167, 139, 250, 0.24) !important;
}

html[data-theme="light"] .notification-item,
:root[data-theme="light"] .notification-item {
  background: rgba(255,255,255,0.82) !important;
  border-color: rgba(203, 213, 225, 0.70) !important;
  color: #172033 !important;
}

html[data-theme="light"] .notification-item.unread,
:root[data-theme="light"] .notification-item.unread {
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.74), rgba(250, 245, 255, 0.92)) !important;
  border-color: rgba(14, 165, 233, 0.30) !important;
}

/* Avisos/Novedades: shell claro kawaii */
html[data-theme="light"] .home-avisos-stable-shell,
:root[data-theme="light"] .home-avisos-stable-shell {
  background:
    linear-gradient(90deg, rgba(224, 242, 254, 0.72), rgba(250, 232, 255, 0.64)),
    rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(14, 165, 233, 0.20) !important;
  box-shadow: 0 18px 42px rgba(85, 72, 120, 0.12) !important;
}

html[data-theme="light"] .home-avisos-stable-shell::before,
:root[data-theme="light"] .home-avisos-stable-shell::before {
  opacity: 0.34 !important;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.10) 1px, transparent 1px) !important;
}

html[data-theme="light"] .home-avisos-stable-topbar,
html[data-theme="light"] .home-avisos-stable-footer,
:root[data-theme="light"] .home-avisos-stable-topbar,
:root[data-theme="light"] .home-avisos-stable-footer {
  color: #334155 !important;
  border-color: rgba(14, 165, 233, 0.16) !important;
}

/* Severidades: light mode pastel */
html[data-theme="light"] .home-notice-card,
html[data-theme="light"] .notification-card,
html[data-theme="light"] .admin-notification-card,
html[data-theme="light"] .notification-center-card,
:root[data-theme="light"] .home-notice-card,
:root[data-theme="light"] .notification-card,
:root[data-theme="light"] .admin-notification-card,
:root[data-theme="light"] .notification-center-card {
  background: rgba(255, 255, 255, 0.82) !important;
  color: #172033 !important;
  border: 1px solid rgba(203, 213, 225, 0.72) !important;
  box-shadow: none !important;
}

html[data-theme="light"] .home-notice-card.is-danger,
html[data-theme="light"] .notification-card.is-danger,
html[data-theme="light"] .notification-card.danger,
html[data-theme="light"] .admin-notification-card.is-danger,
html[data-theme="light"] .admin-notification-card.danger,
html[data-theme="light"] .danger-zone,
:root[data-theme="light"] .home-notice-card.is-danger,
:root[data-theme="light"] .notification-card.is-danger,
:root[data-theme="light"] .notification-card.danger,
:root[data-theme="light"] .admin-notification-card.is-danger,
:root[data-theme="light"] .admin-notification-card.danger,
:root[data-theme="light"] .danger-zone {
  background: linear-gradient(135deg, rgba(252, 231, 243, 0.94), rgba(255, 241, 242, 0.90)) !important;
  border-color: rgba(244, 114, 182, 0.42) !important;
  color: #831843 !important;
}

html[data-theme="light"] .home-notice-card.is-warning,
html[data-theme="light"] .notification-card.is-warning,
html[data-theme="light"] .notification-card.warning,
html[data-theme="light"] .admin-notification-card.is-warning,
html[data-theme="light"] .admin-notification-card.warning,
:root[data-theme="light"] .home-notice-card.is-warning,
:root[data-theme="light"] .notification-card.is-warning,
:root[data-theme="light"] .notification-card.warning,
:root[data-theme="light"] .admin-notification-card.is-warning,
:root[data-theme="light"] .admin-notification-card.warning {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.96), rgba(255, 247, 237, 0.92)) !important;
  border-color: rgba(217, 119, 6, 0.36) !important;
  color: #3f2b00 !important;
}

html[data-theme="light"] .home-notice-card.is-info,
html[data-theme="light"] .notification-card.is-info,
html[data-theme="light"] .notification-card.info,
html[data-theme="light"] .admin-notification-card.is-info,
html[data-theme="light"] .admin-notification-card.info,
:root[data-theme="light"] .home-notice-card.is-info,
:root[data-theme="light"] .notification-card.is-info,
:root[data-theme="light"] .notification-card.info,
:root[data-theme="light"] .admin-notification-card.is-info,
:root[data-theme="light"] .admin-notification-card.info {
  background: linear-gradient(135deg, rgba(207, 250, 254, 0.90), rgba(224, 242, 254, 0.92)) !important;
  border-color: rgba(8, 145, 178, 0.34) !important;
  color: #064e5f !important;
}

html[data-theme="light"] .home-notice-card.is-neutral,
html[data-theme="light"] .notification-card.is-neutral,
html[data-theme="light"] .notification-card.neutral,
html[data-theme="light"] .admin-notification-card.is-neutral,
html[data-theme="light"] .admin-notification-card.neutral,
:root[data-theme="light"] .home-notice-card.is-neutral,
:root[data-theme="light"] .notification-card.is-neutral,
:root[data-theme="light"] .notification-card.neutral,
:root[data-theme="light"] .admin-notification-card.is-neutral,
:root[data-theme="light"] .admin-notification-card.neutral {
  background: linear-gradient(135deg, rgba(245, 243, 255, 0.96), rgba(255, 255, 255, 0.92)) !important;
  border-color: rgba(167, 139, 250, 0.32) !important;
  color: #3b2f63 !important;
}

/* Textos internos en cards claras */
html[data-theme="light"] .home-notice-card h3,
html[data-theme="light"] .home-notice-card strong,
html[data-theme="light"] .notification-card h3,
html[data-theme="light"] .notification-card strong,
html[data-theme="light"] .admin-notification-card h3,
html[data-theme="light"] .admin-notification-card strong,
:root[data-theme="light"] .home-notice-card h3,
:root[data-theme="light"] .home-notice-card strong,
:root[data-theme="light"] .notification-card h3,
:root[data-theme="light"] .notification-card strong,
:root[data-theme="light"] .admin-notification-card h3,
:root[data-theme="light"] .admin-notification-card strong {
  color: inherit !important;
}

html[data-theme="light"] .home-notice-card p,
html[data-theme="light"] .notification-card p,
html[data-theme="light"] .admin-notification-card p,
:root[data-theme="light"] .home-notice-card p,
:root[data-theme="light"] .notification-card p,
:root[data-theme="light"] .admin-notification-card p {
  color: rgba(23, 32, 51, 0.78) !important;
}

/* Chips / badges pastel */
html[data-theme="light"] .badge,
html[data-theme="light"] .chip,
html[data-theme="light"] .pill,
html[data-theme="light"] .home-cmd-tags span,
html[data-theme="light"] .notifications-chip,
html[data-theme="light"] .notification-online-badge,
:root[data-theme="light"] .badge,
:root[data-theme="light"] .chip,
:root[data-theme="light"] .pill,
:root[data-theme="light"] .home-cmd-tags span,
:root[data-theme="light"] .notifications-chip,
:root[data-theme="light"] .notification-online-badge {
  background: rgba(224, 242, 254, 0.78) !important;
  border-color: rgba(8, 145, 178, 0.22) !important;
  color: #075985 !important;
  box-shadow: none !important;
}

/* Amarillos: trazo/contraste para que no se pierdan */
html[data-theme="light"] .is-warning .home-cmd-tags span,
html[data-theme="light"] .warning .home-cmd-tags span,
html[data-theme="light"] .student-badge.warning,
html[data-theme="light"] .class-status.warning,
html[data-theme="light"] .recovery-note.warning,
:root[data-theme="light"] .is-warning .home-cmd-tags span,
:root[data-theme="light"] .warning .home-cmd-tags span,
:root[data-theme="light"] .student-badge.warning,
:root[data-theme="light"] .class-status.warning,
:root[data-theme="light"] .recovery-note.warning {
  background: #fff3bf !important;
  border-color: rgba(146, 64, 14, 0.34) !important;
  color: #3f2b00 !important;
  text-shadow:
    1px 1px 0 rgba(255,255,255,0.92),
    -1px -1px 0 rgba(120, 53, 15, 0.12) !important;
}

/* Rojo en claro: rosa pastel */
html[data-theme="light"] .danger-btn,
html[data-theme="light"] .student-badge.danger,
html[data-theme="light"] .class-status.danger,
html[data-theme="light"] .recovery-note.incorrect,
:root[data-theme="light"] .danger-btn,
:root[data-theme="light"] .student-badge.danger,
:root[data-theme="light"] .class-status.danger,
:root[data-theme="light"] .recovery-note.incorrect {
  background: rgba(252, 231, 243, 0.84) !important;
  border-color: rgba(244, 114, 182, 0.40) !important;
  color: #831843 !important;
}

/* Iconos y orbes: en claro, sombra pastel suave */
html[data-theme="light"] .hero-orb,
html[data-theme="light"] .classroom-logo-orb,
:root[data-theme="light"] .hero-orb,
:root[data-theme="light"] .classroom-logo-orb {
  background:
    linear-gradient(var(--bg-main), var(--bg-main)) padding-box,
    linear-gradient(135deg, #bae6fd, #ddd6fe, #fbcfe8) border-box !important;
  box-shadow: 0 16px 38px rgba(85, 72, 120, 0.14) !important;
}

html[data-theme="light"] .hero-orb img,
html[data-theme="light"] .classroom-logo-orb img,
:root[data-theme="light"] .hero-orb img,
:root[data-theme="light"] .classroom-logo-orb img {
  filter: drop-shadow(0 8px 14px rgba(85, 72, 120, 0.16)) !important;
}

/* === LIGHT MODE PASTEL POLISH 20260622 === */
/*
  Segunda pasada modo claro:
  - sacar bloques gris oscuro heredados del dark
  - suavizar logs de Avisos/Novedades
  - mejorar contraste pastel
*/

/* Cards/zonas que quedaron grises modo dark */
html[data-theme="light"] .rubric-question-card,
html[data-theme="light"] .exampro-rubric-card,
html[data-theme="light"] .criterion-item,
html[data-theme="light"] .criterion-minimum-box,
html[data-theme="light"] .observation-box,
html[data-theme="light"] .student-question-card,
html[data-theme="light"] .student-feedback-card,
html[data-theme="light"] .community-empty,
html[data-theme="light"] .empty-state,
html[data-theme="light"] .thread-card,
html[data-theme="light"] .post-card,
html[data-theme="light"] .forum-card,
html[data-theme="light"] .classroom-empty-state,
html[data-theme="light"] .notification-empty,
:root[data-theme="light"] .rubric-question-card,
:root[data-theme="light"] .exampro-rubric-card,
:root[data-theme="light"] .criterion-item,
:root[data-theme="light"] .criterion-minimum-box,
:root[data-theme="light"] .observation-box,
:root[data-theme="light"] .student-question-card,
:root[data-theme="light"] .student-feedback-card,
:root[data-theme="light"] .community-empty,
:root[data-theme="light"] .empty-state,
:root[data-theme="light"] .thread-card,
:root[data-theme="light"] .post-card,
:root[data-theme="light"] .forum-card,
:root[data-theme="light"] .classroom-empty-state,
:root[data-theme="light"] .notification-empty {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.88), rgba(245,243,255,0.78)) !important;
  border: 1px solid rgba(167,139,250,0.24) !important;
  color: #172033 !important;
  box-shadow: 0 14px 32px rgba(85,72,120,0.10) !important;
}

/* Cajas internas oscuras que quedaron pegadas */
html[data-theme="light"] .rubric-question-card > div,
html[data-theme="light"] .criterion-item > div,
html[data-theme="light"] .student-feedback-card > div,
html[data-theme="light"] .community-empty > div,
html[data-theme="light"] .empty-state > div,
:root[data-theme="light"] .rubric-question-card > div,
:root[data-theme="light"] .criterion-item > div,
:root[data-theme="light"] .student-feedback-card > div,
:root[data-theme="light"] .community-empty > div,
:root[data-theme="light"] .empty-state > div {
  background-color: transparent !important;
}

/* Textareas/inputs dentro de rúbricas */
html[data-theme="light"] .rubric-question-card input,
html[data-theme="light"] .rubric-question-card textarea,
html[data-theme="light"] .exampro-rubric-card input,
html[data-theme="light"] .exampro-rubric-card textarea,
html[data-theme="light"] .criterion-item input,
html[data-theme="light"] .criterion-item textarea,
html[data-theme="light"] .observation-box textarea,
:root[data-theme="light"] .rubric-question-card input,
:root[data-theme="light"] .rubric-question-card textarea,
:root[data-theme="light"] .exampro-rubric-card input,
:root[data-theme="light"] .exampro-rubric-card textarea,
:root[data-theme="light"] .criterion-item input,
:root[data-theme="light"] .criterion-item textarea,
:root[data-theme="light"] .observation-box textarea {
  background: rgba(255,255,255,0.94) !important;
  border: 1px solid rgba(167,139,250,0.28) !important;
  color: #172033 !important;
}

/* Comunidad: estado vacío menos gris cemento */
html[data-theme="light"] .community-empty,
html[data-theme="light"] .empty-state,
html[data-theme="light"] .classroom-empty-state,
:root[data-theme="light"] .community-empty,
:root[data-theme="light"] .empty-state,
:root[data-theme="light"] .classroom-empty-state {
  background:
    radial-gradient(circle at top, rgba(224,242,254,0.72), transparent 44%),
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(250,245,255,0.82)) !important;
  border-color: rgba(14,165,233,0.22) !important;
  color: #172033 !important;
}

html[data-theme="light"] .community-empty i,
html[data-theme="light"] .empty-state i,
html[data-theme="light"] .classroom-empty-state i,
:root[data-theme="light"] .community-empty i,
:root[data-theme="light"] .empty-state i,
:root[data-theme="light"] .classroom-empty-state i {
  color: #7c3aed !important;
  background: rgba(221,214,254,0.72) !important;
  border-radius: 999px;
  padding: 14px;
}

/* Avisos/Novedades: cards menos terminal duro, más kawaii */
html[data-theme="light"] .home-avisos-stable-feed,
:root[data-theme="light"] .home-avisos-stable-feed {
  gap: 16px !important;
}

html[data-theme="light"] .home-avisos-stable-feed .home-cmd-card,
html[data-theme="light"] .home-avisos-stable-feed .home-notice-card,
:root[data-theme="light"] .home-avisos-stable-feed .home-cmd-card,
:root[data-theme="light"] .home-avisos-stable-feed .home-notice-card {
  overflow: hidden !important;
  border-radius: 20px !important;
  padding: 18px 20px !important;
  border: 1px solid rgba(14,165,233,0.20) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.88), rgba(224,242,254,0.58)) !important;
  box-shadow: 0 10px 26px rgba(85,72,120,0.08) !important;
}

/* Prompt tipo C:\classroom más suave */
html[data-theme="light"] .home-cmd-prompt,
:root[data-theme="light"] .home-cmd-prompt {
  display: inline-flex !important;
  width: auto !important;
  margin: 0 0 10px !important;
  padding: 4px 9px !important;
  border-radius: 999px !important;
  background: rgba(224,242,254,0.82) !important;
  border: 1px solid rgba(14,165,233,0.22) !important;
  color: #075985 !important;
  font-weight: 900 !important;
}

/* Contenido de cada aviso, sin rectángulo plano */
html[data-theme="light"] .home-cmd-content,
:root[data-theme="light"] .home-cmd-content {
  background: transparent !important;
  color: #172033 !important;
}

/* Variantes pastel de los avisos */
html[data-theme="light"] .home-notice-card.is-danger,
:root[data-theme="light"] .home-notice-card.is-danger {
  background:
    linear-gradient(135deg, rgba(252,231,243,0.92), rgba(255,241,242,0.82)) !important;
  border-color: rgba(244,114,182,0.36) !important;
  color: #831843 !important;
}

html[data-theme="light"] .home-notice-card.is-warning,
:root[data-theme="light"] .home-notice-card.is-warning {
  background:
    linear-gradient(135deg, rgba(254,243,199,0.92), rgba(255,247,237,0.86)) !important;
  border-color: rgba(217,119,6,0.34) !important;
  color: #3f2b00 !important;
}

html[data-theme="light"] .home-notice-card.is-info,
:root[data-theme="light"] .home-notice-card.is-info {
  background:
    linear-gradient(135deg, rgba(207,250,254,0.88), rgba(224,242,254,0.82)) !important;
  border-color: rgba(8,145,178,0.30) !important;
  color: #064e5f !important;
}

html[data-theme="light"] .home-notice-card.is-neutral,
:root[data-theme="light"] .home-notice-card.is-neutral {
  background:
    linear-gradient(135deg, rgba(245,243,255,0.92), rgba(255,255,255,0.86)) !important;
  border-color: rgba(167,139,250,0.30) !important;
  color: #3b2f63 !important;
}

/* Títulos y textos dentro de avisos */
html[data-theme="light"] .home-notice-card h3,
:root[data-theme="light"] .home-notice-card h3 {
  color: inherit !important;
  font-weight: 900 !important;
}

html[data-theme="light"] .home-notice-card p,
:root[data-theme="light"] .home-notice-card p {
  color: rgba(23,32,51,0.76) !important;
  line-height: 1.45 !important;
}

html[data-theme="light"] .home-notice-meta,
html[data-theme="light"] .home-notice-meta strong,
:root[data-theme="light"] .home-notice-meta,
:root[data-theme="light"] .home-notice-meta strong {
  color: #0f8ea3 !important;
}

/* Link de aviso: botón pastel */
html[data-theme="light"] .home-notice-link,
:root[data-theme="light"] .home-notice-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 12px !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  background: rgba(224,242,254,0.92) !important;
  border: 1px solid rgba(14,165,233,0.28) !important;
  color: #075985 !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

/* Barras de progreso en claro: pastel, no cyber intenso */
html[data-theme="light"] .progress-bar,
html[data-theme="light"] .progress-fill,
:root[data-theme="light"] .progress-bar,
:root[data-theme="light"] .progress-fill {
  box-shadow: none !important;
}

html[data-theme="light"] .progress-fill,
:root[data-theme="light"] .progress-fill {
  background: linear-gradient(90deg, #c4b5fd, #67d8e8) !important;
}

/* Iconos/cards grandes grises en páginas de curso */
html[data-theme="light"] .course-hero-visual,
html[data-theme="light"] .course-visual-card,
html[data-theme="light"] .soon-visual,
html[data-theme="light"] .visual-card,
:root[data-theme="light"] .course-hero-visual,
:root[data-theme="light"] .course-visual-card,
:root[data-theme="light"] .soon-visual,
:root[data-theme="light"] .visual-card {
  background:
    radial-gradient(circle at top, rgba(186,230,253,0.65), transparent 42%),
    linear-gradient(135deg, rgba(255,255,255,0.86), rgba(245,243,255,0.74)) !important;
  border: 1px solid rgba(167,139,250,0.22) !important;
  color: #0f8ea3 !important;
}

/* Botones morados en claro: un toque menos saturados */
html[data-theme="light"] .btn-primary,
html[data-theme="light"] .primary-btn,
html[data-theme="light"] .btn:not(.danger-btn):not(.secondary-btn),
:root[data-theme="light"] .btn-primary,
:root[data-theme="light"] .primary-btn,
:root[data-theme="light"] .btn:not(.danger-btn):not(.secondary-btn) {
  background: linear-gradient(135deg, #c4b5fd, #e9a8f5) !important;
  color: #2e1065 !important;
}

/* Evitar que el texto celeste pastel quede invisible */
html[data-theme="light"] .cyan,
html[data-theme="light"] .text-cyan,
html[data-theme="light"] [class*="cyan"],
:root[data-theme="light"] .cyan,
:root[data-theme="light"] .text-cyan,
:root[data-theme="light"] [class*="cyan"] {
  color: #0f8ea3;
}

/* Mobile: cards de avisos con aire */
@media (max-width: 720px) {
  html[data-theme="light"] .home-avisos-stable-feed .home-cmd-card,
  html[data-theme="light"] .home-avisos-stable-feed .home-notice-card,
  :root[data-theme="light"] .home-avisos-stable-feed .home-cmd-card,
  :root[data-theme="light"] .home-avisos-stable-feed .home-notice-card {
    border-radius: 18px !important;
    padding: 14px !important;
  }
}

/* === NEWSLETTER AVISOS TITLE POLISH 20260622 === */

/* Topbar del panel Newsletter */
.home-avisos-stable-path {
  color: rgba(226, 232, 240, 0.82) !important;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.home-avisos-stable-path span {
  margin-left: 4px;
}

/* En modo claro, que el texto del canal no quede fantasma */
html[data-theme="light"] .home-avisos-stable-path,
:root[data-theme="light"] .home-avisos-stable-path {
  color: #506176 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* NEWSLETTER arriba: más etiqueta, menos título repetido */
.home-avisos-stable-header p {
  color: var(--cyan);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
}

/* Título principal más editorial */
.home-avisos-stable-header h2 {
  text-transform: none !important;
  letter-spacing: 0.04em !important;
}

html[data-theme="light"] .home-avisos-stable-header p,
:root[data-theme="light"] .home-avisos-stable-header p {
  color: #0ea5b7 !important;
}

html[data-theme="light"] .home-avisos-stable-header h2,
:root[data-theme="light"] .home-avisos-stable-header h2 {
  color: #0f8ea3 !important;
}

/* === LIGHT MODE AYRPC2026 EXAMPRO FIX 20260622 === */
/*
  Corrige componentes que seguían heredando estética oscura en modo claro:
  - AyRPC 2026 visual / en preparación
  - ExamPro card central
*/

/* ─────────────────────────────────────────────
   AYRPC 2026 - modo claro
───────────────────────────────────────────── */

html[data-theme="light"] .course-hero,
html[data-theme="light"] .course-hero-card,
html[data-theme="light"] .ayrpc-hero,
html[data-theme="light"] .ayrpc-2026-hero,
html[data-theme="light"] .course-page-hero,
:root[data-theme="light"] .course-hero,
:root[data-theme="light"] .course-hero-card,
:root[data-theme="light"] .ayrpc-hero,
:root[data-theme="light"] .ayrpc-2026-hero,
:root[data-theme="light"] .course-page-hero {
  background:
    radial-gradient(circle at left, rgba(207,250,254,0.72), transparent 34%),
    radial-gradient(circle at right, rgba(250,232,255,0.68), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(245,243,255,0.86)) !important;
  border-color: rgba(167,139,250,0.22) !important;
  box-shadow: 0 18px 42px rgba(85,72,120,0.12) !important;
  color: #172033 !important;
}

/* Visual derecha de AyRPC 2026 */
html[data-theme="light"] .course-hero-visual,
html[data-theme="light"] .course-visual-card,
html[data-theme="light"] .soon-visual,
html[data-theme="light"] .visual-card,
html[data-theme="light"] .ayrpc-visual,
html[data-theme="light"] .ayrpc-2026-visual,
html[data-theme="light"] .course-placeholder,
html[data-theme="light"] .course-status-visual,
:root[data-theme="light"] .course-hero-visual,
:root[data-theme="light"] .course-visual-card,
:root[data-theme="light"] .soon-visual,
:root[data-theme="light"] .visual-card,
:root[data-theme="light"] .ayrpc-visual,
:root[data-theme="light"] .ayrpc-2026-visual,
:root[data-theme="light"] .course-placeholder,
:root[data-theme="light"] .course-status-visual {
  background:
    radial-gradient(circle at center 30%, rgba(186,230,253,0.82), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,0.86), rgba(245,243,255,0.78)) !important;
  border: 1px solid rgba(14,165,233,0.22) !important;
  box-shadow: 0 16px 36px rgba(85,72,120,0.12) !important;
  color: #0f8ea3 !important;
}

/* Cualquier bloque visual interno oscuro dentro de la visual de curso */
html[data-theme="light"] .course-hero-visual *,
html[data-theme="light"] .course-visual-card *,
html[data-theme="light"] .soon-visual *,
html[data-theme="light"] .visual-card *,
:root[data-theme="light"] .course-hero-visual *,
:root[data-theme="light"] .course-visual-card *,
:root[data-theme="light"] .soon-visual *,
:root[data-theme="light"] .visual-card * {
  text-shadow: none !important;
}

/* Texto en preparación */
html[data-theme="light"] .course-hero-visual h3,
html[data-theme="light"] .course-hero-visual strong,
html[data-theme="light"] .course-visual-card h3,
html[data-theme="light"] .course-visual-card strong,
html[data-theme="light"] .soon-visual h3,
html[data-theme="light"] .soon-visual strong,
html[data-theme="light"] .visual-card h3,
html[data-theme="light"] .visual-card strong,
:root[data-theme="light"] .course-hero-visual h3,
:root[data-theme="light"] .course-hero-visual strong,
:root[data-theme="light"] .course-visual-card h3,
:root[data-theme="light"] .course-visual-card strong,
:root[data-theme="light"] .soon-visual h3,
:root[data-theme="light"] .soon-visual strong,
:root[data-theme="light"] .visual-card h3,
:root[data-theme="light"] .visual-card strong {
  color: #3b2f63 !important;
  font-weight: 900 !important;
}

html[data-theme="light"] .course-hero-visual p,
html[data-theme="light"] .course-visual-card p,
html[data-theme="light"] .soon-visual p,
html[data-theme="light"] .visual-card p,
:root[data-theme="light"] .course-hero-visual p,
:root[data-theme="light"] .course-visual-card p,
:root[data-theme="light"] .soon-visual p,
:root[data-theme="light"] .visual-card p {
  color: #64748b !important;
}

/* Ícono chip en visual */
html[data-theme="light"] .course-hero-visual i,
html[data-theme="light"] .course-visual-card i,
html[data-theme="light"] .soon-visual i,
html[data-theme="light"] .visual-card i,
:root[data-theme="light"] .course-hero-visual i,
:root[data-theme="light"] .course-visual-card i,
:root[data-theme="light"] .soon-visual i,
:root[data-theme="light"] .visual-card i {
  color: #0f8ea3 !important;
  filter: drop-shadow(0 8px 16px rgba(14,165,233,0.18)) !important;
}

/* Estado contenido en construcción */
html[data-theme="light"] .course-status-card,
html[data-theme="light"] .status-card,
html[data-theme="light"] .construction-card,
html[data-theme="light"] .course-progress-card,
:root[data-theme="light"] .course-status-card,
:root[data-theme="light"] .status-card,
:root[data-theme="light"] .construction-card,
:root[data-theme="light"] .course-progress-card {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(253,242,248,0.72)) !important;
  border-color: rgba(244,114,182,0.18) !important;
  color: #172033 !important;
}

/* ─────────────────────────────────────────────
   EXAMPRO - modo claro
───────────────────────────────────────────── */

html[data-theme="light"] .exampro-card,
html[data-theme="light"] .exampro-panel,
html[data-theme="light"] .exampro-launch-card,
html[data-theme="light"] .exampro-embed-card,
html[data-theme="light"] .exampro-access-card,
html[data-theme="light"] .exampro-page-card,
html[data-theme="light"] .exampro-wrapper .card,
:root[data-theme="light"] .exampro-card,
:root[data-theme="light"] .exampro-panel,
:root[data-theme="light"] .exampro-launch-card,
:root[data-theme="light"] .exampro-embed-card,
:root[data-theme="light"] .exampro-access-card,
:root[data-theme="light"] .exampro-page-card,
:root[data-theme="light"] .exampro-wrapper .card {
  background:
    radial-gradient(circle at top left, rgba(207,250,254,0.76), transparent 34%),
    radial-gradient(circle at top right, rgba(250,232,255,0.76), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(245,243,255,0.86)) !important;
  border: 1px solid rgba(167,139,250,0.24) !important;
  color: #172033 !important;
  box-shadow: 0 20px 48px rgba(85,72,120,0.14) !important;
}

/* Por si la card ExamPro no tiene clase específica: detectamos el patrón visual general */
html[data-theme="light"] .exampro-page .card,
html[data-theme="light"] .exampro-page section,
html[data-theme="light"] .exampro-page article,
:root[data-theme="light"] .exampro-page .card,
:root[data-theme="light"] .exampro-page section,
:root[data-theme="light"] .exampro-page article {
  background:
    radial-gradient(circle at top left, rgba(207,250,254,0.70), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(250,245,255,0.82)) !important;
  border-color: rgba(167,139,250,0.24) !important;
  color: #172033 !important;
}

/* Textos ExamPro */
html[data-theme="light"] .exampro-card h1,
html[data-theme="light"] .exampro-card h2,
html[data-theme="light"] .exampro-card h3,
html[data-theme="light"] .exampro-panel h1,
html[data-theme="light"] .exampro-panel h2,
html[data-theme="light"] .exampro-panel h3,
html[data-theme="light"] .exampro-launch-card h1,
html[data-theme="light"] .exampro-launch-card h2,
html[data-theme="light"] .exampro-launch-card h3,
html[data-theme="light"] .exampro-access-card h1,
html[data-theme="light"] .exampro-access-card h2,
html[data-theme="light"] .exampro-access-card h3,
:root[data-theme="light"] .exampro-card h1,
:root[data-theme="light"] .exampro-card h2,
:root[data-theme="light"] .exampro-card h3,
:root[data-theme="light"] .exampro-panel h1,
:root[data-theme="light"] .exampro-panel h2,
:root[data-theme="light"] .exampro-panel h3,
:root[data-theme="light"] .exampro-launch-card h1,
:root[data-theme="light"] .exampro-launch-card h2,
:root[data-theme="light"] .exampro-launch-card h3,
:root[data-theme="light"] .exampro-access-card h1,
:root[data-theme="light"] .exampro-access-card h2,
:root[data-theme="light"] .exampro-access-card h3 {
  color: #172033 !important;
  text-shadow: none !important;
}

/* El título ExamPro grande estaba quedando invisible */
html[data-theme="light"] .exampro-card .title,
html[data-theme="light"] .exampro-card .exampro-title,
html[data-theme="light"] .exampro-panel .title,
html[data-theme="light"] .exampro-panel .exampro-title,
html[data-theme="light"] [class*="exampro"] h1,
:root[data-theme="light"] .exampro-card .title,
:root[data-theme="light"] .exampro-card .exampro-title,
:root[data-theme="light"] .exampro-panel .title,
:root[data-theme="light"] .exampro-panel .exampro-title,
:root[data-theme="light"] [class*="exampro"] h1 {
  color: #0f8ea3 !important;
  text-shadow:
    1px 1px 0 rgba(255,255,255,0.96),
    -1px -1px 0 rgba(186,230,253,0.54) !important;
}

/* Descripciones y bullets ExamPro */
html[data-theme="light"] .exampro-card p,
html[data-theme="light"] .exampro-card li,
html[data-theme="light"] .exampro-panel p,
html[data-theme="light"] .exampro-panel li,
html[data-theme="light"] .exampro-launch-card p,
html[data-theme="light"] .exampro-launch-card li,
html[data-theme="light"] .exampro-access-card p,
html[data-theme="light"] .exampro-access-card li,
:root[data-theme="light"] .exampro-card p,
:root[data-theme="light"] .exampro-card li,
:root[data-theme="light"] .exampro-panel p,
:root[data-theme="light"] .exampro-panel li,
:root[data-theme="light"] .exampro-launch-card p,
:root[data-theme="light"] .exampro-launch-card li,
:root[data-theme="light"] .exampro-access-card p,
:root[data-theme="light"] .exampro-access-card li {
  color: #475569 !important;
}

/* Iconos/mini panel de ExamPro */
html[data-theme="light"] .exampro-card .icon-card,
html[data-theme="light"] .exampro-panel .icon-card,
html[data-theme="light"] .exampro-visual,
html[data-theme="light"] .exampro-icon-card,
html[data-theme="light"] .exampro-system-card,
:root[data-theme="light"] .exampro-card .icon-card,
:root[data-theme="light"] .exampro-panel .icon-card,
:root[data-theme="light"] .exampro-visual,
:root[data-theme="light"] .exampro-icon-card,
:root[data-theme="light"] .exampro-system-card {
  background:
    radial-gradient(circle at top, rgba(186,230,253,0.72), transparent 44%),
    linear-gradient(135deg, rgba(255,255,255,0.86), rgba(245,243,255,0.80)) !important;
  border: 1px solid rgba(14,165,233,0.24) !important;
  color: #0f8ea3 !important;
  box-shadow: 0 16px 34px rgba(85,72,120,0.12) !important;
}

html[data-theme="light"] .exampro-card i,
html[data-theme="light"] .exampro-panel i,
html[data-theme="light"] .exampro-launch-card i,
html[data-theme="light"] .exampro-access-card i,
:root[data-theme="light"] .exampro-card i,
:root[data-theme="light"] .exampro-panel i,
:root[data-theme="light"] .exampro-launch-card i,
:root[data-theme="light"] .exampro-access-card i {
  color: #0f8ea3 !important;
  filter: none !important;
}

/* Botón ExamPro en claro */
html[data-theme="light"] .exampro-card .btn,
html[data-theme="light"] .exampro-panel .btn,
html[data-theme="light"] .exampro-launch-card .btn,
html[data-theme="light"] .exampro-access-card .btn,
:root[data-theme="light"] .exampro-card .btn,
:root[data-theme="light"] .exampro-panel .btn,
:root[data-theme="light"] .exampro-launch-card .btn,
:root[data-theme="light"] .exampro-access-card .btn {
  background: linear-gradient(135deg, #c4b5fd, #f0abfc) !important;
  color: #2e1065 !important;
  border-color: rgba(147,51,234,0.20) !important;
  box-shadow: 0 10px 24px rgba(85,72,120,0.12) !important;
}

/* Frase "se abre en una pestaña nueva" */
html[data-theme="light"] .exampro-card small,
html[data-theme="light"] .exampro-panel small,
html[data-theme="light"] .exampro-launch-card small,
html[data-theme="light"] .exampro-access-card small,
:root[data-theme="light"] .exampro-card small,
:root[data-theme="light"] .exampro-panel small,
:root[data-theme="light"] .exampro-launch-card small,
:root[data-theme="light"] .exampro-access-card small {
  color: #64748b !important;
}

/* Parche amplio para cualquier bloque oscuro dentro de páginas light que contenga ExamPro */
html[data-theme="light"] [class*="exampro"] {
  text-shadow: none !important;
}

html[data-theme="light"] [class*="exampro"] [style*="background"],
:root[data-theme="light"] [class*="exampro"] [style*="background"] {
  color: #172033 !important;
}


/* === CENTRO NOTIFICACIONES LIGHT READABILITY FIX 20260622 === */

:root[data-theme="light"] .cn-empty-readable,
html[data-theme="light"] .cn-empty-readable{
  border:1px dashed rgba(125,181,228,.28) !important;
  background:linear-gradient(135deg, rgba(255,255,255,.60), rgba(247,244,255,.88)) !important;
  border-radius:24px !important;
  color:#475569 !important;
  box-shadow:none !important;
}

:root[data-theme="light"] .cn-empty-readable *,
html[data-theme="light"] .cn-empty-readable *{
  opacity:1 !important;
}

:root[data-theme="light"] .cn-empty-readable i,
html[data-theme="light"] .cn-empty-readable i{
  color:#67d8e8 !important;
}

:root[data-theme="light"] .cn-empty-readable strong,
:root[data-theme="light"] .cn-empty-readable .empty-title,
html[data-theme="light"] .cn-empty-readable strong,
html[data-theme="light"] .cn-empty-readable .empty-title{
  color:#334155 !important;
  font-weight:800 !important;
}

:root[data-theme="light"] .cn-empty-readable p,
:root[data-theme="light"] .cn-empty-readable span,
:root[data-theme="light"] .cn-empty-readable small,
html[data-theme="light"] .cn-empty-readable p,
html[data-theme="light"] .cn-empty-readable span,
html[data-theme="light"] .cn-empty-readable small{
  color:#64748b !important;
}

:root[data-theme="light"] .notifications-empty,
:root[data-theme="light"] .notifications-empty *,
:root[data-theme="light"] .empty-state,
:root[data-theme="light"] .empty-state *,
html[data-theme="light"] .notifications-empty,
html[data-theme="light"] .notifications-empty *,
html[data-theme="light"] .empty-state,
html[data-theme="light"] .empty-state *{
  opacity:1 !important;
}

:root[data-theme="light"] .notifications-empty strong,
:root[data-theme="light"] .empty-state strong,
html[data-theme="light"] .notifications-empty strong,
html[data-theme="light"] .empty-state strong{
  color:#334155 !important;
}

:root[data-theme="light"] .notifications-empty p,
:root[data-theme="light"] .notifications-empty span,
:root[data-theme="light"] .notifications-empty small,
:root[data-theme="light"] .empty-state p,
:root[data-theme="light"] .empty-state span,
:root[data-theme="light"] .empty-state small,
html[data-theme="light"] .notifications-empty p,
html[data-theme="light"] .notifications-empty span,
html[data-theme="light"] .notifications-empty small,
html[data-theme="light"] .empty-state p,
html[data-theme="light"] .empty-state span,
html[data-theme="light"] .empty-state small{
  color:#64748b !important;
}

:root[data-theme="light"] .page-centro-notificaciones .page-hero p,
:root[data-theme="light"] .page-centro-notificaciones .page-hero .hero-copy p,
html[data-theme="light"] .page-centro-notificaciones .page-hero p,
html[data-theme="light"] .page-centro-notificaciones .page-hero .hero-copy p{
  color:#64748b !important;
}

:root[data-theme="light"] .page-centro-notificaciones input::placeholder,
:root[data-theme="light"] .page-centro-notificaciones textarea::placeholder,
html[data-theme="light"] .page-centro-notificaciones input::placeholder,
html[data-theme="light"] .page-centro-notificaciones textarea::placeholder{
  color:#94a3b8 !important;
  opacity:1 !important;
}

/* === CENTRO NOTIFICACIONES LIGHT FINAL READABILITY 20260622 === */

/* Hero del centro: que no se lave en claro */
html[data-theme="light"] body.page-centro-notificaciones .page-hero,
:root[data-theme="light"] body.page-centro-notificaciones .page-hero,
html[data-theme="light"] body.page-notifications .page-hero,
:root[data-theme="light"] body.page-notifications .page-hero {
  background:
    radial-gradient(circle at left, rgba(207,250,254,.72), transparent 34%),
    radial-gradient(circle at right, rgba(250,232,255,.70), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(245,243,255,.86)) !important;
  color: #172033 !important;
  border-color: rgba(167,139,250,.24) !important;
}

html[data-theme="light"] body.page-centro-notificaciones .page-hero h1,
html[data-theme="light"] body.page-centro-notificaciones .page-hero h2,
html[data-theme="light"] body.page-notifications .page-hero h1,
html[data-theme="light"] body.page-notifications .page-hero h2,
:root[data-theme="light"] body.page-centro-notificaciones .page-hero h1,
:root[data-theme="light"] body.page-centro-notificaciones .page-hero h2,
:root[data-theme="light"] body.page-notifications .page-hero h1,
:root[data-theme="light"] body.page-notifications .page-hero h2 {
  color: #172033 !important;
  text-shadow: none !important;
}

html[data-theme="light"] body.page-centro-notificaciones .page-hero p,
html[data-theme="light"] body.page-notifications .page-hero p,
:root[data-theme="light"] body.page-centro-notificaciones .page-hero p,
:root[data-theme="light"] body.page-notifications .page-hero p {
  color: #475569 !important;
}

/* Cards principales */
html[data-theme="light"] body.page-centro-notificaciones .notification-admin-card,
html[data-theme="light"] body.page-centro-notificaciones .notifications-admin-card,
html[data-theme="light"] body.page-centro-notificaciones .notification-center-card,
html[data-theme="light"] body.page-centro-notificaciones .center-panel,
html[data-theme="light"] body.page-centro-notificaciones .admin-panel,
html[data-theme="light"] body.page-notifications .notification-admin-card,
html[data-theme="light"] body.page-notifications .notifications-admin-card,
html[data-theme="light"] body.page-notifications .notification-center-card,
html[data-theme="light"] body.page-notifications .center-panel,
html[data-theme="light"] body.page-notifications .admin-panel,
:root[data-theme="light"] body.page-centro-notificaciones .notification-admin-card,
:root[data-theme="light"] body.page-centro-notificaciones .notifications-admin-card,
:root[data-theme="light"] body.page-centro-notificaciones .notification-center-card,
:root[data-theme="light"] body.page-centro-notificaciones .center-panel,
:root[data-theme="light"] body.page-centro-notificaciones .admin-panel,
:root[data-theme="light"] body.page-notifications .notification-admin-card,
:root[data-theme="light"] body.page-notifications .notifications-admin-card,
:root[data-theme="light"] body.page-notifications .notification-center-card,
:root[data-theme="light"] body.page-notifications .center-panel,
:root[data-theme="light"] body.page-notifications .admin-panel {
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(250,245,255,.86)) !important;
  border-color: rgba(167,139,250,.22) !important;
  color: #172033 !important;
  box-shadow: 0 16px 36px rgba(85,72,120,.10) !important;
}

/* Empty state bien visible */
html[data-theme="light"] .cn-empty-readable,
html[data-theme="light"] .notifications-empty,
html[data-theme="light"] .empty-state,
:root[data-theme="light"] .cn-empty-readable,
:root[data-theme="light"] .notifications-empty,
:root[data-theme="light"] .empty-state {
  background:
    radial-gradient(circle at top, rgba(224,242,254,.70), transparent 44%),
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(250,245,255,.82)) !important;
  border: 1px dashed rgba(14,165,233,.30) !important;
  color: #334155 !important;
  opacity: 1 !important;
}

html[data-theme="light"] .cn-empty-readable *,
html[data-theme="light"] .notifications-empty *,
html[data-theme="light"] .empty-state *,
:root[data-theme="light"] .cn-empty-readable *,
:root[data-theme="light"] .notifications-empty *,
:root[data-theme="light"] .empty-state * {
  color: #334155 !important;
  opacity: 1 !important;
}

html[data-theme="light"] .cn-empty-readable p,
html[data-theme="light"] .notifications-empty p,
html[data-theme="light"] .empty-state p,
html[data-theme="light"] .cn-empty-readable span,
html[data-theme="light"] .notifications-empty span,
html[data-theme="light"] .empty-state span,
:root[data-theme="light"] .cn-empty-readable p,
:root[data-theme="light"] .notifications-empty p,
:root[data-theme="light"] .empty-state p,
:root[data-theme="light"] .cn-empty-readable span,
:root[data-theme="light"] .notifications-empty span,
:root[data-theme="light"] .empty-state span {
  color: #64748b !important;
}

/* Botones de acción del centro */
html[data-theme="light"] body.page-centro-notificaciones .btn,
html[data-theme="light"] body.page-centro-notificaciones button,
html[data-theme="light"] body.page-notifications .btn,
html[data-theme="light"] body.page-notifications button,
:root[data-theme="light"] body.page-centro-notificaciones .btn,
:root[data-theme="light"] body.page-centro-notificaciones button,
:root[data-theme="light"] body.page-notifications .btn,
:root[data-theme="light"] body.page-notifications button {
  text-shadow: none !important;
}

html[data-theme="light"] body.page-centro-notificaciones .btn-danger,
html[data-theme="light"] body.page-centro-notificaciones .danger-btn,
html[data-theme="light"] body.page-centro-notificaciones .clear-btn,
html[data-theme="light"] body.page-notifications .btn-danger,
html[data-theme="light"] body.page-notifications .danger-btn,
html[data-theme="light"] body.page-notifications .clear-btn,
:root[data-theme="light"] body.page-centro-notificaciones .btn-danger,
:root[data-theme="light"] body.page-centro-notificaciones .danger-btn,
:root[data-theme="light"] body.page-centro-notificaciones .clear-btn,
:root[data-theme="light"] body.page-notifications .btn-danger,
:root[data-theme="light"] body.page-notifications .danger-btn,
:root[data-theme="light"] body.page-notifications .clear-btn {
  background: rgba(252,231,243,.86) !important;
  border-color: rgba(244,114,182,.38) !important;
  color: #831843 !important;
}

/* Labels y headings */
html[data-theme="light"] body.page-centro-notificaciones label,
html[data-theme="light"] body.page-centro-notificaciones .eyebrow,
html[data-theme="light"] body.page-centro-notificaciones h2,
html[data-theme="light"] body.page-centro-notificaciones h3,
html[data-theme="light"] body.page-notifications label,
html[data-theme="light"] body.page-notifications .eyebrow,
html[data-theme="light"] body.page-notifications h2,
html[data-theme="light"] body.page-notifications h3,
:root[data-theme="light"] body.page-centro-notificaciones label,
:root[data-theme="light"] body.page-centro-notificaciones .eyebrow,
:root[data-theme="light"] body.page-centro-notificaciones h2,
:root[data-theme="light"] body.page-centro-notificaciones h3,
:root[data-theme="light"] body.page-notifications label,
:root[data-theme="light"] body.page-notifications .eyebrow,
:root[data-theme="light"] body.page-notifications h2,
:root[data-theme="light"] body.page-notifications h3 {
  color: #334155 !important;
}

/* Eyebrow en azul/lila legible */
html[data-theme="light"] body.page-centro-notificaciones .eyebrow,
html[data-theme="light"] body.page-notifications .eyebrow,
:root[data-theme="light"] body.page-centro-notificaciones .eyebrow,
:root[data-theme="light"] body.page-notifications .eyebrow {
  color: #4f46e5 !important;
}

/* === AVISOS BOLETIN CARDS POLISH 20260622 === */

/* Eyebrow en español */
.home-avisos-stable-header p {
  letter-spacing: 0.22em !important;
}

/* Dark mode: que siga cyber/neon, pero no cuadrado tipo bloque crudo */
html[data-theme="dark"] .home-avisos-stable-feed,
:root[data-theme="dark"] .home-avisos-stable-feed {
  gap: 16px !important;
}

html[data-theme="dark"] .home-avisos-stable-feed .home-cmd-card,
html[data-theme="dark"] .home-avisos-stable-feed .home-notice-card,
:root[data-theme="dark"] .home-avisos-stable-feed .home-cmd-card,
:root[data-theme="dark"] .home-avisos-stable-feed .home-notice-card {
  overflow: hidden !important;
  border-radius: 20px !important;
  padding: 18px 20px !important;
  border: 1px solid rgba(0, 245, 255, 0.18) !important;
  background:
    radial-gradient(circle at top left, rgba(0, 245, 255, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(6, 12, 28, 0.84), rgba(18, 8, 34, 0.72)) !important;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025) !important;
}

/* Dark severity: mismo mood, pero con bordes suaves */
html[data-theme="dark"] .home-notice-card.is-danger,
:root[data-theme="dark"] .home-notice-card.is-danger {
  border-color: rgba(236, 72, 153, 0.34) !important;
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.15), transparent 34%),
    linear-gradient(135deg, rgba(28, 8, 24, 0.86), rgba(15, 8, 30, 0.76)) !important;
}

html[data-theme="dark"] .home-notice-card.is-warning,
:root[data-theme="dark"] .home-notice-card.is-warning {
  border-color: rgba(245, 158, 11, 0.34) !important;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(28, 20, 8, 0.82), rgba(15, 8, 30, 0.76)) !important;
}

html[data-theme="dark"] .home-notice-card.is-info,
:root[data-theme="dark"] .home-notice-card.is-info {
  border-color: rgba(0, 245, 255, 0.30) !important;
  background:
    radial-gradient(circle at top left, rgba(0, 245, 255, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(4, 20, 30, 0.84), rgba(15, 8, 30, 0.74)) !important;
}

html[data-theme="dark"] .home-notice-card.is-neutral,
:root[data-theme="dark"] .home-notice-card.is-neutral {
  border-color: rgba(168, 85, 247, 0.30) !important;
  background:
    radial-gradient(circle at top left, rgba(168, 85, 247, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(14, 10, 32, 0.84), rgba(8, 12, 28, 0.74)) !important;
}

/* Prompt C:\classroom también suave en dark */
html[data-theme="dark"] .home-cmd-prompt,
:root[data-theme="dark"] .home-cmd-prompt {
  display: inline-flex !important;
  width: auto !important;
  margin: 0 0 10px !important;
  padding: 4px 9px !important;
  border-radius: 999px !important;
  background: rgba(0, 245, 255, 0.08) !important;
  border: 1px solid rgba(0, 245, 255, 0.20) !important;
  color: var(--cyan) !important;
  font-weight: 900 !important;
}

/* Contenido sin rectángulo plano */
html[data-theme="dark"] .home-cmd-content,
:root[data-theme="dark"] .home-cmd-content {
  background: transparent !important;
}

/* Botón link en dark más consistente */
html[data-theme="dark"] .home-notice-link,
:root[data-theme="dark"] .home-notice-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 12px !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  background: rgba(0, 245, 255, 0.08) !important;
  border: 1px solid rgba(0, 245, 255, 0.24) !important;
  color: var(--cyan) !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

/* Light mode: mantener el estilo bonito pero asegurar bordes suaves */
html[data-theme="light"] .home-avisos-stable-feed .home-cmd-card,
html[data-theme="light"] .home-avisos-stable-feed .home-notice-card,
:root[data-theme="light"] .home-avisos-stable-feed .home-cmd-card,
:root[data-theme="light"] .home-avisos-stable-feed .home-notice-card {
  border-radius: 20px !important;
}

/* Título editorial en ambos modos */
.home-avisos-stable-header h2 {
  text-transform: none !important;
}

/* === ANIMATED THEME SWITCH 20260622 === */
/*
  Reemplaza visualmente el botón circular de tema por un switch suave.
  Mantiene el mismo #themeToggle y la lógica existente.
*/

.theme-toggle.theme-switch {
  position: relative !important;
  width: 82px !important;
  height: 42px !important;
  min-width: 82px !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-radius: 999px !important;
  border: 1px solid rgba(168, 85, 247, 0.28) !important;
  cursor: pointer !important;
  isolation: isolate;
  transition:
    background 360ms cubic-bezier(.22, 1, .36, 1),
    border-color 360ms cubic-bezier(.22, 1, .36, 1),
    box-shadow 360ms cubic-bezier(.22, 1, .36, 1),
    transform 220ms ease !important;
}

.theme-toggle.theme-switch:hover {
  transform: translateY(-1px);
}

.theme-toggle.theme-switch:active {
  transform: translateY(0) scale(0.98);
}

.theme-switch-track {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  transition:
    background 360ms cubic-bezier(.22, 1, .36, 1),
    opacity 360ms cubic-bezier(.22, 1, .36, 1);
}

.theme-switch-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 32px;
  height: 32px;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 999px;
  transition:
    transform 420ms cubic-bezier(.22, 1, .36, 1),
    background 360ms cubic-bezier(.22, 1, .36, 1),
    box-shadow 360ms cubic-bezier(.22, 1, .36, 1);
}

.theme-switch-icon {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 0.92rem;
  pointer-events: none;
  transition:
    opacity 260ms ease,
    transform 360ms cubic-bezier(.22, 1, .36, 1),
    color 260ms ease;
}

.theme-switch-icon i {
  pointer-events: none;
}

.theme-switch-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 320ms ease;
}

.theme-switch-stars span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 8px rgba(255,255,255,0.75);
}

.theme-switch-stars span:nth-child(1) {
  left: 18px;
  top: 10px;
}

.theme-switch-stars span:nth-child(2) {
  left: 31px;
  bottom: 10px;
  width: 3px;
  height: 3px;
}

.theme-switch-stars span:nth-child(3) {
  left: 49px;
  top: 15px;
  width: 3px;
  height: 3px;
}

/* Dark mode */
html[data-theme="dark"] .theme-toggle.theme-switch,
:root[data-theme="dark"] .theme-toggle.theme-switch {
  background:
    radial-gradient(circle at 24% 50%, rgba(96, 165, 250, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(4, 6, 24, 0.96), rgba(22, 10, 42, 0.92)) !important;
  border-color: rgba(168, 85, 247, 0.36) !important;
  box-shadow:
    0 0 24px rgba(168, 85, 247, 0.16),
    inset 0 0 0 1px rgba(255,255,255,0.035) !important;
}

html[data-theme="dark"] .theme-switch-track,
:root[data-theme="dark"] .theme-switch-track {
  background:
    radial-gradient(circle at 20% 50%, rgba(15, 23, 42, 0.98), transparent 32%),
    linear-gradient(90deg, #050816, #141126 56%, #2d1746) !important;
}

html[data-theme="dark"] .theme-switch-thumb,
:root[data-theme="dark"] .theme-switch-thumb {
  transform: translateX(0);
  background:
    radial-gradient(circle at 62% 38%, #f8fafc 0 12%, transparent 13%),
    radial-gradient(circle at 46% 55%, #cbd5e1 0 38%, #f8fafc 39% 100%) !important;
  box-shadow:
    0 0 18px rgba(226, 232, 240, 0.50),
    0 0 32px rgba(168, 85, 247, 0.20) !important;
}

html[data-theme="dark"] .theme-switch-moon,
:root[data-theme="dark"] .theme-switch-moon {
  color: #ffffff !important;
  opacity: 1;
  transform: scale(1);
}

html[data-theme="dark"] .theme-switch-sun,
:root[data-theme="dark"] .theme-switch-sun {
  color: rgba(255,255,255,0.40) !important;
  opacity: 0.48;
  transform: scale(0.82);
}

html[data-theme="dark"] .theme-switch-stars,
:root[data-theme="dark"] .theme-switch-stars {
  opacity: 1;
}

/* Light mode */
html[data-theme="light"] .theme-toggle.theme-switch,
:root[data-theme="light"] .theme-toggle.theme-switch {
  background:
    radial-gradient(circle at 76% 50%, rgba(253, 186, 116, 0.34), transparent 34%),
    linear-gradient(135deg, rgba(224, 242, 254, 0.92), rgba(250, 232, 255, 0.88)) !important;
  border-color: rgba(14, 165, 233, 0.24) !important;
  box-shadow:
    0 10px 24px rgba(85, 72, 120, 0.12),
    inset 0 0 0 1px rgba(255,255,255,0.62) !important;
}

html[data-theme="light"] .theme-switch-track,
:root[data-theme="light"] .theme-switch-track {
  background:
    radial-gradient(circle at 80% 48%, rgba(254, 215, 170, 0.82), transparent 32%),
    linear-gradient(90deg, #dff7ff, #f5ecff 54%, #fff7ed) !important;
}

html[data-theme="light"] .theme-switch-thumb,
:root[data-theme="light"] .theme-switch-thumb {
  transform: translateX(42px);
  background:
    radial-gradient(circle at center, #fff7ad 0 34%, #facc15 35% 52%, #fef3c7 54% 100%) !important;
  box-shadow:
    0 8px 18px rgba(251, 191, 36, 0.28),
    0 0 0 4px rgba(255,255,255,0.58) !important;
}

html[data-theme="light"] .theme-switch-moon,
:root[data-theme="light"] .theme-switch-moon {
  color: #64748b !important;
  opacity: 0.50;
  transform: scale(0.82);
}

html[data-theme="light"] .theme-switch-sun,
:root[data-theme="light"] .theme-switch-sun {
  color: #b45309 !important;
  opacity: 1;
  transform: scale(1);
}

html[data-theme="light"] .theme-switch-stars,
:root[data-theme="light"] .theme-switch-stars {
  opacity: 0;
}

/* Accesibilidad */
.theme-toggle.theme-switch:focus-visible {
  outline: none !important;
  box-shadow:
    0 0 0 4px rgba(14, 165, 233, 0.22),
    0 10px 24px rgba(85, 72, 120, 0.12) !important;
}

@media (max-width: 720px) {
  .theme-toggle.theme-switch {
    width: 74px !important;
    min-width: 74px !important;
    height: 38px !important;
  }

  .theme-switch-thumb {
    width: 30px;
    height: 30px;
    top: 3px;
    left: 3px;
  }

  html[data-theme="light"] .theme-switch-thumb,
  :root[data-theme="light"] .theme-switch-thumb {
    transform: translateX(38px);
  }

  .theme-switch-icon {
    width: 34px;
  }
}

/* === ANIMATED THEME SWITCH DELUXE 20260622 === */
/*
  Switch de tema sin imágenes:
  - Dark: noche violeta, estrellas, medialuna con borde neon.
  - Light: cielo pastel, nubes, sol suave.
*/

.theme-toggle.theme-switch {
  width: 104px !important;
  min-width: 104px !important;
  height: 46px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  border-radius: 999px !important;
}

.theme-toggle.theme-switch:hover {
  transform: translateY(-1px);
}

.theme-toggle.theme-switch:active {
  transform: scale(0.985);
}

.theme-toggle.theme-switch .theme-switch-track {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.32);
  transition:
    border-color 420ms cubic-bezier(.22, 1, .36, 1),
    box-shadow 420ms cubic-bezier(.22, 1, .36, 1),
    background 420ms cubic-bezier(.22, 1, .36, 1);
}

.theme-switch-sky,
.theme-switch-stars,
.theme-switch-clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.theme-switch-sky {
  border-radius: inherit;
  transition:
    opacity 520ms cubic-bezier(.22, 1, .36, 1),
    transform 520ms cubic-bezier(.22, 1, .36, 1);
}

.theme-switch-sky-night {
  opacity: 1;
  background:
    radial-gradient(circle at 20% 44%, rgba(12, 15, 48, 0.95) 0 22%, transparent 23%),
    radial-gradient(circle at 78% 20%, rgba(255,255,255,0.12) 0 20%, transparent 21%),
    linear-gradient(135deg, #1f165f 0%, #4b2c96 52%, #7c4dd7 100%);
}

.theme-switch-sky-day {
  opacity: 0;
  transform: translateY(8px);
  background:
    radial-gradient(circle at 78% 50%, rgba(255, 224, 102, 0.34) 0 22%, transparent 23%),
    linear-gradient(180deg, #b8ecff 0%, #dff9ff 55%, #f7eeff 100%);
}

/* Estrellas modo noche */
.theme-switch-stars {
  opacity: 1;
  transition:
    opacity 360ms ease,
    transform 520ms cubic-bezier(.22, 1, .36, 1);
}

.theme-switch-stars span {
  position: absolute;
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 0 8px rgba(255,255,255,0.72);
}

.theme-switch-stars span:nth-child(1) {
  left: 48px;
  top: 10px;
}

.theme-switch-stars span:nth-child(2) {
  left: 62px;
  top: 22px;
  width: 2px;
  height: 2px;
}

.theme-switch-stars span:nth-child(3) {
  left: 76px;
  top: 14px;
}

.theme-switch-stars span:nth-child(4) {
  left: 88px;
  top: 28px;
  width: 2px;
  height: 2px;
}

.theme-switch-stars span:nth-child(5) {
  left: 38px;
  top: 29px;
  width: 2px;
  height: 2px;
}

/* Nubes inventadas con sombras */
.theme-switch-clouds {
  opacity: 0;
  transition:
    opacity 480ms cubic-bezier(.22, 1, .36, 1),
    transform 520ms cubic-bezier(.22, 1, .36, 1);
}

.theme-switch-clouds::before,
.theme-switch-clouds::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  filter: blur(0.1px);
}

.theme-switch-clouds-day {
  opacity: 0;
  transform: translateX(-10px);
}

.theme-switch-clouds-day::before {
  left: 8px;
  bottom: 4px;
  width: 58px;
  height: 16px;
  box-shadow:
    16px -7px 0 5px rgba(255,255,255,0.68),
    34px -3px 0 3px rgba(255,255,255,0.62),
    56px -6px 0 6px rgba(255,255,255,0.58);
}

.theme-switch-clouds-day::after {
  left: 35px;
  top: 8px;
  width: 44px;
  height: 14px;
  background: rgba(255,255,255,0.34);
  box-shadow:
    14px -4px 0 4px rgba(255,255,255,0.30),
    28px 0 0 3px rgba(255,255,255,0.24);
}

/* Nubes oscuras sutiles para la noche */
.theme-switch-clouds-night {
  opacity: 1;
}

.theme-switch-clouds-night::before {
  left: 42px;
  bottom: 6px;
  width: 54px;
  height: 15px;
  background: rgba(255,255,255,0.09);
  box-shadow:
    13px -8px 0 6px rgba(255,255,255,0.07),
    30px -3px 0 4px rgba(255,255,255,0.08);
}

.theme-switch-clouds-night::after {
  left: 55px;
  top: 8px;
  width: 38px;
  height: 13px;
  background: rgba(255,255,255,0.07);
  box-shadow:
    12px -4px 0 4px rgba(255,255,255,0.055);
}

/* Thumb */
.theme-toggle.theme-switch .theme-switch-thumb {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: block;
  transition:
    transform 560ms cubic-bezier(.22, 1, .36, 1),
    background 420ms cubic-bezier(.22, 1, .36, 1),
    box-shadow 420ms cubic-bezier(.22, 1, .36, 1);
}

.theme-switch-moon-shape,
.theme-switch-sun-shape {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  transition:
    opacity 360ms ease,
    transform 460ms cubic-bezier(.22, 1, .36, 1),
    box-shadow 420ms cubic-bezier(.22, 1, .36, 1);
}

/* Luna: medialuna hecha con ::before y ::after */
.theme-switch-moon-shape::before,
.theme-switch-moon-shape::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.theme-switch-moon-shape::before {
  width: 28px;
  height: 28px;
  left: 4px;
  top: 4px;
  background:
    radial-gradient(circle at 38% 34%, #ffffff, #dbe4f0 72%);
  box-shadow:
    inset -5px -5px 10px rgba(0,0,0,0.10),
    0 0 12px rgba(255,255,255,0.60);
}

.theme-switch-moon-shape::after {
  width: 27px;
  height: 27px;
  left: 12px;
  top: 3px;
  background: #30206d;
  box-shadow:
    -2px 0 0 rgba(0,245,255,0.34),
    -4px 0 12px rgba(0,245,255,0.28);
}

/* Sol */
.theme-switch-sun-shape::before,
.theme-switch-sun-shape::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.theme-switch-sun-shape::before {
  width: 28px;
  height: 28px;
  left: 4px;
  top: 4px;
  background:
    radial-gradient(circle at 34% 30%, #fff9b8, #facc15 70%, #f59e0b);
  box-shadow:
    inset -4px -4px 8px rgba(180,83,9,0.12),
    0 8px 16px rgba(251,191,36,0.26);
}

.theme-switch-sun-shape::after {
  inset: 1px;
  border-radius: inherit;
  border: 2px solid rgba(255,255,255,0.42);
  opacity: 0.65;
}

/* DARK */
html[data-theme="dark"] .theme-toggle.theme-switch .theme-switch-track,
:root[data-theme="dark"] .theme-toggle.theme-switch .theme-switch-track {
  border-color: rgba(168,85,247,0.48) !important;
  box-shadow:
    0 0 20px rgba(168,85,247,0.22),
    0 0 34px rgba(0,245,255,0.08),
    inset 0 0 0 1px rgba(255,255,255,0.035) !important;
}

html[data-theme="dark"] .theme-toggle.theme-switch .theme-switch-thumb,
:root[data-theme="dark"] .theme-toggle.theme-switch .theme-switch-thumb {
  transform: translateX(0);
  background: transparent !important;
  box-shadow:
    0 0 18px rgba(255,255,255,0.26),
    0 0 30px rgba(0,245,255,0.16) !important;
}

html[data-theme="dark"] .theme-switch-sky-night,
:root[data-theme="dark"] .theme-switch-sky-night {
  opacity: 1;
  transform: translateY(0);
}

html[data-theme="dark"] .theme-switch-sky-day,
:root[data-theme="dark"] .theme-switch-sky-day {
  opacity: 0;
  transform: translateY(8px);
}

html[data-theme="dark"] .theme-switch-stars,
:root[data-theme="dark"] .theme-switch-stars {
  opacity: 1;
  transform: translateX(0);
}

html[data-theme="dark"] .theme-switch-clouds-night,
:root[data-theme="dark"] .theme-switch-clouds-night {
  opacity: 1;
}

html[data-theme="dark"] .theme-switch-clouds-day,
:root[data-theme="dark"] .theme-switch-clouds-day {
  opacity: 0;
}

html[data-theme="dark"] .theme-switch-moon-shape,
:root[data-theme="dark"] .theme-switch-moon-shape {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

html[data-theme="dark"] .theme-switch-sun-shape,
:root[data-theme="dark"] .theme-switch-sun-shape {
  opacity: 0;
  transform: scale(0.70) rotate(-40deg);
}

/* LIGHT */
html[data-theme="light"] .theme-toggle.theme-switch .theme-switch-track,
:root[data-theme="light"] .theme-toggle.theme-switch .theme-switch-track {
  border-color: rgba(14,165,233,0.28) !important;
  box-shadow:
    0 10px 24px rgba(85,72,120,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.58) !important;
}

html[data-theme="light"] .theme-toggle.theme-switch .theme-switch-thumb,
:root[data-theme="light"] .theme-toggle.theme-switch .theme-switch-thumb {
  transform: translateX(58px);
  background: transparent !important;
  box-shadow:
    0 10px 22px rgba(251,191,36,0.22),
    0 0 0 4px rgba(255,255,255,0.46) !important;
}

html[data-theme="light"] .theme-switch-sky-night,
:root[data-theme="light"] .theme-switch-sky-night {
  opacity: 0;
  transform: translateY(-8px);
}

html[data-theme="light"] .theme-switch-sky-day,
:root[data-theme="light"] .theme-switch-sky-day {
  opacity: 1;
  transform: translateY(0);
}

html[data-theme="light"] .theme-switch-stars,
:root[data-theme="light"] .theme-switch-stars {
  opacity: 0;
  transform: translateX(-10px);
}

html[data-theme="light"] .theme-switch-clouds-night,
:root[data-theme="light"] .theme-switch-clouds-night {
  opacity: 0;
}

html[data-theme="light"] .theme-switch-clouds-day,
:root[data-theme="light"] .theme-switch-clouds-day {
  opacity: 1;
  transform: translateX(0);
}

html[data-theme="light"] .theme-switch-moon-shape,
:root[data-theme="light"] .theme-switch-moon-shape {
  opacity: 0;
  transform: scale(0.70) rotate(40deg);
}

html[data-theme="light"] .theme-switch-sun-shape,
:root[data-theme="light"] .theme-switch-sun-shape {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Ocultar estructura vieja si quedó alguna */
.theme-toggle.theme-switch > .theme-switch-icon {
  display: none !important;
}

/* Mobile */
@media (max-width: 720px) {
  .theme-toggle.theme-switch {
    width: 92px !important;
    min-width: 92px !important;
    height: 42px !important;
  }

  .theme-toggle.theme-switch .theme-switch-thumb {
    width: 32px;
    height: 32px;
  }

  html[data-theme="light"] .theme-toggle.theme-switch .theme-switch-thumb,
  :root[data-theme="light"] .theme-toggle.theme-switch .theme-switch-thumb {
    transform: translateX(50px);
  }

  .theme-switch-moon-shape::before,
  .theme-switch-sun-shape::before {
    width: 25px;
    height: 25px;
    left: 3.5px;
    top: 3.5px;
  }

  .theme-switch-moon-shape::after {
    width: 24px;
    height: 24px;
    left: 10px;
    top: 3px;
  }
}

/* === CENTRO NOTIFICATION FULL CARD TARGET V3 20260622 === */
/*
  V3:
  - La card externa completa recibe el color.
  - Si un div interno quedó marcado por V2, se vuelve transparente.
  - No cambia colores, no toca botones, no toca layout.
*/

/* Evita el error visual: card coloreada dentro de otra card */
.cn-existing-notification-card .cn-existing-notification-card {
  background: transparent !important;
  border-color: transparent !important;
  border-width: 0 !important;
  box-shadow: none !important;
}

/* La card completa debe tener el color, con todo el ancho */
.cn-existing-notification-card.cn-full-notification-card {
  border-width: 2px !important;
  border-style: solid !important;
  border-radius: 22px !important;
  overflow: hidden !important;
}

/* Un toque de respiración visual, sin inventar contenedores */
.cn-full-notification-card {
  position: relative;
}

/* === CENTRO NOTIFICATION DEEP BLUE TEXT 20260622 === */
/*
  Ajuste chico:
  - Solo en cards de notificaciones existentes.
  - Cambia textos/botones celeste flúor por azul profundo en modo claro.
  - No toca fondos ni layout.
*/

html[data-theme="light"] .cn-existing-notification-card a,
html[data-theme="light"] .cn-existing-notification-card button,
html[data-theme="light"] .cn-existing-notification-card .btn,
html[data-theme="light"] .cn-existing-notification-card [role="button"],
:root[data-theme="light"] .cn-existing-notification-card a,
:root[data-theme="light"] .cn-existing-notification-card button,
:root[data-theme="light"] .cn-existing-notification-card .btn,
:root[data-theme="light"] .cn-existing-notification-card [role="button"] {
  color: #075985 !important;
  text-shadow:
    1px 1px 0 rgba(255,255,255,0.80),
    -1px -1px 0 rgba(15,23,42,0.08) !important;
}

/* Íconos dentro de los botones */
html[data-theme="light"] .cn-existing-notification-card button i,
html[data-theme="light"] .cn-existing-notification-card .btn i,
html[data-theme="light"] .cn-existing-notification-card a i,
:root[data-theme="light"] .cn-existing-notification-card button i,
:root[data-theme="light"] .cn-existing-notification-card .btn i,
:root[data-theme="light"] .cn-existing-notification-card a i {
  color: #075985 !important;
}

/* Link largo dentro de la notificación */
html[data-theme="light"] .cn-existing-notification-card a[href],
:root[data-theme="light"] .cn-existing-notification-card a[href] {
  color: #0369a1 !important;
  font-weight: 900 !important;
  text-decoration-color: rgba(3,105,161,0.45) !important;
}

/* Botón borrar conserva rosa */
html[data-theme="light"] .cn-existing-notification-card button:has(.fa-trash),
html[data-theme="light"] .cn-existing-notification-card a:has(.fa-trash),
html[data-theme="light"] .cn-existing-notification-card .danger,
html[data-theme="light"] .cn-existing-notification-card .delete,
:root[data-theme="light"] .cn-existing-notification-card button:has(.fa-trash),
:root[data-theme="light"] .cn-existing-notification-card a:has(.fa-trash),
:root[data-theme="light"] .cn-existing-notification-card .danger,
:root[data-theme="light"] .cn-existing-notification-card .delete {
  color: #be3455 !important;
}

html[data-theme="light"] .cn-existing-notification-card button:has(.fa-trash) i,
html[data-theme="light"] .cn-existing-notification-card a:has(.fa-trash) i,
:root[data-theme="light"] .cn-existing-notification-card button:has(.fa-trash) i,
:root[data-theme="light"] .cn-existing-notification-card a:has(.fa-trash) i {
  color: #be3455 !important;
}

/* === HIDE CENTER EMAIL CARD 20260622 === */
/* Oculta solo la card informativa de email del centro de notificaciones. */
.center-email-card-hidden {
  display: none !important;
}

/* === CENTRO ADMIN SINGLE OFFICIAL CARD 20260623 === */
/*
  Centro de notificaciones:
  - Un único render oficial: .notification-admin-item.
  - No se transforma desde la campanita.
  - No se usa #notificationsList.
*/

.notification-admin-meta {
  display: block !important;
  margin-top: 0.75rem !important;
  color: rgba(235, 245, 255, 0.64) !important;
  line-height: 1.45 !important;
  font-weight: 750 !important;
}

.notification-admin-item.cn-existing-notification-card.cn-full-notification-card {
  border-width: 2px !important;
  border-radius: 22px !important;
}

.notification-admin-item-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin-top: 0.9rem !important;
}

.notification-admin-item-actions button {
  position: static !important;
  width: auto !important;
  min-width: auto !important;
  transform: none !important;
}

html[data-theme="light"] .notification-admin-meta,
:root[data-theme="light"] .notification-admin-meta {
  color: rgba(32, 23, 53, 0.68) !important;
}

html[data-theme="light"] .notification-admin-tags span,
:root[data-theme="light"] .notification-admin-tags span {
  background: rgba(255, 255, 255, 0.74) !important;
  color: #174366 !important;
  border: 1px solid rgba(15, 23, 42, 0.05) !important;
}\n\n/* === CENTRO ADMIN META BELOW ACTIONS 20260623 === */
.notification-admin-item-actions + .notification-admin-meta {
  margin-top: 0.8rem !important;
}\n\n\n/* === CENTRO ADMIN DELETE BUSY 20260623 === */
.notification-admin-item.is-deleting {
  opacity: 0.58 !important;
  pointer-events: none !important;
  filter: grayscale(0.2) !important;
}

.notification-admin-item.is-deleting::after {
  content: "Borrando..." !important;
  position: absolute !important;
  right: 18px !important;
  bottom: 16px !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  color: rgba(235, 245, 255, 0.72) !important;
}\n