:root {
    --primary-blue: #164587;
    --primary-dark: #18243c;
    --secondary-blue: #1e88e5;
    --accent-cyan: #00bcd4;
    --accent-orange: #ff9800;
    --accent-green: #4caf50;
    --bg-light: #f8fafb;
    --bg-white: #ffffff;
    --text-dark: #1a2332;
    --text-medium: #4a5568;
    --text-light: #718096;
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --success-green: #25d366;
    --light-blue: #e3f2fd;
    --lighter-blue: #bbdefb;

    --encap-yellow: #f5c518;
    --encap-yellow-hover: #e6b800;
    --search-radius: 12px;
    --search-height: 48px;
    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

    --nav-bg: #f8f9fb;
    --border: #e4e7ec;
}

/* Main Content */
.main-wrapper {
    padding: 64px 0;
    background-color: var(--bg-light);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
}

.modules-container {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-light);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
}

.expand-all-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-medium);
    color: var(--primary-blue);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.expand-all-btn:hover {
    background: var(--bg-white);
    border-color: var(--secondary-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.expand-all-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-medium);
    color: var(--primary-blue);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.expand-all-btn:hover {
    background: var(--bg-white);
    border-color: var(--secondary-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.modules-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.module-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.module-card:hover {
    border-color: var(--secondary-blue);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.module-header {
    padding: 24px;
    cursor: pointer;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
    align-items: flex-start;
}

.module-header:hover {
    background: var(--bg-light);
}

.module-number-box {
    width: 36px;
    height: 36px;
    background: linear-gradient(
        135deg,
        var(--primary-blue),
        var(--primary-dark)
    );
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(22, 69, 135, 0.3);
    font-family: "JetBrains Mono", monospace;
}

.module-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.module-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.module-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 8px;
}

.module-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.module-stat {
    display: flex;
    align-items: center;
    gap: 6px;
}

.expand-icon {
    width: 32px;
    height: 32px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.module-card.active .lessons-container {
    max-height: 2000px;
}

.lesson-item {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.lesson-item:hover {
    background: var(--bg-white);
    padding-left: 32px;
}

.lesson-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.lesson-type-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--light-blue), var(--lighter-blue));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 16px;
    flex-shrink: 0;
}

.lesson-title {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
}

.lesson-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.preview-badge {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: var(--accent-orange);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 152, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-badge:hover {
    background: linear-gradient(135deg, #ffe0b2, #ffcc80);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2);
}

.lesson-time {
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
    min-width: 50px;
    text-align: right;
}

.anexos-badge {
    /* background: linear-gradient(135deg, #e8f5e9, #c8e6c9); */
    color: #164587;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(76, 175, 80, 0.2);
    display: flex;
    align-items: center;
    gap: 4px;
}

.anexos-badge:hover {
    transform: scale(1.05);
}

.lessons-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--bg-light);
}

.sticky-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    /* border: 1px solid var(--border-light); */
}

.button.-outline-black:hover span,
.button.-outline-black:hover i {
    color: #fff !important;
}

.enroll-btn {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    /* background: linear-gradient(
        135deg,
        var(--primary-blue),
        var(--primary-dark)
    ); */
    background: var(--encap-yellow);
    color: #000 !important;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(22, 69, 135, 0.3);
    font-family: "Outfit", sans-serif;
}

.enroll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(22, 69, 135, 0.4);
}

.divider {
    height: 1px;
    background: var(--border-light);
    margin: 24px 0;
}

.includes-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-medium);
}

.feature-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--light-blue), var(--lighter-blue));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 14px;
}

.hero-color {
    background: linear-gradient(135deg, #f0f7ff 0%, #e3f2fd 100%);
}

.x-modal-content {
    background: var(--bg-white);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    border: none;
}

.x-modal-header {
    background: linear-gradient(
        135deg,
        var(--primary-blue),
        var(--primary-dark)
    );
    color: var(--bg-white);
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.x-blue {
    background: var(--primary-dark) !important;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.modal-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    color: var(--bg-white);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 28px;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
}

.modal-subtitle {
    color: var(--text-medium);
    font-size: 14px;
    margin-bottom: 24px;
}

.anexos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.anexo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.anexo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--light-blue), var(--lighter-blue));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.anexo-info {
    flex: 1;
}

.anexo-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.anexo-meta {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    gap: 12px;
}

