/* === CALCULADORA DE NOTAS PARCIALES - PROFENINJA === */
/* Diseño Moderno Minimalista - Compatible con Sistema de Temas */

/* === RESET Y BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --card-radius: 20px;
    --button-radius: 50px;
    --input-radius: 80px;
    --transition: all 0.3s ease;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
    
    /* Variables del header de Evalúa con Rúbricas */
    --primary-color: #0070D1;
    --primary-dark: #00439C;
    --primary-darker: #00246E;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #1F1F1F;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* === LAYOUT PRINCIPAL === */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

/* === APP HEADER === */
.app-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--gray-200);
    position: relative;
    z-index: 100;
}

.app-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-left > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Button Wrap Styles */
.button-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    --shadow-cuttoff-fix: 0.5em;
}

.button-shadow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(0, 0, 0, 0.1);
    filter: blur(0.25em);
    opacity: 0;
    transition: opacity var(--anim--hover-time, 400ms) var(--anim--hover-ease, cubic-bezier(0.25, 1, 0.5, 1));
}

.button-shadow::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.1);
    filter: blur(0.125em);
    opacity: 0;
    transition: opacity var(--anim--hover-time, 400ms) var(--anim--hover-ease, cubic-bezier(0.25, 1, 0.5, 1));
}

.button-wrap:has(button:hover) .button-shadow {
    filter: blur(clamp(2px, 0.0625em, 6px));
    transition: filter var(--anim--hover-time, 400ms) var(--anim--hover-ease, cubic-bezier(0.25, 1, 0.5, 1));
}

.button-wrap:has(button:hover) .button-shadow::after {
    top: calc(var(--shadow-cuttoff-fix) - 0.875em);
    opacity: 1;
}

