/* assets/css/style.css */
:root {
    --primary-color: #a435f0;
    --secondary-color: #1c1d1f;
    --accent-color: #f7f9fa;
    --text-color: #1c1d1f;
    --border-color: #d1d7dc;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), #6c5ce7);
    min-height: 400px;
}

.course-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.course-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

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

.btn-primary:hover {
    background-color: #8b2fc7;
    border-color: #8b2fc7;
}

.module-card {
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1rem;
}

.content-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

.content-item.completed {
    background-color: #d4edda;
}

.progress-bar {
    background-color: var(--primary-color);
}

.video-player {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.exam-container {
    max-width: 600px;
    margin: 0 auto;
}

.question-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.option-button {
    width: 100%;
    text-align: left;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.option-button:hover {
    border-color: var(--primary-color);
    background-color: var(--accent-color);
}

.option-button.selected {
    border-color: var(--primary-color);
    background-color: #e8f4fd;
}

.dashboard-card {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 3rem 0;
    }
    
    .course-card .card-img-top {
        height: 150px;
    }
}
/* Footer Styles */
footer {
    margin-top: auto;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-stat h4 {
    font-weight: bold;
    margin-bottom: 5px;
}

.newsletter-form .input-group {
    max-width: 250px;
}

.newsletter-form .btn {
    border-radius: 0 0.375rem 0.375rem 0;
}

#back-to-top {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

#back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Footer responsive */
@media (max-width: 768px) {
    footer .row > div {
        margin-bottom: 2rem;
    }
    
    .footer-stat {
        margin-bottom: 1rem;
    }
    
    .social-links {
        text-align: center;
        margin-top: 1rem;
    }
}

/* Footer links hover effect */
footer a:hover {
    color: var(--primary-color) !important;
    transition: color 0.3s ease;
}

/* Newsletter form styling */
.newsletter-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(164, 53, 240, 0.25);
}
/* Estilos para contenido activo */
.content-item.active {
    background-color: #e3f2fd !important;
    border-left: 4px solid var(--primary-color) !important;
    font-weight: bold;
}

.content-item.active .text-muted {
    color: var(--primary-color) !important;
}

.content-item.completed {
    background-color: #d4edda;
}

.content-item.completed.active {
    background-color: #c3e6cb;
}

/* Hover effects */
.content-item:hover {
    background-color: var(--accent-color);
    transition: background-color 0.2s ease;
}

.content-item.active:hover {
    background-color: #bbdefb !important;
}
/* Estilos para acordeÃ³n de mÃ³dulos */
.module-header {
    transition: all 0.3s ease;
}

.module-header:hover {
    background-color: rgba(0,0,0,0.1) !important;
}

.module-header .fa-chevron-down {
    transition: transform 0.3s ease;
}

.module-header[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

/* Responsive para mÃ³viles */
@media (max-width: 768px) {
    .course-sidebar {
        max-height: 50vh;
        overflow-y: auto;
    }
    
    .content-area {
        padding: 1rem !important;
    }
    
    .question-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .option-button {
        padding: 0.5rem;
        margin-bottom: 0.25rem;
        font-size: 0.9rem;
    }
}

/* Estilos para exÃ¡menes */
.question-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    background: white;
}

.option-button {
    width: 100%;
    text-align: left;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    background: white;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.option-button:hover {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
}

.option-button.selected {
    border-color: var(--primary-color);
    background-color: #e3f2fd;
    font-weight: bold;
}
/* Estilos para verificaci¨®n de certificados */
.verification-details {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.verification-details h5 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.qr-verification {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

.verification-code {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

/* Responsive para QR */
@media (max-width: 768px) {
    .qr-verification {
        position: static;
        margin: 1rem auto;
        display: inline-block;
    }
    
    .verification-code {
        position: static;
        margin: 1rem auto;
        display: block;
        text-align: center;
    }
}

