/* Font import for Gotham font family */
@font-face {
    font-family: 'Gotham';
    src: url('assets/fonts/Gotham-Book.woff2') format('woff2'),
         url('assets/fonts/Gotham-Book.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('assets/fonts/Gotham-Bold.woff2') format('woff2'),
         url('assets/fonts/Gotham-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

/* CSS Variables for colors */
:root {
    --primary-color: #005C53;
    --secondary-color: #1E3A8A;
    --light-color: #ffffff;
    --text-color: #333333;
    --background-light: #f5f5f5;
    --sidebar-width: 280px;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Gotham', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Layout styles */
.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar styles */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 2rem 1rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar h2 {
    color: var(--light-color);
    text-align: center;
    margin: 1.5rem 0;
    font-size: 1.3rem;
    line-height: 1.4;
}

.logo-container {
    text-align: center;
    padding: 1rem 0;
}

.logo {
    max-width: 200px;
    height: auto;
}

.nav-menu {
    margin-top: 2rem;
}

.nav-menu li {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--light-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--secondary-color);
    transform: translateX(10px);
}

/* Main content styles */
.content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
}

.section {
    padding: 3rem 0;
    display: none;
    min-height: calc(100vh - 4rem);
}

.section.active {
    display: block;
}

.section h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.section h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.intro-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.course-overview {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.course-overview h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.course-overview ul {
    list-style: disc;
    margin-left: 1.5rem;
}

.course-overview li {
    margin-bottom: 0.5rem;
}

.start-button-container {
    text-align: center;
    margin: 3rem 0;
}

.start-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.start-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Lesson content styles */
.lesson-content {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.lesson-details {
    margin: 2rem 0;
}

.lesson-details h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.lesson-details ul {
    list-style: disc;
    margin-left: 1.5rem;
}

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

.pdf-container {
    text-align: center;
    margin: 2rem 0 1rem;
}

.pdf-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.pdf-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Resources section styles */
.resources-content {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.resources-list {
    margin: 2rem 0;
}

.resources-list h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.resources-list ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.resource-link {
    display: block;
    background-color: var(--background-light);
    padding: 1rem;
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.resource-link:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateX(5px);
}

/* Estilos para el Módulo Capacidad 1 */
.module-header {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.75rem;
}

.module-header h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-top: 0.5rem;
}

.module-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.module-intro, .module-objective, .learning-achievements, .module-topics {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.module-intro h3, .module-objective h3, .learning-achievements h3, .module-topics h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.achievement-list {
    list-style-type: none;
    padding-left: 0;
}

.achievement-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.achievement-list li strong {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.topic {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.topic:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.topic h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.topic ul {
    padding-left: 1.5rem;
}

.topic li {
    margin-bottom: 0.5rem;
}

.modules-lessons {
    margin-top: 1rem;
}

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.lesson-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.lesson-card h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.lesson-card p {
    color: #333;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.lesson-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.lesson-link:hover {
    background-color: var(--secondary-color);
}

/* Estilos para la sección de cuestionario */
.cuestionario-container {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.cuestionario-intro {
    margin-bottom: 2rem;
}

.cuestionario-intro h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.cuestionario-intro ul {
    list-style-type: disc;
    margin-left: 2rem;
}

.cuestionario-intro li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cuestionario-acceso {
    text-align: center;
    margin-top: 2rem;
}

.cuestionario-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cuestionario-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

/* Estilos para mejorar la apariencia del logo */
.logo img, .logo-small img {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    max-height: 60px;
    width: auto;
}

.logo img:hover, .logo-small img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .lessons-grid {
        grid-template-columns: 1fr;
    }
    
    .module-header h3 {
        font-size: 1.2rem;
    }
    
    .topic h4 {
        font-size: 1rem;
    }
}

/* Responsive styles */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1000;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .content {
        margin-left: 0;
    }
    
    .mobile-toggle {
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        background-color: var(--primary-color);
        color: var(--light-color);
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    
    .section {
        padding-top: 5rem;
    }
}