.modal-overlay {
    backdrop-filter: blur(4px);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tabs-wrapper {
    margin-bottom: -1px;
    position: relative;
    z-index: 10;
}

.tabs {
    display: flex;
    gap: 0;
    padding-left: 32px;
}

.tab {
    background: white;
    opacity: 0.45;
    border: 2px solid #e5e7eb;
    border-bottom: none;
    padding: 8px 32px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    border-radius: 12px 12px 0 0;
    transition: all 0.3s;
    position: relative;
    margin-right: -2px;
}

.tab:hover {
    color: #1f2937;
    background: #f9fafb;
}

.tab.active {
    opacity: 1;
    background: #fff;
    color: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    z-index: 2;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQs */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
    margin-top: 2rem;
}

.faq-item {
    border-left: 3px solid transparent;
    border-image: linear-gradient(
            135deg,
            var(--primary-blue),
            var(--primary-dark)
        )
        1;
    border-radius: 0 8px 8px 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 16px 20px;
}

.faq-item h3 {
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(
        135deg,
        var(--primary-blue),
        var(--primary-dark)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.faq-item p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.75;
    margin: 0;
}

/*  */
/* #section-features {
    background: radial-gradient(
        circle,
        rgba(30, 136, 229, 0.08) 0%,
        transparent 70%
    );
} */

.x-page-header {
    padding: 2rem 0 3rem;
    /* background: var(--primary-dark); */
    background: #00012d;
}

.x-breadcrumbs__content {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.x-breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.x-breadcrumbs__item:not(:last-child)::after {
    content: "•";
    color: rgba(255, 255, 255, 0.25);
    font-size: 10px;
}

.x-breadcrumbs__item a {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.x-breadcrumbs__item a:hover {
    color: #ffffff;
}

.x-breadcrumbs__item--active span {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.course-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid #f9ab00;
    color: #f9ab00;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    animation: fadeInUp 0.6s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
/* ── Wrapper ── */
.x-course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Compartir ── */
.x-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.x-share__label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.x-share__icons {
    display: flex;
    gap: 8px;
}

.x-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255) !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.2s;
    text-decoration: none;
}

.x-share__btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

/* colores de marca al hover */
.x-share__btn--facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}
.x-share__btn--whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}
.x-share__btn--twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: #fff;
}

/* ── Stats ── */
.x-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 20px;
}

.x-stats__item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.x-stats__icon {
    color: #ffd000;
    font-size: 18px;
}

.x-stats__value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.x-stats__label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.x-stats__divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
}

/* Cards */
/* .x-card {
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border: none;
    transition: all 0.3s ease;
    padding: 1.5rem;
} */

/* .col-xl-4:nth-child(3) .x-card-description {
    font-size: 16px;
    margin-top: 0.25rem;
    line-height: 22px;
} */

@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* md y menores */
@media (max-width: 576px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-grid > :nth-child(2) {
        display: none;
    }

    .modules-container {
        padding: 20px 14px;
    }

    .section-header {
        margin-bottom: 18px;
    }

    .section-title {
        font-size: 22px;
        font-weight: 600;
    }

    .module-header {
        padding: 16px;
    }

    .module-number-box {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .module-label {
        font-size: 11px;
    }

    .module-title {
        font-size: 15px;
    }

    .module-stats {
        font-size: 12px;
    }

    .x-modal-header,
    .modal-body {
        padding: 18px 14px;
    }

    .modal-subtitle {
        margin-bottom: 16px;
    }

    .modal-title {
        font-size: 17px;
    }

    .anexo-item {
        padding: 12px 10px;
    }
}

.courses-single-info {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 30px rgba(0, 0, 0, 0.12),
        0 20px 60px rgba(0, 0, 0, 0.15);
}

#section-features {
    padding-top: 0; /* Sin padding top, el wrapper lo maneja */
    background: #f8fafb;
}

.features-float-wrapper {
    transform: translateY(-40px);
    margin-bottom: -80px;
    max-width: 100%;
}

.x-card--float {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    white-space: nowrap; /* ← evita que el texto se parta */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.x-card--float:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.summary-container {
    background: #fff;
    padding: 22px 26px;
    font-size: 14px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(24, 36, 60, 0.1),
        0 1px 4px rgba(24, 36, 60, 0.05);
    border: 1px solid var(#dce3ef);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.summary-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--primary-blue),
        var(--primary-dark)
    );
    border-radius: 0;
}

.summary-container:hover {
    box-shadow: 0 12px 48px rgba(24, 36, 60, 0.14),
        0 4px 12px rgba(24, 36, 60, 0.08);
    transform: translateY(-2px);
}

.summary-container h5 span,
.summary-container h5 {
    font-family: "DINRoundPro" !important;
    font-size: 16px;
    font-weight: 500;
}

.summary-container p {
    font-size: 13px;
}

@media (max-width: 768px) {
    .x-page-header {
        padding-top: 4.5rem !important;
    }
}

@media (max-width: 670px) {
    .x-page-header {
        padding-top: 6rem !important;
    }
}

@media (max-width: 576px) {
    .features-float-wrapper {
        display: flex;
        width: 100%;
        transform: translateY(-20px);
        margin-bottom: -20px;
    }

    .x-card--float {
        white-space: normal;
    }
}

@media (max-width: 992px) {
    .xpimg {
        margin-top: 1.5rem !important;
    }

    .xpimg img {
        border-radius: 14px;
    }
}

.x-header {
    background: #fff;
}

.x-header i,
.x-header button {
    color: #000 !important;
}
