/* ==========================================================
   CATÁLOGO DE PROGRAMAS ACADÉMICOS
   ========================================================== */

.tcp-catalog {
    --tcp-blue: #314591;
    --tcp-blue-dark: #24366f;
    --tcp-red: #b90612;
    --tcp-text: #101a33;
    --tcp-muted: #68728a;
    --tcp-line: #e2e6ef;
    --tcp-soft: #f6f7fb;

    padding: 70px 0 90px;

    background: #fff;

    font-family: inherit;
}

.tcp-catalog .tcp-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}


/* ==========================================================
   CABECERA
   ========================================================== */

.tcp-catalog__header {
    max-width: 760px;
    margin-bottom: 35px;
}

.tcp-catalog__header .tcp-section-kicker {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--tcp-red);

    font-size: 11px;
    line-height: 1;
    font-weight: 750;

    text-transform: uppercase;
    letter-spacing: .08em;
}

.tcp-catalog__header h1 {
    margin: 0 0 14px !important;

    color: var(--tcp-text) !important;

    font-size: clamp(38px, 5vw, 58px) !important;
    line-height: 1.03 !important;
    font-weight: 800 !important;

    letter-spacing: -.035em;
}

.tcp-catalog__header p {
    max-width: 680px;

    margin: 0;

    color: var(--tcp-muted);

    font-size: 16px;
    line-height: 1.7;
}


/* ==========================================================
   BUSCADOR Y FILTROS
   ========================================================== */

.tcp-catalog__toolbar {
    margin-bottom: 20px;

    padding: 18px;

    border: 1px solid var(--tcp-line);
    border-radius: 18px;

    background: #fff;

    box-shadow:
        0 12px 40px rgba(26, 40, 79, .055);
}

.tcp-catalog__search {
    margin-bottom: 12px;
}

.tcp-catalog-search {
    width: 100%;
    height: 54px;

    padding: 0 18px !important;

    border: 1px solid #dce1eb !important;
    border-radius: 12px !important;

    background: #fafbfc !important;

    color: var(--tcp-text) !important;

    font-family: inherit !important;
    font-size: 14px !important;

    box-shadow: none !important;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.tcp-catalog-search:focus {
    outline: none !important;

    border-color: var(--tcp-blue) !important;

    background: #fff !important;

    box-shadow:
        0 0 0 4px rgba(49, 69, 145, .08) !important;
}

.tcp-catalog-search::placeholder {
    color: #9098aa;
}

.tcp-catalog__filters {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr))
        auto;

    gap: 9px;
}

.tcp-catalog-filter {
    width: 100%;
    height: 44px;

    padding: 0 36px 0 12px !important;

    border: 1px solid #dfe3ec !important;
    border-radius: 10px !important;

    background-color: #fff !important;

    color: #3d465b !important;

    font-family: inherit !important;
    font-size: 11px !important;

    cursor: pointer;

    box-shadow: none !important;
}

.tcp-catalog-filter:focus {
    outline: none !important;
    border-color: var(--tcp-blue) !important;
}

.tcp-catalog-clear {
    min-height: 44px;

    padding: 0 17px;

    border: 0;
    border-radius: 10px;

    background: #f0f2f7;

    color: #4a5368;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}

.tcp-catalog-clear:hover {
    background: #e7eaf2;
    color: var(--tcp-blue);
}


/* ==========================================================
   CONTADOR
   ========================================================== */

.tcp-catalog__count {
    display: flex;

    align-items: center;

    gap: 5px;

    margin: 0 0 18px;

    color: var(--tcp-muted);

    font-size: 12px;
}

.tcp-catalog__count strong {
    color: var(--tcp-blue);
    font-size: 13px;
}


/* ==========================================================
   GRID
   ========================================================== */

.tcp-program-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;

    align-items: stretch;
}


/* ==========================================================
   TARJETA
   ========================================================== */

.tcp-program-card {
    display: flex;
    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    border: 1px solid var(--tcp-line);
    border-radius: 18px;

    background: #fff;

    box-shadow:
        0 14px 40px rgba(23, 38, 76, .06);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.tcp-program-card:hover {
    transform: translateY(-5px);

    border-color: #d4d9e7;

    box-shadow:
        0 22px 55px rgba(23, 38, 76, .11);
}


/* IMAGEN */

.tcp-program-card__image {
    position: relative;

    display: block;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #eef1f6;
}

.tcp-program-card__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .45s ease;
}

.tcp-program-card:hover .tcp-program-card__image img {
    transform: scale(1.035);
}

.tcp-program-card__placeholder {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    padding: 25px;

    background:
        linear-gradient(
            135deg,
            #314591,
            #1f2e64
        );

    color: #fff;

    text-align: center;

    font-size: 15px;
    font-weight: 700;
}


/* CUERPO */

.tcp-program-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 20px;
}

.tcp-program-card__level {
    align-self: flex-start;

    display: inline-flex;

    align-items: center;

    margin-bottom: 12px;

    padding: 6px 10px;

    border-radius: 999px;

    background: #f0f2fa;

    color: var(--tcp-blue);

    font-size: 9px;
    line-height: 1;
    font-weight: 750;

    text-transform: uppercase;
    letter-spacing: .04em;
}

.tcp-program-card__body h2 {
    margin: 0 0 8px !important;

    font-size: 20px !important;
    line-height: 1.22 !important;
    font-weight: 780 !important;

    letter-spacing: -.015em;
}

.tcp-program-card__body h2 a {
    color: var(--tcp-text) !important;

    text-decoration: none !important;
}

