:root {
    --tfs-blue: #1A115D;
    --tfs-pink: #FF2C7D;
    --tfs-lime: #DAFE76;
    --tfs-white: #ffffff;
    --tfs-text: #1A115D;
    --tfs-text-light: rgba(25, 19, 95, 0.8) !important;
    --tfs-bg-gray: #f8f9fa;
    --tfs-cyan: #14D0E0;
    --tfs-dark-blue: #130D4B;
    --tfs-font: 'RoobertPRO', 'Inter', sans-serif;
    --tfs-container-width: 1085px;
}

.tfs-landing-wrapper {
    font-family: var(--tfs-font);
    -webkit-font-smoothing: antialiased;
    color: var(--tfs-text);
}

.tfs-landing-wrapper h1,
.tfs-landing-wrapper .tfs-h1 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.tfs-landing-wrapper h2,
.tfs-landing-wrapper .tfs-h2,
.tfs-landing-wrapper .tfs-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 50px;
}

.tfs-landing-wrapper p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.page-id-30718 footer {
    /*background-color: #DAFE76 !important;*/
}

main#primary>p:last-child {
    display: none !important;
}

#primary {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#footer {
    margin-top: 0 !important;
}

.badge-master {
    display: inline-block;
    background-color: var(--tfs-pink);
    color: #ffffff;
    padding: 3px 15px;

    clip-path: polygon(0 0,
            calc(100% - 12px) 0,
            100% 12px,
            100% 100%,
            12px 100%,
            0 calc(100% - 12px));
}

.tfs-badge-course {
    display: inline-block;
    width: fit-content;
    background-color: var(--tfs-cyan);
    color: var(--tfs-white);
    padding: 4px 18px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 25px;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

/* ==================================================
       SECTION 1: HERO
       ================================================== */
.tfs-hero {
    position: relative;
    background-color: var(--tfs-blue);
    color: var(--tfs-white);
    border-radius: 1.25rem 1.25rem 1.25rem 0;
    /*min-height: 789px;*/
    padding: 5rem 0 2rem;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.tfs-hero__bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    z-index: 0;
    pointer-events: none;
}

.tfs-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(26, 17, 93, 1) 0%, rgba(26, 17, 93, 0.85) 40%, rgba(26, 17, 93, 0.30) 100%);
    z-index: 1;
}

.tfs-hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--tfs-container-width);
    margin: 0 auto;
    padding: 60px 40px;
}

/* Breadcrumbs */
.tfs-breadcrumbs {
    margin-bottom: 24px;
}

.tfs-breadcrumbs__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 300;
}

.tfs-breadcrumbs__item {
    display: flex;
    align-items: center;
}

.tfs-breadcrumbs__link {
    color: white;
    text-decoration: none;
    font-weight: 400;
    ;
    transition: color 0.2s ease;
}

.tfs-breadcrumbs__link:hover {
    color: var(--tfs-pink);
    text-decoration: underline;
}

.tfs-breadcrumbs__separator {
    color: white;
    font-size: 11px;
    user-select: none;
}

.tfs-breadcrumbs__current {
    color: var(--tfs-white);
    font-weight: 700;
}

.tfs-hero__badge {
    display: inline-block;
    background-color: var(--tfs-pink);
    color: var(--tfs-white);
    font-size: 16px;
    font-weight: 700;
    padding: 4px 10px;
    margin-bottom: 24px;
    letter-spacing: 0.04em;
}

.tfs-hero__title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.1;
    margin: 10px 0 24px;
    max-width: 576px;
    color: var(--tfs-pink);
}

.tfs-hero__title-accent {
    color: var(--tfs-white);
}

.tfs-hero__description {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    max-width: 576px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/**************************
.tfs-hero__cta {
    display: inline-flex;
    align-items: center;
    background-color: var(--tfs-pink);
    color: var(--tfs-white);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 15px 35px;
    border: 1px solid transparent;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.25s ease;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.tfs-hero__cta:hover {
   /* background-color: var(--tfs-blue);
    color: var(--tfs-white);
    transform: translateY(-2px);
    border-color: #ffffff;
    clip-path: none;
    outline: none;*/
/*
    background-color: var(--tfs-blue);
    color: var(--tfs-white);
    transform: translateY(-2px);
    border: 1px solid #ffffff !important;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}*************/

.tfs-hero__cta {
    --cut: 12px;
    --inner-cut: 11px;
    --border-size: 1px;

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

    padding: 15px 35px;
    color: var(--tfs-white);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    clip-path: none !important;

    isolation: isolate;
    overflow: visible;

    transition: color 0.25s ease, transform 0.25s ease;
}

.tfs-hero__cta::before,
.tfs-hero__cta::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
    transition: background-color 0.25s ease, opacity 0.25s ease;
}

