        :root {
            /* Neumorphism 2.0 Colors - MISMOS QUE ADMIN */
            --bg-primary: #f0f2f5;
            --bg-secondary: #e8ecf1;
            --bg-card: #f4f6f9;
            --shadow-light: #ffffff;
            --shadow-dark: #d6dae0;
            --text-primary: #2c3e50;
            --text-secondary: #5a6c7d;
            --text-muted: #8b95a1;
            --accent-primary: #3655A2;
            --accent-secondary: #B8860B;
            --accent-gold: #F7C315;
            --success: #27ae60;
            --warning: #f39c12;
            --error: #e74c3c;
            --info: #3498db;

            /* Neumorphic Shadows - MISMOS QUE ADMIN */
            --shadow-inset: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
            --shadow-outset: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
            --shadow-outset-hover: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
            --shadow-pressed: inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.6;
            min-height: 100vh;
        }

        /* Login Section - ESTILOS ADMIN */
        .login-section {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem;
        }

        .login-card, .login-container {
            background: var(--bg-card);
            border-radius: 24px;
            padding: 3rem;
            box-shadow: var(--shadow-outset);
            max-width: 450px;
            width: 100%;
            text-align: center;
        }

        .login-header {
            margin-bottom: 2rem;
        }

        .login-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
            border-radius: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
            box-shadow: var(--shadow-outset);
            color: white;
            font-size: 2rem;
        }

        .login-title {
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
        }

        .login-subtitle {
            color: var(--text-secondary);
            font-size: 1rem;
        }

        /* Forms - ESTILOS ADMIN */
        .login-form {
            text-align: left;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-label {
            display: block;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 0.75rem;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .form-input, .form-select, .form-textarea {
            width: 100%;
            padding: 1rem;
            border: none;
            border-radius: 16px;
            font-size: 1rem;
            background: var(--bg-primary);
            color: var(--text-primary);
            box-shadow: var(--shadow-inset);
            transition: all 0.3s ease;
        }

        .form-input:focus, .form-select:focus, .form-textarea:focus {
            outline: none;
            box-shadow: var(--shadow-inset), 0 0 0 3px rgba(54, 85, 162, 0.1);
        }

        /* Buttons - ESTILOS ADMIN */
        .btn, .login-button, .nav-button, .action-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.75rem 1.5rem;
            font-weight: 500;
            border-radius: 16px;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            font-size: 0.875rem;
            background: var(--bg-card);
            color: var(--text-primary);
            box-shadow: var(--shadow-outset);
            width: 100%;
        }

        .btn:hover, .login-button:hover, .nav-button:hover, .action-button:hover {
            transform: translateY(-1px);
            box-shadow: var(--shadow-outset-hover);
        }

        .btn:active, .login-button:active, .nav-button:active, .action-button:active {
            transform: translateY(1px);
            box-shadow: var(--shadow-pressed);
        }

        .btn-primary, .login-button, .action-button {
            background: var(--accent-primary);
            color: white;
        }

        .btn-success {
            background: var(--success);
            color: white;
        }

        .btn-warning {
            background: var(--warning);
            color: white;
        }

        .btn-danger {
            background: var(--error);
            color: white;
        }

        .btn-small {
            padding: 0.5rem 1rem;
            font-size: 0.8rem;
        }

        .login-button:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        /* Dashboard Section - MISMOS ESTILOS QUE ADMIN */
        .dashboard-section {
            display: none;
            min-height: 100vh;
        }

        .dashboard-section.active {
            display: block;
        }

        /* Header - ESTILOS ADMIN */
        .header {
            background: var(--bg-primary);
            padding: 1rem 2rem;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            box-shadow: var(--shadow-outset);
            border-radius: 0 0 24px 24px;
        }

        .header-content {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .brand, .header-title {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-weight: 700;
            font-size: 1.25rem;
            color: var(--accent-primary);
        }

        .brand .icon {
            width: 32px;
            height: 32px;
            background: var(--bg-card);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-outset);
            color: var(--accent-secondary);
        }

        .header h1 {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--accent-primary);
        }

        .header-subtitle {
            color: var(--text-secondary);
            font-size: 0.875rem;
            margin-left: 0.5rem;
        }

        .user-info, .header-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .user-details {
            font-size: 0.875rem;
            color: var(--text-muted);
            font-weight: 500;
        }

        .logout-btn {
            padding: 0.75rem 1.5rem;
            background: var(--error);
            color: white;
            border: none;
            border-radius: 16px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            box-shadow: var(--shadow-outset);
        }

        .logout-btn:hover {
            transform: translateY(-1px);
            box-shadow: var(--shadow-outset-hover);
        }

        .logout-btn:active {
            transform: translateY(1px);
            box-shadow: var(--shadow-pressed);
        }

        /* Main Content - ESTILOS ADMIN */
        .main-content, .main-container {
            margin-top: 120px;
            padding: 2rem;
            max-width: 1400px;
            margin-left: auto;
            margin-right: auto;
        }

        /* Cards - ESTILOS ADMIN */
        .card, .content-section {
            background: var(--bg-card);
            border-radius: 24px;
            padding: 2rem;
            margin-bottom: 2rem;
            box-shadow: var(--shadow-outset);
            transition: all 0.3s ease;
        }

        .card:hover, .content-section:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-outset-hover);
        }

        .card-header, .content-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            position: relative;
        }

        .card-header::after, .content-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--shadow-dark), transparent);
        }

        .card-title, .content-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .content-body {
            padding: 0;
            background: transparent;
            box-shadow: none;
            min-height: auto;
        }

        .content-actions {
            display: flex;
            gap: 1rem;
        }

        .content-icon {
            font-size: 1.5rem;
            color: var(--accent-primary);
        }

        /* Stats Cards - ESTILOS ADMIN */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .stat-card {
            background: var(--bg-card);
            border-radius: 24px;
            padding: 2rem;
            text-align: center;
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-outset);
            transition: all 0.3s ease;
        }

        .stat-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-outset-hover);
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--accent-primary), var(--accent-gold));
            border-radius: 24px 24px 0 0;
        }

        .stat-header {
            padding: 0;
            background: transparent;
            border: none;
            margin-bottom: 1rem;
        }

        .stat-content {
            padding: 0;
        }

        .stat-icon {
            width: 60px;
            height: 60px;
            background: var(--bg-primary);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
            box-shadow: var(--shadow-outset);
            color: var(--accent-primary);
            font-size: 2rem;
        }

        .stat-value, .stat-number {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--accent-primary);
            margin-bottom: 0.5rem;
        }

        .stat-label {
            color: var(--text-secondary);
            font-weight: 500;
            font-size: 1rem;
        }

        .stat-title {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 1rem;
        }

        /* Tables - ESTILOS ADMIN */
        .table-container {
            background: var(--bg-primary);
            border-radius: 20px;
            padding: 1rem;
            box-shadow: var(--shadow-inset);
            overflow: hidden;
        }

        .table {
            width: 100%;
            border-collapse: collapse;
            background: transparent;
            border-radius: 0;
            box-shadow: none;
        }

        .table th,
        .table td {
            padding: 1rem;
            text-align: left;
            border-bottom: 1px solid var(--bg-secondary);
        }

        .table th {
            background: var(--bg-card);
            font-weight: 600;
            color: var(--text-primary);
            font-size: 0.875rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-radius: 12px;
            box-shadow: var(--shadow-outset);
            margin-bottom: 0.5rem;
        }

        .table tbody tr {
            transition: all 0.2s ease;
        }

        .table tbody tr:hover {
            background: var(--bg-secondary);
            border-radius: 12px;
        }

        .table-actions {
            display: flex;
            gap: 0.5rem;
        }

        /* Upload Area - ESTILOS ADMIN */
        .upload-area {
            border: 2px dashed var(--shadow-dark);
            border-radius: 24px;
            padding: 3rem;
            text-align: center;
            background: var(--bg-primary);
            box-shadow: var(--shadow-inset);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .upload-area.dragover {
            border-color: var(--accent-primary);
            background: rgba(54, 85, 162, 0.05);
            box-shadow: var(--shadow-inset), 0 0 20px rgba(54, 85, 162, 0.1);
        }

        .upload-icon {
            width: 80px;
            height: 80px;
            background: var(--bg-card);
            border-radius: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
            box-shadow: var(--shadow-outset);
            color: var(--accent-primary);
            font-size: 2rem;
        }

        /* Progress - ESTILOS ADMIN */
        .progress-container {
            background: var(--bg-primary);
            border-radius: 12px;
            height: 12px;
            overflow: hidden;
            box-shadow: var(--shadow-inset);
            margin-top: 1rem;
        }

        .progress-bar {
            background: linear-gradient(90deg, var(--accent-primary), var(--accent-gold));
            height: 100%;
            width: 0%;
            transition: width 0.3s ease;
            border-radius: 12px;
            box-shadow: var(--shadow-outset);
        }

        /* Status badges - ESTILOS ADMIN */
        .status-badge {
            padding: 0.5rem 1rem;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: var(--shadow-outset);
        }

        .status-active {
            background: var(--success);
            color: white;
        }

        .status-inactive {
            background: var(--error);
            color: white;
        }

        /* Code elements - ESTILOS ADMIN */
        code {
            background: var(--bg-primary);
            padding: 0.25rem 0.5rem;
            border-radius: 8px;
            font-family: 'SF Mono', Monaco, monospace;
            font-size: 0.875rem;
            box-shadow: var(--shadow-inset);
        }

        /* Form Grid - ESTILOS ADMIN */
        .form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }

        /* Loading y Error States */
        .loading {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 4rem;
            flex-direction: column;
            gap: 1rem;
        }

        .loading-spinner {
            width: 60px;
            height: 60px;
            border: 5px solid var(--bg-secondary);
            border-top: 5px solid var(--accent-primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

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

        .loading-text {
            color: var(--text-muted);
            font-size: 1rem;
        }

        .error-message {
            background: var(--error);
            color: white;
            padding: 2rem;
            border-radius: 20px;
            text-align: center;
            font-weight: 500;
            box-shadow: var(--shadow-outset);
            margin: 2rem 0;
        }

        .success-message {
            background: var(--success);
            color: white;
            padding: 1.5rem;
            border-radius: 15px;
            text-align: center;
            font-weight: 500;
            box-shadow: var(--shadow-outset);
            margin: 1rem 0;
        }

        /* Chart Container */
        .chart-container {
            position: relative;
            height: 300px;
            width: 100%;
            margin: 1rem 0;
        }

        .chart-container canvas {
            max-height: 300px !important;
            height: 300px !important;
        }

        /* Responsive - ESTILOS ADMIN */
        @media (max-width: 768px) {
            .header {
                padding: 1rem;
                border-radius: 0 0 16px 16px;
            }
            .main-content, .main-container {
                padding: 1rem;
                margin-top: 100px;
            }
            .form-grid {
                grid-template-columns: 1fr;
            }
            .stats-grid {
                grid-template-columns: 1fr;
            }
            .login-card, .login-container {
                padding: 2rem;
                margin: 1rem;
            }
            .header-content {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            }
            .header-actions {
                flex-direction: column;
                width: 100%;
            }
            .content-header {
                flex-direction: column;
                gap: 1rem;
                align-items: flex-start;
            }
            .content-actions {
                flex-direction: column;
                width: 100%;
            }
        }
/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    background: var(--bg-card);
    border-radius: 24px;
    box-shadow: var(--shadow-outset);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.modal-large {
    max-width: 1000px;
}

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

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-close {
    background: var(--bg-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-outset);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.modal-close:hover {
    box-shadow: var(--shadow-pressed);
    color: var(--error);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

/* Tabs */
.modal-tabs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tabs-header {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-inset);
}

.tab-button {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-button:hover {
    color: var(--text-secondary);
}

.tab-button.active {
    background: var(--bg-card);
    color: var(--accent-primary);
    box-shadow: var(--shadow-outset);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Clases List */
.clases-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.clase-card {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-outset);
    transition: all 0.2s ease;
}

.clase-card:hover {
    box-shadow: var(--shadow-outset-hover);
    transform: translateY(-2px);
}

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

.clase-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.badge {
    background: var(--accent-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: var(--success);
}

.badge-warning {
    background: var(--warning);
}

.clase-descripcion {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.clase-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.stat-item i {
    width: 16px;
    height: 16px;
}

/* Stats Grid Modal */
.stats-grid-modal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-card-modal {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-outset);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-card-modal .stat-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-primary);
}

.stat-card-modal .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-card-modal .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Actividad Section */
.actividad-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.actividad-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.actividad-item {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-outset);
}

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

.actividad-header strong {
    color: var(--text-primary);
}

.actividad-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.actividad-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.5rem 0 0 0;
}

.actividad-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .modal-container {
        max-width: 100%;
        margin: 1rem;
    }

    .tabs-header {
        flex-direction: column;
    }

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

    .clase-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Content Viewers - Estilos exactos de vista alumno */
.content-viewer {
    padding: 0;
    max-width: 100%;
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
    overflow: visible !important;
}

/* Título principal */
.content-viewer titulo {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--accent-primary);
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: -0.025em;
    position: relative;
}

.content-viewer titulo::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

/* Índice */
.content-viewer indice {
    display: block;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-inset);
}

