/* Cybermatica Academy Course Detail Pro */

body.cma-course-detail-pro-page #primary,
body.cma-course-detail-pro-page .content-area,
body.cma-course-detail-pro-page #main,
body.cma-course-detail-pro-page .site-main,
body.cma-course-detail-pro-page article,
body.cma-course-detail-pro-page .entry-content,
body.cma-course-detail-pro-page .cma-course-detail-shell {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.cma-course-detail-pro-page .site-content > .col-full,
body.cma-course-detail-pro-page #content > .col-full {
    width: calc(100% - clamp(28px, 5vw, 84px)) !important;
    max-width: 1560px !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.cma-course-detail-pro-page .woocommerce-breadcrumb,
body.cma-course-detail-pro-page .entry-header,
body.cma-course-detail-pro-page .product_title,
body.cma-course-detail-pro-page .woocommerce-tabs,
body.cma-course-detail-pro-page .related.products,
body.cma-course-detail-pro-page .upsells.products {
    display: none !important;
}

.cma-course-detail {
    box-sizing: border-box;
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    padding: 18px 0 85px;
    color: #0F172A;
    font-family: Inter, "Plus Jakarta Sans", Roboto, system-ui, sans-serif;
}

.cma-course-detail *,
.cma-course-detail *::before,
.cma-course-detail *::after {
    box-sizing: border-box;
}

.cma-breadcrumbs a {
    color: #64748B !important;
    font-weight: 700;
    text-decoration: none !important;
}

.cma-breadcrumbs a:hover {
    color: #0F5132 !important;
}

.cma-breadcrumb-current {
    display: inline-block;
    max-width: min(42vw, 430px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cma-course-lead p {
    margin-top: 0;
    margin-bottom: 0;
}

.cma-tab-button {
    position: relative;
    min-height: 48px;
    padding: 10px 15px 13px;
    border: 0;
    border-radius: 10px 10px 0 0;
    background: transparent;
    color: #64748B;
    cursor: pointer;
    font-size: 13px;
    font-weight: 850;
    transition: color .18s ease, background .18s ease;
}

.cma-tab-button:hover {
    background: #FFF;
    color: #0F5132;
}

.cma-tab-button.is-active {
    background: #FFF;
    color: #0F5132;
}

.cma-tab-button.is-active::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 0;
    left: 12px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: #0F5132;
}

.cma-tabs-scroll {
    overflow-x: auto;
    scroll-behavior: smooth;
}

.cma-prose {
    color: #475569;
    font-size: 15px;
    line-height: 1.78;
}

.cma-prose h2,
.cma-prose h3,
.cma-prose h4 {
    color: #0F172A;
    font-weight: 900;
    letter-spacing: -.02em;
}

.cma-prose h2 {
    margin: 0 0 18px;
    font-size: 25px;
}

.cma-prose h3 {
    margin: 25px 0 12px;
    font-size: 19px;
}

.cma-prose p,
.cma-prose ul,
.cma-prose ol {
    margin: 0 0 16px;
}

.cma-prose ul,
.cma-prose ol {
    padding-left: 22px;
}

.cma-related-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 47px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cma-enrol-card .button {
    box-sizing: border-box !important;
}

@media (max-width: 700px) {
    body.cma-course-detail-pro-page .site-content > .col-full,
    body.cma-course-detail-pro-page #content > .col-full {
        width: calc(100% - 24px) !important;
    }

    .cma-course-detail {
        padding-top: 10px;
    }

    .cma-breadcrumb-current {
        max-width: 70vw;
    }
}

/* Fallback si Tailwind CDN no cargara. */
.cma-course-detail .hidden {
    display: none !important;
}

.cma-course-detail .shadow-soft {
    box-shadow: 0 16px 42px rgba(15,23,42,.08);
}

