/* Variables globales */
:root {
    --primary-color: #6e00ff;
    --primary-hover: #8b33ff;
    --card-border: #313146;
    --text-color: #374151;
    --text-secondary: #6b7280;
    --bg-white: #ffffff;
    --bg-gray: #f9fafb;
    --shadow-hover: 0 4px 12px rgba(110, 0, 255, 0.1);
    --sidebar-width: 300px;
    --header-height: 64px;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;

}

a, a:active {
    color: #111827;
}

button {
    border: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5 {
    color: #111827;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

ul,
ol {
    padding-left: 20px;
    margin-bottom: 10px;

    
}



ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}

dl {
    margin-bottom: $space-4;

    dt {
        font-weight: $font-weight-bold;
        margin-bottom: $space-1;
    }

    dd {
        margin-left: $space-4;
        margin-bottom: $space-2;
    }
}


blockquote {
    padding: $space-4 $space-6;
    margin: $space-4 0;
    border-left: 4px solid $primary;
    background-color: $gray-100;

    p {
        margin-bottom: $space-2;
        font-style: italic;
        color: $text-dark;
    }

    cite {
        display: block;
        color: $text-muted;
        font-size: $font-size-sm;
    }
}

table {
    width: 100%;
    margin-bottom: $space-4;
    border-collapse: collapse;

    th,
    td {
        padding: $space-3;
        border-bottom: $border-width solid $border-color;
        text-align: left;
    }

    th {
        font-weight: $font-weight-semibold;
        background-color: $gray-100;
    }

    tbody tr:hover {
        background-color: $gray-50;
    }
}

pre,
code {
    font-family: $font-family-mono;
}

pre {
    padding: $space-4;
    margin: $space-4 0;
    background-color: $gray-900;
    color: $light;
    border-radius: $border-radius;
    max-width: 100%;
    width: auto;
}

code {
    padding: $space-1 $space-2;
    background-color: $gray-100;
    border-radius: $border-radius-sm;
    font-size: $font-size-sm;
}

kbd {
    padding: $space-1 $space-2;
    background-color: $gray-900;
    color: $light;
    border-radius: $border-radius-sm;
    font-size: $font-size-sm;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
    background: white;
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    z-index: 100;
    height: 78px;
}

.header__logo {
    width: var(--sidebar-width);
    padding-right: 24px;
    position: relative;

}

.badge {
    position: absolute;
    top:8px;
    right: 40px;
    background: var(--primary-color);
    color: white;
    padding: 1px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .badge {
        position: absolute;
        top:8px;
        right: -30%;
        background: var(--primary-color);
        color: white;
        padding: 1px 8px;
        border-radius: 12px;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

}



.header__logo h3 {
    font-weight: 800;
    color: #161721;
    letter-spacing: -1px;
    line-height: 1.1;
    font-size: 1.7rem;
    text-decoration: none;
}

.header__logo img {
    height: 32px;
}

.header__search {
    flex: 1;
    max-width: 600px;
}

.search-box {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-gray);
    font-size: 14px;
}

.header__nav {
    margin-left: auto;
    display: flex;
    gap: 5px;
}

.header__nav a {
    font-size: 1.2rem;
}
/* Layout principal */
.container {
    display: flex;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-gray);
    border-right: 1px solid var(--border-color);
    height: calc(100vh - var(--header-height));
    position: fixed;
    overflow-y: auto;
    padding: 24px;
    padding-top: 50px;  
}

.sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-section {
    margin-bottom: 32px;
}

.nav-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #111827;
}

.nav-section ul {
    list-style: none;
    padding-left: 5px;
}

.nav-section a {
    display: block;
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;

}

.nav-section a:hover {
    background: #f3f4f6;
    transition: all 0.2s ease;

}

.nav-section a.active {
    background: white;
    font-weight: 500;
    color: var(--primary-color);
}

/* Contenido principal */
.main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 48px 64px;
    max-width: 100%;
}

.main h1 {
    font-size: 36px;
    color: #111827;
    margin-bottom: 0px;
}

.main p {
    color: var(--text-color);
    margin-bottom: 16px;
    font-size: 16px;
}

