/* ==========================================================================
   SIA ACADEMY - ESTILOS PRINCIPALES
   Plataforma de Capacitación Empresarial
   ========================================================================== */

/* VARIABLES */
:root {
    --color-primary: #CFFF04;
    --color-primary-dark: #b8e604;
    --color-secondary: #000000;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #e0e0e0;
    --color-bg: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-danger: #dc3545;
    --color-info: #17a2b8;
    
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --transition: all 0.3s ease;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary-dark);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

/* LAYOUT */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--color-secondary);
}

.logo i {
    color: var(--color-primary-dark);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link.active::after,
.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
}

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

.btn-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--color-text);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.btn-icon:hover {
    color: var(--color-secondary);
}

.user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* HEADER MINIMAL (para course player) */
.header-minimal {
    background: var(--color-secondary);
    color: white;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-minimal .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-back {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.btn-back:hover {
    background: rgba(255,255,255,0.2);
}

.course-title {
    color: white;
    font-size: 1.2rem;
    margin: 0;
}

.btn-complete {
    background: var(--color-primary);
    color: var(--color-secondary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-complete:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-secondary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: #333;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
}

.btn-outline:hover {
    background: var(--color-secondary);
    color: white;
}

.btn-enroll {
    width: 100%;
    background: var(--color-secondary);
    color: white;
    padding: 1rem;
    font-size: 1.1rem;
}

.btn-enroll:hover {
    background: #333;
    transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

/* ==========================================================================
   COURSES SECTION
   ========================================================================== */
.courses-section {
    padding: 4rem 0;
}

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

.section-header h3 {
    font-size: 2rem;
    margin: 0;
}

.filters {
    display: flex;
    gap: 1rem;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    cursor: pointer;
    background: white;
}

/* COURSES GRID */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.course-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

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

.course-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.course-content {
    padding: 1.5rem;
}

.course-title-card {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

.course-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.course-instructor {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.instructor-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.instructor-name {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.course-badge {
    display: inline-block;
    background: var(--color-secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
}

.load-more {
    text-align: center;
    margin-top: 3rem;
}

/* ==========================================================================
   COURSE DETAIL PAGE
   ========================================================================== */
.course-detail-page {
    padding: 2rem 0 4rem;
    background: var(--color-bg-light);
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.course-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
}

.course-main-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.course-detail-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.course-video-preview {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 2rem 0;
}

.course-video-preview img {
    width: 100%;
    display: block;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    transition: var(--transition);
}

.play-overlay:hover {
    background: rgba(0,0,0,0.5);
}

.btn-play {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-primary);
    border: none;
    font-size: 2rem;
    color: var(--color-secondary);
    cursor: pointer;
    transition: var(--transition);
}

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

.course-description {
    margin: 2rem 0;
}

.learning-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.learning-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.learning-list li::before {
    content: '✓';
    color: var(--color-success);
    font-weight: bold;
    font-size: 1.2rem;
}

.requirements-list {
    list-style: none;
}

.requirements-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.requirements-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary-dark);
    font-weight: bold;
}

.instructor-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
}

.instructor-avatar {
    width: 80px;
    height: 80px;
}

/* CURRICULUM */
.curriculum-summary {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-light);
}

.curriculum-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: var(--color-bg-light);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.accordion-header:hover {
    background: #f0f0f0;
}

.accordion-body {
    display: none;
    padding: 1rem 1.25rem;
    background: white;
}

.accordion-body.active {
    display: block;
}

.lesson-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.lesson-item:last-child {
    border-bottom: none;
}

.lesson-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lesson-duration {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* SIDEBAR DETAIL */
.course-sidebar-detail {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.enrollment-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.enrollment-header h3 {
    margin-bottom: 1.5rem;
}

.enrollment-info {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--color-primary-dark);
}

.enrollment-instructor {
    margin-bottom: 1.5rem;
}

.instructor-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.instructor-mini img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.enrollment-note {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.course-features {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.course-features ul {
    list-style: none;
}

.course-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.course-features i {
    color: var(--color-primary-dark);
}

/* ==========================================================================
   COURSE PLAYER
   ========================================================================== */
.course-player-body {
    background: var(--color-secondary);
}

.course-player {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - 70px);
}

/* SIDEBAR */
.course-sidebar {
    background: #1a1a1a;
    color: white;
    overflow-y: auto;
    border-right: 1px solid #333;
}

.progress-section {
    padding: 2rem;
    border-bottom: 1px solid #333;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.progress-header span:first-child {
    font-size: 1.5rem;
    font-weight: 700;
}

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

.progress-fill {
    height: 100%;
    background: var(--color-primary);
    transition: width 0.5s ease;
}

.lessons-list {
    padding: 1rem 0;
}

.lesson-group {
    margin-bottom: 1rem;
}

.lesson-group-header {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--color-text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.lesson-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.lesson-list-item:hover {
    background: rgba(255,255,255,0.05);
}

.lesson-list-item.active {
    background: rgba(207,255,4,0.1);
    border-left-color: var(--color-primary);
}

.lesson-list-item.completed {
    opacity: 0.6;
}

.lesson-icon {
    flex-shrink: 0;
}

.lesson-info {
    flex: 1;
}

.lesson-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.lesson-type {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* MAIN CONTENT */
.course-main {
    background: white;
    overflow-y: auto;
}

.video-container {
    background: #000;
    position: relative;
    padding-top: 56.25%; /* 16:9 */
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.content-tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    padding: 0 2rem;
    gap: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-text-light);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--color-secondary);
    border-bottom-color: var(--color-primary);
}

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

.tab-content {
    padding: 2rem;
}

.tab-panel {
    display: none;
}

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

.lesson-description {
    line-height: 1.8;
    color: var(--color-text);
}

.notes-container {
    margin-bottom: 2rem;
}

.notes-textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    resize: vertical;
}

.saved-notes {
    margin-top: 2rem;
}

.note-item {
    background: var(--color-bg-light);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

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

.resource-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
}

.lesson-navigation {
    display: flex;
    justify-content: space-between;
    padding: 2rem;
    border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    margin: 0;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-light);
}

.modal-body {
    padding: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group textarea,
.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--color-secondary);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 968px) {
    .course-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .course-sidebar-detail {
        position: static;
    }
    
    .course-player {
        grid-template-columns: 1fr;
    }
    
    .course-sidebar {
        display: none;
    }
    
    .learning-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   MEJORAS PARA COURSE DETAIL
   ============================================ */

.accordion-item {
    background: #1a1a1a;
    border: 2px solid #2d2d2d;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: #CFFF04;
    box-shadow: 0 4px 20px rgba(207, 255, 4, 0.1);
}

.accordion-header {
    padding: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.accordion-title i {
    color: #CFFF04;
    font-size: 24px;
}

.accordion-info {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #999;
}

.accordion-icon {
    transition: transform 0.3s ease;
    color: #CFFF04;
}

.accordion-content {
    display: none;
    padding: 0 24px 24px 24px;
    background: #0d0d0d;
}

.lessons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lesson-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.lesson-item:hover {
    background: #2d2d2d;
    border-color: #CFFF04;
    transform: translateX(8px);
}

.lesson-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #CFFF04 0%, #9FBF04 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lesson-icon i {
    color: #000;
    font-size: 18px;
}

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

.lesson-title {
    color: #fff;
    font-weight: 500;
    font-size: 16px;
}

.lesson-meta {
    color: #999;
    font-size: 14px;
}

.lesson-link {
    color: #CFFF04;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.lesson-link:hover {
    color: #fff;
    transform: scale(1.2);
}

.course-detail-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #CFFF04 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.course-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 15px;
}

.meta-item i {
    color: #CFFF04;
    font-size: 18px;
}

.course-description {
    background: #1a1a1a;
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 32px;
    border-left: 4px solid #CFFF04;
}

.course-description h2 {
    color: #CFFF04;
    font-size: 24px;
    margin-bottom: 16px;
}

.course-description p {
    color: #ddd;
    line-height: 1.8;
    font-size: 16px;
}

.course-curriculum {
    margin-top: 48px;
}

.course-curriculum h2 {
    color: #fff;
    font-size: 32px;
    margin-bottom: 24px;
}

.curriculum-summary {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px;
    border: 1px solid #CFFF04;
}

.curriculum-summary span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 500;
}

.curriculum-summary i {
    color: #CFFF04;
    font-size: 20px;
}

.enrollment-card {
    background: #1a1a1a;
    border: 2px solid #CFFF04;
    border-radius: 16px;
    padding: 32px;
    position: sticky;
    top: 100px;
}

.enrollment-header h3 {
    color: #CFFF04;
    font-size: 28px;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #2d2d2d;
}

.info-item i {
    color: #CFFF04;
    font-size: 24px;
    width: 32px;
}

.info-item strong {
    color: #fff;
    display: block;
    font-size: 18px;
}

.info-item small {
    color: #999;
    display: block;
    font-size: 14px;
}


/* ========== MODAL DE ARTÍCULOS ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.article-modal-content {
    background: #0a0a0a;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(207, 255, 4, 0.3);
    border: 2px solid #CFFF04;
    display: flex;
    flex-direction: column;
}

.article-modal-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: 24px 32px;
    border-bottom: 2px solid #CFFF04;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-modal-header h2 {
    color: #CFFF04;
    font-size: 28px;
    margin: 0;
    flex: 1;
}

.btn-close-article {
    background: transparent;
    border: 2px solid #CFFF04;
    color: #CFFF04;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 20px;
}

.btn-close-article:hover {
    background: #CFFF04;
    color: #000;
    transform: rotate(90deg);
}

.article-modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

#articleContent {
    color: #fff;
    line-height: 1.8;
    font-size: 16px;
}

#articleContent h1,
#articleContent h2,
#articleContent h3,
#articleContent h4 {
    color: #CFFF04;
    margin-top: 24px;
    margin-bottom: 16px;
}

#articleContent h1 { font-size: 32px; }
#articleContent h2 { font-size: 28px; }
#articleContent h3 { font-size: 24px; }
#articleContent h4 { font-size: 20px; }

#articleContent p {
    margin-bottom: 16px;
    color: #ddd;
}

#articleContent ul,
#articleContent ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

#articleContent li {
    margin-bottom: 8px;
    color: #ddd;
}

#articleContent img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#articleContent code {
    background: #1a1a1a;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #CFFF04;
}

#articleContent pre {
    background: #1a1a1a;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid #333;
}

#articleContent pre code {
    background: transparent;
    padding: 0;
}

#articleContent a {
    color: #CFFF04;
    text-decoration: none;
    border-bottom: 1px solid #CFFF04;
    transition: all 0.3s ease;
}

#articleContent a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

#articleContent blockquote {
    border-left: 4px solid #CFFF04;
    padding-left: 16px;
    margin: 16px 0;
    color: #999;
    font-style: italic;
}

#articleContent table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

#articleContent th,
#articleContent td {
    padding: 12px;
    border: 1px solid #333;
    text-align: left;
}

#articleContent th {
    background: #1a1a1a;
    color: #CFFF04;
    font-weight: 600;
}

/* Scrollbar personalizado para el modal */
.article-modal-body::-webkit-scrollbar {
    width: 10px;
}

.article-modal-body::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.article-modal-body::-webkit-scrollbar-thumb {
    background: #CFFF04;
    border-radius: 5px;
}

.article-modal-body::-webkit-scrollbar-thumb:hover {
    background: #b8e603;
}

/* Responsive */
@media (max-width: 768px) {
    .article-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .article-modal-header {
        padding: 16px 20px;
    }
    
    .article-modal-header h2 {
        font-size: 22px;
    }
    
    .article-modal-body {
        padding: 20px;
    }
}

/* ============================================
   LESSON PAGE
   ============================================ */

.lesson-page {
    min-height: calc(100vh - 80px);
    padding: 40px 0;
    background: #0a0a0a;
}

.lesson-loading {
    text-align: center;
    padding: 100px 20px;
}

.lesson-loading .spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #2d2d2d;
    border-top-color: #CFFF04;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.lesson-loading p {
    color: #999;
    font-size: 18px;
}

