:root {
    --primary-color: #3a86ff;
    --secondary-color: #8338ec;
    --accent-color: #ff006e;
    --bg-color: #ffffff;
    --text-color: #333333;
    --light-gray: #f5f7fa;
    --border-color: #e1e4e8;
}

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

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

header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 0;
    text-align: center;
}

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

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: var(--secondary-color);
}

h4 {
    font-size: 1.25rem;
    margin: 1rem 0 0.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Navegación */
nav {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0 1rem;
}

nav a {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
}

/* Sección Hero */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 0;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #d90062;
}

/* Barra de Progreso */
.progress-container {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.progress-bar {
    height: 30px;
    background-color: #e1e4e8;
    border-radius: 15px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 10%; /* Actualizar según progreso real */
    border-radius: 15px;
    transition: width 0.5s ease;
}

/* Módulos y Tarjetas */
.modules {
    padding: 4rem 0;
}

.module-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.module-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
}

.module-content {
    padding: 1.5rem;
}

.module-content ul {
    margin-left: 1.5rem;
}

.module-content li {
    margin-bottom: 0.5rem;
}

.module-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.module-link:hover {
    text-decoration: underline;
}

/* Introducción a Módulos */
.module-intro {
    background-color: var(--light-gray);
    padding: 3rem 0;
    text-align: center;
}

.module-intro h2 {
    margin-bottom: 1rem;
}

.module-intro p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

/* Lecciones */
.lesson-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.lesson-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.lesson-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem;
    position: relative;
}

.lesson-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-weight: 500;
}

.lesson-content {
    padding: 1.5rem;
}

.lesson-content p {
    margin-bottom: 1rem;
}

.lesson-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.lesson-link:hover {
    text-decoration: underline;
}

/* Contenido de Lecciones */
.lesson-page {
    padding: 3rem 0;
}

.lesson-content-full {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.lesson-content-full img {
    max-width: 100%;
    border-radius: 5px;
    margin: 1rem 0;
    display: block;
}

.lesson-content-full .image-caption {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-bottom: 2rem;
}

.lesson-content-full ul, .lesson-content-full ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.lesson-content-full li {
    margin-bottom: 0.5rem;
}

.lesson-content-full pre {
    background-color: var(--light-gray);
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1rem 0 1.5rem;
}

.lesson-content-full code {
    font-family: 'Courier New', Courier, monospace;
}

/* Elementos Especiales */
.prompt-example {
    background-color: var(--light-gray);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 5px 5px 0;
}

.exercise {
    background-color: #f0f7ff;
    border: 1px solid #d0e3ff;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 5px;
}

.exercise h4 {
    color: var(--primary-color);
    margin-top: 0;
}

.note {
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 5px 5px 0;
}

.tip {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 5px 5px 0;
}

.warning {
    background-color: #fdecea;
    border-left: 4px solid #f44336;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 5px 5px 0;
}

/* Tabla de Contenidos */
.table-of-contents {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.table-of-contents h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.table-of-contents ul {
    list-style: none;
    margin-left: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.table-of-contents li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.table-of-contents a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
}

.table-of-contents a:hover {
    color: var(--primary-color);
}

/* Navegación entre módulos */
.module-nav {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
}

.module-nav-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.3s;
}

.module-nav-btn:hover {
    background-color: #2a6ed0;
}

/* Estados de las lecciones */
.status-complete {
    background-color: #4caf50;
    color: white;
}

.status-in-progress {
    background-color: #ff9800;
    color: white;
}

.status-pending {
    background-color: #e0e0e0;
    color: #757575;
}

/* Footer */
footer {
    background-color: var(--light-gray);
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
}

/* Media Queries */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    
    nav li {
        margin: 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .lesson-grid {
        grid-template-columns: 1fr;
    }
}


/* Añadir estos estilos a tu archivo css/styles.css */

/* Estilos para la barra de progreso */
.progress-container {
    background-color: #f5f7ff;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.progress-percentage {
    font-weight: bold;
    color: #3a76ff;
}

.progress-bar {
    background-color: #e0e6fd;
    height: 20px;
    border-radius: 10px;
    margin: 15px 0;
    overflow: hidden;
}

.progress {
    background-color: #3a76ff;
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}

.progress-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn-small {
    font-size: 0.85rem;
    padding: 5px 10px;
    background-color: #f0f0f0;
    color: #666;
    border: 1px solid #ddd;
}

.btn-small:hover {
    background-color: #e0e0e0;
}

/* Estilos para el estado de los módulos */
.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.module-status {
    font-size: 0.85rem;
    padding: 3px 8px;
    border-radius: 15px;
    background-color: #f0f0f0;
    color: #666;
}

.module-status.in-progress {
    background-color: #fff8e0;
    color: #ffa000;
}

.module-status.completed {
    background-color: #e0f7e0;
    color: #4caf50;
}