/* Grid de cursos y recursos */
.course-grid,
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

/* Cards */
.course-card,
.resource-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover,
.resource-card:hover {}

.course-card h3,
.resource-card h3 {
    color: #111827;
    font-size: 20px;
    margin-bottom: 12px;
}

.course-card ul {
    list-style: none;
    margin: 16px 0;
}

.course-card li {
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
}

.course-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Botones */
.button,
.button-primary,
.button-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
}

.button-primary {
    background: var(--primary-color);
    color: white;
}


.button-secondary {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.button-secondary:hover {
    background: var(--primary-hover);
    color: white;
}

/* Secciones */
section {
    margin-bottom: 48px;
}




section h2 {
    font-size: 24px;
    margin-bottom: 24px;
    color: #111827;
}

/* Call to Action */
.cta {
    text-align: center;
    padding: 48px;
    background: var(--bg-gray);
    border-radius: 12px;
}

.cta h2 {
    margin-bottom: 16px;
}

.cta p {
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .main {
        margin-left: 0;
        padding: 24px;
        padding-top: 48px;
    }

    .header__logo {
        width: auto;
    }

    .header__nav {
        display: none;
    }

    .course-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .cta {
        padding: 24px;
    }
}

/* Utilidades */
.hidden {
    display: none;
}

.visible {
    display: block;
}


/* Estilos para las secciones de contenido y beneficios */
.why-course,
.modules {
    padding: 48px 0;
}

.why-course h2,
.modules h2 {
    text-align: center;
    font-size: 32px;
    color: #111827;
    margin-bottom: 40px;
}

/* Grid para los beneficios */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 400px;
    margin: 0 auto;
}

.benefit-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card:hover {}

.benefit-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.benefit-card p {
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
}

/* Grid para los módulos */
.module-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 400px;
    margin: 0 auto;
}

.module-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.module-card:hover {}

.module-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    padding-left: 36px;
    position: relative;
}

.module-card h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
}

.module-card p {
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
}

/* Media queries para responsive */
@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: none;
    }

    .module-list {
        grid-template-columns: repeat(2, 1fr);
        max-width: none;
    }
}

@media (min-width: 1024px) {
    .module-list {
        grid-template-columns: repeat(4, 1fr);
    }
}


:root {
    --primary-color: #6e00ff;
    --primary-hover: #8b33ff;
    --card-border: #6e00ff;
    --border-color: #e5e7eb;
    --text-color: #374151;
    --bg-gray: #f9fafb;
}

/* Botones */
.button-primary {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.button-primary:hover {
    background: var(--primary-hover);
}



/* Cards de módulos */
.module-card {
    background: white;
    border: solid 2px var(--card-border);
    border-radius: 10px;
    padding: 32px;
    transition: all 0.2s ease;
}

.module-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(110, 0, 255, 0.1);
}

.module-card h3 {
    color: #111827;
    font-size: 20px;
    margin-bottom: 16px;
    padding-left: 36px;
    position: relative;
}

/* Sidebar navegación activa */
.nav-section a.active {
    background: white;
    color: var(--primary-color);
    font-weight: 500;
}

.nav-section a:hover {
    color: var(--primary-color);
    background: rgba(110, 0, 255, 0.05);
    transition: all 0.2s ease;

}

/* Card del curso premium */
.course-card {
    border: solid 2px var(--card-border);
    border-radius: 10px;
    background: white;
    transition: all 0.2s ease;
}

.course-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(110, 0, 255, 0.1);
    transition: all 0.2s ease;

}

/* CTA sección */
.cta .button-primary {
    font-size: 18px;
    margin-bottom: 20px;


}

.btn-h {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .5rem 1rem;
    border-radius: .375rem;
    font-weight: 600;
    line-height: 1.25;
    transition: all .2s ease-in-out, color .2s ease-in-out;
    border: 2px solid #6e00ff;
    text-decoration: none !important;
    font-size: 1.2rem;
}

.cta .button-secondary {
    font-size: 18px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
/* CTA sección */
.cta .button-primary {
    font-size: 18px;
    margin-bottom: 20px;
    display: block;


}

.cta .button-secondary {
    font-size: 18px;
    margin-bottom: 20px;
    display: block;
}

}


