
:root {
  --hw-charcoal: #1e1e1e;
  --hw-graphite: #656f77;
  --hw-off-white: #f8f9fa;
  --hw-cream: #f5f5f7;
  
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --duration-slower: 600ms;
  
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-elevated: 0 12px 32px rgba(0, 0, 0, 0.16);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseSubtle {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.9;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes floatSubtle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes borderGlow {
  0%, 100% {
    border-color: var(--hw-graphite);
  }
  50% {
    border-color: var(--hw-charcoal);
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes staggerFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-body {
  display: flex;
  min-height: 100vh;
  background: #f5f5f7;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

.dashboard-body h1,
.dashboard-body h2,
.dashboard-body h3,
#mainContent h1,
#mainContent h2 {
  font-family: 'Georgia';
  font-weight: 400;
  letter-spacing: -0.3px;
}

.dashboard-body::before {
  display: none;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.sidebar {
  width: 260px;
  background: #ffffff;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  color: #1e1e1e;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-toggle {
  position: fixed;
  left: 10px;
  top: 10px;
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 101;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  color: #1e1e1e;
}

.sidebar-toggle:hover {
  background: #f5f5f7;
  transform: scale(1.02);
}

.sidebar-toggle svg,
.sidebar-toggle i {
  width: 24px;
  height: 24px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sidebar-header img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  border: none;
  padding: 0;
}

.sidebar-header h2 {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.3px;
  color: #1e1e1e;
  font-family: Georgia, 'Times New Roman', serif;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  flex: 1;
  gap: 4px;
}

.dashboard-main {
  margin-left: 260px;
  flex: 1;
  padding: 0;
  min-height: 100vh;
  position: relative;
  background: #f5f5f7;
  z-index: 2;
  transition: margin-left 0.3s ease;
}

.dashboard-header {
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  animation: fadeInUp var(--duration-slow) var(--ease-smooth);
}

.dashboard-header h1 {
  color: var(--hw-charcoal);
  font-weight: 400;
  font-size: 2.75rem;
  letter-spacing: -0.3px;
  font-family: Georgia, 'Times New Roman', serif;
  animation: slideInLeft var(--duration-slower) var(--ease-smooth) 100ms backwards;
}

.sidebar-menu button {
  font-family: 'Inter';
  color: #656f77;
  background: transparent;
  border: none;
  text-align: left;
  padding: 14px 16px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 10px;
  position: relative;
  animation: navSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes navSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.sidebar-menu button:nth-child(1) { animation-delay: 50ms; }
.sidebar-menu button:nth-child(2) { animation-delay: 100ms; }
.sidebar-menu button:nth-child(3) { animation-delay: 150ms; }
.sidebar-menu button:nth-child(4) { animation-delay: 200ms; }
.sidebar-menu button:nth-child(5) { animation-delay: 250ms; }
.sidebar-menu button:nth-child(6) { animation-delay: 300ms; }
.sidebar-menu button:nth-child(7) { animation-delay: 350ms; }
.sidebar-menu button:nth-child(8) { animation-delay: 400ms; }
.sidebar-menu button:nth-child(9) { animation-delay: 450ms; }
.sidebar-menu button:nth-child(10) { animation-delay: 500ms; }

.sidebar-menu button::before {
  display: none;
}

.sidebar-menu button:hover {
  background: #f5f5f7;
  color: var(--hw-charcoal);
  transform: translateX(6px);
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.05);
  border-left: 3px solid rgba(147, 161, 173, 0.45);
}

.sidebar-menu button:hover::before {
  display: none;
}

.sidebar-menu button.active {
  background: #5d646b;
  color: #ffffff;
  box-shadow: var(--shadow-hover);
  transform: none;
  font-weight: 500;
  border-left: 4px solid rgba(147, 161, 173, 0.95);
}

.sidebar-menu button.active::before {
  display: none;
}

.sidebar-menu button.logout {
  margin-top: auto;
  margin-bottom: 16px;
  background: transparent;
  border: none;
  color: #999;
}

.sidebar-menu button.logout:hover {
  background: #fff0f0;
  color: #e53935;
  transform: translateX(4px);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--hw-cream);
  padding: 10px 16px;
  border-radius: 50px;
  font-weight: 500;
  color: var(--hw-charcoal);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--duration-normal) var(--ease-smooth);
  animation: slideInRight var(--duration-slow) var(--ease-smooth);
}

.user-info:hover {
  background: #e9ecef;
  transform: translateY(-1px);
  box-shadow: var(--shadow-subtle);
}

.user-avatar-header {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e5e5;
  border: none;
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.user-info:hover .user-avatar-header {
  transform: scale(1.05);
}

.user-info i {
  width: 18px;
  height: 18px;
  color: var(--hw-graphite);
}

.sidebar-menu button:hover {
  background: #f5f5f7;
  border-left-color: transparent;
  color: #1e1e1e;
}

.sidebar-menu button.active:hover {
  background: #1e1e1e;
  color: #ffffff;
}

.sidebar-menu button i {
  width: 20px;
  height: 20px;
}

.notification-badge {
  position: absolute;
  top: 8px;
  right: 12px;
  background: #93a1ad;
  color: white;
  border-radius: 12px;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  padding: 0 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  animation: notificationPulse 2s ease-in-out infinite;
}

.notification-badge:empty {
  min-width: 10px;
  height: 10px;
  padding: 0;
}

@keyframes notificationPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

.loader {
  width: 50px;
  height: 50px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.loader::before,
.loader::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.loader::before {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #5d646b 0%, #4a5259 100%);
  opacity: 0.8;
}

.loader::after {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #4a5259 0%, #5d646b 100%);
  animation-delay: 1s;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(0.5);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.3;
  }
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.hidden {
  display: none;
}

.spa-animate {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(6px);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.spa-animate.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

#mainContent {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px;
  margin: 24px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(0, 0, 0, 0.06);
  animation: fadeInUp var(--duration-slow) var(--ease-smooth);
}

#mainContent table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  animation: fadeInUp var(--duration-slower) var(--ease-smooth) 100ms backwards;
}

#mainContent th {
  background: #1e1e1e;
  color: white;
  padding: 14px 16px;
  text-align: left;
  font-weight: 500;
  font-size: 0.9rem;
}

#mainContent td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  vertical-align: middle;
  font-size: 0.95rem;
  color: #1e1e1e;
}

#mainContent tbody tr {
  transition: all var(--duration-normal) var(--ease-smooth);
}

#mainContent tbody tr:hover {
  background: var(--hw-cream);
  transform: translateX(4px);
  box-shadow: none;
}

#mainContent h2 {
  color: #000000;
  margin-bottom: 20px;
  font-weight: 400;
  font-size: 2.0em;
  font-family: 'Georgia';
  animation: fadeInUp var(--duration-slow) var(--ease-smooth);
}

.actions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary {
  background: var(--hw-charcoal);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: all var(--duration-normal) var(--ease-smooth);
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.btn-primary:active::after {
  width: 200%;
  height: 200%;
}

.btn-primary:hover {
  background: #333333;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: #ffffff;
  color: var(--hw-charcoal);
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: all var(--duration-normal) var(--ease-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: var(--hw-cream);
  border-color: rgba(147, 161, 173, 0.55);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-icon-primary {
  background: #cbd5e0;
  color: #718096;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: none;
}

.btn-icon-primary:hover {
  background: #a0aec0;
  color: #4a5568;
  transform: scale(1.05);
}

.btn-icon-primary i {
  width: 18px;
  height: 18px;
}

.btn-icon-edit {
  background: #cbd5e0;
  color: #718096;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal) var(--ease-smooth);
  box-shadow: none;
}

.btn-icon-edit:hover {
  background: rgba(147, 161, 173, 0.9);
  color: white;
  transform: scale(1.1) translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-icon-edit i {
  width: 18px;
  height: 18px;
}

.btn-icon-danger {
  background: #cbd5e0;
  color: #718096;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal) var(--ease-smooth);
  box-shadow: none;
}

.btn-icon-danger:hover {
  background: #fc8181;
  color: white;
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 4px 12px rgba(252, 129, 129, 0.4);
}

.btn-icon-danger i {
  width: 18px;
  height: 18px;
}

.btn-icon-docs {
  background: #cbd5e0;
  color: #718096;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal) var(--ease-smooth);
  box-shadow: none;
}

.btn-icon-docs:hover {
  background: var(--hw-graphite);
  color: white;
  transform: scale(1.1) translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-icon-docs i {
  width: 18px;
  height: 18px;
}

.btn-icon-warning {
  background: #cbd5e0;
  color: #718096;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal) var(--ease-smooth);
  box-shadow: none;
}

.btn-icon-warning:hover {
  background: #f59e0b;
  color: white;
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-icon-warning i {
  width: 18px;
  height: 18px;
}

.btn-icon-success {
  background: #cbd5e0;
  color: #718096;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal) var(--ease-smooth);
  box-shadow: none;
}

.btn-icon-success:hover {
  background: #68d391;
  color: white;
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 4px 12px rgba(104, 211, 145, 0.4);
}

.btn-icon-success i {
  width: 18px;
  height: 18px;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 600px;
  border-radius: 16px;
  position: relative;
  padding: 0;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
  margin: auto;
  border: 1px solid rgba(0, 0, 0, 0.06);
  animation: modalContentSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalContentSlide {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 24px;
  background: #1e1e1e;
  border-radius: 16px 16px 0 0;
  border-bottom: none;
  position: relative;
}

.modal-header h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.4em;
  font-weight: 400;
  font-family: 'Inter';
}

.close-modal {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal) var(--ease-smooth);
  padding: 0;
  margin: 0;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: rotate(90deg);
}

.modal-header .close-modal {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 36px;
  height: 36px;
  font-size: 18px;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  background: transparent;
}

.form-actions .close-modal {
  font-size: 14px;
  width: auto;
  height: 38px;
  padding: 8px 20px;
  margin: 0;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  color: #444;
  border: 1px solid #ddd;
}

#formCalificacion {
  padding: 24px;
  width: 100%;
}

.form-group {
  margin-bottom: 20px;
  width: 100%;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--hw-charcoal);
  font-weight: 500;
  font-size: 0.9rem;
  text-align: left;
  font-family: 'Inter', sans-serif;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: all var(--duration-normal) var(--ease-smooth);
  background: #ffffff;
  box-sizing: border-box;
  color: var(--hw-charcoal);
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: rgba(147, 161, 173, 0.65);
  box-shadow: 0 0 0 3px rgba(147, 161, 173, 0.18);
  transform: translateY(-1px);
}

.form-group:focus-within label {
  color: var(--hw-graphite);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

#formCalificacion .form-row {
  align-items: start;
}

#formCalificacion .form-row .form-group {
  display: flex;
  flex-direction: column;
  align-items: center; /* centra label e input horizontalmente dentro de cada columna */
  text-align: center;
}

#formCalificacion .form-row .form-group input[type="number"] {
  width: 120px; /* ancho fijo razonable para puntuaciones */
  max-width: 100%;
  box-sizing: border-box; /* evita overflow por padding/border */
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.08s ease;
}

#formCalificacion .form-row .form-group input[type="number"]:focus {
  transform: translateY(-1px);
}

@media (max-width: 520px) {
  #formCalificacion .form-row {
    grid-template-columns: 1fr;
  }

  #formCalificacion .form-row .form-group input[type="number"] {
    width: 100%;
  }
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
  min-width: 100px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 12px;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.form-actions .btn-primary {
  background: #1e1e1e;
  color: #ffffff;
  border: none;
}

.form-actions .btn-primary:hover {
  background: #333333;
  transform: none;
}

.form-actions .btn-secondary {
  background: #ffffff;
  color: #1e1e1e;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.form-actions .btn-secondary:hover {
  background: #f5f5f7;
  border-color: rgba(0, 0, 0, 0.18);
  transform: none;
}

.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 15px 25px;
  border-radius: 4px;
  color: white;
  font-size: 14px;
  z-index: 3000;
  animation: slideIn 0.3s ease;
}

.notification.success {
  background-color: #28a745;
}

.notification.error {
  background-color: #dc3545;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.cursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 24px;
  margin-top: 24px;
  width: 100%;
}

.curso-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 0;
  box-shadow: var(--shadow-subtle);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  animation: cursoCardEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes cursoCardEntrance {
  from {
    opacity: 0;
    transform: translateY(50px) rotateX(10deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

.curso-card:nth-child(1) { animation-delay: 100ms; }
.curso-card:nth-child(2) { animation-delay: 180ms; }
.curso-card:nth-child(3) { animation-delay: 260ms; }
.curso-card:nth-child(4) { animation-delay: 340ms; }
.curso-card:nth-child(5) { animation-delay: 420ms; }
.curso-card:nth-child(6) { animation-delay: 500ms; }

.curso-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(101, 111, 119, 0.04) 100%);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.curso-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border-color: rgba(147, 161, 173, 0.55);
}

.curso-card:hover::before {
  opacity: 1;
}

.curso-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 0;
  background: #4a5259;
  padding: 20px;
  border-radius: 16px 16px 0 0;
  position: relative;
  overflow: hidden;
}

.curso-card-header::after {
  display: none;
}

@keyframes cursoFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  50% {
    transform: translate(-10px, 10px) scale(1.1);
    opacity: 0;
  }
}

.curso-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: none;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.2);
  overflow: hidden;
}

.curso-icon.has-avatar {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
}