.content-viewer indice::before {
    content: "Índice";
    display: block;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-secondary);
}

/* Items del índice - RESET COMPLETO */
.content-viewer item {
    display: block !important;
    margin: 0 !important;
    padding: 6px 0 !important;
    line-height: 1.3 !important;
    cursor: pointer;
    transition: color 0.2s ease;
    color: var(--text-secondary);
    font-size: 14px;
    clear: both;
    overflow: hidden;
}

.content-viewer item:hover {
    color: var(--accent-primary);
}

/* Eliminar todos los ::before y usar contenido directo */
.content-viewer item::before {
    content: none !important;
}

.content-viewer item::after {
    content: none !important;
}

/* Nivel 1 - Sin indentación */
.content-viewer item[nivel="1"] {
    font-weight: 600 !important;
    color: var(--accent-primary) !important;
    font-size: 15px !important;
    margin-top: 12px !important;
    margin-bottom: 6px !important;
    padding-left: 0 !important;
    text-indent: 0 !important;
}

/* Nivel 2 - Con indentación fija */
.content-viewer item[nivel="2"] {
    font-weight: 400 !important;
    color: var(--text-secondary) !important;
    font-size: 14px !important;
    padding-left: 20px !important;
    text-indent: 0 !important;
    margin-left: 0 !important;
}

