/* ===== CLASIFICACION GENERAL ===== */
/* Título */
.lc-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 32px;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  letter-spacing: 1px;
  color: white;
}

.lc-period-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.lc-period-select {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}

.lc-period-select label {
  font-weight: 600;
}

#lc-period-select {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

#lc-period-select option {
  color: #111;
}

.lc-period-indicator {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

/* Tabs */
.lc-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  border-bottom: 2px solid #e5e7eb;
}

.lc-tab {
  background: none;
  border: none;
  padding: 12px 24px;
  margin: 0 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.lc-tab:hover {
  color: #3b82f6;
  background: #f8fafc;
}

.lc-tab.active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
  background: #f8fafc;
}

/* Tab Content */
.lc-tab-content {
  display: none;
}

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

/* Tabla */
.lc-table-container {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  background: white;
}

.lc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.lc-table th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 16px 12px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lc-table th.lc-total {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.lc-table td {
  padding: 18px 16px;
  text-align: center;
  border-bottom: 1px solid #f3f4f6;
  font-weight: 600;
  vertical-align: middle;
  color: #000;

.lc-table tbody tr:hover {
  background: #f8fafc;
}

/* Posiciones */
.lc-table tbody tr:nth-child(1) {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.lc-table tbody tr:nth-child(2) {
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

.lc-table tbody tr:nth-child(3) {
  background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
}

/* Posición */
.lc-table td:first-child {
  text-align: left;
}

/* Posición + Clase */
.lc-pos-clase-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.lc-pos-badge {
  min-width: 34px;
  text-align: center;
  font-weight: 800;
  font-size: 18px;
  color: #1f2937;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.lc-clase-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}

.lc-clase-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: transparent;
  border: none;
  box-shadow: none;
}

.lc-clase-name {
  display: inline-block;
  max-width: calc(100% - 38px);
  overflow: hidden;
  text-overflow: ellipsis;
  color: #000;
}

/* Puntos */
.lc-table td:not(:first-child):not(.lc-text-cell) {
  font-weight: 800;
  font-size: 18px;
  color: #1f2937;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  min-width: 60px;
}

.lc-table td.lc-total {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #059669;
  font-weight: 900;
  font-size: 20px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  border: 2px solid #bbf7d0;
  border-radius: 8px;
}

.lc-row-reset {
  animation: lc-reset-pulse 1.8s ease-in-out infinite;
}

@keyframes lc-reset-pulse {
  0% { box-shadow: inset 0 0 0 rgba(59, 130, 246, 0.0); }
  50% { box-shadow: inset 0 0 0 rgba(59, 130, 246, 0.35); }
  100% { box-shadow: inset 0 0 0 rgba(59, 130, 246, 0.0); }
}

/* Footer */
.lc-footer {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  color: #6b7280;
  font-size: 14px;
}

/* Error */
.lc-error {
  text-align: center;
  padding: 40px;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  margin: 20px 0;
}

/* Estilos específicos para números */
.lc-table td:not(:first-child):not(.lc-text-cell) {
  font-family: 'Courier New', monospace;
  font-weight: 800;
  font-size: 18px;
  color: #1f2937;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin: 2px;
  min-width: 50px;
}
/* Responsive */
@media (max-width: 1024px) {
  #lc-clasificacion-container {
    padding: 10px;
  }
  
  .lc-title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  
  /* Modal responsive */
  .lc-modal-content {
    width: 95%;
    max-width: 400px;
  }
  
  .lc-clase-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .lc-clase-btn {
    padding: 12px 8px;
    font-size: 14px;
  }
  
  .lc-modal-header h3 {
    font-size: 20px;
  }
  
  .lc-modal-header p {
    font-size: 14px;
  }
  
  .lc-tabs {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .lc-tab {
    padding: 8px 12px;
    font-size: 14px;
    margin: 0 2px;
    position: relative;
  }
  
  /* Ocultar texto y mostrar emojis en pantallas pequeñas */
  .lc-tab[data-tab="general"] {
    font-size: 0;
  }
  
  .lc-tab[data-tab="general"]::before {
    content: "🏆";
    font-size: 18px;
    display: block;
  }
  
  .lc-tab[data-tab="semaforo"] {
    font-size: 0;
  }
  
  .lc-tab[data-tab="semaforo"]::before {
    content: "🚦";
    font-size: 18px;
    display: block;
  }
  
  .lc-tab[data-tab="deportes"] {
    font-size: 0;
  }
  
  .lc-tab[data-tab="deportes"]::before {
    content: "⚽";
    font-size: 18px;
    display: block;
  }
  
  .lc-tab[data-tab="partes"] {
    font-size: 0;
  }
  
  .lc-tab[data-tab="partes"]::before {
    content: "📋";
    font-size: 18px;
    display: block;
  }
  
  .lc-tab[data-tab="biblioteca"] {
    font-size: 0;
  }
  
  .lc-tab[data-tab="biblioteca"]::before {
    content: "📚";
    font-size: 18px;
    display: block;
  }
  
  .lc-tab[data-tab="extraordinarias"] {
    font-size: 0;
  }
  
.lc-tab[data-tab="extraordinarias"]::before {
  content: "⭐";
  font-size: 18px;
  display: block;
}


  .lc-tab[data-tab="tiempo-aprendizaje"] {
    font-size: 0;
  }
  
  .lc-tab[data-tab="tiempo-aprendizaje"]::before {
    content: "⏳";
    font-size: 18px;
    display: block;
  }
  
  .lc-table {
    font-size: 14px;
  }
  
  .lc-table th,
  .lc-table td {
    padding: 12px 8px;
  }
  
  .lc-table td:not(:first-child):not(.lc-text-cell) {
    font-size: 16px;
    min-width: 40px;
    color: #000;
  }

  .lc-clase-avatar {
    width: 22px;
    height: 22px;
  }

  .lc-pos-clase-cell {
    gap: 8px;
  }

  .lc-pos-badge {
    min-width: 28px;
    font-size: 16px;
  }
  
  .lc-table th {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .lc-table th,
  .lc-table td {
    padding: 8px 4px;
  }
  
  .lc-table td:not(:first-child):not(.lc-text-cell) {
    font-size: 14px;
    min-width: 35px;
    color: #000;
  }
  
  .lc-table {
    font-size: 12px;
  }
  
  .lc-table th {
    font-size: 10px;
  }

  .lc-clase-avatar {
    width: 20px;
    height: 20px;
  }

  .lc-pos-clase-cell {
    gap: 6px;
  }

  .lc-pos-badge {
    min-width: 24px;
    font-size: 14px;
  }
  
  .lc-tab {
    padding: 6px 12px;
    font-size: 12px;
  }
  
}

.lc-summary-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.lc-summary-card h4 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: #374151;
}

.lc-summary-stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
}

.lc-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  min-width: 150px;
}

.lc-stat-icon {
  font-size: 20px;
}

.lc-stat-label {
  font-weight: 600;
  color: #374151;
}

.lc-stat-value {
  font-weight: 700;
  font-size: 18px;
  color: #1f2937;
  margin-left: auto;
}