.curso-icon.no-avatar {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.curso-icon .avatar-iniciales {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.5px;
}

.curso-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.curso-card:hover .curso-icon img {
  transform: scale(1.05);
}

.curso-card:hover .curso-icon {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background: rgba(255,255,255,0.25);
}

.curso-icon svg,
.curso-icon i {
  width: 24px;
  height: 24px;
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.curso-card:hover .curso-icon svg,
.curso-card:hover .curso-icon i {
  transform: scale(1.15) rotate(5deg);
}

.curso-card-title {
  flex: 1;
  position: relative;
  z-index: 1;
}

.curso-card-title h3 {
  margin: 0 0 4px 0;
  font-size: 17px;
  color: #ffffff;
  font-weight: 500;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  text-shadow: none;
  transition: none;
}

.curso-card:hover .curso-card-title h3 {
  transform: none;
}

.curso-card-title .idioma {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 8px;
}

.curso-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,255,255,0.95);
  color: #1e1e1e;
  margin-top: 6px;
  letter-spacing: 0.3px;
  box-shadow: none;
  transition: none;
}

.curso-card:hover .curso-badge {
  transform: none;
  box-shadow: none;
}

.curso-card-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  padding: 20px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #4a5568;
}

.info-row i {
  width: 20px;
  height: 20px;
  color: #a0aec0;
  flex-shrink: 0;
}

.curso-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid rgba(66, 99, 140, 0.08);
  gap: 16px;
  min-height: 76px;
}

.curso-card-footer .card-actions,
.curso-card-footer > div:last-child {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.cupos-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.cupos-text {
  font-size: 13px;
  color: #718096;
  font-weight: 500;
}

.cupos-bar {
  width: 160px;
  height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
}

.cupos-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #81c784);
  transition: width 0.3s ease;
}

.cupos-bar-fill.warning {
  background: linear-gradient(90deg, #ff9800, #ffb74d);
}

.cupos-bar-fill.danger {
  background: linear-gradient(90deg, #f44336, #ef5350);
}

.ver-detalles-btn {
  background: #1e1e1e;
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: none;
}

.ver-detalles-btn:hover {
  background: #333333;
  transform: none;
  box-shadow: none;
}

.curso-panel {
  position: fixed;
  top: 0;
  right: -600px;
  width: 600px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 3px solid rgba(147, 161, 173, 0.65);
}

.curso-panel.active {
  right: 0;
}

.curso-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.curso-panel-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.curso-panel-header {
  background: #1e1e1e;
  color: #ffffff;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: none;
}

.curso-panel-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: -0.5px;
}

.close-panel {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 20px;
}

.close-panel:hover {
  background: rgba(255,255,255,0.25);
  transform: none;
}

.curso-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
  background: #f5f5f7;
}

.panel-section {
  margin-bottom: 32px;
}

.panel-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1e1e1e;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-family: 'Inter';
}

.panel-section h3 i {
  color: #656f77;
  width: 24px;
  height: 24px;
}

.curso-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
  width: 100%;
}

.stat-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  border-left: 4px solid var(--hw-charcoal);
  text-align: center;
  box-shadow: var(--shadow-subtle);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--hw-charcoal);
  animation: cardSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.stat-card:nth-child(1) { animation-delay: 80ms; }
.stat-card:nth-child(2) { animation-delay: 160ms; }
.stat-card:nth-child(3) { animation-delay: 240ms; }
.stat-card:nth-child(4) { animation-delay: 320ms; }
.stat-card:nth-child(5) { animation-delay: 400ms; }
.stat-card:nth-child(6) { animation-delay: 480ms; }

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(101, 111, 119, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(147, 161, 173, 0.55);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card.success {
  border-left-color: #2e7d32;
}

.stat-card.warning {
  border-left-color: #f59e0b;
}

.stat-card.info {
  border-left-color: var(--hw-graphite);
}

.stat-label {
  font-size: 13px;
  color: var(--hw-graphite);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--hw-charcoal);
  animation: countUp var(--duration-slower) var(--ease-smooth) 200ms backwards;
}

.alumnos-inscritos-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alumno-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--hw-off-white);
  border-radius: 8px;
  transition: all var(--duration-normal) var(--ease-smooth);
  animation: slideInLeft var(--duration-slow) var(--ease-smooth) backwards;
}

.alumno-item:nth-child(1) { animation-delay: 50ms; }
.alumno-item:nth-child(2) { animation-delay: 100ms; }
.alumno-item:nth-child(3) { animation-delay: 150ms; }
.alumno-item:nth-child(4) { animation-delay: 200ms; }
.alumno-item:nth-child(5) { animation-delay: 250ms; }
.alumno-item:nth-child(6) { animation-delay: 300ms; }

.alumno-item:hover {
  background: #e9ecef;
  transform: translateX(6px);
  box-shadow: var(--shadow-subtle);
  border-left: 3px solid rgba(147, 161, 173, 0.55);
}

.alumno-item:hover .alumno-avatar {
  transform: scale(1.05);
}

.alumno-avatar {
  width: 40px;
  height: 40px;
  background: rgba(74, 82, 89, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration-normal) var(--ease-smooth);
  color: #4a5259;
  font-weight: 500;
  font-size: 14px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  flex-shrink: 0;
  border: 1px solid rgba(74, 82, 89, 0.2);
}

.alumno-info {
  flex: 1;
}