/* Subtítulos */
.content-viewer subtitulo {
    display: block;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    color: var(--accent-primary);
    margin: 2rem 0 1rem 0;
    line-height: 1.2;
}

.content-viewer subtitulo_menor {
    display: block;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 500;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem 0;
    line-height: 1.3;
}

/* Párrafos */
.content-viewer parrafo {
    display: block;
    margin: 1.25rem 0;
    text-align: justify;
    color: var(--text-primary);
}

/* Texto resaltado */
.content-viewer texto_resaltado {
    display: block;
    background: linear-gradient(135deg, var(--warning), #F8C471);
    color: #ffffff;
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: var(--shadow-outset);
    border-left: 4px solid var(--accent);
}

.content-viewer texto_resaltado::before {
    content: "💡";
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

/* Listas */
.content-viewer lista {
    display: block;
    margin: 1.5rem 0;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: var(--shadow-inset);
}

.content-viewer lista item {
    display: list-item;
    list-style: none;
    margin: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.content-viewer lista item::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

/* Responsive para content-viewer */
@media (max-width: 768px) {
    .content-viewer {
        font-size: 1rem;
    }

    .content-viewer titulo {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .content-viewer subtitulo {
        font-size: 1.5rem;
        margin: 2rem 0 1rem 0;
    }

    .content-viewer indice {
        padding: 1rem;
    }
}

.transcripcion-viewer {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-inset);
    max-height: 600px;
    overflow-y: auto;
}

.quiz-viewer {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.quiz-viewer::-webkit-scrollbar,
.content-viewer::-webkit-scrollbar,
.transcripcion-viewer::-webkit-scrollbar {
    width: 8px;
}

.quiz-viewer::-webkit-scrollbar-track,
.content-viewer::-webkit-scrollbar-track,
.transcripcion-viewer::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.quiz-viewer::-webkit-scrollbar-thumb,
.content-viewer::-webkit-scrollbar-thumb,
.transcripcion-viewer::-webkit-scrollbar-thumb {
    background: var(--shadow-dark);
    border-radius: 4px;
}

.quiz-viewer::-webkit-scrollbar-thumb:hover,
.content-viewer::-webkit-scrollbar-thumb:hover,
.transcripcion-viewer::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Páginas de Vista Completa */
.pagina-vista-completa {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem;
}

.vista-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--shadow-dark);
}

.btn-volver {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--shadow-outset);
    transition: all 0.3s ease;
}

.btn-volver:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-outset-hover);
    background: var(--accent-primary);
    color: white;
}