/* Estilos para la galería */
.gallery-section {
    margin: 32px 0;
}

.gallery-section h3 {
    margin-bottom: 24px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 16px;
    color: white;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* Lightbox para vista ampliada (opcional) */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    padding: 32px;
}

.gallery-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}




/* Secciones de Herramientas y Comunidad */
.tools,
.community {
    margin-bottom: 64px;
}

.tools h2,
.community h2 {
    margin-bottom: 32px;
    color: #111827;
}

/* Grid de herramientas */
.tools-grid {
    display: grid;
    gap: 24px;
    max-width: 1200px;
}

/* Grid de comunidad */
.community-content {
    display: grid;
    gap: 24px;
    max-width: 1200px;
}

/* Estilos de las cards */
.tool-card,
.community-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-card:hover,
.community-card:hover {
    border-color: var(--primary-color);
}

/* Contenido de las cards */
.tool-card h3,
.community-card h3 {
    margin-bottom: 16px;
    color: #111827;
}

.tool-card p,
.community-card p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Botones */
.tool-card .button-secondary,
.community-card .button-secondary {
    width: 100%;
    margin-top: auto;
}

/* Responsive */
@media screen and (min-width: 640px) {

    .tools-grid,
    .community-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .community-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ajustes para móvil */
@media screen and (max-width: 639px) {

    .tools-grid,
    .community-content {
        grid-template-columns: 1fr;
    }

    .tool-card,
    .community-card {
        padding: 24px;
    }

    .tools h2,
    .community h2 {
        font-size: 28px;
        margin-bottom: 24px;
    }
}


/* Estilos para la guía de prompting */
.guide-header {
    margin-bottom: 48px;
}

.guide-subtitle {
    color: var(--text-secondary);
    font-size: 20px;
    max-width: 700px;
    margin: 16px auto;
}

.content-grid {
    display: grid;
    gap: 24px;
    margin: 32px 0;
}

.principle-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 24px;
}

.principle-card h3 {
    margin-bottom: 16px;
}

.example-card {
    background: var(--bg-white);
    border: 2px solid var(--card-border);
    border-radius: 10px;
    padding: 32px;
    margin-bottom: 32px;
}

.prompt-box {
    background: var(--bg-gray);
    border-radius: 8px;
    padding: 24px;
    margin: 16px 0;
    height: 100%;
    overflow: auto;
}

.prompt-box h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.explanation {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--card-border);
}

.next-steps {
    margin-top: 48px;
    text-align: center;
}

.next-steps h3 {
    margin-bottom: 24px;
}

.next-steps .button-primary,
.next-steps .button-secondary {
    margin: 0 12px;
}

@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {

    .next-steps .button-primary,
    .next-steps .button-secondary {
        display: block;
        margin: 12px 0;
    }
}


/* Grid Layouts */
.practices-grid,
.techniques-grid,
.pitfalls-grid,
.tips-grid {
    display: grid;
    gap: 32px;
    margin: 48px 0;
}

@media (min-width: 768px) {
    .practices-grid {}

    .techniques-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pitfalls-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tips-grid {}
}

/* Card Styles */
.card-base {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 32px;
    height: 100%;
    transition: all 0.2s ease;
}

.card-base:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

/* Example Boxes */
.example-box {
    background: var(--bg-gray);
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
}

.comparison .wrong {
    color: #dc2626;
    margin-bottom: 8px;
}

.comparison .right {
    color: #059669;
}

/* Code Block */
.code-block {
    background: #1e1e1e;
    color: white;
    padding: 16px;
    border-radius: 6px;
    font-family: monospace;
    margin-top: 8px;
}

/* Pitfall Cards */
.pitfall-card {
    text-align: left;
}

.pitfall-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 16px;
}

/* Responsive Adjustments */
@media (max-width: 767px) {

    .practices-grid,
    .techniques-grid,
    .pitfalls-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }

    .card-base {
        padding: 24px;
    }
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.template-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.template-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background: white;
    width: 90%;
    height: 80%;
    max-width: 800px;
    margin: 40px auto;
    padding: 32px;
}