.alumno-nombre {
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.alumno-email {
  font-size: 13px;
  color: #666;
}

/* Historial de Ciclos Lectivos */
.curso-historial-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.historial-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  animation: cardSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.historial-card:nth-child(1) { animation-delay: 100ms; }
.historial-card:nth-child(2) { animation-delay: 200ms; }
.historial-card:nth-child(3) { animation-delay: 300ms; }

.historial-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.historial-card-header strong {
  font-size: 15px;
  color: #1e1e1e;
}

.historial-ciclo {
  font-size: 14px;
  font-weight: 600;
  color: #4a5259;
  background: rgba(74, 82, 89, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
}

.historial-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
  vertical-align: middle;
}

.historial-badge.activo {
  background: #e8f5e9;
  color: #2e7d32;
}

.historial-badge.inactivo {
  background: #f3f4f6;
  color: #6b7280;
}

.historial-card-meta {
  display: flex;
  gap: 16px;
  padding: 10px 18px;
  font-size: 13px;
  color: #666;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.historial-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.historial-card-meta i {
  width: 14px;
  height: 14px;
}

.historial-alumnos {
  padding: 12px 18px;
}

.historial-alumnos .alumno-item {
  padding: 10px 12px;
  margin-bottom: 6px;
}

.historial-alumnos .alumno-item:last-child {
  margin-bottom: 0;
}

.historial-notas {
  display: block;
  font-size: 12px;
  color: #4a5259;
  margin-top: 2px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

.historial-empty {
  font-size: 13px;
  color: #999;
  text-align: center;
  padding: 8px 0;
  margin: 0;
}

.panel-actions {
  display: flex;
  gap: 12px;
  padding: 20px 28px;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
}

.panel-btn {
  flex: 1;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.panel-btn.primary {
  background: #4a5259;
  color: white;
  box-shadow: 0 2px 8px rgba(74, 82, 89, 0.2);
}

.panel-btn.primary:hover {
  background: #3d444a;
  box-shadow: 0 4px 12px rgba(74, 82, 89, 0.25);
}

.panel-btn.secondary {
  background: white;
  color: #4a5259;
  border: 1px solid #4a5259;
}

.panel-btn.secondary:hover {
  background: rgba(74, 82, 89, 0.05);
  border-color: #3d444a;
}

.panel-btn.danger {
  background: #f44336;
  color: white;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.panel-btn.danger:hover {
  background: #d32f2f;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(244, 67, 54, 0.4);
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.tabs-container {
  display: flex;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  padding: 0 24px;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 18px 28px;
  font-size: 15px;
  font-weight: 500;
  color: #656f77;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  font-family: 'Inter', sans-serif;
}

.tab-btn:hover {
  color: #1e1e1e;
  background: #f5f5f7;
}

.tab-btn.active {
  color: #1e1e1e;
  border-bottom-color: rgba(147, 161, 173, 0.9);
  background: transparent;
  font-weight: 600;
}

.tab-badge {
  background: rgba(147, 161, 173, 0.95);
  color: #ffffff;
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: none;
}

.tab-btn:not(.active) .tab-badge {
  background: #b0b0b0;
  box-shadow: none;
}

.tab-content {
  display: none;
  padding: 26px 16px;
  animation: fadeIn 0.2s ease;
  background: #f5f5f7;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-box {
  position: relative;
  margin-bottom: 20px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
}

.search-box input:focus {
  outline: none;
  border-color: rgba(147, 161, 173, 0.65);
  box-shadow: 0 0 0 3px rgba(147, 161, 173, 0.15);
}

.search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #656f77;
}

.search-box-wrapper {
  position: relative;
  margin-bottom: 20px;
  max-width: 600px;
}

.search-box-wrapper .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 1;
}

.search-box-wrapper .search-input-with-icon {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-box-wrapper .search-input-with-icon:focus {
  outline: none;
  border-color: #4a5259;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.search-box-wrapper .search-input-with-icon::placeholder {
  color: #999;
}

.alumnos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-height: 450px;
  overflow-y: auto;
  padding: 4px;
  width: 100%;
}

.alumno-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 0;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.alumno-card:hover {
  border-color: rgba(147, 161, 173, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.alumno-card.selected {
  border-color: #1e1e1e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alumno-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  background: #5d646b;
  padding: 20px;
  border-radius: 16px 16px 0 0;
}

.alumno-card-avatar {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
  font-size: 18px;
  flex-shrink: 0;
}

.alumno-card-info h4 {
  margin: 0 0 4px 0;
  font-size: 15px;
  color: #ffffff;
  font-weight: 400;
  font-family: 'Inter';
}

.alumno-card-info .legajo {
  font-size: 12px;
  color: #2d3748;
  background: white;
  padding: 4px 12px;
  border-radius: 10px;
  display: inline-block;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.alumno-card-body {
  padding: 20px;
}

.alumno-card-email {
  margin-left: 85px;
  padding: 10px;
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.alumno-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 14px 20px;
  border-top: 1px solid rgba(66, 99, 140, 0.08);
  margin-left: -20px;
  margin-right: -20px;
  margin-bottom: -20px;
}

.btn-small {
  flex: 1;
  padding: 14px 12px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-small.btn-baja {
  background: #f44336;
  color: white;
}

.btn-small.btn-baja:hover {
  background: #d32f2f;
  transform: scale(1.05);
}

.btn-small.btn-edit {
  background: #ff9800;
  color: white;
}

.btn-small.btn-edit:hover {
  background: #f57c00;
  transform: scale(1.05);
}

.checkbox-card {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.modal-footer-actions {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
  justify-content: space-between;
  align-items: center;
}

.selected-count {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e1e1e;
  color: #ffffff;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  animation: slideInRight 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.toast.success {
  background: #166534;
}

.toast.error {
  background: #991b1b;
}

@keyframes slideInRight {
  from { transform: translateX(400px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.alumnos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
}

.alumnos-search-filter {
  display: flex;
  gap: 12px;
  flex: 1;
  max-width: 100%;
  align-items: center;
}

.alumnos-search-filter input[type="text"] {
  flex: 1;
  padding: 12px 44px 12px 44px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  max-width: 600px;
}

.search-filter-wrapper {
  position: relative;
  flex: 1;
}

.filter-toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #888;
  transition: all 0.2s;
  z-index: 2;
}

.filter-toggle-btn:hover {
  background: #f3f4f6;
  color: #333;
  border-color: #aaa;
}

.filter-toggle-btn.has-filters {
  background: #4a5259;
  color: white;
  border-color: #4a5259;
}

.filter-badge {
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  position: absolute;
  top: -2px;
  right: -2px;
}

.filter-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 100;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}

.filter-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.filter-dropdown-title {
  font-size: 13px;
  font-weight: 600;
  color: #4a5259;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-dropdown-group {
  margin-bottom: 12px;
}

.filter-dropdown-group:last-child {
  margin-bottom: 0;
}

.filter-dropdown-label {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-dropdown-checkboxes {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.filter-dropdown-checkboxes label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  white-space: nowrap;
}

.filter-dropdown select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  color: #555;
  background: white;
}

.alumno-estado-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

.alumno-estado-badge.activo {
  background: #dcfce7;
  color: #166534;
}

.alumno-estado-badge.inactivo {
  background: #fee2e2;
  color: #991b1b;
}

.cursos-badge {
  background: #1e1e1e;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.alumno-panel {
  position: fixed;
  top: 0;
  right: -700px;
  width: 700px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 3px solid rgba(147, 161, 173, 0.65);
}

.alumno-panel.active {
  right: 0;
}

.alumno-panel-header {
  background: #1e1e1e;
  color: #ffffff;
  padding: 32px;
  box-shadow: none;
  position: relative;
}

.alumno-panel-header .close-panel {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
}

.alumno-panel-header .close-panel:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: none;
}

.alumno-panel-header-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.alumno-panel-avatar {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.alumno-panel-info h2 {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-family: Georgia, 'Times New Roman', serif;
}

.alumno-panel-info .legajo-info {
  opacity: 0.9;
  font-size: 14px;
}

.alumno-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
  background: #f5f5f7;
}

.info-section {
  margin-bottom: 32px;
}

.info-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1e1e1e;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Georgia, 'Times New Roman', serif;
}

.info-section h3 i {
  color: #656f77;
}

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

.info-item {
  background: #ffffff;
  padding: 16px;
  border-radius: 12px;
  border-left: 3px solid rgba(147, 161, 173, 0.75);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.info-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-subtle);
}

.info-item-label {
  font-size: 12px;
  color: var(--hw-graphite);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-item-value {
  font-size: 15px;
  color: var(--hw-charcoal);
  font-weight: 500;
}

.cursos-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.curso-item {
  background: var(--hw-off-white);
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid rgba(147, 161, 173, 0.65);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--duration-normal) var(--ease-smooth);
  animation: slideInLeft var(--duration-slow) var(--ease-smooth) backwards;
}

.curso-item:nth-child(1) { animation-delay: 50ms; }
.curso-item:nth-child(2) { animation-delay: 100ms; }
.curso-item:nth-child(3) { animation-delay: 150ms; }
.curso-item:nth-child(4) { animation-delay: 200ms; }

.curso-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-subtle);
  border-left-color: rgba(147, 161, 173, 0.95);
}

.curso-item-info h4 {
  margin: 0 0 4px 0;
  font-size: 15px;
  color: #1a1a1a;
}

.curso-item-info p {
  margin: 0;
  font-size: 13px;
  color: #666;
}

.curso-item-calificacion {
  text-align: right;
}

.curso-item-calificacion .promedio {
  font-size: 24px;
  font-weight: 700;
  color: var(--hw-graphite);
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.curso-item:hover .promedio {
  transform: scale(1.05);
}

.curso-item-calificacion .label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
}

.stat-box {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  border-left: 4px solid #4a5259;
}

.stat-box.success {
  border-left-color: #4caf50;
}

.stat-box.warning {
  border-left-color: #ff9800;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: #4a5259;
  margin-bottom: 4px;
}

.stat-box.success .stat-number {
  color: #4caf50;
}

.stat-box.warning .stat-number {
  color: #ff9800;
}

.stat-label {
  font-size: 13px;
  color: #666;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4a5259, #6b7280);
  transition: width 0.3s ease;
}

.progress-bar-fill.success {
  background: linear-gradient(90deg, #4caf50, #81c784);
}

.progress-bar-fill.warning {
  background: linear-gradient(90deg, #ff9800, #ffb74d);
}

.progress-bar-fill.danger {
  background: linear-gradient(90deg, #f44336, #ef5350);
}

.pagos-summary {
  background: linear-gradient(135deg, #4a5259 0%, #6b7280 100%);
  color: white;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.pagos-summary h4 {
  margin: 0 0 16px 0;
  font-size: 14px;
  opacity: 0.9;
}

.pagos-total {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pagos-ultimo {
  font-size: 13px;
  opacity: 0.8;
}

.profesores-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
}

.profesores-search-filter {
  display: flex;
  gap: 12px;
  flex: 1;
  max-width: 100%;
  align-items: center;
}

.profesores-search-filter input[type="text"] {
  flex: 1;
  padding: 12px 44px 12px 44px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  max-width: 500px;
}

.profesor-estado-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

.profesor-estado-badge.activo {
  background: #dcfce7;
  color: #166534;
}

.profesor-estado-badge.inactivo {
  background: #fee2e2;
  color: #991b1b;
}

.profesor-estado-badge.licencia {
  background: #fef3c7;
  color: #92400e;
}

.profesor-panel {
  position: fixed;
  top: 0;
  right: -800px;
  width: 800px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 3px solid rgba(147, 161, 173, 0.65);
}

.profesor-panel.active {
  right: 0;
}

.profesor-panel-header {
  background: #1e1e1e;
  color: #ffffff;
  padding: 32px;
  box-shadow: none;
  position: relative;
}

.profesor-panel-header .close-panel {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
}

.profesor-panel-header .close-panel:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: none;
}

.profesor-panel-header-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profesor-panel-avatar {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.profesor-panel-info h2 {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-family: Georgia, 'Times New Roman', serif;
}

.profesor-panel-info .especialidad-info {
  opacity: 0.9;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profesor-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
  background: #f5f5f7;
}

.horario-grid {
  display: grid;
  grid-template-columns: 80px repeat(5, 1fr);
  gap: 4px;
  margin-top: 16px;
  font-size: 11px;
}

.horario-header {
  background: #f8f9fa;
  padding: 8px 4px;
  text-align: center;
  font-weight: 600;
  color: #666;
  border-radius: 4px;
}

.horario-time {
  background: #f8f9fa;
  padding: 8px 4px;
  text-align: center;
  font-weight: 500;
  color: #666;
  border-radius: 4px;
}

.horario-cell {
  background: #e8f5e9;
  padding: 8px 4px;
  text-align: center;
  border-radius: 4px;
  color: #2e7d32;
  font-weight: 500;
}

.horario-cell.ocupado {
  background: #ffebee;
  color: #c62828;
  font-weight: 600;
}

.horario-cell.disponible {
  background: #e8f5e9;
  color: #2e7d32;
}

.carga-horaria-chart {
  margin-top: 16px;
}

.carga-bar-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.carga-bar-label {
  min-width: 120px;
  font-size: 13px;
  color: #666;
}

.carga-bar-track {
  flex: 1;
  height: 24px;
  background: #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.carga-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4a5259, #6b7280);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  color: white;
  font-size: 11px;
  font-weight: 600;
  transition: width 0.3s ease;
}

.carga-bar-fill.alta {
  background: linear-gradient(90deg, #f44336, #ef5350);
}

.carga-bar-fill.media {
  background: linear-gradient(90deg, #ff9800, #ffb74d);
}

.carga-bar-fill.baja {
  background: linear-gradient(90deg, #4caf50, #81c784);
}

.profesor-cursos-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profesor-curso-item {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #4a5259;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.profesor-curso-info h4 {
  margin: 0 0 4px 0;
  font-size: 15px;
  color: #1a1a1a;
}

.profesor-curso-info p {
  margin: 0;
  font-size: 13px;
  color: #666;
}

.profesor-curso-stats {
  text-align: right;
}

.profesor-curso-stats .numero {
  font-size: 20px;
  font-weight: 700;
  color: #4a5259;
}

.profesor-curso-stats .label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
}

.panel-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid #e9ecef;
}

.panel-actions button {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.panel-actions .btn-edit {
  background: #4a5259;
  color: white;
}

.panel-actions .btn-edit:hover {
  background: #1565c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.panel-actions .btn-estado {
  background: #ff9800;
  color: white;
}

.panel-actions .btn-estado:hover {
  background: #f57c00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.panel-actions .btn-danger {
  background: #f44336;
  color: white;
}

.panel-actions .btn-danger:hover {
  background: #d32f2f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.fab-add {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--hw-charcoal);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  box-shadow: var(--shadow-hover);
  transition: all var(--duration-normal) var(--ease-smooth);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInScale var(--duration-slower) var(--ease-smooth) 400ms backwards;
}

.fab-add:hover {
  background: #333333;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 12px 32px rgba(147, 161, 173, 0.35);
}

.fab-add:active {
  transform: scale(0.95);
}

.confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.confirm-modal.active {
  opacity: 1;
  visibility: visible;
}

.confirm-modal-content {
  background: #ffffff;
  padding: 32px;
  border-radius: 16px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
}

.confirm-modal.active .confirm-modal-content {
  transform: scale(1) translateY(0);
}

.confirm-modal-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: #fef3c7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #92400e;
  animation: pulseSubtle 2s ease-in-out infinite;
}

.confirm-modal-icon.danger {
  background: #fee2e2;
  color: #991b1b;
}

.confirm-modal h3 {
  margin: 0 0 12px 0;
  font-size: 20px;
  color: var(--hw-charcoal);
  font-family: Georgia, 'Times New Roman', serif;
}

.confirm-modal p {
  margin: 0 0 24px 0;
  color: #656f77;
  font-size: 14px;
}

.confirm-modal-actions {
  display: flex;
  gap: 12px;
}

.confirm-modal-actions button {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.confirm-modal-actions .btn-cancel {
  background: #f5f5f7;
  color: #1e1e1e;
}

.confirm-modal-actions .btn-cancel:hover {
  background: #e5e5e5;
}

.confirm-modal-actions .btn-confirm {
  background: #1e1e1e;
  color: #ffffff;
}

.confirm-modal-actions .btn-confirm:hover {
  background: #333333;
}

.confirm-modal-actions .btn-confirm.danger {
  background: #991b1b;
}

.confirm-modal-actions .btn-confirm.danger:hover {
  background: #7f1d1d;
}


.pagos-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.metric-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: rgba(147, 161, 173, 0.45);
}

.metric-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.metric-card-title {
  font-size: 13px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.metric-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-card-icon.success {
  background: #1e1e1e;
  color: #ffffff;
}

.metric-card-icon.warning {
  background: #1e1e1e;
  color: #ffffff;
}

.metric-card-icon.danger {
  background: #1e1e1e;
  color: #ffffff;
}

.metric-card-icon.info {
  background: #1e1e1e;
  color: #ffffff;
}

.metric-card-value {
  font-size: 32px;
  font-weight: 700;
  color: #1e1e1e;
  margin-bottom: 4px;
}

.metric-card-subtitle {
  font-size: 13px;
  color: #656f77;
}

.pagos-filters {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label {
  font-size: 12px;
  font-weight: 600;
  color: #656f77;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group input,
.filter-group select {
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: rgba(147, 161, 173, 0.65);
  box-shadow: 0 0 0 3px rgba(147, 161, 173, 0.15);
}

.btn-add-pago {
  background: #1e1e1e;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-add-pago:hover {
  background: #333333;
  transform: none;
  box-shadow: none;
}

.pagos-table-container {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

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

.pagos-table thead {
  background: #1e1e1e;
}

.pagos-table th {
  padding: 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pagos-table tbody tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--duration-normal) var(--ease-smooth);
  cursor: pointer;
}

.pagos-table tbody tr:hover {
  background: var(--hw-cream);
  transform: translateX(4px);
}

.pagos-table td {
  padding: 16px;
  font-size: 14px;
  color: var(--hw-charcoal);
}

.estado-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-family: 'Inter', sans-serif;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.estado-badge:hover {
  transform: scale(1.02);
}

.estado-badge.pagado {
  background: #dcfce7;
  color: #166534;
}

.estado-badge.mora {
  background: #fee2e2;
  color: #991b1b;
}

.estado-badge.proximo_vencimiento {
  background: #fef3c7;
  color: #92400e;
}

.estado-badge.al_dia {
  background: #dbeafe;
  color: #1e40af;
}

.btn-delete-pago {
  background: transparent;
  border: none;
  color: #f44336;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin: 0 2px;
}

.btn-delete-pago:hover {
  background: #ffebee;
  transform: scale(1.1);
}

.btn-delete-pago i {
  width: 18px;
  height: 18px;
}

.btn-confirm-pago {
  background: transparent;
  border: none;
  color: #4caf50;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin: 0 2px;
}

.btn-confirm-pago:hover {
  background: #e8f5e9;
  transform: scale(1.1);
}

.btn-confirm-pago i {
  width: 18px;
  height: 18px;
}

.btn-print-ticket {
  background: transparent;
  border: none;
  color: #2196F3;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin: 0 2px;
}

.btn-print-ticket:hover {
  background: #e3f2fd;
  transform: scale(1.1);
}

.btn-print-ticket i {
  width: 18px;
  height: 18px;
}

.btn-archive-pago {
  background: transparent;
  border: none;
  color: #ff9800;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin: 0 2px;
}

.btn-archive-pago:hover {
  background: #fff3e0;
  transform: scale(1.1);
}

.btn-archive-pago i {
  width: 18px;
  height: 18px;
}

.btn-unarchive-pago {
  background: transparent;
  border: none;
  color: #2196F3;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin: 0 2px;
}

.btn-unarchive-pago:hover {
  background: #e3f2fd;
  transform: scale(1.1);
}

.btn-unarchive-pago i {
  width: 18px;
  height: 18px;
}

.btn-delete-permanent {
  background: transparent;
  border: none;
  color: #f44336;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin: 0 2px;
}

.btn-delete-permanent:hover {
  background: #ffebee;
  transform: scale(1.1);
}

.btn-delete-permanent i {
  width: 18px;
  height: 18px;
}

.badge-estado {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  font-family: 'Inter', sans-serif;
}

.badge-estado.success {
  background: #dcfce7;
  color: #166534;
}

.badge-estado.warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-estado.danger {
  background: #fee2e2;
  color: #991b1b;
}


.pago-panel {
  position: fixed;
  top: 0;
  right: -900px;
  width: 900px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
  z-index: 1001;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.pago-panel.active {
  right: 0;
}

.pago-panel-header {
  background: #1e1e1e;
  padding: 30px;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.pago-panel-alumno-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pago-panel-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
}

.pago-panel-details h2 {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-family: Georgia, 'Times New Roman', serif;
}

.pago-panel-details p {
  margin: 0;
  opacity: 0.9;
  font-size: 14px;
}

.pago-panel-content {
  padding: 30px;
}

.pago-section {
  margin-bottom: 32px;
}

.pago-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1e1e1e;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, 'Times New Roman', serif;
}

.pago-section h3 i {
  color: #656f77;
}

.estado-cuenta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.estado-cuenta-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.estado-cuenta-card.highlight {
  background: #f5f5f7;
  border-color: #1e1e1e;
}

.estado-cuenta-card.danger {
  background: #fef2f2;
  border-color: #ef4444;
}

.estado-cuenta-label {
  font-size: 12px;
  color: #656f77;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.estado-cuenta-value {
  font-size: 28px;
  font-weight: 700;
  color: #1e1e1e;
}

.historial-timeline {
  position: relative;
  padding-left: 30px;
}

.historial-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #4a5259, transparent);
}

.historial-item {
  position: relative;
  margin-bottom: 24px;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 20px;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.historial-item:hover {
  background: #f5f5f7;
  transform: none;
}

.historial-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1e1e1e;
  border: 3px solid white;
  box-shadow: 0 0 0 2px #1e1e1e;
}

.historial-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.historial-item-title {
  font-size: 15px;
  font-weight: 600;
  color: #1e1e1e;
}

.historial-item-monto {
  font-size: 18px;
  font-weight: 700;
  color: #166534;
}

.historial-item-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  font-size: 13px;
  color: #666;
}

.historial-item-detail {
  display: flex;
  align-items: center;
  gap: 6px;
}

.historial-item-detail i {
  color: #656f77;
  width: 16px;
  height: 16px;
}

.modal-pago {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-pago.active {
  display: flex;
}

.modal-pago-content {
  background: #ffffff;
  border-radius: 16px;
  width: 90%;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
  animation: modalContentSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.modal-pago-header {
  background: #1e1e1e;
  color: #ffffff;
  padding: 24px 30px;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-pago-header h3 {
  margin: 0;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, 'Times New Roman', serif;
}

.modal-close-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255,255,255,0.25);
}

.modal-pago-body {
  padding: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.modal-pago-footer {
  padding: 20px 30px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-cancel {
  padding: 12px 24px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  color: #1e1e1e;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background: #f5f5f7;
}

.btn-submit {
  padding: 12px 24px;
  border: none;
  background: var(--hw-charcoal);
  color: #ffffff;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.btn-submit::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.btn-submit:active::after {
  width: 200%;
  height: 200%;
}

.btn-submit:hover {
  background: #333333;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.profesor-cursos-container {
  padding: 20px 0;
}

.profesor-header-section {
  margin-bottom: 30px;
  animation: fadeInUp var(--duration-slow) var(--ease-smooth);
}

.profesor-stats-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 30px 0;
}

.profesor-stat-card-enhanced {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-subtle);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  display: flex;
  gap: 20px;
  align-items: center;
  animation: cardSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.profesor-stat-card-enhanced:nth-child(1) { animation-delay: 80ms; }
.profesor-stat-card-enhanced:nth-child(2) { animation-delay: 160ms; }
.profesor-stat-card-enhanced:nth-child(3) { animation-delay: 240ms; }
.profesor-stat-card-enhanced:nth-child(4) { animation-delay: 320ms; }

.profesor-stat-card-enhanced:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  border-color: var(--hw-graphite);
}

.profesor-stat-card-enhanced.primary {
  border-color: transparent;
  background: white;
}

.profesor-stat-card-enhanced.primary:hover {
  border-color: var(--hw-graphite);
}

.profesor-stat-card-enhanced.primary .stat-icon-wrapper {
  background: rgba(74, 82, 89, 0.08);
}

.profesor-stat-card-enhanced.success {
  border-color: transparent;
  background: white;
}

.profesor-stat-card-enhanced.success:hover {
  border-color: var(--hw-graphite);
}

.profesor-stat-card-enhanced.success .stat-icon-wrapper {
  background: rgba(74, 82, 89, 0.08);
}

.profesor-stat-card-enhanced.info {
  border-color: transparent;
  background: white;
}

.profesor-stat-card-enhanced.info:hover {
  border-color: var(--hw-graphite);
}

.profesor-stat-card-enhanced.info .stat-icon-wrapper {
  background: rgba(74, 82, 89, 0.08);
}

.stat-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: none;
}

.stat-icon-wrapper i {
  width: 36px;
  height: 36px;
  color: #4a5259;
}

.stat-content-wrapper {
  flex: 1;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: #5d646b;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 16px;
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
}

.stat-sublabel {
  font-size: 13px;
  color: #999;
}

.stat-decoration {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
  pointer-events: none;
}

.estado-vacio-profesor {
  text-align: center;
  padding: 80px 40px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  margin-top: 40px;
}

.estado-vacio-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.estado-vacio-icon i {
  width: 50px;
  height: 50px;
  color: #4a5259;
}

.estado-vacio-profesor h3 {
  color: #5d646b;
  font-size: 24px;
  margin: 0 0 12px 0;
}

.estado-vacio-profesor p {
  color: #666;
  font-size: 16px;
  margin: 0 0 8px 0;
}

.estado-vacio-hint {
  color: #999 !important;
  font-size: 14px !important;
  font-style: italic;
}

.cursos-selector-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.curso-selector-card-enhanced {
  background: white;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
  border-left: 4px solid #4a5259;
  position: relative;
}

.curso-selector-card-enhanced:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.curso-card-icon {
  width: 70px;
  height: 70px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.curso-card-icon i {
  width: 34px;
  height: 34px;
}

.curso-card-content {
  flex: 1;
}

.curso-card-content h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #5d646b;
}

.curso-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.curso-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.curso-badge i {
  width: 14px;
  height: 14px;
}

.curso-card-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
}

.curso-alumnos-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.curso-alumnos-count i {
  width: 16px;
  height: 16px;
  color: #4a5259;
}

.curso-card-arrow {
  width: 32px;
  height: 32px;
  background: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.curso-card-arrow i {
  width: 18px;
  height: 18px;
  color: #999;
}

.curso-selector-card-enhanced:hover .curso-card-arrow {
  background: #4a5259;
  transform: translateX(4px);
}

.curso-selector-card-enhanced:hover .curso-card-arrow i {
  color: white;
}

.profesor-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.profesor-stat-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all 0.2s ease;
}

.profesor-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: rgba(147, 161, 173, 0.45);
}

.profesor-stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: none;
}

.profesor-stat-icon.blue {
  background: #1e1e1e;
  color: #ffffff;
}

.profesor-stat-icon.green {
  background: #1e1e1e;
  color: #ffffff;
}

.profesor-stat-icon.orange {
  background: #656f77;
  color: #ffffff;
}

.profesor-stat-content h3 {
  font-size: 32px;
  font-weight: 700;
  color: #1e1e1e;
  margin: 0 0 5px 0;
}

.profesor-stat-content p {
  font-size: 15px;
  color: #656f77;
  margin: 0;
  font-weight: 500;
}

.profesor-cursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.profesor-curso-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.profesor-curso-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: rgba(147, 161, 173, 0.45);
}

.profesor-curso-header {
  background: #1e1e1e;
  color: #ffffff;
  padding: 24px;
  position: relative;
}

.profesor-curso-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255,255,255,0.2);
  padding: 8px 14px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.3);
}

.profesor-curso-header h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px 0;
  font-family: Georgia, 'Times New Roman', serif;
}

.profesor-curso-nivel {
  font-size: 14px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profesor-curso-body {
  padding: 20px;
}

.profesor-curso-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profesor-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #656f77;
}

.profesor-info-item i {
  width: 20px;
  color: #656f77;
}

.profesor-curso-footer {
  padding: 18px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #f5f5f7;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profesor-cupo-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
}

.cupo-bar {
  width: 80px;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
}

.cupo-bar-fill {
  height: 100%;
  background: #166534;
  transition: width 0.3s ease;
}

.cupo-bar-fill.medium {
  background: #92400e;
}

.cupo-bar-fill.high {
  background: #991b1b;
}

.btn-ver-detalles {
  padding: 10px 20px;
  background: #1e1e1e;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: none;
  white-space: nowrap;
}

.btn-ver-detalles:hover {
  background: #333333;
  transform: none;
  box-shadow: none;
}

.curso-detalle-panel {
  position: fixed;
  right: -1000px;
  top: 0;
  width: 1000px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1001;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.curso-detalle-panel.active {
  right: 0;
}

.curso-detalle-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.curso-detalle-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.curso-detalle-header {
  background: #1e1e1e;
  color: #ffffff;
  padding: 32px;
  position: relative;
}

.curso-detalle-header .close-panel {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.curso-detalle-header .close-panel:hover {
  background: rgba(255,255,255,0.25);
  transform: none;
  border-color: rgba(255,255,255,0.4);
}

.curso-detalle-title {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 10px 0;
  font-family: Georgia, 'Times New Roman', serif;
}

.curso-detalle-subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin: 0;
}

.curso-detalle-content {
  padding: 32px;
  background: #f5f5f7;
}

.curso-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.curso-stat-box {
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  border-left: 4px solid #1e1e1e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 4px solid #1e1e1e;
  transition: all 0.2s ease;
}

.curso-stat-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.curso-stat-box.success {
  border-left-color: #166534;
}

.curso-stat-box.warning {
  border-left-color: #92400e;
}

.curso-stat-box.danger {
  border-left-color: #991b1b;
}

.curso-stat-box h4 {
  font-size: 36px;
  font-weight: 700;
  color: #1e1e1e;
  margin: 0 0 8px 0;
}

.curso-stat-box.success h4 {
  color: #166534;
}

.curso-stat-box.warning h4 {
  color: #92400e;
}

.curso-stat-box.danger h4 {
  color: #991b1b;
}

.curso-stat-box p {
  font-size: 14px;
  color: #656f77;
  margin: 0;
  font-weight: 500;
}

.curso-alumnos-section h3 {
  font-size: 22px;
  color: #1e1e1e;
  margin: 0 0 24px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-family: Georgia, 'Times New Roman', serif;
}

.curso-alumnos-section h3 i {
  color: #656f77;
}

.curso-alumnos-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.curso-alumnos-table thead {
  background: #1e1e1e;
  color: #ffffff;
}

.curso-alumnos-table th {
  padding: 16px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 15px;
}

.curso-alumnos-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 14px;
  color: #1e1e1e;
  vertical-align: middle;
}

.curso-alumnos-table tr:last-child td {
  border-bottom: none;
}

.curso-alumnos-table tbody tr:hover {
  background: #f5f5f7;
}

.calificacion-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
}

.calificacion-badge.aprobado {
  background: #dcfce7;
  color: #166534;
  border: none;
}

.calificacion-badge.regular {
  background: #fef3c7;
  color: #92400e;
  border: none;
}

.calificacion-badge.reprobado {
  background: #fee2e2;
  color: #991b1b;
  border: none;
}

.calificacion-badge.pendiente {
  background: #f3f4f6;
  color: #6b7280;
  border: none;
}

.calificaciones-container-profesor {
  padding: 20px 0;
}

.calificaciones-curso-selector {
  margin-bottom: 30px;
}

.calificaciones-curso-selector h3 {
  font-family: 'Inter';
  font-size: 20px;
  color: #5d646b;
  margin: 0 0 24px 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.calificaciones-curso-selector h3 i {
  color: #4a5259;
}

.calificaciones-cursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.calificacion-curso-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 4px 12px rgba(30,60,114,0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(30,60,114,0.1);
}

.calificacion-curso-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(30,60,114,0.2);
  border-color: #4a5259;
}

.calificacion-curso-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #4a5259;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(30,60,114,0.3);
}