.btn-volver i {
    width: 20px;
    height: 20px;
}

.vista-titulo h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vista-titulo h2 i {
    color: var(--accent-primary);
}

.vista-contenido {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-outset);
    min-height: calc(100vh - 200px);
}

/* Ajustes para tabs en página completa */
.pagina-vista-completa .modal-tabs {
    width: 100%;
}

.pagina-vista-completa .tabs-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--shadow-dark);
    padding-bottom: 0;
}

.pagina-vista-completa .tab-content {
    padding: 0;
}

/* Responsive para vistas completas */
@media (max-width: 768px) {
    .pagina-vista-completa {
        padding: 1rem;
    }

    .vista-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .vista-titulo h2 {
        font-size: 1.25rem;
    }

    .vista-contenido {
        padding: 1rem;
    }
}

/* ========================================
   ESTILOS PARA EDICIÓN DE QUIZZES
   ======================================== */

/* Badges de estado */
.quiz-status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.1),
        -2px -2px 4px rgba(255, 255, 255, 0.7);
}

.quiz-status-badge.published {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
}

.quiz-status-badge.draft {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
}

/* Botones de acción de quiz */
.quiz-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.quiz-action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        4px 4px 8px rgba(0, 0, 0, 0.1),
        -4px -4px 8px rgba(255, 255, 255, 0.7);
}