.tcp-program-card__body h2 a:hover {
    color: var(--tcp-blue) !important;
}

.tcp-program-card__faculty {
    min-height: 38px;

    margin: 0 0 17px;

    color: var(--tcp-muted);

    font-size: 11px;
    line-height: 1.55;
}


/* DATOS */

.tcp-program-card__meta {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;

    margin-bottom: 20px;
}

.tcp-program-card__meta span {
    display: flex;
    flex-direction: column;

    min-width: 0;

    padding: 10px 11px;

    border-radius: 10px;

    background: var(--tcp-soft);

    color: var(--tcp-text);

    font-size: 10px;
    line-height: 1.35;
    font-weight: 650;
}

.tcp-program-card__meta small {
    display: block;

    margin-bottom: 3px;

    color: #8a92a5;

    font-size: 7px;
    line-height: 1.2;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .06em;
}


/* BOTÓN */

.tcp-program-card__button {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 44px;

    margin-top: auto;

    padding: 0 18px;

    border-radius: 10px;

    background: var(--tcp-blue);

    color: #fff !important;

    font-size: 11px;
    font-weight: 750;

    text-decoration: none !important;

    transition:
        background .2s ease,
        transform .2s ease;
}

.tcp-program-card__button:hover {
    background: var(--tcp-blue-dark);

    color: #fff !important;

    transform: translateY(-1px);
}


/* ==========================================================
   SIN RESULTADOS
   ========================================================== */

.tcp-catalog__empty {
    margin-top: 25px;

    padding: 45px 25px;

    border: 1px dashed #d8dce6;
    border-radius: 15px;

    background: #fafbfc;

    text-align: center;
}

.tcp-catalog__empty[hidden] {
    display: none !important;
}

.tcp-catalog__empty strong {
    display: block;

    margin-bottom: 6px;

    color: var(--tcp-text);

    font-size: 17px;
}

.tcp-catalog__empty p {
    margin: 0;

    color: var(--tcp-muted);

    font-size: 12px;
}

.tcp-program-card[hidden] {
    display: none !important;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1050px) {

    .tcp-program-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .tcp-catalog__filters {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .tcp-catalog-clear {
        grid-column: span 2;
    }
}


@media (max-width: 700px) {

    .tcp-catalog {
        padding: 45px 0 65px;
    }

    .tcp-catalog .tcp-container {
        width: calc(100% - 24px);
    }

    .tcp-catalog__header {
        margin-bottom: 25px;
    }

    .tcp-catalog__header h1 {
        font-size: 38px !important;
    }

    .tcp-catalog__header p {
        font-size: 14px;
    }

    .tcp-catalog__toolbar {
        padding: 12px;

        border-radius: 14px;
    }

    .tcp-catalog__filters {
        grid-template-columns: 1fr;
    }

    .tcp-catalog-clear {
        grid-column: auto;
    }

    .tcp-program-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .tcp-program-card__image {
        aspect-ratio: 16 / 9;
    }
}


/* ==========================================================
   FILTROS POR NIVEL
   ========================================================== */

.tcp-catalog__levels {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 15px;
}

.tcp-catalog-level {
    min-height: 38px;

    padding: 0 17px;

    border: 1px solid #dfe3ec;
    border-radius: 999px;

    background: #fff;

    color: #535d73;

    font-family: inherit;
    font-size: 10px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.tcp-catalog-level:hover {
    border-color: #314591;

    color: #314591;
}

.tcp-catalog-level.is-active {
    border-color: #314591;

    background: #314591;

    color: #fff;

    box-shadow:
        0 6px 16px rgba(49, 69, 145, .16);
}

.tcp-catalog-level.is-active:hover {
    color: #fff;
}

@media (max-width: 700px) {

    .tcp-catalog__levels {
        flex-wrap: nowrap;

        overflow-x: auto;

        padding-bottom: 3px;

        scrollbar-width: none;
    }

    .tcp-catalog__levels::-webkit-scrollbar {
        display: none;
    }

    .tcp-catalog-level {
        flex: 0 0 auto;
    }
}

/* ==========================================================
   PAGINACIÓN DEL CATÁLOGO
========================================================== */

.tcp-catalog__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-top: 42px;
    margin-bottom: 10px;

    width: 100%;
}


.tcp-catalog-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}


.tcp-catalog-page,
.tcp-catalog-page-nav {
    min-width: 42px;
    height: 42px;

    padding: 0 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #dce2ee;
    border-radius: 12px;

    background: #ffffff;
    color: #173477;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}


.tcp-catalog-page:hover,
.tcp-catalog-page-nav:hover:not(:disabled) {
    transform: translateY(-1px);

    border-color: #30499b;

    box-shadow:
        0 8px 20px
        rgba(20, 45, 100, .08);
}


.tcp-catalog-page.is-active {
    background: #30499b;
    border-color: #30499b;
    color: #ffffff;
}


.tcp-catalog-page-nav:disabled {
    opacity: .4;
    cursor: not-allowed;
}


.tcp-catalog__pagination[hidden] {
    display: none !important;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 640px) {

    .tcp-catalog__pagination {
        gap: 6px;
        flex-wrap: wrap;

        margin-top: 30px;
    }


    .tcp-catalog-pages {
        gap: 5px;
    }


    .tcp-catalog-page,
    .tcp-catalog-page-nav {
        min-width: 38px;
        height: 38px;

        padding: 0 10px;

        border-radius: 10px;

        font-size: 12px;
    }

}