.calificacion-curso-info {
  flex: 1;
}

.calificacion-curso-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 5px 0;
}

.calificacion-curso-info p {
  font-size: 13px;
  color: #666;
  margin: 0 0 8px 0;
}

.calificacion-curso-alumnos {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #5d646b;
  background: rgba(30,60,114,0.1);
  padding: 6px 12px;
  border-radius: 14px;
  font-weight: 600;
}

.calificacion-curso-alumnos i {
  width: 14px;
  height: 14px;
}

.calificacion-curso-arrow {
  color: #4a5259;
  font-size: 22px;
  transition: transform 0.3s ease;
}

.calificacion-curso-card:hover .calificacion-curso-arrow {
  transform: translateX(5px);
}

.calificaciones-content {
  margin-top: 30px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.calificaciones-header-section {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(30,60,114,0.1);
  border: 1px solid rgba(30,60,114,0.1);
}

.calificaciones-titulo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.calificaciones-titulo h3 {
  font-size: 24px;
  color: #5d646b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.calificaciones-titulo h3 i {
  color: #4a5259;
}

.btn-volver-cursos {
  padding: 10px 20px;
  background: rgba(240,244,248,0.8);
  border: 2px solid rgba(30,60,114,0.2);
  border-radius: 10px;
  color: #5d646b;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-volver-cursos:hover {
  background: rgba(30,60,114,0.1);
  border-color: #4a5259;
  color: #4a5259;
}

.calificaciones-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.calif-stat-mini {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(240,244,248,0.7));
  backdrop-filter: blur(10px);
  padding: 18px;
  border-radius: 14px;
  text-align: center;
  border-left: 4px solid #5d646b;
  box-shadow: 0 4px 12px rgba(30,60,114,0.1);
  transition: all 0.3s ease;
}

.calif-stat-mini:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30,60,114,0.15);
}

.calif-stat-mini.success {
  border-left-color: #4a5259;
}

.calif-stat-mini.warning {
  border-left-color: #7e9ac8;
}

.calif-stat-mini.danger {
  border-left-color: #e53935;
}

.calif-stat-mini h4 {
  font-size: 30px;
  font-weight: 700;
  color: #5d646b;
  margin: 0 0 5px 0;
}

.calif-stat-mini.success h4 {
  color: #4a5259;
}

.calif-stat-mini.warning h4 {
  color: #7e9ac8;
}

.calif-stat-mini.danger h4 {
  color: #e53935;
}

.calif-stat-mini p {
  font-size: 13px;
  color: #666;
  margin: 0;
  font-weight: 500;
}

.calificaciones-filtros {
  display: flex;
  gap: 15px;
  align-items: center;
}

.calificaciones-filtros input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
}

.calificaciones-filtros select {
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  cursor: pointer;
}

.btn-modo-edicion {
  padding: 12px 24px;
  background: #4a5259;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(30,60,114,0.3);
}