.quiz-action-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        6px 6px 12px rgba(0, 0, 0, 0.15),
        -6px -6px 12px rgba(255, 255, 255, 0.8);
}

.quiz-action-btn:active {
    transform: translateY(0);
    box-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.1) inset,
        -2px -2px 4px rgba(255, 255, 255, 0.7) inset;
}

.quiz-action-btn.edit {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
}

.quiz-action-btn.publish {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
}

.quiz-action-btn.unpublish {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
}

.quiz-action-btn.duplicate {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    color: #6a1b9a;
}

/* Modal de edición */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

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

.modal-container {
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    border-radius: 24px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow:
        12px 12px 24px rgba(0, 0, 0, 0.2),
        -12px -12px 24px rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* Modal maximizado */
.modal-container.maximized {
    width: 98vw;
    max-width: none;
    height: 98vh;
    max-height: none;
    border-radius: 16px;
}

.modal-container.maximized .modal-body {
    max-height: none;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, #fafafa, #f0f0f0);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.modal-maximize-btn {
    position: absolute;
    top: 1.5rem;
    right: 5rem;
    background: var(--bg-secondary);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
    box-shadow:
        4px 4px 8px rgba(0, 0, 0, 0.1),
        -4px -4px 8px rgba(255, 255, 255, 0.7);
}

.modal-maximize-btn:hover {
    color: #1565c0;
    box-shadow:
        6px 6px 12px rgba(0, 0, 0, 0.15),
        -6px -6px 12px rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.modal-maximize-btn svg {
    width: 18px;
    height: 18px;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: var(--bg-secondary);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
    box-shadow:
        4px 4px 8px rgba(0, 0, 0, 0.1),
        -4px -4px 8px rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
}

.modal-close:hover {
    color: #c62828;
    box-shadow:
        6px 6px 12px rgba(0, 0, 0, 0.15),
        -6px -6px 12px rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, #fafafa, #f0f0f0);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Form fields */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff, #f8f8f8);
    box-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.1) inset,
        -2px -2px 4px rgba(255, 255, 255, 0.7) inset;
    font-size: 0.875rem;
    color: #333;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    box-shadow:
        3px 3px 6px rgba(0, 0, 0, 0.15) inset,
        -3px -3px 6px rgba(255, 255, 255, 0.8) inset;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

/* Lista de preguntas */
.questions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.question-item {
    padding: 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff, #f8f8f8);
    box-shadow:
        4px 4px 8px rgba(0, 0, 0, 0.08),
        -4px -4px 8px rgba(255, 255, 255, 0.8);
}

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

.question-number {
    font-weight: 600;
    color: #666;
    font-size: 0.875rem;
}

.question-delete-btn {
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #c62828;
    border: none;
    border-radius: 8px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.1),
        -2px -2px 4px rgba(255, 255, 255, 0.7);
}

.question-delete-btn:hover {
    transform: translateY(-1px);
    box-shadow:
        3px 3px 6px rgba(0, 0, 0, 0.15),
        -3px -3px 6px rgba(255, 255, 255, 0.8);
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
}

.option-item input[type="radio"] {
    width: 16px;
    height: 16px;
}

.option-item.correct {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    font-weight: 500;
}

/* Botón agregar pregunta */
.add-question-btn {
    width: 100%;
    padding: 0.75rem;
    margin-top: 1rem;
    border: 2px dashed rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    background: transparent;
    color: #666;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-question-btn:hover {
    border-color: rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.02);
    color: #333;
}

/* Warning box */
.warning-box {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-left: 4px solid #f57c00;
    margin-bottom: 1.5rem;
}

.warning-box .warning-title {
    font-weight: 600;
    color: #e65100;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.warning-box .warning-text {
    color: #bf360c;
    font-size: 0.8125rem;
    line-height: 1.4;
}

/* Botones del modal */
.modal-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        4px 4px 8px rgba(0, 0, 0, 0.1),
        -4px -4px 8px rgba(255, 255, 255, 0.7);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        6px 6px 12px rgba(0, 0, 0, 0.15),
        -6px -6px 12px rgba(255, 255, 255, 0.8);
}

.modal-btn.secondary {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    color: #666;
}

.modal-btn.primary {
    background: linear-gradient(135deg, #42a5f5, #1e88e5);
    color: white;
}

.modal-btn.success {
    background: linear-gradient(135deg, #66bb6a, #43a047);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }

    .question-item {
        padding: 1rem;
    }
}