/* Forma exterior */
.tfs-hero__cta::before {
    inset: 0;
    background-color: var(--tfs-pink);
    clip-path: polygon(0 0,
            calc(100% - var(--cut)) 0,
            100% var(--cut),
            100% 100%,
            var(--cut) 100%,
            0 calc(100% - var(--cut)));
}

/* Interior del botón en hover */
.tfs-hero__cta::after {
    inset: var(--border-size);
    opacity: 0;
    background-color: var(--tfs-blue);
    clip-path: polygon(0 0,
            calc(100% - var(--inner-cut)) 0,
            100% var(--inner-cut),
            100% 100%,
            var(--inner-cut) 100%,
            0 calc(100% - var(--inner-cut)));
}

.tfs-hero__cta:hover {
    color: var(--tfs-white);
    transform: translateY(-2px);
    background: transparent !important;
    border: 0 !important;
}

/* En hover, el exterior pasa a blanco */
.tfs-hero__cta:hover::before {
    background-color: var(--tfs-white);
}

/* Y aparece el interior azul, dejando visible la línea blanca */
.tfs-hero__cta:hover::after {
    opacity: 1;
}

.tfs-hero__decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 166px;
    height: 166px;
    z-index: 3;
    pointer-events: none;
}

.tfs-hero__decoration-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

@media (max-width: 1024px) {
    .tfs-hero__title {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .tfs-hero {
        min-height: auto;
        border-radius: 0;
        margin-top: 100px;
        padding-top: 10px !important;
    }

    .tfs-hero__bg-img {

        object-position: center center;
    }

    .tfs-hero__container {
        padding: 60px 20px;
    }

    .tfs-hero__title {
        font-size: 32px;
        text-align: center;
    }

    .tfs-hero__description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .tfs-hero__actions {
        text-align: center;
    }

    .tfs-hero__decoration {
        display: none;
    }

    .tfs-breadcrumbs__list {
        font-size: 12px;
    }
}

/* ==================================================
       SECTION 2: WHAT IS BIM
       ================================================== */
.tfs-what-is-bim {
    background-color: var(--tfs-white);
    padding: 80px 0;
}

.tfs-container {
    max-width: var(--tfs-container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.tfs-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.tfs-title {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
    color: var(--tfs-blue);
}

.tfs-description {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 40px;
    color: var(--tfs-blue);
}

.tfs-features {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 90%;
}

.tfs-feature-item {
    display: flex;
    gap: 20px;
}

.tfs-feature-icon {
    color: var(--tfs-pink);
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.tfs-feature-text strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--tfs-blue);
}

.tfs-feature-text p {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 300;
    color: var(--tfs-text-light);
}

.tfs-image-content {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 30px;
    /*height: 100%;*/
    /* height: 600px;*/
}

/*.tfs-image-content::after {
    content: "";
    position: absolute;
    inset: 0;
   background-color: var(--tfs-blue);
   mix-blend-mode: lighten;
    pointer-events: none;
    z-index: 1;
}*/

.tfs-image-content::after {
    display: none !important;
}

.tfs-office-img {
    /* width: 100%;*/
    /*height: 100%;*/
    object-fit: cover;
    display: block;

}

@media (max-width: 1024px) {
    .tfs-title {
        font-size: 38px;
    }

    .tfs-content-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .tfs-what-is-bim {
        padding: 20px 0;
    }

    .tfs-container {
        padding: 10px 20px;
    }

    .tfs-title {
        font-size: 32px;
        text-align: center;
    }

    .tfs-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .tfs-content-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .tfs-image-content {
        height: 400px;
    }
}

/* ==================================================
       SECTION 3: PROFILES (BIM Roles)
       ================================================== */
.tfs-profiles {
    background-color: var(--tfs-white);
    padding: 20px 0 60px;
}

.tfs-profiles__header {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 30px;
}

.tfs-profiles__subtitle {
    font-size: 16px;
    color: var(--tfs-blue);
    font-weight: 300;
    margin-top: 10px;
    display: block;
    opacity: 0.8;
}

.tfs-profiles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tfs-profile-card {
    background-color: var(--tfs-white);
    border-radius: 0 0 15px 15px;
    overflow: hidden;
    border: 1px solid #ececec;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tfs-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(26, 17, 93, 0.08);
}

.tfs-profile-card__image-box {
    height: 160px;
    position: relative;
    overflow: hidden;
}

/**.tfs-profile-card__image-box::after {
    content: "";
    position: absolute;
    inset: 0;
   background-color: var(--tfs-blue);
    mix-blend-mode: soft-light;
    pointer-events: none;
    z-index: 1;
}**/


.tfs-profile-card__image-box::after {
    display: none !important;
}

.tfs-profile-card__img {
    position: absolute;
    left: 0;
    width: 100%;
    object-fit: cover;
    z-index: 0;
}

.tfs-profile-card__img--modeler {
    height: 100%;
    top: 0;
}

.tfs-profile-card__img--coordinator {
    /*height: 147%;*/
    height: 100%;
    top: -6.5%;
}

.tfs-profile-card__img--manager {
    /*height: 117%;*/
    height: 100%;
    top: -4%;
}

.tfs-profile-card__content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tfs-profile-card__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--tfs-blue);
}