.btn-modo-edicion:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(30,60,114,0.4);
}

.btn-modo-edicion.editing {
  background: linear-gradient(135deg, #7e9ac8, #4a90e2);
}

.calificaciones-table-container {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(30,60,114,0.1);
  border: 1px solid rgba(30,60,114,0.1);
}

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

.calificaciones-table-profesor thead {
  background: #4a5259;
  color: white;
}

.calificaciones-table-profesor th {
  padding: 16px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 15px;
}

.calificaciones-table-profesor th.center {
  text-align: center;
}

.calificaciones-table-profesor td {
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #555;
}

.calificaciones-table-profesor td.center {
  text-align: center;
}

.calificaciones-table-profesor tbody tr:hover {
  background: #f8f9fa;
}

.calificaciones-table-profesor tbody tr:last-child td {
  border-bottom: none;
}

.nota-display {
  font-weight: 600;
  font-size: 15px;
  color: #333;
}

.nota-input {
  width: 70px;
  padding: 8px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nota-input:focus {
  outline: none;
  border-color: #4a5259;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.nota-input.aprobado {
  border-color: #43a047;
  color: #43a047;
}

.nota-input.reprobado {
  border-color: #e53935;
  color: #e53935;
}

.promedio-cell {
  font-weight: 700;
  font-size: 16px;
}

.promedio-cell.aprobado {
  color: #43a047;
}

.promedio-cell.regular {
  color: #f57f17;
}

.promedio-cell.reprobado {
  color: #e53935;
}

.btn-guardar-nota {
  padding: 6px 12px;
  background: #43a047;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-guardar-nota:hover {
  background: #388e3c;
  transform: scale(1.05);
}

.btn-guardar-nota i {
  width: 14px;
  height: 14px;
}

.acciones-column {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.asistencias-container-profesor {
  padding: 20px 0;
}

.asistencias-selector-cursos {
  margin-bottom: 30px;
}

.asistencias-selector-cursos h3 {
  font-family: 'Inter';
  font-size: 18px;
  color: #333;
  margin: 0 0 20px 0;
}

.asistencias-content {
  margin-top: 30px;
  animation: fadeIn 0.3s ease;
}

.asistencias-header-section {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(30,60,114,0.1);
  border: 1px solid rgba(30,60,114,0.1);
}

.asistencias-titulo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.asistencias-titulo-row h3 {
  font-size: 24px;
  color: #5d646b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.asistencias-titulo-row h3 i {
  color: #4a5259;
}

.asistencias-stats-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.asist-stat-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(240,244,248,0.7));
  backdrop-filter: blur(10px);
  padding: 18px;
  border-radius: 14px;
  text-align: center;
  border-left: 4px solid #5d646b;
  box-shadow: 0 4px 12px rgba(30,60,114,0.1);
  transition: all 0.3s ease;
}

.asist-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30,60,114,0.15);
}

.asist-stat-card.success {
  border-left-color: #4a5259;
}

.asist-stat-card.danger {
  border-left-color: #e53935;
}

.asist-stat-card.warning {
  border-left-color: #7e9ac8;
}

.asist-stat-card.info {
  border-left-color: #5d646b;
}

.asist-stat-card h4 {
  font-size: 28px;
  font-weight: 700;
  color: #5d646b;
  margin: 0 0 5px 0;
}

.asist-stat-card.success h4 {
  color: #4a5259;
}

.asist-stat-card.danger h4 {
  color: #e53935;
}

.asist-stat-card.warning h4 {
  color: #7e9ac8;
}

.asist-stat-card.info h4 {
  color: #5d646b;
}

.asist-stat-card p {
  font-size: 12px;
  color: #666;
  margin: 0;
  font-weight: 500;
}

.asistencias-controles {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.fecha-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fecha-selector label {
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

.fecha-selector input[type="date"] {
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  cursor: pointer;
}

.btn-guardar-asistencias {
  padding: 12px 24px;
  background: #4a5259;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(30,60,114,0.3);
}

.btn-guardar-asistencias:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(30,60,114,0.4);
}

.btn-guardar-asistencias:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-ver-estadisticas {
  padding: 12px 24px;
  background: linear-gradient(135deg, #4a5259, #7e9ac8);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(42,82,152,0.3);
  transition: all 0.3s ease;
}

.btn-ver-estadisticas:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(42,82,152,0.4);
}

.asistencias-table-container {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(30,60,114,0.1);
  border: 1px solid rgba(30,60,114,0.1);
}

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

.asistencias-table thead {
  background: #4a5259;
  color: white;
}

.asistencias-table th {
  padding: 16px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
}

.asistencias-table th.center {
  text-align: center;
}

.asistencias-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(30,60,114,0.08);
  font-size: 14px;
  color: #555;
  vertical-align: middle;
}

.asistencias-table td.center {
  text-align: center;
}

.asistencias-table tbody tr:hover {
  background: rgba(30,60,114,0.04);
}

.asistencias-table tbody tr:last-child td {
  border-bottom: none;
}

