@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #343a40;
}

.container {
    max-width: 960px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

header h1 {
    text-align: center;
    color: #007bff;
    margin-bottom: 30px;
    font-weight: 700;
}

.progress-container {
    width: 100%;
    background-color: #e9ecef;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    height: 25px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: #007bff;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
    background-size: 40px 40px;
    border-radius: 10px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
    transition: width 0.6s ease;
    animation: progress-bar-stripes 2s linear infinite;
}

@keyframes progress-bar-stripes {
    from {
        background-position: 40px 0;
    }
    to {
        background-position: 0 0;
    }
}

#progressText {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(0,0,0,0.5), 0 0 10px rgba(0,0,0,0.3);
    z-index: 2;
}

.chapter {
    margin-bottom: 40px;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 30px;
}

.chapter > h2 {
    color: #007bff;
    font-weight: 600;
    border-left: 5px solid #007bff;
    padding-left: 15px;
}

.section {
    margin-left: 25px;
    margin-bottom: 25px;
}

.module {
    margin-left: 50px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 5px solid #28a745;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.key-points-toggle {
    cursor: pointer;
    color: #007bff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin-bottom: 15px;
}

.key-points-toggle:hover {
    color: #0056b3;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.key-points-content {
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    max-height: 0;
}

.key-points-content.expanded {
    max-height: 600px; /* Ajustado para más contenido */
}

.quiz {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.question {
    margin-bottom: 20px;
}

.question p {
    font-weight: 600;
}

.question label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
}

.submit-quiz {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}

.submit-quiz:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.quiz-feedback p {
    margin: 8px 0;
    padding: 10px;
    border-radius: 5px;
}

.quiz-feedback .correct {
    background-color: #e9f7ef;
    color: #28a745;
    border-left: 4px solid #28a745;
}

.quiz-feedback .incorrect {
    background-color: #f8d7da;
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: #6c757d;
    font-size: 14px;
}