.tfs-profile-card__description {
    font-size: 14px;
    line-height: 1.6;
    font-weight: 300;
    color: var(--tfs-text-light);
    margin-bottom: 25px;
}

.tfs-profile-card__footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #ececec;
}

.tfs-profile-card__footer a:hover {
    color: #ff2c7d;
}

.tfs-profile-card__rec-label {
    font-size: 13px;
    font-weight: 300;
    display: block;
    margin-bottom: 5px;
    color: var(--tfs-blue);
}

.tfs-profile-card__rec-link {
    font-size: 13px;
    color: var(--tfs-blue);
    text-decoration: underline;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .tfs-profiles__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {

    .tfs-profiles {
        padding: 20px 0;
    }

    .tfs-profiles__grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* ==================================================
       SECTION 4: FORMATION (Master Card)
       ================================================== */
.tfs-formation {
    padding: 60px 0 100px 0;
    background-color: var(--tfs-white);
}

.tfs-formation__header {
    text-align: center;
    margin-bottom: 50px;
}

.tfs-formation__subtitle {
    font-size: 16px;
    color: var(--tfs-blue);
    font-weight: 300;
    margin-top: 10px;
    display: block;
    opacity: 0.8;
}

.tfs-formation-card,
.tfs-formation-card-2,
.tfs-formation-card-3,
.tfs-formation-card-4 {
    background-color: var(--tfs-blue);
    background-position: 0 0, 0px -138.8px;
    background-size: cover, 100% 158.5%;
    background-repeat: no-repeat;
    border-radius: 10px;
    padding: 80px 60px;
    color: var(--tfs-white);
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.tfs-formation-card {
    background-image: url('https://thefactoryschool.com/wp-content/uploads/2026/03/a7597a05cc4efc29892f3e58ff1970cba5d0fb6c.webp');
}

.tfs-formation-card-2 {
    background-image: url('https://thefactoryschool.com/wp-content/uploads/2026/04/a2acc03b429251fad26189d4b0e8ca871e51ac9e.webp');
}

.tfs-formation-card-3 {
    background-image: url('https://thefactoryschool.com/wp-content/uploads/2026/04/981f8b1b3349886a26d774c6db2d33210037cec7.webp');
}

.tfs-formation-card-4 {
    background-image: url('https://thefactoryschool.com/wp-content/uploads/2026/04/d7100f77f2056479c2eff8acab8f8fa3cbfc2818.webp');
}

.tfs-formation-card__title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 25px;
    max-width: 800px;
    line-height: 1.1;
}

.tfs-formation-card__description {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 300;
    margin-bottom: 30px;
    max-width: 650px;
    color: rgba(255, 255, 255, 0.95);
}

.tfs-formation-features {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    margin-bottom: 40px;
    padding-top: 0;
    border-top: none;
}

.tfs-formation-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tfs-formation-feature__icon {
    width: 44px;
    height: 44px;
    color: var(--tfs-pink);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tfs-formation-feature__icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.tfs-formation-feature__label-group {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.tfs-formation-feature__value {
    font-size: 14px;
    font-weight: 700;
    color: var(--tfs-white);
}

.tfs-formation-feature__label {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

.tfs-formation-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.tfs-formation__btn {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-radius: 5px;
    transition: all 0.3s ease;
    padding: 16px 36px;
    display: inline-block;
}

.tfs-formation__btn--primary {
    background-color: var(--tfs-pink);
    color: var(--tfs-white);
    border: 2px solid var(--tfs-pink);
}

.tfs-formation__btn--primary:hover {
    background-color: var(--tfs-blue);
    border-color: #ffffff;
    color: var(--tfs-white);
}

.tfs-formation__btn--outline {
    border: 2px solid var(--tfs-pink);
    color: var(--tfs-white);
}

.tfs-formation__btn--outline:hover {
    background-color: var(--tfs-pink);
}

@media (max-width: 1024px) {
    .tfs-formation-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }
}

@media (max-width: 768px) {

    .tfs-formation-card,
    .tfs-formation-card-2,
    .tfs-formation-card-3,
    .tfs-formation-card-4 {
        padding: 40px 20px;
    }

    .tfs-formation-card__title {
        font-size: 28px;
    }

    .tfs-formation-features {
        grid-template-columns: 1fr;
    }

    .tfs-formation-actions {
        flex-direction: column;
    }

    .tfs-formation-actions a {
        text-align: center;
    }
}

/* ==================================================
       SECTION 5: CURSOS DE ESPECIALIZACIÓN
       ================================================== */
.tfs-specialization {
    background: var(--tfs-blue);

    padding: 100px 0;
}

.tfs-specialization--light {
    background: var(--tfs-white);
}

.tfs-specialization__header {
    text-align: center;
    margin-bottom: 60px;
}

.tfs-specialization__title {
    color: var(--tfs-white);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.tfs-specialization--light .tfs-specialization__title {
    color: var(--tfs-white);
}

.tfs-specialization__subtitle {
    color: var(--tfs-white);
    display: block;
    font-size: 15px;
    font-weight: 300;
    opacity: 0.8;
}

.tfs-specialization--light .tfs-specialization__subtitle {
    color: var(--tfs-text-light);
    opacity: 1;
}

.tfs-specialization-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.tfs-course-card {
    background: var(--tfs-dark-blue);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    padding: 32px 28px 28px 28px;
    transition: all 0.25s ease;
}

.tfs-specialization--light .tfs-course-card {
    background: var(--tfs-white);
    border: 1px solid rgba(26, 17, 93, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.tfs-course-card:hover {
    border-color: var(--tfs-cyan);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.tfs-specialization--light .tfs-course-card:hover {
    box-shadow: 0 15px 35px rgba(26, 17, 93, 0.1);
}

.tfs-course-card__meta-item svg {
    stroke: var(--tfs-cyan);
}

.tfs-course-card__icon {
    margin-bottom: 20px;
    height: 48px;
    display: flex;
    align-items: center;
}

.tfs-course-card__icon img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.tfs-course-card__title {
    color: var(--tfs-white);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.tfs-specialization--light .tfs-course-card__title {
    color: var(--tfs-blue);
}

.tfs-course-card__description {
    color: var(--tfs-white);
    flex-grow: 1;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.7;
}

.tfs-specialization--light .tfs-course-card__description {
    color: var(--tfs-text-light);
    opacity: 1;
}

.tfs-course-card__meta {
    align-items: center;
    color: var(--tfs-white);
    display: flex;
    font-size: 13px;
    font-weight: 700;
    gap: 20px;
    margin-bottom: 20px;
}

.tfs-specialization--light .tfs-course-card__meta {
    color: var(--tfs-text-light);
}

.tfs-course-card__meta-item {
    align-items: center;
    display: flex;
    gap: 6px;
}

.tfs-course-card__meta-item img {
    height: 17px;
}

.tfs-course-card__meta-item svg {
    stroke: var(--tfs-cyan);
}

.tfs-course-card__divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    margin: 0 0 18px 0;
}

.tfs-specialization--light .tfs-course-card__divider {
    border-top: 1px solid rgba(26, 17, 93, 0.1);
}

.tfs-course-card__link {
    align-items: center;
    color: var(--tfs-white);
    display: flex;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    justify-content: flex-end;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease, gap 0.2s ease;
}

.tfs-specialization--light .tfs-course-card__link {
    color: var(--tfs-blue);
}

.tfs-course-card__link svg {
    transition: transform 0.2s ease;
}

.tfs-course-card:hover .tfs-course-card__link {
    color: var(--tfs-cyan);
    gap: 12px;
}

.tfs-course-card:hover .tfs-course-card__link svg {
    stroke: var(--tfs-cyan);
    transform: translateX(3px);
}




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

@media (max-width: 768px) {
    .tfs-specialization-grid {
        grid-template-columns: 1fr;
    }

    .tfs-specialization__title {
        font-size: 28px;
    }
}


/* ==================================================
       SECTION 6: RECURSOS Y GUÍAS (Slider)
       ================================================== */
.tfs-resources {
    padding: 50px 0;
    background-color: var(--tfs-white);
    overflow: hidden;
}

.tfs-resources__header {
    text-align: center;
    margin-bottom: 60px;
}

.tfs-resources__subtitle {
    font-size: 16px;
    color: var(--tfs-blue);
    font-weight: 300;
    margin-top: 10px;
    display: block;
    opacity: 0.8;
}

.tfs-resources__slider {
    padding-bottom: 60px;
    overflow: visible !important;
}

.swiper-slide {
    height: auto !important;
    display: flex;
    align-self: stretch;
}

.tfs-resource-card {
    background: var(--tfs-white);
    border: 1px solid var(--tfs-blue);
    border-radius: 15px;
    padding: 40px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.tfs-resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(26, 17, 93, 0.1);
}

.tfs-resource-card__icon {
    color: var(--tfs-pink);
    margin-bottom: 30px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tfs-resource-card__icon img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.tfs-resource-card__title {
    color: var(--tfs-blue);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 15px;
    /* Truncation at 3 lines with safe height */
    min-height: 82px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.tfs-resource-card__description {
    color: var(--tfs-text-light);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 25px;
    flex-grow: 1;
    /* Truncation at 5 lines with safe height */
    min-height: 112px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
}

.tfs-resource-card__link {
    color: var(--tfs-pink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    transition: gap 0.2s ease;
    margin-top: auto;
}

.tfs-resource-card__link:hover {
    gap: 14px;
    color: var(--tfs-blue);
}

.tfs-resources .swiper-pagination {
    position: relative !important;
    bottom: 0 !important;
    margin-top: 20px;
}

.tfs-resources .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: transparent;
    border: 1px solid #ccc;
    opacity: 1;
    margin: 0 6px !important;
    transition: all 0.3s ease;
}

.tfs-resources .swiper-pagination-bullet-active {
    background: var(--tfs-blue) !important;
    border-color: var(--tfs-blue) !important;
}

/* ==================================================
       SECTION 7: FAQ & CTA (Lime Green)
       ================================================== */
.tfs-faq-cta {
    background-color: #dafe76;
    padding: 100px 0 60px;
    font-family: var(--tfs-font);
}

.tfs-faq-box {
    background-color: var(--tfs-white);
    padding: 60px 80px;
    margin-bottom: 80px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.tfs-faq-box__title {
    color: var(--tfs-blue);
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.tfs-faq-box__subtitle {
    color: var(--tfs-blue);
    font-size: 16px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 50px;
    opacity: 0.8;
}

.tfs-accordion__item {
    border-bottom: 1px solid rgba(26, 17, 93, 0.2);
}

.tfs-accordion__item:last-child {
    border-bottom: none;
}

.tfs-accordion__header {
    list-style: none;
    padding: 24px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--tfs-blue);
    font-size: 20px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.tfs-accordion__header::-webkit-details-marker {
    display: none;
}

.tfs-accordion__header:hover {
    color: var(--tfs-pink);
}

.tfs-accordion__icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.tfs-accordion__icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--tfs-blue);
    stroke-width: 2;
}

.tfs-accordion__item[open] .tfs-accordion__icon {
    transform: rotate(180deg);
}

.tfs-accordion__content {
    padding-bottom: 24px;
    color: var(--tfs-text-light);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 300;
}

.tfs-cta-banner {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.tfs-cta-banner__title {
    color: var(--tfs-blue);
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tfs-cta-banner__subtitle {
    color: var(--tfs-blue);
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

.tfs-cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.tfs-btn {
    padding: 16px 36px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.tfs-btn--blue {
    background-color: var(--tfs-blue);
    color: var(--tfs-white);
    border: 2px solid var(--tfs-blue);
}

.tfs-btn--blue:hover {
    background-color: transparent;
    color: var(--tfs-blue);
}

.tfs-btn--outline {
    background-color: var(--tfs-white);
    color: var(--tfs-blue);
    border: 2px solid var(--tfs-blue);
}

.tfs-btn--outline:hover {
    background-color: var(--tfs-blue);
    color: var(--tfs-white);
}

.tfs-faq-footer {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.tfs-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--tfs-blue);
    font-size: 14px;
    font-weight: 700;
}

.tfs-footer-logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {

    .tfs-faq-cta {
        padding: 30px 0 30px;
    }

    .tfs-faq-box {
        padding: 60px 20px;

    }

}


/* ==================================================
       SECTION 6: WHY CHOOSE BIM
       ================================================== */
.tfs-why-bim {
    padding: 0 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
    font-family: var(--tfs-font);
    color: var(--tfs-blue);
}

.tfs-why-bim .tfs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.tfs-why-bim__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px auto;
}

.tfs-why-bim__title {
    font-size: 42px;
    font-weight: 700;
    color: var(--tfs-blue);
    margin-bottom: 25px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.tfs-why-bim__subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--tfs-text-light);
    font-weight: 400;
    margin: 0;
}

.tfs-why-bim__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.tfs-why-bim__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.tfs-why-bim__item:hover {
    transform: translateY(-5px);
}

.tfs-why-bim__icon {
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
    color: var(--tfs-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 44, 125, 0.05);
    border-radius: 20px;
    padding: 15px;
}

.tfs-why-bim__icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.2;
}

.tfs-why-bim__item-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--tfs-blue);
    margin-bottom: 15px;
    line-height: 1.2;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tfs-why-bim__item-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--tfs-text-light);
    font-weight: 400;
    margin: 0;
}

/* Responsivo */
@media (max-width: 1100px) {
    .tfs-why-bim__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 20px;
    }

    .tfs-why-bim__title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .tfs-why-bim__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tfs-why-bim {
        padding: 60px 0;
    }

    .tfs-why-bim__header {
        margin-bottom: 50px;
    }
}

@media (max-width: 480px) {
    .tfs-why-bim__grid {
        grid-template-columns: 1fr;
    }

    .tfs-why-bim__item-title {
        min-height: auto;
    }
}

/* ==================================================
       SECTION 4: MASTERS FEATURED (Dual Cards)
       ================================================== */
.tfs-masters-featured {
    padding: 60px 0 100px 0;
    background-color: var(--tfs-white);
}

.tfs-masters__header {
    text-align: center;
    margin-bottom: 50px;
}

.tfs-masters__subtitle {
    font-size: 16px;
    color: var(--tfs-blue);
    font-weight: 300;
    margin-top: 10px;
    display: block;
    opacity: 0.8;
}

.tfs-masters__intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.tfs-masters__intro-col p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--tfs-blue);
    margin-bottom: 20px;
}

.tfs-masters__intro-col p strong {
    font-weight: 700;
}

.tfs-masters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 100px;
}

.tfs-masters-grid--3 {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 100px;
}

.tfs-master-card,
.tfs-master-card--secondary {
    background-color: var(--tfs-blue);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 10px;
    padding: 45px 35px;
    color: var(--tfs-white);
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.tfs-master-card::before,
.tfs-master-card--secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 17, 93, 0.5) 0%, rgba(26, 17, 93, 0.8) 100%);
    z-index: 1;
}

.tfs-master-card>*,
.tfs-master-card--secondary>* {
    position: relative;
    z-index: 2;
}

/*
.tfs-master-card {
    background-image: url('https://thefactoryschool.com/wp-content/uploads/2026/03/a7597a05cc4efc29892f3e58ff1970cba5d0fb6c.webp');
}

.tfs-master-card--secondary {
    background-image: url('https://thefactoryschool.com/wp-content/uploads/2026/04/a2acc03b429251fad26189d4b0e8ca871e51ac9e.webp');
}*/

.tfs-master-card__title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    min-height: 100px;
}

