
    .cf-page {
        padding: 30px 0 50px;
        background: linear-gradient(180deg, #f5f8fc 0%, #ffffff 100%);
    }

    .cf-breadcrumb {
        background: transparent;
        padding: 0;
        margin: 0 0 18px;
    }

    .cf-breadcrumb .breadcrumb-item a {
        color: #6b7280;
        text-decoration: none;
        font-weight: 500;
    }

    .cf-breadcrumb .breadcrumb-item a:hover {
        color: #1f4e79;
    }

    .cf-breadcrumb .breadcrumb-item.active {
        color: #1e293b;
        font-weight: 700;
    }

    .cf-card {
        background: #ffffff;
        border: 0;
        border-radius: 22px;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
        overflow: hidden;
    }

    .cf-card-body {
        padding: 28px;
    }

    .cf-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 18px;
        flex-wrap: wrap;
        margin-bottom: 18px;
    }

    .cf-title {
        margin: 0;
        font-size: 1.7rem;
        font-weight: 800;
        color: #172033;
        line-height: 1.15;
    }

    .cf-subtitle {
        margin: 8px 0 0;
        color: #64748b;
        font-size: .96rem;
        line-height: 1.7;
        max-width: 760px;
    }

    .cf-action-group {
        display: flex;
        gap: 10px;
    }

    .cf-action-btn {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none !important;
        background: linear-gradient(135deg, #f8fafc, #eef4fa);
        border: 1px solid rgba(31, 78, 121, 0.08);
        color: #1f4e79;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
        transition: all .2s ease;
        font-size: 1.05rem;
    }

    .cf-action-btn:hover {
        background: linear-gradient(135deg, #1f4e79, #2c6aa0);
        color: #fff;
        border-color: transparent;
        transform: translateY(-2px);
    }

    .cf-info-box {
        border: 1px solid rgba(31, 78, 121, 0.10);
        background: linear-gradient(135deg, #f8fbff 0%, #f2f7fc 100%);
        border-radius: 18px;
        padding: 16px 18px;
        color: #475569;
        font-size: .95rem;
        line-height: 1.75;
        margin-bottom: 22px;
    }

    .cf-info-box i {
        color: #1f4e79;
        margin-right: 6px;
    }

    .cf-search-form {
        margin-bottom: 20px;
    }

    .cf-search-box {
        display: flex;
        align-items: center;
        gap: 10px;
        background: #fff;
        border: 1px solid #e5eaf0;
        border-radius: 20px;
        padding: 8px;
        box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    }

    .cf-search-icon {
        width: 52px;
        min-width: 52px;
        height: 52px;
        border-radius: 15px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #f3f7fc, #eef4fa);
        color: #1f4e79;
        font-size: 1.05rem;
    }

    .cf-search-input {
        border: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        color: #1f2937 !important;
        font-size: 1rem;
        padding-left: 0;
        padding-right: 0;
        height: 52px;
    }

    .cf-search-input::placeholder {
        color: #94a3b8;
    }

    .cf-btn-search {
        height: 52px;
        min-width: 58px;
        border: 0 !important;
        border-radius: 15px !important;
        background: linear-gradient(135deg, #1f4e79, #2c6aa0) !important;
        color: #fff !important;
        font-size: 1rem;
        box-shadow: 0 10px 22px rgba(31, 78, 121, 0.20);
        transition: all .2s ease;
    }

    .cf-btn-search:hover {
        background: linear-gradient(135deg, #173a5b, #255983) !important;
        transform: translateY(-1px);
    }

    .cf-btn-clear {
        height: 52px;
        padding: 0 16px;
        border-radius: 15px !important;
        font-weight: 600;
    }

    .cf-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .cf-link-card {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 16px 18px;
        border-radius: 18px;
        background: #fff;
        border: 1px solid #e9eef4;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
        text-decoration: none !important;
        color: #1f2937;
        transition: all .22s ease;
        min-height: 92px;
    }

    .cf-link-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
        border-color: rgba(31, 78, 121, 0.18);
        color: #1f2937;
    }

    .cf-link-icon {
        width: 52px;
        min-width: 52px;
        height: 52px;
        border-radius: 15px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, rgba(31, 78, 121, 0.10), rgba(44, 106, 160, 0.14));
        color: #1f4e79;
        font-size: 1.2rem;
    }

    .cf-link-title {
        display: block;
        font-size: 1rem;
        font-weight: 700;
        color: #172033;
        line-height: 1.35;
        margin-bottom: 2px;
    }

    .cf-link-text {
        display: block;
        font-size: .9rem;
        line-height: 1.55;
        color: #64748b;
    }

    .cf-collapse-card {
        border: 0;
        border-radius: 20px;
        background: #fff;
        box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
        overflow: hidden;
        margin-top: 18px;
    }

    .cf-collapse-card .card-body {
        padding: 24px;
    }

    .cf-manual-box {
        border: 1px solid #edf2f7;
        border-radius: 18px;
        background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
        padding: 22px;
    }

    .cf-manual-box h6 {
        font-size: 1rem;
        font-weight: 800;
        color: #172033;
        margin-bottom: 14px;
    }

    .cf-manual-box p,
    .cf-manual-box li {
        color: #475569;
        font-size: .95rem;
        line-height: 1.75;
    }

    .cf-manual-box ul {
        margin-bottom: 0;
        padding-left: 18px;
    }

    .cf-manual-capitulo { color: #dc2626; font-weight: 700; }
    .cf-manual-partida { color: #059669; font-weight: 700; }
    .cf-manual-subpartida { color: #2563eb; font-weight: 700; }

    .cf-manual-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
        margin-top: 18px;
    }

    .cf-manual-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 16px;
        border-radius: 13px;
        background: #f5f8fc;
        color: #1f4e79;
        font-weight: 600;
        text-decoration: none !important;
        border: 1px solid #e5edf5;
        transition: all .2s ease;
    }

    .cf-manual-link:hover {
        background: #1f4e79;
        color: #fff;
        border-color: #1f4e79;
    }

    .cf-close-btn {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #fff5f5;
        color: #dc2626;
        border: 1px solid #ffd7d7;
        text-decoration: none !important;
        transition: all .2s ease;
    }

    .cf-close-btn:hover {
        background: #dc2626;
        color: #fff;
    }

    .cf-video-frame {
        border-radius: 18px;
        overflow: hidden;
        background: #000;
        box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
    }

    .cf-alert {
        margin-top: 22px;
        border-radius: 16px;
        border: 0;
    }

    .cf-results-card {
        background: #ffffff;
        border: 0;
        border-radius: 22px;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
        overflow: hidden;
        margin-top: 24px;
    }

    .cf-results-body {
        padding: 28px;
    }

    .cf-results-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        flex-wrap: wrap;
        margin-bottom: 18px;
    }

    .cf-results-title {
        margin: 0;
        font-size: 1.15rem;
        font-weight: 800;
        color: #172033;
    }

    .cf-results-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 14px;
        border-radius: 999px;
        background: #eef5ff;
        color: #1d4ed8;
        font-size: .88rem;
        font-weight: 700;
    }

    .cf-empty {
        border: 1px dashed #dbe4ee;
        border-radius: 20px;
        background: #fbfdff;
        text-align: center;
        padding: 42px 20px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    }

    .cf-empty-icon {
        width: 70px;
        height: 70px;
        margin: 0 auto 16px;
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #eef5ff;
        color: #2563eb;
        font-size: 1.4rem;
    }

    .cf-empty h5 {
        font-size: 1.15rem;
        font-weight: 800;
        color: #172033;
        margin-bottom: 8px;
    }

    .cf-empty p {
        margin: 0;
        color: #64748b;
        line-height: 1.7;
    }

    .cf-tree {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .cf-chapter-card {
        border: 1px solid #e7edf5;
        border-radius: 20px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    }

    .cf-chapter-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 18px 20px;
        background: linear-gradient(135deg, #f8fbff 0%, #eff5fb 100%);
        cursor: pointer;
        margin: 0;
    }

    .cf-chapter-header-left {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        min-width: 0;
    }

    .cf-code {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 58px;
        height: 42px;
        padding: 0 14px;
        border-radius: 12px;
        font-weight: 800;
        letter-spacing: .03em;
        color: #fff;
        flex-shrink: 0;
    }

    .cf-code-capitulo {
        background: linear-gradient(135deg, #1d4ed8, #2563eb);
        box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
    }

    .cf-code-partida {
        background: linear-gradient(135deg, #0284c7, #0ea5e9);
        box-shadow: 0 8px 18px rgba(14, 165, 233, 0.18);
    }

    .cf-code-subpartida {
        background: linear-gradient(135deg, #475569, #64748b);
        box-shadow: 0 8px 18px rgba(100, 116, 139, 0.18);
    }

    .cf-code-mini {
        min-width: 42px;
        height: 34px;
        padding: 0 10px;
        border-radius: 10px;
        font-size: .88rem;
    }

    .cf-title-block {
        min-width: 0;
    }

    .cf-item-title {
        margin: 0 0 2px;
        font-size: 1rem;
        font-weight: 800;
        color: #172033;
        line-height: 1.45;
    }

    .cf-item-text {
        margin: 0;
        color: #64748b;
        font-size: .92rem;
        line-height: 1.7;
    }

    .cf-chevron {
        color: #64748b;
        font-size: 1rem;
    }

    .cf-partidas-wrap {
        padding: 18px;
        background: #fff;
    }

    .cf-partida-card {
        border: 1px solid #edf2f7;
        border-radius: 18px;
        background: #fbfdff;
        padding: 16px;
    }

    .cf-partida-card + .cf-partida-card {
        margin-top: 14px;
    }

    .cf-subpartida-card {
        border: 1px solid #e8eef6;
        border-left: 4px solid #3b82f6;
        border-radius: 16px;
        background: #ffffff;
        padding: 14px;
    }

    .cf-subpartida-card + .cf-subpartida-card {
        margin-top: 12px;
    }

    .cf-subpartida-actions {
        margin-top: 12px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .cf-link-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        border-radius: 12px;
        text-decoration: none !important;
        background: #eff6ff;
        color: #1d4ed8;
        border: 1px solid #bfdbfe;
        font-weight: 600;
        font-size: .9rem;
        transition: all .2s ease;
    }

    .cf-link-btn:hover {
        background: #1d4ed8;
        color: #fff;
        border-color: #1d4ed8;
    }

    .cf-fracciones-list {
        margin-top: 14px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cf-fraccion-item {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
        padding: 14px;
        border-radius: 14px;
        background: #f8fafc;
        border: 1px solid #e8eef6;
    }

    .cf-fraccion-main {
        min-width: 0;
    }

    .cf-fraccion-title {
        margin: 0 0 4px;
        font-size: .96rem;
        font-weight: 700;
        color: #172033;
        line-height: 1.55;
    }

    .cf-fraccion-meta {
        color: #64748b;
        font-size: .88rem;
        line-height: 1.6;
    }

    .cf-fraccion-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .cf-country-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        height: 34px;
        padding: 0 10px;
        border-radius: 10px;
        background: #f1f5f9;
        color: #334155;
        font-weight: 700;
        font-size: .82rem;
    }

    .cf-mini-btn {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none !important;
        background: #eff6ff;
        color: #1d4ed8;
        border: 1px solid #bfdbfe;
        transition: all .2s ease;
    }

    .cf-mini-btn:hover {
        background: #1d4ed8;
        color: #fff;
        border-color: #1d4ed8;
    }

    @media (max-width: 991.98px) {
        .cf-links {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 767.98px) {
        .cf-page {
            padding: 18px 0 34px;
        }

        .cf-card-body,
        .cf-results-body,
        .cf-collapse-card .card-body,
        .cf-manual-box {
            padding: 18px;
        }

        .cf-title {
            font-size: 1.35rem;
        }

        .cf-search-box {
            flex-wrap: wrap;
        }

        .cf-search-icon {
            display: none;
        }

        .cf-btn-search,
        .cf-btn-clear {
            width: 100%;
        }

        .cf-chapter-header,
        .cf-fraccion-item {
            flex-direction: column;
            align-items: flex-start;
        }

        .cf-fraccion-actions {
            width: 100%;
            justify-content: flex-start;
        }
    }

    .cf-btn-ver {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1f4e79, #2c6aa0);
    color: #fff !important;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all .2s ease;
}

.cf-btn-ver:hover {
    background: linear-gradient(135deg, #173a5b, #255983);
    transform: translateY(-1px);
    color: #fff !important;
}

.cf-chapter-header.collapsed .cf-chevron {
    transform: rotate(0deg);
}

.cf-chapter-header:not(.collapsed) .cf-chevron {
    transform: rotate(180deg);
}

.cf-chapter-header {
    background: linear-gradient(135deg, #f8fbff 0%, #eff5fb 100%);
    transition: background .2s ease;
}

.cf-chapter-header:not(.collapsed) {
    background: linear-gradient(135deg, #eef5ff 0%, #e6f0fb 100%);
}


.cf-chapter-header {
    width: 100%;
    border: 0;
    outline: none !important;
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f8fbff 0%, #eff5fb 100%);
    cursor: pointer;
    margin: 0;
    text-align: left;
}

.cf-chapter-header:focus,
.cf-chapter-header:active {
    outline: none !important;
    box-shadow: none !important;
}

.cf-chapter-header-left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    flex: 1 1 auto;
}

.cf-chevron {
    min-width: 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all .2s ease;
    flex-shrink: 0;
}

.cf-chapter-header.collapsed .cf-chevron {
    transform: rotate(0deg);
}

.cf-chapter-header:not(.collapsed) .cf-chevron {
    transform: rotate(180deg);
}

.cf-chapter-header:not(.collapsed) {
    background: linear-gradient(135deg, #eef5ff 0%, #e6f0fb 100%);
}

.cf-chapter-card > .collapse {
    display: none;
}

.cf-chapter-card > .collapse.show {
    display: block;
}

.cf-chapter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f8fbff 0%, #eff5fb 100%);
    cursor: pointer;
    margin: 0;
    text-decoration: none !important;
    width: 100%;
}

.cf-chapter-header:hover,
.cf-chapter-header:focus,
.cf-chapter-header:active {
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.cf-chapter-header-left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    flex: 1 1 auto;
}

.cf-chevron {
    color: #64748b;
    font-size: 1rem;
    min-width: 36px;
    text-align: center;
    transition: transform .2s ease;
}

.cf-chapter-header.collapsed .cf-chevron {
    transform: rotate(0deg);
}

.cf-chapter-header:not(.collapsed) .cf-chevron {
    transform: rotate(180deg);
}