:root {
    --primary-color: #2A2F4F;
    --secondary-color: #917FB3;
    --accent-color: #E5BEEC;
    --background-color: #FDE2F3;
    --text-color: #2A2F4F;
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
    border-bottom: 3px solid var(--primary-color);
}

.logo {
    font-size: 2rem;
    color: var(--primary-color);
}

.nav-link {
    margin-left: 30px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link.active,
.nav-link:hover {
    color: var(--secondary-color);
}

/* Secciones */
.section {
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    text-align: center;
}

/* Grid de Cursos */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.course-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.3s;
    cursor: pointer;
    border: 2px solid var(--primary-color);
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.course-card p {
    color: #666;
    margin-bottom: 20px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn {
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
}

.btn-secondary {
    background: var(--accent-color);
    color: var(--text-color);
}

/* Lección */
.lesson-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.ebook-content {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.ebook-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.ebook-content pre {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #eee;
    border-radius: 5px;
    margin-top: 20px;
}

.progress-fill {
    height: 100%;
    background: var(--secondary-color);
    border-radius: 5px;
    transition: width 0.5s ease-in-out;
}

/* Perfil */
.profile-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.stats {
    background: var(--background-color);
    padding: 20px;
    border-radius: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.stat-icon {
    margin-right: 10px;
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
}

.badge {
    background: var(--accent-color);
    padding: 10px;
    border-radius: 50%;
    text-align: center;
    font-size: 1.5rem;
}

.hidden {
    display: none;
}