.tfs-master-card__description:empty {
    display: none;
}

.tfs-master-card__description {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 300;
    min-height: 200px;
    margin-bottom: 15px;
}

.tfs-master-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    min-height: auto;
}

@media (max-width: 768px) {
    .tfs-master-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .tfs-masters-featured {
        padding: 20px 0 20px 0;

    }
}

.tfs-master-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tfs-master-feature__icon {
    width: 44px;
    height: 44px;
    color: var(--tfs-pink);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tfs-master-feature__icon img {
    width: 100%;
    height: auto;
}

.tfs-master-feature__label-group {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.tfs-master-feature__value {
    font-size: 14px;
    font-weight: 700;
    color: var(--tfs-white);
}

.tfs-master-feature__label {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

.tfs-master-actions {
    display: flex;
    gap: 20px;
    margin-top: auto;
}

.tfs-master-btn {
    margin-top: 30px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-radius: 5px;
    transition: all 0.3s ease;
    padding: 10px 20px;
    display: inline-block;
}

/*.tfs-master-btn--primary {
    background-color: var(--tfs-pink);
    color: var(--tfs-white);
    border: 1px solid transparent;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.tfs-master-btn--primary:hover {
    background-color: var(--tfs-blue);
    color: var(--tfs-white);
    border-color: #ffffff;
    clip-path: none;
    outline: none;
}*/

.tfs-master-btn {
    position: relative;
    z-index: 1;
    overflow: visible;
    border-radius: 0;
}

.tfs-master-btn--primary {
    background: var(--tfs-pink);
    color: var(--tfs-white);
    border: 0;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.tfs-master-btn--primary:hover {
    background: var(--tfs-white);
    color: var(--tfs-white);
    border: 0;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.tfs-master-btn--primary:hover::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    background: var(--tfs-blue);
    clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px));
}



/*.tfs-master-btn--cyan {
    background-color: var(--tfs-cyan);
    color: var(--tfs-white);
    border: 1px solid transparent;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.tfs-master-btn--cyan:hover {
    background-color: var(--tfs-pink);
    color: var(--tfs-white);
    border-color: #ffffff;
    clip-path: none;
    outline: none;
}*/

.tfs-master-btn--cyan {
    background: var(--tfs-cyan);
    color: var(--tfs-white);
    border: 0;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.tfs-master-btn--cyan:hover {
    background: var(--tfs-white);
    color: var(--tfs-white);
    border: 0;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.tfs-master-btn--cyan:hover::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    background: var(--tfs-blue);
    clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px));
}

@media (max-width: 1024px) {

    .tfs-masters-grid,
    .tfs-masters-grid--3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tfs-masters__intro-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tfs-master-card,
    .tfs-master-card--secondary {
        padding: 40px 20px;
    }

    .tfs-master-card__title {
        font-size: 26px;
    }

    .tfs-master-actions {
        flex-direction: column;
    }
}

/* ==================================================
       SECTION: ALUMNOS (Endorsements)
       ================================================== */
.tfs-alumnos {
    padding: 100px 0;
    background-color: var(--tfs-white);
}

.tfs-alumnos__header {
    text-align: center;
    margin-bottom: 80px;
}

.tfs-alumnos__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.tfs-alumnos__text {
    color: var(--tfs-blue);
}

.tfs-alumnos__text p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.tfs-alumnos__text strong {
    font-weight: 700;
}

.tfs-alumnos__logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.tfs-alumnos__logo-item {
    width: 100%;
    max-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tfs-alumnos__logo-item img {
    max-width: 100%;
    height: auto;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.tfs-alumnos__logo-item:hover img {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .tfs-alumnos__grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .tfs-alumnos__logos {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .tfs-alumnos {
        padding: 0px 0;
    }

    .tfs-alumnos__header {
        margin-bottom: 40px;
    }

    .tfs-alumnos__text p {
        font-size: 16px;
    }
}

/* ==================================================
       SECTION: FLUJO DE TRABAJO IA
       ================================================== */
.tfs-workflow {
    padding: 0 0 100px;
    background-color: var(--tfs-white);
}

.tfs-workflow__header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 80px auto;
}

.tfs-workflow__subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: var(--tfs-text-light);
    margin-top: 20px;
    display: block;
}

.tfs-workflow__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tfs-workflow-card {
    background: var(--tfs-white);
    border: 1px solid rgba(26, 17, 93, 0.2);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.tfs-workflow-card.custom {
    padding: 25px 30px 0 !important;
}

.tfs-workflow-card:hover {
    border-color: var(--tfs-pink);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(26, 17, 93, 0.08);
}

.tfs-workflow-card__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--tfs-blue);
    margin-bottom: 20px;
}

.tfs-workflow-card__desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--tfs-text-light);
    margin: 0;
}

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