.asistencia-botones {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.btn-estado-asistencia {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  background: white;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0;
}

.btn-estado-asistencia i {
  width: 14px;
  height: 14px;
}

.btn-estado-asistencia.presente.active {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
  color: #22c55e;
}

.btn-estado-asistencia.ausente.active {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

.btn-estado-asistencia.tardanza.active {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  color: #f59e0b;
}

.btn-estado-asistencia.justificado.active {
  border-color: #6b7280;
  background: rgba(107, 114, 128, 0.08);
  color: #6b7280;
}

.btn-estado-asistencia:hover {
  transform: scale(1.1);
}

.observaciones-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
}

.observaciones-input:focus {
  border-color: #4a5259;
  box-shadow: 0 0 0 3px rgba(74, 82, 89, 0.1);
}

.estadisticas-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.estadisticas-modal.active {
  display: flex;
}

.estadisticas-modal-content {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.estadisticas-modal-header {
  background: linear-gradient(135deg, #1e1e1e, #1e1e1e);
  color: white;
  padding: 25px 30px;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.estadisticas-modal-header h3 {
  font-family: 'Inter';
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.estadisticas-modal-header .close-modal {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.estadisticas-modal-header .close-modal:hover {
  background: rgba(255,255,255,0.3);
  transform: rotate(90deg);
}

.estadisticas-modal-body {
  padding: 30px;
}

.estadisticas-generales {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.estadisticas-alumnos-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.estadisticas-alumnos-table thead {
  background: #f8f9fa;
  border-bottom: 2px solid #e0e0e0;
}

.estadisticas-alumnos-table th {
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: #555;
}

.estadisticas-alumnos-table th.center {
  text-align: center;
}

.estadisticas-alumnos-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  color: #555;
}

.estadisticas-alumnos-table td.center {
  text-align: center;
}

.estadisticas-alumnos-table tbody tr:hover {
  background: #f8f9fa;
}

.porcentaje-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
}

.porcentaje-badge.alto {
  background: #e8f5e9;
  color: #43a047;
}

.porcentaje-badge.medio {
  background: #fff3e0;
  color: #fb8c00;
}

.porcentaje-badge.bajo {
  background: #ffebee;
  color: #e53935;
}


.alumno-cursos-container {
  padding: 30px;
  background: #f8f9fa;
  min-height: calc(100vh - 80px);
}

.section-header-alumno {
  margin-bottom: 30px;
}

.section-header-alumno .header-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.section-header-alumno .header-title i {
  width: 32px;
  height: 32px;
  color: #4a5259;
}

.section-header-alumno h2 {
  margin: 0;
  color: #4a5259;
  font-size: 28px;
  font-weight: 600;
}

.section-header-alumno .section-subtitle {
  color: #666;
  margin: 0;
  font-size: 15px;
}

.alumno-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.alumno-stat-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.alumno-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.alumno-stat-card .stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.alumno-stat-card .stat-icon i {
  width: 28px;
  height: 28px;
}

.alumno-stat-card .stat-content {
  flex: 1;
}

.alumno-stat-card .stat-label {
  margin: 0 0 8px;
  font-size: 13px;
  color: #757575;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.alumno-stat-card .stat-value {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #212121;
}

.cursos-grid-alumno {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 24px;
}

.curso-card-alumno {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.curso-card-alumno:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: #5d646b;
}

.curso-card-header {
  padding: 20px;
  background: #4a5259;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.curso-card-header .curso-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.curso-card-header .curso-icon i {
  width: 24px;
  height: 24px;
}

.curso-card-header .curso-badge {
  background: rgba(255, 255, 255, 0.95);
  color: #1e1e1e;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.curso-card-body {
  padding: 24px;
}

.curso-card-body h3 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 500;
  color: #1e1e1e;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.curso-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #616161;
  font-size: 14px;
}

.curso-info-item i {
  width: 18px;
  height: 18px;
  color: #5d646b;
}

.curso-promedio {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.curso-promedio .promedio-label {
  font-size: 14px;
  color: #757575;
  font-weight: 500;
}

.curso-promedio .promedio-valor {
  font-size: 24px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 8px;
}

.promedio-valor.aprobado {
  background: #e8f5e9;
  color: #43a047;
}

.promedio-valor.regular {
  background: #fff3e0;
  color: #fb8c00;
}

.promedio-valor.desaprobado {
  background: #ffebee;
  color: #e53935;
}

.sin-calificaciones {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
  color: #9e9e9e;
  font-size: 13px;
  font-style: italic;
  text-align: center;
}

.curso-card-footer {
  padding: 20px 24px;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
}

.btn-ver-detalle {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #5d646b 0%, #4a5259 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-ver-detalle:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-ver-detalle i {
  width: 18px;
  height: 18px;
}

.empty-state-cursos {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.empty-state-cursos i {
  width: 64px;
  height: 64px;
  color: #9e9e9e;
  opacity: 0.5;
  margin-bottom: 20px;
}

.empty-state-cursos h3 {
  margin: 0 0 12px;
  font-size: 22px;
  color: #424242;
}

.empty-state-cursos p {
  margin: 0;
  color: #757575;
  font-size: 14px;
  max-width: 400px;
  margin: 0 auto;
}

.error-container {
  text-align: center;
  padding: 80px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.error-container i {
  width: 64px;
  height: 64px;
  color: #e53935;
  margin-bottom: 20px;
}

.error-container h3 {
  margin: 0 0 12px;
  font-size: 22px;
  color: #424242;
}

.error-container p {
  margin: 0;
  color: #757575;
  font-size: 14px;
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  animation: slideInRight 0.3s ease;
}

.notification.success {
  background: linear-gradient(135deg, #43a047 0%, #66bb6a 100%);
}

.notification.error {
  background: linear-gradient(135deg, #e53935 0%, #ef5350 100%);
}

.notification.info {
  background: linear-gradient(135deg, #4a5259 0%, #6b7280 100%);
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.curso-detalle-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.curso-detalle-overlay.active {
  opacity: 1;
  visibility: visible;
}

.curso-detalle-panel-alumno {
  position: fixed;
  top: 0;
  right: -600px;
  width: 600px;
  height: 100%;
  background: white;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  overflow-y: auto;
  transition: right 0.3s ease;
}

.curso-detalle-panel-alumno.active {
  right: 0;
}

.panel-header-alumno {
  background: linear-gradient(#1e1e1e);
  color: white;
  padding: 32px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: sticky;
  top: 0;
  z-index: 10;
}

.panel-header-alumno h2 {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 400;
}

.curso-idioma-badge {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  display: inline-block;
  margin: 0;
}

.btn-cerrar-panel {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-cerrar-panel:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.btn-cerrar-panel svg {
  width: 20px;
  height: 20px;
}

.panel-body-alumno {
  padding: 28px;
}

.info-section,
.calificaciones-section,
.companeros-section {
  margin-bottom: 32px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
}

.info-section h3,
.calificaciones-section h3,
.companeros-section h3 {
  font-family: 'Inter';
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 400;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-section h3 svg,
.calificaciones-section h3 svg,
.companeros-section h3 svg {
  width: 20px;
  height: 20px;
  color: #5d646b;
}

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

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 13px;
  color: #7f8c8d;
  font-weight: 500;
}

.info-value {
  font-size: 15px;
  color: #2c3e50;
  font-weight: 500;
}

.calificaciones-detalle {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nota-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 15px;
}

.nota-item.promedio-final {
  background: linear-gradient(135deg, #5d646b15 0%, #4a525915 100%);
  border: 1px solid #5d646b30;
  font-weight: 600;
  margin-top: 8px;
}

.nota-valor {
  font-weight: 600;
  color: #2c3e50;
}

.nota-valor.destacado {
  color: #5d646b;
  font-size: 18px;
}

.companeros-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.companero-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.companero-item:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

.companero-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #5d646b 0%, #4a5259 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.companero-avatar svg {
  width: 18px;
  height: 18px;
}

.sin-datos {
  text-align: center;
  color: #95a5a6;
  font-style: italic;
  padding: 20px;
  margin: 0;
}

@media (max-width: 768px) {
  .curso-detalle-panel-alumno {
    width: 100%;
    right: -100%;
  }
  
  .info-grid,
  .companeros-list {
    grid-template-columns: 1fr;
  }
}

.alumno-calificaciones-container {
  padding: 0;
}

.calificaciones-resumen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.resumen-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.resumen-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.resumen-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.resumen-icon svg {
  width: 32px;
  height: 32px;
}

.resumen-info h3 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: #2c3e50;
}

.resumen-info p {
  margin: 4px 0 0 0;
  font-size: 14px;
  color: #7f8c8d;
  font-weight: 500;
}

.calificaciones-tabla-container {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.calificaciones-tabla-container > h3 {
  margin: 0 0 24px 0;
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.calificaciones-tabla-container > h3 svg {
  width: 24px;
  height: 24px;
  color: #5d646b;
}

.tabla-calificaciones-wrapper {
  overflow-x: auto;
  margin-bottom: 24px;
}

.tabla-calificaciones-alumno {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.tabla-calificaciones-alumno thead {
  background: linear-gradient(135deg, #5d646b 0%, #4a5259 100%);
}

.tabla-calificaciones-alumno thead th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tabla-calificaciones-alumno thead th:first-child {
  border-top-left-radius: 12px;
}

.tabla-calificaciones-alumno thead th:last-child {
  border-top-right-radius: 12px;
}

.tabla-calificaciones-alumno tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: all 0.2s ease;
  cursor: pointer;
}

.tabla-calificaciones-alumno tbody tr:last-child {
  border-bottom: none;
}

.tabla-calificaciones-alumno tbody tr:hover {
  background: #f8f9fa;
  transform: scale(1.01);
}

.tabla-calificaciones-alumno tbody td {
  padding: 16px;
  font-size: 14px;
  color: #2c3e50;
}

.tabla-calificaciones-alumno .curso-nombre {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #5d646b;
}

.tabla-calificaciones-alumno .curso-nombre svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.tabla-calificaciones-alumno .nota-valor {
  text-align: center;
  font-weight: 600;
  font-size: 15px;
}

.estado-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.estado-badge.estado-aprobado {
  background: #e8f5e9;
  color: #43a047;
}

.estado-badge.estado-regular {
  background: #fff3e0;
  color: #fb8c00;
}

.estado-badge.estado-reprobado {
  background: #ffebee;
  color: #e53935;
}

.estado-badge.estado-pendiente {
  background: #e3f2fd;
  color: #4a5259;
}

.leyenda-calificaciones {
  margin-top: 24px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #5d646b;
}

.leyenda-calificaciones h4 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 8px;
}

.leyenda-calificaciones h4 svg {
  width: 18px;
  height: 18px;
  color: #5d646b;
}

.leyenda-items {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.leyenda-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #2c3e50;
}

.leyenda-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.empty-state-calificaciones {
  text-align: center;
  padding: 60px 20px;
  color: #95a5a6;
}

.empty-state-calificaciones svg {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state-calificaciones h3 {
  margin: 0 0 12px 0;
  font-size: 22px;
  color: #7f8c8d;
}

.empty-state-calificaciones p {
  margin: 0;
  font-size: 15px;
  font-style: italic;
}

@media (max-width: 768px) {
  .tabla-calificaciones-alumno {
    font-size: 12px;
  }

  .tabla-calificaciones-alumno thead th,
  .tabla-calificaciones-alumno tbody td {
    padding: 10px 8px;
  }

  .resumen-card {
    padding: 16px;
    gap: 12px;
  }

  .resumen-icon {
    width: 48px;
    height: 48px;
  }

  .resumen-icon svg {
    width: 24px;
    height: 24px;
  }

  .resumen-info h3 {
    font-size: 24px;
  }
}

.alumno-pagos-container {
  padding: 0;
}

.pagos-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-pago-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.stat-pago-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.stat-pago-card.total-pagado {
  border-left: 4px solid #4a5259;
}

.stat-pago-card.total-pendiente {
  border-left: 4px solid #4a5259;
}

.stat-pago-card.cantidad-pagos {
  border-left: 4px solid #4a5259;
}

.stat-pago-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.total-pagado .stat-pago-icon {
  background: rgba(74, 82, 89, 0.08);
  color: #4a5259;
}

.total-pendiente .stat-pago-icon {
  background: rgba(74, 82, 89, 0.08);
  color: #4a5259;
}

.cantidad-pagos .stat-pago-icon {
  background: rgba(74, 82, 89, 0.08);
  color: #4a5259;
}

.stat-pago-icon svg {
  width: 28px;
  height: 28px;
}

.stat-pago-info p {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: #7f8c8d;
  font-weight: 500;
}

.stat-pago-info h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
}

.pagos-pendientes-section,
.historial-pagos-section {
  background: white;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pagos-pendientes-section h3,
.historial-pagos-section h3 {
  margin: 0 0 24px 0;
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pagos-pendientes-section h3 svg,
.historial-pagos-section h3 svg {
  width: 24px;
  height: 24px;
  color: #5d646b;
}

.pagos-pendientes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.pago-pendiente-card {
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.pago-pendiente-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: #5d646b;
}

.pago-pendiente-card.vencido {
  border-color: #e53935;
  background: #ffebee;
}

.pago-pendiente-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.pago-periodo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  color: #2c3e50;
  text-transform: capitalize;
}

.pago-periodo svg {
  width: 18px;
  height: 18px;
  color: #5d646b;
}

.badge-vencido,
.badge-pendiente,
.badge-pagado {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-vencido {
  background: #e53935;
  color: white;
}

.badge-pendiente {
  background: #fb8c00;
  color: white;
}

.badge-pagado {
  background: #43a047;
  color: white;
}

.badge-vencido svg,
.badge-pendiente svg,
.badge-pagado svg {
  width: 12px;
  height: 12px;
}

.pago-pendiente-body {
  margin-bottom: 16px;
}

.pago-monto-info,
.pago-vencimiento-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.pago-label {
  font-size: 14px;
  color: #7f8c8d;
}

.pago-monto {
  font-size: 24px;
  font-weight: 700;
  color: #5d646b;
}

.btn-pagar {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #5d646b 0%, #4a5259 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-pagar:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-pagar svg {
  width: 18px;
  height: 18px;
}

.no-pagos-pendientes,
.no-historial {
  text-align: center;
  padding: 40px 20px;
  color: #95a5a6;
}

.no-pagos-pendientes svg,
.no-historial svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.no-pagos-pendientes h4 {
  margin: 0 0 8px 0;
  font-size: 20px;
  color: #43a047;
}

.no-pagos-pendientes p {
  margin: 0;
  font-size: 14px;
}

.tabla-historial-wrapper {
  overflow-x: auto;
}

.tabla-historial-pagos {
  width: 100%;
  border-collapse: collapse;
}

.tabla-historial-pagos thead {
  background: linear-gradient(135deg, #5d646b 0%, #4a5259 100%);
}

.tabla-historial-pagos thead th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tabla-historial-pagos thead th:first-child {
  border-top-left-radius: 10px;
}

.tabla-historial-pagos thead th:last-child {
  border-top-right-radius: 10px;
}

.tabla-historial-pagos tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.2s ease;
}

.tabla-historial-pagos tbody tr:last-child {
  border-bottom: none;
}

.tabla-historial-pagos tbody tr:hover {
  background: #f8f9fa;
}

.tabla-historial-pagos tbody td {
  padding: 14px 16px;
  font-size: 14px;
  color: #2c3e50;
}

.medio-pago-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #e3f2fd;
  color: #4a5259;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.medio-pago-badge svg {
  width: 14px;
  height: 14px;
}

.monto-pagado {
  font-weight: 700;
  color: #43a047;
  font-size: 15px;
}

.modal-pago-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-pago-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-pago-content {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-pago-header {
  background: linear-gradient(135deg, #5d646b 0%, #4a5259 100%);
  color: white;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 16px 16px 0 0;
}

.modal-pago-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-pago-header h2 svg {
  width: 24px;
  height: 24px;
}

.btn-cerrar-modal {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-cerrar-modal:hover {
  background: rgba(255, 255, 255, 0.3);
}

.btn-cerrar-modal svg {
  width: 18px;
  height: 18px;
}

.modal-pago-body {
  padding: 28px;
}

.info-pago-detalle {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  border-left: 4px solid #5d646b;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-label {
  font-size: 14px;
  color: #7f8c8d;
  font-weight: 500;
}

.info-valor {
  font-size: 16px;
  color: #2c3e50;
  font-weight: 600;
}

.monto-destacado {
  font-size: 24px;
  color: #5d646b;
}

.metodo-pago-selector {
  margin-bottom: 24px;
}

.metodo-pago-selector label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 16px;
}

.metodo-pago-selector label svg {
  width: 20px;
  height: 20px;
  color: #5d646b;
}

.metodos-pago-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.metodo-option {
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.metodo-option:hover {
  border-color: #5d646b;
  background: #f0f4ff;
}

.metodo-option.selected {
  border-color: #5d646b;
  background: linear-gradient(135deg, #5d646b15 0%, #4a525915 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.metodo-option svg {
  width: 32px;
  height: 32px;
  color: #5d646b;
}

.metodo-option span {
  font-size: 13px;
  font-weight: 600;
  color: #2c3e50;
  text-align: center;
}

.formulario-tarjeta {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.formulario-tarjeta h4 {
  margin: 0 0 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 8px;
}

.formulario-tarjeta h4 svg {
  width: 18px;
  height: 18px;
  color: #5d646b;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #5d646b;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.btn-confirmar-pago {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #43a047 0%, #66bb6a 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.btn-confirmar-pago:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(67, 160, 71, 0.4);
}

.btn-confirmar-pago svg {
  width: 20px;
  height: 20px;
}

.modal-comprobante-content {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease;
}

.comprobante-header {
  text-align: center;
  padding: 40px 28px 28px;
  background: linear-gradient(135deg, #43a047 0%, #66bb6a 100%);
  color: white;
  border-radius: 16px 16px 0 0;
}

.check-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.check-icon svg {
  width: 48px;
  height: 48px;
}

.comprobante-header h2 {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
}

.comprobante-header p {
  margin: 0;
  font-size: 15px;
  opacity: 0.9;
}

.comprobante-body {
  padding: 28px;
}

.comprobante-detalle {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
}

.detalle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}

.detalle-row:last-child {
  border-bottom: none;
}

.detalle-row.total {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 2px solid #5d646b;
}

.detalle-row span {
  font-size: 14px;
  color: #7f8c8d;
}

.detalle-row strong {
  font-size: 16px;
  color: #2c3e50;
}

.detalle-row.total strong {
  font-size: 24px;
  color: #43a047;
}

.btn-cerrar-comprobante {
  width: calc(100% - 56px);
  margin: 0 28px 28px;
  padding: 14px;
  background: #5d646b;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-cerrar-comprobante:hover {
  background: #5568d3;
}

.btn-cerrar-comprobante svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .pagos-pendientes-grid {
    grid-template-columns: 1fr;
  }

  .metodos-pago-grid {
    grid-template-columns: 1fr;
  }

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

  .tabla-historial-pagos {
    font-size: 12px;
  }

  .tabla-historial-pagos thead th,
  .tabla-historial-pagos tbody td {
    padding: 10px 8px;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.stat-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.5);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(30,60,114,0.08) 0%, rgba(126,154,200,0.05) 100%);
  border-radius: 50%;
  transform: translate(40%, -40%);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.stat-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.stat-icon.blue {
  background: linear-gradient(135deg, #5d646b 0%, #4a5259 100%);
}

.stat-icon.purple {
  background: linear-gradient(135deg, #5d646b 0%, #4a5259 100%);
}

.stat-icon.green {
  background: linear-gradient(135deg, #5d646b 0%, #4a5259 100%);
}

.stat-icon.orange {
  background: linear-gradient(135deg, #5d646b 0%, #4a5259 100%);
}

.stat-icon svg {
  width: 26px;
  height: 26px;
  color: white;
}

.stat-info h3 {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
  margin: 0 0 5px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-info .stat-number {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #5d646b 0%, #4a5259 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.stat-change {
  font-size: 0.8rem;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.stat-change.positive {
  color: #56ab2f;
}

.stat-change.negative {
  color: #6b7280;
}

.dashboard-tables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.dashboard-table-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.dashboard-table-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #5d646b;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-table-card h3 svg {
  width: 24px;
  height: 24px;
  color: #4a5259;
}

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

.mini-table thead {
  background: rgba(30,60,114,0.05);
}

.mini-table th {
  padding: 12px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: #5d646b;
  border-bottom: 2px solid rgba(30,60,114,0.1);
}

.mini-table td {
  padding: 12px;
  font-size: 0.9rem;
  color: #444;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mini-table tbody tr:hover {
  background: rgba(30,60,114,0.03);
}

.badge-tipo {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

.badge-tipo.alumno {
  background: rgba(30,60,114,0.1);
  color: #5d646b;
}

.badge-tipo.profesor {
  background: rgba(74, 82, 89, 0.1);
  color: #4a5259;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 0.95rem;
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  color: #ccc;
}

.user-chat-unread-badge {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: #ef4444;
  color: white;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  padding: 0 6px;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
  animation: pulse 2s infinite;
}

.user-chat-conversation-item {
  position: relative;
}

#adminChatContainer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f3f4f6;
  z-index: 100;
  padding: 20px;
  overflow: auto;
}

#adminChatContainer .user-chat-full-container {
  height: calc(100vh - 140px);
  max-width: 100%;
  margin: 0 auto;
}

.historial-info-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.historial-info-card {
  background: #4a5259;
  padding: 20px;
  border-radius: 12px;
  color: white;
}

.historial-info-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px 0;
  font-size: 14px;
  opacity: 0.9;
  font-weight: 600;
}

.historial-info-card p {
  margin: 5px 0;
  font-size: 15px;
}

.historial-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.historial-stat {
  background: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-left: 4px solid #e0e0e0;
}

.historial-stat.primary {
  border-left-color: #4a5259;
}

.historial-stat.success {
  border-left-color: #10b981;
}

.historial-stat.danger {
  border-left-color: #ef4444;
}

.historial-stat.warning {
  border-left-color: #f59e0b;
}

.historial-stat.info {
  border-left-color: #8b5cf6;
}

.historial-stat h4 {
  margin: 0 0 5px 0;
  font-size: 28px;
  font-weight: 700;
}

.historial-stat.success h4 {
  color: #10b981;
}

.historial-stat.danger h4 {
  color: #ef4444;
}

.historial-stat.warning h4 {
  color: #f59e0b;
}

.historial-stat.info h4 {
  color: #6b7280;
}

.historial-stat.primary h4 {
  color: #4a5259;
}

.historial-stat p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.historial-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.historial-table thead {
  background: #f8f9fa;
  border-bottom: 2px solid #e0e0e0;
}

.historial-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: #555;
}

.historial-table th.center {
  text-align: center;
}

.historial-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.historial-table td.center {
  text-align: center;
}

.historial-table tbody tr:hover {
  background: #f9fafb;
}

.estado-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
}

.estado-badge.presente {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.estado-badge.ausente {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.estado-badge.tardanza {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.estado-badge.justificado {
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #a5b4fc;
}


.stat-pago-card.cuotas-vencidas {
  border-left: 4px solid #4a5259;
}

.cuotas-vencidas .stat-pago-icon {
  background: rgba(74, 82, 89, 0.08);
  color: #4a5259;
}

.cursos-pagos-section {
  background: white;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cursos-pagos-section h3 {
  margin: 0 0 24px 0;
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cursos-cards-grid {
  display: grid;
  gap: 24px;
}

.curso-pago-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.curso-pago-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.curso-pago-header {
  background: #4a5259;
  padding: 24px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.curso-info {
  flex: 1;
}

.curso-nombre {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.curso-nombre svg {
  width: 22px;
  height: 22px;
  opacity: 0.9;
}

.curso-profesor {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  opacity: 0.9;
  font-weight: 500;
}

.curso-profesor svg {
  width: 16px;
  height: 16px;
}

.curso-stats {
  display: flex;
  gap: 16px;
}

.curso-stat {
  text-align: right;
}

.curso-stat .stat-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
  margin-bottom: 4px;
}

.curso-stat .stat-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.curso-stat .stat-value.pagadas {
  color: #81c784;
}

.meses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 120px));
  gap: 12px;
  padding: 24px;
  background: #fafafa;
  justify-content: start;
}

.mes-item {
  background: white;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.mes-item svg {
  width: 24px;
  height: 24px;
  margin-bottom: 6px;
}

.mes-nombre {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}

.mes-fecha {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  opacity: 0.7;
}

.mes-item.pagado {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-color: #81c784;
  color: #2e7d32;
}

.mes-item.pagado svg {
  color: #43a047;
}

.mes-item.impago {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  border-color: #ef5350;
  color: #c62828;
  cursor: pointer;
}

.mes-item.impago:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(239, 83, 80, 0.3);
}

.mes-item.impago svg {
  color: #e53935;
}

.mes-item.pendiente {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-color: #64b5f6;
  color: #1565c0;
  cursor: pointer;
}

.mes-item.pendiente:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(100, 181, 246, 0.3);
}

.mes-item.pendiente svg {
  color: #4a5259;
}

.mes-item.proximo {
  background: #f5f5f5;
  color: #9e9e9e;
  border-color: #e0e0e0;
}

.mes-item.proximo svg {
  color: #bdbdbd;
}

.curso-pago-footer {
  padding: 20px 24px;
  background: white;
  border-top: 1px solid #e0e0e0;
}

.progreso-info {
  margin-bottom: 12px;
}

.progreso-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progreso-fill {
  height: 100%;
  background: linear-gradient(90deg, #4a5259 0%, #1565c0 100%);
  transition: width 0.6s ease;
  border-radius: 10px;
}

.progreso-text {
  font-size: 13px;
  color: #616161;
  font-weight: 600;
}

.alerta-vencido {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #ffebee;
  border-left: 4px solid #ef5350;
  border-radius: 8px;
  color: #c62828;
  font-size: 14px;
  font-weight: 600;
}

.alerta-vencido svg {
  width: 18px;
  height: 18px;
}

.no-cursos-activos {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.no-cursos-activos svg {
  width: 64px;
  height: 64px;
  color: #bdbdbd;
  margin-bottom: 16px;
}

.no-cursos-activos h4 {
  margin: 0 0 8px 0;
  font-size: 20px;
  color: #424242;
}

.no-cursos-activos p {
  margin: 0;
  color: #757575;
  font-size: 15px;
}


.modal-seleccion-mes-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-seleccion-mes-overlay.active {
  opacity: 1;
}

.modal-seleccion-mes-content {
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-seleccion-mes-overlay.active .modal-seleccion-mes-content {
  transform: scale(1);
}

.modal-seleccion-mes-header {
  background: linear-gradient(135deg, #4a5259 0%, #1565c0 100%);
  padding: 24px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-seleccion-mes-header .header-info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.modal-seleccion-mes-header .header-info > svg {
  width: 32px;
  height: 32px;
  margin-top: 4px;
}

.modal-seleccion-mes-header h3 {
  margin: 0 0 4px 0;
  font-size: 22px;
  font-weight: 700;
}

.modal-seleccion-mes-header p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

.modal-seleccion-mes-header .btn-cerrar-modal {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-seleccion-mes-header .btn-cerrar-modal:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.modal-seleccion-mes-header .btn-cerrar-modal svg {
  width: 20px;
  height: 20px;
}

.modal-seleccion-mes-body {
  padding: 32px 24px;
}

.mes-confirmacion {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 16px;
  margin-bottom: 24px;
}

.mes-confirmacion .mes-icono {
  width: 56px;
  height: 56px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
}

.mes-confirmacion .mes-icono svg {
  width: 32px;
  height: 32px;
  color: #4a5259;
}

.mes-detalle {
  flex: 1;
}

.mes-label {
  display: block;
  font-size: 13px;
  color: #1565c0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.mes-valor {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #0d47a1;
}

.monto-confirmacion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: #fafafa;
  border-radius: 12px;
  margin-bottom: 24px;
}

.monto-label {
  font-size: 15px;
  color: #616161;
  font-weight: 600;
}

.monto-valor {
  font-size: 28px;
  font-weight: 700;
  color: #4a5259;
}

.acciones-confirmacion {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
}

.btn-cancelar,
.btn-confirmar-pago {
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-cancelar {
  background: #f5f5f5;
  color: #616161;
}

.btn-cancelar:hover {
  background: #e0e0e0;
}

.btn-cancelar svg {
  width: 18px;
  height: 18px;
}

.btn-confirmar-pago {
  background: linear-gradient(135deg, #4a5259 0%, #1565c0 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.btn-confirmar-pago:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(25, 118, 210, 0.4);
}

.btn-confirmar-pago svg {
  width: 18px;
  height: 18px;
}


.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(66, 99, 140, 0.15);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.mobile-menu-toggle i {
  width: 20px;
  height: 20px;
  color: #5d646b;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
}

@media (max-width: 1024px) {
  .dashboard-main {
    padding: 20px 25px 30px 25px;
  }

  .pagos-filters,
  .alumnos-filters,
  .profesores-filters {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stats-grid,
  .pagos-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .cursos-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
    right: 15px;
    top: 15px;
    left: auto;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 280px;
    z-index: 2000;
  }

  .sidebar.collapsed {
    transform: translateX(-100%);
  }

  .sidebar:not(.collapsed) {
    transform: translateX(0);
    box-shadow: 4px 0 12px rgba(0,0,0,0.3);
  }

  .sidebar-overlay.active {
    display: block;
  }

  .dashboard-main {
    margin-left: 0;
    padding: 80px 16px 20px 16px;
  }

  .dashboard-main.sidebar-open {
    margin-left: 0;
  }

  .dashboard-header {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    margin-bottom: 20px;
  }

  .dashboard-header h1 {
    font-size: 22px;
  }

  .user-info {
    width: 100%;
    justify-content: center;
  }

  .stats-grid,
  .pagos-stats-grid,
  .alumno-pagos-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card,
  .stat-pago-card {
    padding: 16px;
  }

  .stat-card h3,
  .stat-pago-card h3 {
    font-size: 24px;
  }

  #mainContent table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    font-size: 13px;
  }

  #mainContent th,
  #mainContent td {
    padding: 10px 8px;
  }

  .btn-icon-primary,
  .btn-icon-edit,
  .btn-icon-danger,
  .btn-icon-warning,
  .btn-icon-success {
    padding: 6px;
    min-width: 32px;
    height: 32px;
  }

  .btn-icon-primary i,
  .btn-icon-edit i,
  .btn-icon-danger i,
  .btn-icon-warning i,
  .btn-icon-success i {
    width: 16px;
    height: 16px;
  }

  .cursos-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .curso-card {
    padding: 16px;
  }

  .curso-panel,
  .alumno-panel,
  .profesor-panel,
  .pago-panel {
    width: 100%;
    max-width: 100%;
  }

  .curso-panel-content,
  .alumno-panel-content,
  .profesor-panel-content,
  .pago-panel-content {
    padding: 16px;
  }

  .modal-content {
    width: 95%;
    max-width: 95%;
    margin: 10px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-header h3 {
    font-size: 18px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-row .form-group {
    width: 100%;
  }

  .tabs-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    padding: 10px 16px;
    font-size: 13px;
    white-space: nowrap;
  }

  .meses-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 16px;
  }

  .mes-item {
    padding: 12px 8px;
  }

  .mes-item svg {
    width: 20px;
    height: 20px;
  }

  .mes-nombre {
    font-size: 11px;
  }

  .curso-pago-header {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .curso-stats {
    align-self: flex-start;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }

  .curso-pago-footer {
    padding: 16px;
  }

  .modal-seleccion-mes-content {
    width: 95%;
    max-width: 95%;
  }

  .modal-seleccion-mes-header {
    padding: 16px;
  }

  .modal-seleccion-mes-header h3 {
    font-size: 18px;
  }

  .modal-seleccion-mes-body {
    padding: 20px 16px;
  }

  .acciones-confirmacion {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .btn-cancelar {
    order: 2;
  }

  .btn-confirmar-pago {
    order: 1;
  }

  .pagos-filters,
  .alumnos-filters,
  .profesores-filters {
    flex-direction: column;
    gap: 12px;
  }

  .filter-group {
    width: 100%;
  }

  .filter-group label {
    font-size: 13px;
  }

  .filter-group input,
  .filter-group select {
    padding: 10px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .mobile-menu-toggle {
    width: 45px;
    height: 45px;
    top: 15px;
    left: 15px;
  }

  .sidebar {
    width: 85%;
    max-width: 300px;
  }

  .dashboard-main {
    padding: 70px 12px 16px 12px;
  }

  .dashboard-header {
    padding: 12px;
    border-radius: 12px;
  }

  .dashboard-header h1 {
    font-size: 20px;
  }

  .stat-card,
  .stat-pago-card {
    padding: 12px;
  }

  .stat-card h3,
  .stat-pago-card h3 {
    font-size: 20px;
  }

  .stat-card p,
  .stat-pago-card p {
    font-size: 12px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-add-pago {
    padding: 10px 16px;
    font-size: 13px;
  }

  .curso-card-title h3 {
    font-size: 16px;
  }

  .curso-card-info {
    font-size: 13px;
  }

  .ver-detalles-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .meses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 12px;
  }

  .mes-item {
    padding: 10px 6px;
  }

  .mes-nombre {
    font-size: 10px;
  }

  .mes-fecha {
    font-size: 9px;
  }

  #mainContent table {
    font-size: 12px;
  }

  #mainContent th,
  #mainContent td {
    padding: 8px 6px;
  }

  .modal-content {
    width: 98%;
    margin: 5px;
    padding: 16px;
  }

  .modal-header {
    padding: 12px;
  }

  .form-group label {
    font-size: 13px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px;
    font-size: 14px;
  }

  .curso-panel,
  .alumno-panel,
  .profesor-panel,
  .pago-panel {
    width: 100%;
  }

  .curso-panel-header,
  .alumno-panel-header,
  .profesor-panel-header,
  .pago-panel-header {
    padding: 12px;
  }

  .curso-panel-header h2,
  .alumno-panel-header h2,
  .profesor-panel-header h2,
  .pago-panel-header h2 {
    font-size: 18px;
  }

  .search-box input {
    padding: 10px;
    font-size: 14px;
  }

  .pago-pendiente-card {
    padding: 12px;
  }

  .pago-pendiente-header {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .inscripcion-card {
    padding: 12px;
  }

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

  .data-table {
    font-size: 12px;
  }

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

  .modal-content {
    padding: 16px;
    margin: 10px;
  }

  .modal-header h2 {
    font-size: 18px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-danger,
  .btn-success {
    padding: 8px 14px;
    font-size: 13px;
  }

  .form-group {
    margin-bottom: 12px;
  }

  .form-group label {
    font-size: 13px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 8px 12px;
    font-size: 14px;
  }

  .curso-card,
  .alumno-card,
  .profesor-card,
  .welcome-card {
    padding: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    max-width: 100%;
  }

  .curso-card-header,
  .alumno-card-header,
  .profesor-card-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .curso-card-title h3 {
    font-size: 15px;
    line-height: 1.3;
  }

  .curso-card-info,
  .alumno-card-info {
    flex-direction: column;
    gap: 6px;
  }

  .welcome-card h2 {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }

  .welcome-card p {
    font-size: 13px;
    line-height: 1.5;
  }
}

@media (max-width: 380px) {
  .dashboard-header h1 {
    font-size: 18px;
  }

  .stat-card h3,
  .stat-pago-card h3 {
    font-size: 11px;
  }

  .stat-value {
    font-size: 20px;
  }

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

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

  .curso-card-title h3 {
    font-size: 14px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .sidebar {
    overflow-y: auto;
  }

  .modal-content {
    max-height: 85vh;
    overflow-y: auto;
  }

  .curso-panel,
  .alumno-panel,
  .profesor-panel,
  .pago-panel {
    overflow-y: auto;
  }
}

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

  .dashboard-container {
    overflow-x: hidden;
  }

  .dashboard-main {
    padding: 70px 10px 16px 10px;
    overflow-x: hidden;
  }

  .panel,
  .curso-panel,
  .alumno-panel {
    padding: 12px;
    overflow-x: hidden;
  }

  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -10px;
    padding: 0 10px;
  }

  .curso-card,
  .alumno-card,
  .profesor-card {
    padding: 12px;
  }

  .form-row {
    flex-direction: column;
  }

  .form-group {
    width: 100% !important;
  }

  .btn-group {
    flex-direction: column;
    gap: 8px;
  }

  .btn-group .btn {
    width: 100%;
  }

  .modal-content {
    max-height: 90vh;
    overflow-y: auto;
  }

  .cursos-grid,
  .alumnos-grid,
  .profesores-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 430px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  * {
    box-sizing: border-box;
  }

  .dashboard-container {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .dashboard-header {
    padding: 14px 14px;
    gap: 10px;
  }

  .header-left {
    gap: 10px;
    max-width: 60%;
  }

  .header-logo {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }

  .header-title {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-right {
    gap: 8px;
  }

  .header-user-info span {
    display: none;
  }

  .header-avatar {
    width: 34px;
    height: 34px;
  }

  .notification-badge {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }

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

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

  .dashboard-main {
    padding: 68px 14px 20px 14px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .main-content {
    padding: 0;
    width: 100%;
    max-width: 100%;
  }

  .tabs-container,
  .dashboard-tabs {
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 4px;
    margin: 0 -14px;
    padding: 0 14px;
  }

  .tab-btn {
    padding: 10px 14px;
    font-size: 0.82rem;
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 40px;
  }

  .tab-icon {
    display: none;
  }

  .stats-grid,
  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-card,
  .stat-item {
    padding: 14px 12px;
    border-radius: 12px;
  }

  .stat-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
  }

  .stat-icon svg,
  .stat-icon i {
    width: 18px;
    height: 18px;
  }

  .stat-card h3,
  .stat-number {
    font-size: 1.6rem;
    margin-bottom: 4px;
  }

  .stat-card p,
  .stat-label {
    font-size: 0.72rem;
  }

  .pagos-stats-grid,
  .alumno-pagos-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-pago-card {
    padding: 12px 10px;
    border-radius: 12px;
  }

  .stat-pago-card h4 {
    font-size: 1.15rem;
  }

  .stat-pago-card p {
    font-size: 0.72rem;
  }

  .cuotas-grid,
  .meses-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .cuota-item,
  .mes-item {
    padding: 8px 4px;
    border-radius: 8px;
    font-size: 0.7rem;
  }

  .cuota-item span,
  .mes-item span {
    font-size: 0.68rem;
  }

  .search-container,
  .filter-bar {
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }

  .search-box {
    width: 100%;
  }

  .search-box input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    font-size: 16px;
    border-radius: 10px;
  }

  .filter-buttons,
  .filter-group {
    display: flex;
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
  }

  .filter-btn {
    flex: 1;
    min-width: 80px;
    padding: 10px 12px;
    font-size: 0.8rem;
    border-radius: 8px;
    text-align: center;
  }

  .cursos-grid,
  .alumnos-grid,
  .profesores-grid,
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .curso-card,
  .alumno-card,
  .profesor-card {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .curso-card-header,
  .alumno-card-header {
    gap: 10px;
    margin-bottom: 12px;
  }

  .curso-avatar,
  .alumno-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
  }

  .curso-card-title h3,
  .alumno-card h3,
  .profesor-card h3 {
    font-size: 0.98rem;
    line-height: 1.3;
    word-break: break-word;
  }

  .curso-card-title p,
  .card-subtitle {
    font-size: 0.78rem;
  }

  .card-info,
  .alumno-info,
  .profesor-info {
    gap: 8px;
  }

  .info-item {
    font-size: 0.8rem;
  }

  .card-actions {
    margin-top: 12px;
    padding-top: 12px;
    gap: 8px;
  }

  .btn-icon-primary,
  .btn-icon-edit,
  .btn-icon-danger,
  .btn-icon-warning,
  .btn-icon-success {
    min-width: 38px;
    min-height: 38px;
    padding: 8px;
    border-radius: 8px;
  }

  .curso-panel,
  .alumno-panel,
  .profesor-panel,
  .pago-panel {
    padding: 16px 14px;
    padding-top: 60px;
  }

  .panel-header {
    padding: 14px;
    gap: 10px;
  }

  .panel-header h2,
  .panel-title {
    font-size: 1.1rem;
  }

  .panel-close-btn {
    width: 38px;
    height: 38px;
    top: 12px;
    right: 12px;
  }

  .panel-content {
    padding: 14px;
    gap: 16px;
  }

  .panel-section {
    padding: 14px 12px;
    border-radius: 12px;
    margin-bottom: 14px;
  }

  .panel-section h3 {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .form-container {
    padding: 0;
  }

  .form-row {
    gap: 12px;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .form-group label {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 13px 14px;
    font-size: 16px;
    border-radius: 10px;
  }

  .form-group input[type="checkbox"],
  .form-group input[type="radio"] {
    width: 20px;
    height: 20px;
  }

  .form-hint {
    font-size: 0.72rem;
    margin-top: 4px;
  }

  .btn-primary,
  .btn-submit {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .btn-secondary {
    width: 100%;
    padding: 12px 18px;
    font-size: 0.88rem;
    border-radius: 10px;
  }

  .btn-group {
    gap: 10px;
  }

  .actions-bar {
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }

  .actions-bar .btn {
    width: 100%;
  }

  .modal {
    padding: 0;
  }

  .modal-content {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }

  .modal-header {
    padding: 16px 14px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }

  .modal-header h2,
  .modal-title {
    font-size: 1.15rem;
    padding-right: 36px;
  }

  .modal-close {
    width: 36px;
    height: 36px;
    top: 14px;
    right: 14px;
  }

  .modal-body {
    padding: 16px 14px;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-footer {
    padding: 14px;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.08);
    gap: 10px;
  }

  .modal-footer .btn {
    flex: 1;
  }

  .table-container {
    margin: 0 -14px;
    padding: 0;
    border-radius: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 600px;
    font-size: 0.8rem;
  }

  th, td {
    padding: 10px 12px;
    white-space: nowrap;
  }

  th {
    font-size: 0.72rem;
    font-weight: 600;
  }

  .sidebar {
    width: 280px;
    max-width: 82vw;
    padding: 16px 14px;
  }

  .sidebar-header {
    padding: 14px 12px;
    margin-bottom: 16px;
  }

  .sidebar-header .logo {
    width: 40px;
    height: 40px;
  }

  .sidebar-header span {
    font-size: 1rem;
  }

  .sidebar-menu button,
  .sidebar-link {
    padding: 12px 14px;
    font-size: 0.88rem;
    border-radius: 10px;
    min-height: 48px;
  }

  .sidebar-menu button i,
  .sidebar-link i {
    width: 20px;
    font-size: 1rem;
  }

  .sidebar-footer {
    padding: 14px 12px;
    border-top: 1px solid rgba(0,0,0,0.08);
  }

  .badge,
  .status-badge {
    padding: 4px 10px;
    font-size: 0.7rem;
    border-radius: 6px;
  }

  .tooltip {
    display: none;
  }

  .alert,
  .notification-toast {
    padding: 14px;
    font-size: 0.85rem;
    border-radius: 12px;
  }

  .empty-state {
    padding: 40px 20px;
  }

  .empty-state-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
  }

  .empty-state h3 {
    font-size: 1.1rem;
  }

  .empty-state p {
    font-size: 0.88rem;
  }
}


@media (max-width: 768px) {
  .sidebar-overlay {
    display: none;
  }

  .sidebar-overlay.active {
    display: block;
  }

  .dashboard-header {
    margin: 0 0 20px 0;
    border-radius: 12px;
    position: relative;
  }

  .tabs-container {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .tabs-container::-webkit-scrollbar {
    display: none;
  }

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

  .curso-card,
  .alumno-card,
  .profesor-card {
    border-radius: 12px;
  }

  .btn-icon-primary,
  .btn-icon-edit,
  .btn-icon-danger,
  .btn-icon-warning,
  .btn-icon-success {
    min-width: 40px;
    min-height: 40px;
  }

  .dropdown-item,
  .menu-item {
    min-height: 44px;
    padding: 12px 16px;
  }

  .search-box {
    width: 100%;
  }

  .search-box input {
    width: 100%;
  }

  .actions-bar,
  .toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .cuotas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .curso-panel,
  .alumno-panel,
  .profesor-panel,
  .pago-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    max-width: 100%;
    z-index: 1000;
    border-radius: 0;
    animation: slideInRight 0.3s ease;
  }

  @keyframes slideInRight {
    from {
      transform: translateX(100%);
    }
    to {
      transform: translateX(0);
    }
  }

  .panel-close-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .stats-grid,
  .pagos-stats-grid,
  .alumno-pagos-stats {
    grid-template-columns: 1fr;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px !important; /* Previene zoom en iOS */
  }

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

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

  .modal-content {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    border-radius: 0;
  }

  .modal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
  }

  .sidebar {
    width: 280px;
    max-width: 85vw;
  }

  .mobile-menu-toggle {
    width: 48px;
    height: 48px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  }
}

@media (max-width: 360px) {
  .dashboard-main {
    padding: 65px 8px 12px 8px;
  }

  .stat-card,
  .stat-pago-card {
    padding: 10px;
  }

  .stat-card h3 {
    font-size: 18px;
  }

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

  .curso-card-title h3,
  .alumno-card h3,
  .profesor-card h3 {
    font-size: 14px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 8px 12px;
    font-size: 12px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .sidebar-menu button {
    min-height: 48px;
  }

  .tab-btn {
    min-height: 44px;
  }

  .btn-icon-primary,
  .btn-icon-edit,
  .btn-icon-danger {
    min-width: 44px;
    min-height: 44px;
  }

  .curso-card:hover,
  .alumno-card:hover,
  .stat-card:hover {
    transform: none;
  }

  .table-container {
    -webkit-overflow-scrolling: touch;
  }
}


.swal2-container {
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
  background: rgba(0, 0, 0, 0.4) !important;
}

.swal2-popup {
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
}

.swal2-title {
  font-family: Georgia, 'Times New Roman', serif !important;
  font-weight: 400 !important;
  color: var(--hw-charcoal) !important;
}

.swal2-icon {
  animation: swalIconPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s backwards !important;
}

@keyframes swalIconPop {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.swal2-confirm.swal2-styled {
  background-color: var(--hw-charcoal) !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 12px 28px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  --swal2-action-button-focus-box-shadow: 0 0 0 3px rgba(30, 30, 30, 0.3) !important;
}

.swal2-confirm.swal2-styled:focus {
  box-shadow: 0 0 0 3px rgba(30, 30, 30, 0.3) !important;
}

.swal2-confirm.swal2-styled:hover {
  background-color: #333333 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

.swal2-cancel.swal2-styled {
  background-color: var(--hw-graphite) !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 12px 28px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.swal2-cancel.swal2-styled:focus {
  box-shadow: 0 0 0 3px rgba(101, 111, 119, 0.4) !important;
}

.swal2-cancel.swal2-styled:hover {
  background-color: #4a5259 !important;
  transform: translateY(-2px) !important;
}

.swal2-deny.swal2-styled {
  background-color: #dc2626 !important;
  border-radius: 12px !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.swal2-deny.swal2-styled:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3) !important;
}


input[type="checkbox"] {
  accent-color: #4a5259 !important;
  transition: transform var(--duration-fast) var(--ease-smooth);
}

input[type="checkbox"]:hover {
  transform: scale(1.1);
}

.swal2-popup input[type="checkbox"] {
  accent-color: #4a5259 !important;
  cursor: pointer;
}

.pagos-container input[type="checkbox"],
.cuotas-grid input[type="checkbox"],
.cuota-checkbox input[type="checkbox"] {
  accent-color: #4a5259 !important;
}

input[type="checkbox"]:checked {
  background-color: #4a5259 !important;
  border-color: #4a5259 !important;
}


a {
  transition: color var(--duration-fast) var(--ease-smooth);
}

button, 
.btn,
[role="button"],
.clickable {
  font-family: 'Inter', sans-serif;
  transition: all var(--duration-normal) var(--ease-smooth);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--hw-graphite);
  outline-offset: 2px;
}

.card:hover,
.panel:hover,
[class*="-card"]:hover {
  transform: translateY(-3px);
}

.shimmer {
  background: linear-gradient(
    90deg,
    var(--hw-off-white) 25%,
    #e8e8e8 50%,
    var(--hw-off-white) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

button:hover i,
button:hover svg,
.btn:hover i,
.btn:hover svg {
  transform: scale(1.1);
  transition: transform var(--duration-normal) var(--ease-smooth);
}

* {
  font-family: 'Inter';
  transition-property: transform, opacity, box-shadow, background-color, border-color;
  transition-timing-function: var(--ease-smooth);
}

[class*="animate"],
[class*="Animation"] {
  transition-property: none;
}