.prompt-box-all {
    background: var(--bg-gray);
    padding: 24px;
    border-radius: 8px;
    margin: 24px 0;
    white-space: pre-wrap;
    font-family: monospace;
    max-height: 600px;
    overflow: auto;
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
}



/* Grid de cursos */
.course-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(300px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

/* Cards de cursos */
.course-card {
    background: white;
    border: solid 2px var(--card-border);
    border-radius: 10px;
    padding: 24px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(110, 0, 255, 0.1);
    transition: all 0.2s ease;
}

.course-image-container {
    width: 100%;
    padding-top: 75%; /* Proporción de aspecto 4:3 */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 16px;
}

.course-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.course-description {
    flex-grow: 1;
    margin-bottom: 16px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.course-level {
    font-size: 14px;
    color: var(--text-secondary);
}

.course-price {
    font-size: 18px;
    font-weight: bold;
}


/* Responsive */
@media (max-width: 768px) {
    .course-grid {
        grid-template-columns: 1fr;
    }
}


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

.course-item {
    margin-bottom: 10px;
}

.course-link {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.course-link:hover {
    background-color: #e0e0e0;
}

.course-link.active {
    background-color: #ccc;
    font-weight: bold;
}

.accordion {
    margin-top: 10px;
    border-radius: 10px;

}

.accordion-item {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 5px;
}

.accordion-header {
    padding: 10px;
    background-color: #fff;
    cursor: pointer;
    border-radius: 10px;

}

.accordion-button {
    background: none;
    border: none;
    padding: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.accordion-content {
    padding: 10px;
    display: none;
    background-color: #fff;
    border-radius: 10px;


}

.accordion-item.active .accordion-content {
    display: block;
}

.module-list {
    list-style-type: none;
    padding-left: 20px;
}

.module-link {
    display: block;
    padding: 6px 12px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.module-link:hover {
    color: #000;
}

.module-link.active {
    color: #000;
    font-weight: bold;
}

.content_editor {
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    max-width: 100%;
  }
  
  .content_editor h1,
  .content_editor h2,
  .content_editor h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }
  

  
  .content_editor p {
    margin-top: 0;
    margin-bottom: 1rem;
  }
  
  .content_editor ul,
  .content_editor ol {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-left: 2rem;
  }
  
  .content_editor ul li,
  .content_editor ol li {
    margin-bottom: 0.5rem;
  }
  
  .content_editor code {
    font-size: 87.5%;
    color: #e83e8c;
    word-wrap: break-word;
  }
  
  .content_editor pre {
    font-size: 87.5%;
    color: #212529;
    background-color: #f8f9fa;
    padding: 1rem;
    margin-top: 0;
    margin-bottom: 1rem;
    overflow: auto;
    border-radius: 0.25rem;
  
}

  
  .content_editor .card {
    margin-bottom: 1.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background-color: #fff;
  }
  
  .content_editor .card-body {
    padding: 1.25rem;
  }
  

  .content_editor .card-text {
    margin-bottom: 0;
  }


        .comparison-table {
            width: 100%;
            border-collapse: collapse;
            margin: 25px 0;
            font-size: 0.9em;
            min-width: 400px;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
        }

        .comparison-table thead tr {
            background-color: #6e00ff;
            color: #ffffff;
            text-align: left;
            font-weight: bold;
        }

        .comparison-table th,
        .comparison-table td {
            padding: 12px 15px;
            border: 1px solid #e5e7eb;
        }

        .comparison-table tbody tr {
            border-bottom: 1px solid #dddddd;
        }

        .comparison-table tbody tr:nth-of-type(even) {
            background-color: #f9fafb;
        }

        .comparison-table tbody tr:last-of-type {
            border-bottom: 2px solid #6e00ff;
        }

        @media screen and (max-width: 600px) {
            .comparison-table {
                display: block;
                overflow-x: auto;
                white-space: nowrap;
            }
        }
    .navigation-controls {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        margin-top: 20px;
        padding: 20px 0;
    }

    .nav-button-container {
        flex: 1;
    }

    .nav-button {
        display: flex;
        align-items: center;
        padding: 15px 20px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        text-decoration: none;
        color: #333;
        transition: all 0.3s ease;
        background-color: #fff;
        max-width: 400px;
    }

    .nav-button:hover {
        border-color: #6e00ff;
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
        transform: translateY(-1px);
    }

    .nav-button.prev {
        margin-right: auto;
    }

    .nav-button.next {
        margin-left: auto;
        text-align: right;
    }

    .nav-content {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .nav-label {
        font-size: 0.85em;
        color: #666;
        margin-bottom: 4px;
    }

    .nav-title {
        font-weight: 500;
        color: #333;
        margin-bottom: 4px;
    }

    .chapter-label {
        font-size: 0.8em;
        color: #6e00ff;
    }

    .nav-icon {
        font-size: 1.2em;
        padding: 0 10px;
        color: #6e00ff;
    }

    .prev .nav-content {
        margin-left: 10px;
    }

    .next .nav-content {
        margin-right: 10px;
        align-items: flex-end;
    }

    /* Ajustes responsive */
    @media (max-width: 768px) {
        .navigation-controls {
            flex-direction: column;
        }

        .nav-button {
            width: 100%;
            max-width: none;
        }
    }

    /* Estilos para el resto del contenido permanecen igual */
    .module-navigation {
        margin: 0 auto;
        margin-top: 40px;

    }

    .module-progress {
        margin-bottom: 20px;
    }

    .chapter-info {
        font-size: 1.1em;
        color: #333;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .module-info {
        color: #666;
    }

    /* Estilos para el modal y quiz */
.quiz-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.quiz-modal-content {
    position: relative;
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 90vh;
    overflow-y: auto;
}

.quiz-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal {
    font-size: 24px;
    border: none;
    background: none;
    cursor: pointer;
    color: #666;
}

.quiz-modal-body {
    padding: 20px;
}

.quiz-btn {
    display: block;
    width: 200px;
    margin: 20px auto;
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.quiz-btn:hover {
    background-color: #0056b3;
}

.quiz-btn-complete {
    display: block;
    width: 200px;
    margin: 20px auto;
    padding: 12px 24px;
    background-color: green;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s;
    color:#fff;
}
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    margin-bottom: 10px;
}

.progress {
    height: 100%;
    background-color: #007bff;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.answer-options {
    margin: 20px 0;
}

.answer-option {
    margin: 10px 0;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.answer-option:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.answer-option input[type="radio"] {
    display: none;
}

.answer-option input[type="radio"]:checked + label {
    font-weight: bold;
}

.answer-option label {
    cursor: pointer;
    display: block;
    width: 100%;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #0056b3;
}

/* Navegación entre módulos */
.navigation-controls {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.nav-button {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    background-color: #fff;
}

.nav-button:hover {
    border-color: #6e00ff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.nav-button.prev {
    margin-right: auto;
}

.nav-button.next {
    margin-left: auto;
    text-align: right;
}

.nav-content {
    display: flex;
    flex-direction: column;
}

.nav-label {
    font-size: 0.85em;
    color: #666;
}

.nav-title {
    font-weight: 500;
}

.nav-icon {
    margin: 0 10px;
    color: #6e00ff;
}

/* Resultados del quiz */
.score-card {
    text-align: center;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.score-card.passed {
    background-color: #d4edda;
    color: #155724;
}

.score-card.failed {
    background-color: #f8d7da;
    color: #721c24;
}

.answer-review {
    margin: 15px 0;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid;
}

.answer-review.correct {
    background-color: #f8fff9;
    border-left-color: #28a745;
}

.answer-review.incorrect {
    background-color: #fff8f8;
    border-left-color: #dc3545;
}

.modal-actions {
    margin-top: 20px;
    text-align: center;
}

.continue-btn, .retry-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    color: white;
}

.continue-btn {
    background-color: #28a745;
}

.retry-btn {
    background-color: #007bff;
}

/* static/css/quiz.css */

/* Estilos del Modal */
.quiz-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.quiz-modal-content {
    position: relative;
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 90vh;
    overflow-y: auto;
}

.quiz-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal {
    font-size: 24px;
    border: none;
    background: none;
    cursor: pointer;
    color: #666;
}

.quiz-modal-body {
    padding: 20px;
}

/* Estilos del Quiz */
.quiz-btn {
    display: block;
    width: 200px;
    margin: 20px auto;
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.quiz-btn:hover {
    background-color: #0056b3;
}

/* Barra de Progreso */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    margin-bottom: 10px;
}

.progress {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Opciones de Respuesta */
.answer-options {
    margin: 20px 0;
}

.answer-option {
    margin: 10px 0;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.answer-option:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.answer-option input[type="radio"] {
    display: none;
}

.answer-option input[type="radio"]:checked + label {
    font-weight: bold;
}

.answer-option label {
    cursor: pointer;
    display: block;
    width: 100%;
}

/* Botón de Envío */
.submit-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #0056b3;
}

/* Feedback de Respuesta */
.answer-feedback {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    text-align: center;
}

.answer-feedback.correct {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.answer-feedback.incorrect {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.answer-feedback.error {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Animaciones */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Resultados */
.score-card {
    text-align: center;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.score-card.passed {
    background-color: #d4edda;
    color: #155724;
}

.score-card.failed {
    background-color: #f8d7da;
    color: #721c24;
}

.score {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.answer-review {
    margin: 15px 0;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid;
}

.answer-review.correct {
    background-color: #f8fff9;
    border-left-color: #28a745;
}

.answer-review.incorrect {
    background-color: #fff8f8;
    border-left-color: #dc3545;
}

/* Botones de Acción */
.modal-actions {
    margin-top: 20px;
    text-align: center;
}

.continue-btn, .retry-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    color: white;
}

.continue-btn {
    background-color: #28a745;
}

.retry-btn {
    background-color: #007bff;
}

/* Media Queries */
@media (max-width: 768px) {
    .quiz-modal-content {
        width: 95%;
        margin: 10px auto;
    }
    
    .answer-option {
        padding: 12px;
    }
}

.layout-column-2 {
    display: flex
    ;
        gap: 10px;
        max-width: 100%;
        flex-direction: row;
        flex-wrap: nowrap;
        align-content: stretch;
        align-items: flex-start;
        overflow: auto;
}

.layout-column-2 img {
    max-width: 100%;
    width: 400px;
}

.module-list {
    grid-template-columns: repeat(2, 1fr);
    padding-left: 0;
}

@media (max-width: 1024px) {
    .module-list {
        grid-template-columns: repeat(1, 1fr);
    }
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.progress-section {
    margin: 2rem 0;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-percentage {
    font-weight: bold;
    color: #10B981;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #10B981;
    transition: width 0.3s ease;
}

.main .module-link {
    margin-top: 20px;
    padding: 0;
}

.main .module-link:hover {
    color: #6e00ff;
}

.quiz-item {
    color: #6e00ff;
    margin-top: 10px;

}

.quiz-item a{
    color: #6e00ff;

}

.completed span{
    margin-top: 10px;
    color: #10B981;
}

.chapter-title {
    margin-top: 20px;
    margin-bottom: 20px;
}

.certificate-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ffd700, #ffa500);
    border: none;
    border-radius: 8px;
    color: #44331A;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.certificate-btn:hover {
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, #ffa500, #ffd700);
}

.certificate-btn:active {
    transform: translateY(0);
}

.certificate-icon {
    position: relative;
    width: 24px;
    height: 24px;
    display: inline-block;
}

.certificate-icon::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.certificate-icon::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid currentColor;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Efecto de brillo en hover */
.certificate-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    transform: translate(-100%, -100%);
    transition: all 0.6s ease;
}

.certificate-btn:hover::before {
    transform: translate(0, 0);
}

/* Animación del icono */
.certificate-btn:hover .certificate-icon {
    animation: certificateWiggle 0.5s ease;
}

@keyframes certificateWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Efecto de texto */
.certificate-text {
    position: relative;
    transition: all 0.3s ease;
}

.certificate-btn:hover .certificate-text {
}