.lesson-content {
    max-width: 900px;
    margin: 0 auto;
    background: #1a1a1a;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 4px 40px rgba(207, 255, 4, 0.1);
}

.lesson-header {
    border-bottom: 2px solid #CFFF04;
    padding-bottom: 24px;
    margin-bottom: 40px;
}

.lesson-header h1 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.lesson-meta {
    display: flex;
    gap: 24px;
    color: #999;
    font-size: 15px;
}

.lesson-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lesson-meta i {
    color: #CFFF04;
}

.lesson-body {
    color: #ddd;
    font-size: 17px;
    line-height: 1.8;
}

.lesson-body h2,
.lesson-body h3,
.lesson-body h4 {
    color: #CFFF04;
    margin-top: 32px;
    margin-bottom: 16px;
}

.lesson-body h2 {
    font-size: 28px;
}

.lesson-body h3 {
    font-size: 24px;
}

.lesson-body p {
    margin-bottom: 20px;
}

.lesson-body ul,
.lesson-body ol {
    margin-left: 24px;
    margin-bottom: 20px;
}

.lesson-body li {
    margin-bottom: 12px;
}

.lesson-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.lesson-body code {
    background: #2d2d2d;
    padding: 3px 8px;
    border-radius: 4px;
    color: #CFFF04;
    font-family: 'Courier New', monospace;
}

.lesson-body pre {
    background: #2d2d2d;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
}

.lesson-body blockquote {
    border-left: 4px solid #CFFF04;
    padding-left: 20px;
    margin: 24px 0;
    color: #ccc;
    font-style: italic;
}

.lesson-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #2d2d2d;
    gap: 16px;
    flex-wrap: wrap;
}

.lesson-navigation .btn {
    padding: 14px 24px;
    font-size: 16px;
}

.lesson-error {
    text-align: center;
    padding: 100px 20px;
    color: #fff;
}

.lesson-error i {
    font-size: 64px;
    color: #ff4444;
    margin-bottom: 24px;
}

.lesson-error h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.lesson-error p {
    color: #999;
    font-size: 18px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .lesson-content {
        padding: 24px;
    }
    
    .lesson-header h1 {
        font-size: 28px;
    }
    
    .lesson-navigation {
        flex-direction: column;
    }
    
    .lesson-navigation .btn {
        width: 100%;
    }
}