@media (max-width: 768px) {
    .tfs-workflow {
        padding: 0px 0;
    }

    .tfs-workflow__header {
        margin-bottom: 40px;
    }

    .tfs-workflow__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ==================================================
       SECTION: POR QUÉ IA
       ================================================== */
.tfs-why-ia {
    padding: 0px 0 100px;
    background-color: var(--tfs-white);
}

.tfs-why-ia__header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 80px auto;
}

.tfs-why-ia__subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: var(--tfs-blue);
    opacity: 0.8;
    margin-top: 20px;
    display: block;
}

.tfs-why-ia__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
}

.tfs-why-ia__item {
    text-align: center;
    transition: transform 0.3s ease;
}

.tfs-why-ia__item:hover {
    transform: translateY(-5px);
}

.tfs-why-ia__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px auto;
    color: var(--tfs-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 44, 125, 0.05);
    border-radius: 20px;
    padding: 15px;
}

.tfs-why-ia__icon img {
    width: 100%;
    height: auto;
}

.tfs-why-ia__item-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--tfs-blue);
    margin-bottom: 15px;
    line-height: 1.2;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tfs-why-ia__item-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--tfs-text-light);
}

@media (max-width: 1200px) {
    .tfs-why-ia__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 20px;
    }
}

@media (max-width: 768px) {
    .tfs-why-ia {
        padding: 0 0;
    }

    .tfs-why-ia__header {
        margin-bottom: 50px;
    }

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

@media (max-width: 480px) {
    .tfs-why-ia__grid {
        grid-template-columns: 1fr;
    }
}

/*
.tfs-master-btn--cyan {
    background-color: var(--tfs-cyan);
    color: var(--tfs-white);
    border: 1px solid transparent;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.tfs-master-btn--cyan:hover {
    background-color: var(--tfs-blue);
    color: var(--tfs-white);
    border-color: #ffffff;
    clip-path: none;
}
*/

/************************************************CAJAS VERDES**********************************************************************************************/
.tfs-course-card-area {
    /*   background: var(--tfs-dark-blue);*/
    /*background: #e6e6e6;*/
    background: var(--tfs-blue);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    padding: 32px 28px 28px 28px;
    transition: all 0.25s ease;
    border-color: var(--tfs-blue);
}

.tfs-course-card-area:hover {
    border-color: var(--tfs-lime);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
    /*background: var(--tfs-white);*/
}

.tfs-specialization--light .tfs-course-card-area {
    background: var(--tfs-white);
    border: 1px solid rgba(26, 17, 93, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.tfs-specialization--light .tfs-course-card-area:hover {
    box-shadow: 0 15px 35px rgba(26, 17, 93, 0.1);
}

.tfs-course-card-area__meta-item svg {
    stroke: var(--tfs-blue);
}

.tfs-course-card-area__icon {
    margin-bottom: 20px;
    height: 48px;
    display: flex;
    align-items: center;
}

.tfs-course-card-area__icon img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.tfs-course-card-area__title {
    color: var(--tfs-white);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.tfs-specialization--light .tfs-course-card-area__title {
    color: var(--tfs-white);
}

.tfs-course-card-area__description {
    color: var(--tfs-white);
    flex-grow: 1;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.7;
}

.tfs-specialization--light .tfs-course-card-area__description {
    color: var(--tfs-text-light);
    opacity: 1;
}

.tfs-course-card-area__meta {
    align-items: center;
    color: var(--tfs-white);
    display: flex;
    font-size: 13px;
    font-weight: 700;
    gap: 20px;
    margin-bottom: 20px;
}

.tfs-specialization--light .tfs-course-card-area__meta {
    color: var(--tfs-text-light);
}

.tfs-course-card-area__meta-item {
    align-items: center;
    display: flex;
    gap: 6px;
}

.tfs-course-card-area__meta-item img {
    height: 17px;
}

.tfs-course-card-area__meta-item svg {
    stroke: var(--tfs-white);
}

.tfs-course-card-area__divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    margin: 0 0 18px 0;
}

.tfs-specialization--light .tfs-course-card-area__divider {
    border-top: 1px solid rgba(26, 17, 93, 0.1);
}

.tfs-course-card-area__link {
    align-items: center;
    color: var(--tfs-white);
    display: flex;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    justify-content: flex-end;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease, gap 0.2s ease;
}

.tfs-specialization--light .tfs-course-card-area__link {
    color: var(--tfs-lime);
}

.tfs-course-card-area__link svg {
    transition: transform 0.2s ease;
}

.tfs-course-card-area:hover .tfs-course-card-area__link {
    color: var(--tfs-lime) !important;

    gap: 12px;
}

.tfs-course-card:hover .tfs-course-card-area__link svg {
    stroke: var(--tfs-lime);
    transform: translateX(3px);
}

/***************************************************/


.tfs-specialization-area {
    background: var(--tfs-white);

    padding: 100px 0;
}

.tfs-specialization--light-area {
    background: var(--tfs-white);
}

.tfs-specialization__header-area {
    text-align: center;
    margin-bottom: 60px;
}

.tfs-specialization__title-area {
    color: var(--tfs-blue);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.tfs-specialization--light .tfs-specialization__title-area {
    color: var(--tfs-blue);
}

.tfs-specialization__subtitle-area {
    color: var(--tfs-blue);
    display: block;
    font-size: 15px;
    font-weight: 300;
    opacity: 0.8;
}

.tfs-specialization--light .tfs-specialization__subtitle-area {
    color: var(--tfs-text-light);
    opacity: 1;
}

.tfs-specialization-grid-area {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Swiper slider style overrides for Más áreas formativas */
.tfs-specialization-grid-area .swiper-slide {
    display: flex !important;
    align-items: stretch !important;
}

.tfs-specialization-grid-area .tfs-course-card-area {
    width: 100% !important;
    height: 100% !important;
}

@media (min-width: 769px) {
    .tfs-specialization-grid-area.swiper {
        overflow: visible;
    }

    .tfs-specialization-grid-area .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 25px !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .tfs-specialization-grid-area .swiper-slide {
        width: auto !important;
        height: auto !important;
    }

    .tfs-specialization-grid-area-pagination {
        display: none !important;
    }
}

@media (max-width: 768px) {

    .tfs-specialization-area {
        padding: 20px 0;
    }

    .tfs-specialization-grid-area.swiper {
        overflow: hidden !important;
    }

    .tfs-specialization-grid-area .swiper-wrapper {
        display: flex !important;
        flex-direction: row !important;
        gap: 0 !important;
    }
}

.tfs-specialization-grid-area-pagination {
    position: relative !important;
    bottom: auto !important;
    margin-top: 40px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tfs-specialization-grid-area-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: transparent;
    border: 1px solid #ccc;
    opacity: 1;
    margin: 0 6px !important;
    transition: all 0.3s ease;
}

.tfs-specialization-grid-area-pagination .swiper-pagination-bullet-active {
    background: var(--tfs-blue) !important;
    border-color: var(--tfs-blue) !important;
}