.button-wrap.volver-menu {
    position: relative;
    z-index: 1000;
    pointer-events: auto;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-wrap.volver-menu button {
    --border-width: clamp(1px, 0.0625em, 4px);
    all: unset;
    cursor: pointer;
    position: relative;
    z-index: 3;
    background: linear-gradient(-75deg, rgba(255,255,255,0.05), rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    border-radius: 50%;
    box-shadow: inset 0 0.125em 0.125em rgba(0,0,0,0.05),
      inset 0 -0.125em 0.125em rgba(255,255,255,0.5),
      0 0.25em 0.125em -0.125em rgba(0,0,0,0.2),
      0 0 0.1em 0.25em inset rgba(255,255,255,0.2),
      0 4px 15px rgba(59, 130, 246, 0.3),
      0 0 20px rgba(59, 130, 246, 0.15);
    backdrop-filter: blur(clamp(1px, 0.125em, 4px));
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-wrap.volver-menu button:hover {
    background: linear-gradient(-75deg, rgba(255,255,255,0.1), rgba(255,255,255,0.25), rgba(255,255,255,0.1));
}

.button-wrap.volver-menu button:active {
    background: linear-gradient(-75deg, rgba(255,255,255,0.15), rgba(255,255,255,0.3), rgba(255,255,255,0.15));
}

.button-wrap.volver-menu button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button-wrap.volver-menu button:disabled:hover {
    background: linear-gradient(-75deg, rgba(255,255,255,0.05), rgba(255,255,255,0.2), rgba(255,255,255,0.05));
}

.button-wrap.volver-menu button span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.app-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.app-title svg {
    color: var(--primary-color);
}

.app-subtitle {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
    font-weight: 400;
}

.breadcrumb-container {
    margin-top: 0.5rem;
}

.breadcrumb {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
    background: rgba(156, 163, 175, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(156, 163, 175, 0.2);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Responsive Header */
@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
    }

    .header-left {
        gap: 1rem;
    }

    .app-title {
        font-size: 1.5rem;
    }

    .app-subtitle {
        font-size: 0.8rem;
    }

    .button-wrap.volver-menu {
        width: 60px;
        height: 60px;
    }

    .button-wrap.volver-menu button {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.75rem;
    }

    .app-title {
        font-size: 1.25rem;
    }

    .app-subtitle {
        font-size: 0.75rem;
    }

    .button-wrap.volver-menu {
        width: 50px;
        height: 50px;
    }

    .button-wrap.volver-menu button {
        width: 50px;
        height: 50px;
    }
}

/* === TEMAS === */
body.theme-dark { 
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body.theme-light { 
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

body.theme-rosa { 
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

body.theme-neon { 
    background: linear-gradient(135deg, #12c2e9 0%, #c471ed 50%, #f64f59 100%);
}

/* === BOTÓN VOLVER (MANTENER PARA COMPATIBILIDAD) === */
.btn-volver-launcher {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    color: #4a5568;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    z-index: 1000;
    display: none; /* Ocultar el botón antiguo */
}

.btn-volver-launcher:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* === CONTENEDOR PRINCIPAL === */
.multi-container {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem 0.5rem;
    padding-top: 2rem;
}

.multi-panel, .config-inicial-panel {
    background: white;
    border-radius: var(--card-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-medium);
    width: 100%;
    max-width: 1400px;
    transform: translateY(-4.12vh);
}

.config-inicial-panel {
    max-width: 800px;
}

/* === HEADER === */
.multi-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.multi-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 0;
}

.header-buttons {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 0.5rem;
}

.btn-volver-config {
    background: #e5e7eb;
    border: 1px solid #d1d5db;
    border-radius: var(--button-radius);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: #4a5568;
    cursor: pointer;
    transition: var(--transition);
}

.btn-volver-config:hover {
    background: #d1d5db;
}

/* === INFORMACIÓN DEL CURSO === */
.info-curso-seleccionado {
    margin-bottom: 1.5rem;
    text-align: center;
}

.curso-actual {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: var(--card-radius);
    padding: 1rem 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.curso-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
}

.curso-nombre {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
}

.btn-control {
    padding: 0.5rem 1rem;
    border-radius: var(--button-radius);
    border: 1px solid #e5e7eb;
    background: white;
    color: #4a5568;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-control.cargar {
    background: #3182ce;
    color: white;
    border-color: #3182ce;
}

.btn-control.recargar {
    background: #38a169;
    color: white;
    border-color: #38a169;
}

.btn-control.limpiar {
    background: #e53e3e;
    color: white;
    border-color: #e53e3e;
}

.btn-control:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* === BOTONES DE ACCIÓN === */
.botones-accion {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.btn-accion {
    padding: 0.75rem 1.5rem;
    border-radius: var(--button-radius);
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-accion.agregar {
    background: #48bb78;
    color: white;
}

.btn-accion.eliminar {
    background: #f56565;
    color: white;
}

.btn-accion:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* === CONFIGURACIÓN INICIAL === */
.config-notas-section {
    max-width: 600px;
    margin: 0 auto;
}

.numero-notas-control {
    text-align: center;
    margin-bottom: 2rem;
}

.numero-notas-control label {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.numero-input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-numero-control {
    width: 40px;
    height: 40px;
    background: #3182ce;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.btn-numero-control:hover {
    background: #2b6cb0;
    transform: scale(1.1);
}

#num-evaluaciones {
    width: 80px;
    height: 40px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px solid #3182ce;
    border-radius: var(--button-radius);
    background: white;
    color: #2d3748;
}

.evaluaciones-config {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.evaluacion-item {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--button-radius);
}

.evaluacion-nombre {
    background: #fff9a6;
    border: 1px solid #fbbf24;
    border-radius: var(--input-radius);
    padding: 0.75rem;
    font-size: 0.9rem;
    color: #1f2937;
}

.evaluacion-porcentaje {
    background: #d3ffd3;
    border: 1px solid #10b981;
    border-radius: var(--input-radius);
    padding: 0.75rem;
    font-size: 0.9rem;
    color: #1f2937;
    text-align: center;
}

.total-porcentaje {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f0f9ff;
    border: 2px solid #3182ce;
    border-radius: var(--button-radius);
    color: #1e40af;
}

.config-actions {
    text-align: center;
}

.btn-continuar {
    background: #10b981;
    color: white;
    border: none;
    border-radius: var(--button-radius);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.btn-continuar:enabled:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-continuar:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* === INFORMACIÓN DE CONFIGURACIÓN === */
.info-configuracion {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-light);
}

.config-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-label {
    font-weight: 600;
    color: #4a5568;
}

.info-value {
    font-weight: 700;
    color: #2d3748;
    background: #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: var(--button-radius);
}

.btn-resetear {
    padding: 0.5rem 1rem;
    border-radius: var(--button-radius);
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: #38a169;
    color: white;
}

.btn-resetear:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* === LISTA DE ESTUDIANTES === */
.estudiantes-lista {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.lista-header {
    display: grid;
    grid-template-columns: 300px 1fr 200px;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 0;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
    text-align: center;
}

.header-nombre {
    text-align: left;
}

.estudiantes-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.estudiante-row {
    display: grid;
    grid-template-columns: 300px 1fr 200px;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    align-items: center;
    transition: var(--transition);
}

.estudiante-row:last-child {
    border-bottom: none;
}

.estudiante-row:hover {
    background: rgba(59, 130, 206, 0.05);
}

.estudiante-nombre-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.estudiante-nombre {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    flex: 1;
}

.estudiante-acciones {
    display: flex;
    gap: 0.25rem;
}

.btn-accion-estudiante {
    padding: 0.25rem;
    border-radius: 6px;
    border: none;
    font-size: 0.7rem;
    cursor: pointer;
    transition: var(--transition);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-agregar-nota {
    background: #3182ce;
    color: white;
}

.btn-eliminar-nota {
    background: #f56565;
    color: white;
}

.btn-estado {
    background: #38a169;
    color: white;
}

.btn-accion-estudiante:hover {
    transform: scale(1.1);
}

.estudiante-notas-container {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nota-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.nota-input {
    background: #fff9a6;
    border: 1px solid #fbbf2400;
    border-radius: var(--input-radius);
    padding: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    color: #1f2937;
    width: 70px;
    transition: var(--transition);
}

.nota-input:focus {
    outline: none;
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.nota-porcentaje {
    font-size: 0.7rem;
    font-weight: 600;
    color: #059669;
    background: #d3ffd3;
    padding: 0.125rem 0.5rem;
    border-radius: var(--button-radius);
    white-space: nowrap;
}

.estudiante-promedio {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.75rem;
    border-radius: var(--button-radius);
    background: #e2e8f0;
    color: #4a5568;
    text-align: center;
    min-width: 80px;
}

/* === BOTÓN CALCULAR PROMEDIOS === */
.calcular-promedios-container {
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-calcular-promedios {
    background: #3a96f1;
    color: white;
    border: none;
    border-radius: var(--button-radius);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.btn-calcular-promedios:hover {
    background: #2b77d9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-guardar-promedio {
    background: #10b981;
    color: white;
    border: none;
    border-radius: var(--button-radius);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.btn-guardar-promedio:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-guardar-promedio:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* === TEMAS DARK === */
body.theme-dark .btn-volver-launcher {
    background: #2d3748;
    color: #f7fafc;
}

body.theme-dark .multi-panel {
    background: #1a202c;
    border: 1px solid #2d3748;
}

body.theme-dark .multi-header h1 {
    color: #f7fafc;
}

body.theme-dark .curso-actual {
    background: #2d3748;
    border-color: #4a5568;
}

body.theme-dark .curso-label {
    color: #a0aec0;
}

body.theme-dark .curso-nombre {
    color: #f7fafc;
}

body.theme-dark .btn-control {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

body.theme-dark .controles-notas {
    background: #2d3748;
    border-color: #4a5568;
}

body.theme-dark .control-grupo input {
    background: #374151;
    border-color: #4a5568;
    color: #f3f4f6;
}

body.theme-dark .estudiantes-lista {
    background: #1a202c;
    border-color: #4a5568;
}

body.theme-dark .lista-header {
    background: #2d3748;
    border-bottom-color: #4a5568;
    color: #e2e8f0;
}

body.theme-dark .estudiante-row {
    background: transparent;
    border-bottom-color: #4a5568;
}

body.theme-dark .estudiante-row:hover {
    background: rgba(147, 197, 253, 0.1);
}

body.theme-dark .estudiante-nombre {
    color: #f7fafc;
}

body.theme-dark .estudiante-promedio {
    background: #4a5568;
    color: #e2e8f0;
}

body.theme-dark .config-inicial-panel,
body.theme-dark .multi-panel {
    background: #1a202c;
    border-color: #4a5568;
}

body.theme-dark .subtitle {
    color: #a0aec0;
}

body.theme-dark .btn-volver-config {
    background: #4a5568;
    border-color: #6b7280;
    color: #e2e8f0;
}

body.theme-dark .btn-volver-config:hover {
    background: #6b7280;
}

body.theme-dark .numero-notas-control label {
    color: #f7fafc;
}

body.theme-dark .evaluacion-item {
    background: #2d3748;
    border-color: #4a5568;
}

body.theme-dark .total-porcentaje {
    background: #1e3a8a;
    border-color: #3b82f6;
    color: #bfdbfe;
}

body.theme-dark .info-configuracion {
    background: #2d3748;
    border-color: #4a5568;
}

body.theme-dark .info-label {
    color: #e2e8f0;
}

body.theme-dark .info-value {
    background: #4a5568;
    color: #f7fafc;
}

/* === TEMAS LIGHT === */
body.theme-light .multi-header h1,
body.theme-light .estudiante-nombre {
    color: #1a202c;
}

body.theme-light .curso-help {
    color: #4a5568;
}

/* === RESPONSIVE === */
@media (min-width: 1200px) {
    .lista-header,
    .estudiante-row {
        grid-template-columns: 400px 1fr 250px;
    }
    
    .nota-input {
        width: 80px;
    }
    
    .estudiante-promedio {
        font-size: 1.3rem;
    }
}

@media (max-width: 1024px) {
    .info-configuracion {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .multi-container {
        padding: 0.75rem 0.25rem;
        padding-top: 1rem;
    }
    
    .multi-panel,
    .config-inicial-panel {
        padding: 1rem;
        transform: translateY(-2.74vh);
    }
    
    .multi-header h1 {
        font-size: 1.5rem;
    }
    
    .header-buttons {
        position: static;
        margin-top: 1rem;
        flex-direction: column;
        width: 100%;
    }
    
    .btn-volver-config {
        width: 100%;
    }
    
    .evaluacion-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }

    .numero-input-container {
        gap: 1rem;
    }
    
    .botones-accion {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .lista-header,
    .estudiante-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .lista-header {
        text-align: center;
    }
    
    .header-nombre {
        text-align: center;
    }
    
    .estudiante-row {
        text-align: center;
    }
    
    .estudiante-nombre-container {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .estudiante-notas-container {
        justify-content: center;
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .multi-container {
        padding: 0.5rem 0.25rem;
        padding-top: 0.5rem;
    }
    
    .multi-panel {
        padding: 0.75rem;
        transform: translateY(-1.37vh);
    }
    
    .multi-header h1 {
        font-size: 1.25rem;
    }
    

    
    .lista-header {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .estudiante-row {
        padding: 0.75rem;
    }
    
    .nota-input {
        width: 60px;
        padding: 0.375rem;
        font-size: 0.75rem;
    }
    
    .estudiante-promedio {
        font-size: 1rem;
        padding: 0.5rem;
    }
}

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

/* Animación removida para evitar conflictos con transform */

/* === PERFORMANCE === */
.btn-control,
.btn-accion,
.btn-accion-estudiante,
.btn-calcular-promedios {
    will-change: transform;
}

/* === NUEVAS PANTALLAS DE GESTIÓN === */

/* Pantalla Principal de Selección */
.seleccion-principal-panel {
    background: white;
    border-radius: var(--card-radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-medium);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    transform: translateY(-4.12vh);
}

.opciones-principales {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.opcion-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: var(--card-radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.opcion-card:hover {
    transform: translateY(-5px);
    border-color: #3182ce;
    box-shadow: var(--shadow-medium);
}

.opcion-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #3182ce;
}

.opcion-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.opcion-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.btn-opcion {
    background: #3182ce;
    color: white;
    border: none;
    border-radius: var(--button-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-opcion:hover {
    background: #2c5aa0;
    transform: scale(1.05);
}

/* Pantalla de Gestión de Promedios */
.gestion-tandas-panel,
.seleccion-curso-panel {
    background: white;
    border-radius: var(--card-radius);
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    width: 100%;
    max-width: 1200px;
    transform: translateY(-4.12vh);
}

.btn-volver-seleccion {
    background: #e5e7eb;
    border: 1px solid #d1d5db;
    border-radius: var(--button-radius);
    padding: 0.5rem 1rem;
    color: #4a5568;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-volver-seleccion:hover {
    background: #d1d5db;
    transform: translateX(-2px);
}

.btn-volver-seleccion:active {
    transform: translateX(0);
}

.tandas-lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tanda-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--card-radius);
    padding: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
}

.tanda-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: #3182ce;
}

.tanda-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tanda-titulo {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.tanda-fecha {
    font-size: 0.8rem;
    color: #6b7280;
}

.tanda-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tanda-dato {
    text-align: center;
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.tanda-dato-label {
    font-size: 0.7rem;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
}

.tanda-dato-valor {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.tanda-acciones {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.btn-tanda-accion {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--button-radius);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-abrir {
    background: #3182ce;
    color: white;
}

.btn-eliminar {
    background: #e53e3e;
    color: white;
}

.btn-tanda-accion:hover {
    transform: scale(1.05);
}

/* Pantalla de Selección de Curso */
.cursos-disponibles {
    max-width: 500px;
    margin: 2rem auto;
    text-align: center;
}

.selector-curso-nueva {
    margin-bottom: 2rem;
}

.selector-curso-nueva select {
    background: #0158710f;
    border: 1px solid #fbbf2400;
    border-radius: var(--input-radius);
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: #1f2937;
    font-weight: 500;
    width: 100%;
    margin-bottom: 0.5rem;
}

.curso-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-agregar-curso {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: var(--button-radius);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-agregar-curso:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.3);
}

.mensaje-sin-promedios {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

.mensaje-sin-promedios h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #4a5568;
}

/* === TEMAS DARK PARA NUEVAS PANTALLAS === */
body.theme-dark .seleccion-principal-panel,
body.theme-dark .gestion-tandas-panel,
body.theme-dark .seleccion-curso-panel {
    background: #1a202c;
    border-color: #2d3748;
}

body.theme-dark .opcion-card,
body.theme-dark .tanda-card {
    background: #2d3748;
    border-color: #4a5568;
}

body.theme-dark .opcion-card h3,
body.theme-dark .tanda-titulo {
    color: #f7fafc;
}

body.theme-dark .opcion-card p,
body.theme-dark .tanda-fecha {
    color: #a0aec0;
}

body.theme-dark .tanda-dato {
    background: #1a202c;
    border-color: #4a5568;
}

body.theme-dark .tanda-dato-valor {
    color: #f7fafc;
}

body.theme-dark .selector-curso-nueva select {
    background: #2d3748;
    border-color: #4a5568;
    color: #f7fafc;
}

body.theme-dark .btn-volver-seleccion {
    background: #4a5568;
    border-color: #2d3748;
    color: #f7fafc;
}

body.theme-dark .btn-volver-seleccion:hover {
    background: #2d3748;
}

body.theme-dark .btn-agregar-curso {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
}

body.theme-dark .btn-agregar-curso:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    box-shadow: 0 12px 30px rgba(6, 95, 70, 0.4);
}

/* === RESPONSIVE PARA NUEVAS PANTALLAS === */
@media (max-width: 768px) {
    .opciones-principales {
        grid-template-columns: 1fr;
    }
    
    .tandas-lista {
        grid-template-columns: 1fr;
    }
    
    .tanda-info {
        grid-template-columns: 1fr;
    }
    
    .gestion-tandas-panel,
    .seleccion-curso-panel,
    .seleccion-principal-panel {
        transform: translateY(-2.74vh);
    }
    
    .curso-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .btn-agregar-curso {
        width: 100%;
        max-width: 300px;
    }
}

/* === ESTILOS DE TEMAS PARA EL HEADER === */
body.theme-dark .app-header {
    background: rgba(31, 31, 31, 0.95);
    border-bottom: 1px solid var(--gray-700);
}

body.theme-dark .app-title {
    color: var(--white);
}

body.theme-dark .app-title svg {
    color: var(--primary-color);
}

body.theme-dark .app-subtitle {
    color: var(--gray-400);
}

body.theme-dark .breadcrumb {
    background: rgba(156, 163, 175, 0.15);
    border-color: rgba(156, 163, 175, 0.3);
    color: #d1d5db;
}

body.theme-rosa .app-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #fecaca;
}

body.theme-rosa .app-title {
    color: #be185d;
}

body.theme-rosa .app-title svg {
    color: #ec4899;
}

body.theme-rosa .app-subtitle {
    color: #9d174d;
}

body.theme-neon .app-header {
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid #00ff88;
}

body.theme-neon .app-title {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

body.theme-neon .app-title svg {
    color: #00ff88;
    filter: drop-shadow(0 0 5px rgba(0, 255, 136, 0.8));
}

body.theme-neon .app-subtitle {
    color: #00cc6a;
} 