/* - Resets - */
html {
    scroll-behavior: smooth;
}

#main-content {
    padding: 0 !important;
}

#featured-title,
.fit-vids-style {
    display: none;
}

.formacion-profesional-page {
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    h1, h2, h3, h4, h5, h6 {
        text-transform: initial !important; 
    }
    
    h2 {
        font-size: 32px;
        line-height: 1.2em;
        text-align: center;
        margin-bottom: 42px;
    }   

    ul {

        li {
            color: var(--text-black);
        }
    }
}

/* - Hero - */
.hero-formacion-profesional {
    position: relative;
    padding: 140px 0;

    /* Background */
    .hero-formacion-profesional-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: gray;

        .hero-formacion-profesional-background-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    /* Container */
    .hero-formacion-profesional-container {
        position: relative;
        display: flex;
        justify-content: space-between;
        color: var(--text-black);
    }

    .hero-formacion-profesional-subcontainer {
        max-width: 650px;
    }

    .hero-formacion-profesional-title {
        font-size: 42px;
        line-height: 1.2em;
        color: var(--text-black);
        margin-bottom: 12px;
    }

    .hero-formacion-profesional-modalidad {
        font-size: 24px;
        color: #777777;
        margin-bottom: 32px;
    }

    .hero-formacion-profesional-subtitle {
        font-size: 24px;
        line-height: 1.4em;
        max-width: 440px;
    }
        
    .hero-formacion-profesional-cta {
        position: absolute;
        bottom: 50px;
        right: 50px;

        span {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-black);
            text-align: center;
            background-color: #FDEDCF;
        }
    }
}

/* - Why - */
.why-formacion-profesional {

    .why-formacion-profesional-cards {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
    }

    .why-formacion-profesional-card {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        background-color: var(--color-light-gray);
        width: 100%;
        max-width: calc(50% - 8px);
        border-radius: 4px;
        padding: 32px;

        .why-formacion-profesional-card-icon {
            max-width: 70px;
        }

        .why-formacion-profesional-card-text {
            font-size: 24px;
            text-align: center;
            width: 100%;
            margin: 0;
        }
    }
}

/* - Target Audience - */
.target-audience-formacion-profesional {
    background-color: var(--color-super-light-yellow-patita);

    .target-audience-formacion-profesional-body {
        display: flex;
        justify-content: center;
        gap: 80px;
    }

    .target-audience-formacion-profesional-cards-destinatarios {
        position: relative;

        &::after {
            content: '';
            position: absolute;
            top: 5%;
            right: -41px;
            width: 2px;
            height: 90%;
            background-color: var(--color-yellow-patita);
        }
    }
}

/* - What you will learn - */
.what-you-will-learn {

    .what-you-will-learn-title {
        margin-bottom: 62px;
    }

    .what-you-will-learn-cards {
        display: flex;
        flex-wrap: wrap;
        gap: 52px 24px;
    }

    .what-you-will-learn-card {
        position: relative;
        width: 100%;
        max-width: calc(25% - 18px);
        background-color: var(--color-light-gray);
        border-radius: 4px;
        padding: 42px 24px 24px;

        .what-you-will-learn-card-number {
            position: absolute;
            top: 0;
            left: 20px;
            transform: translate(50%, -50%);
            font-size: 54px;
            color: var(--color-yellow-patita);
        }

        h3 {
            font-size: 24px;
            line-height: 1.2em;
        }

        p {
            color: var(--text-black);
            margin-bottom: 0;
        }
    }
}

/* - Modalidad Cursada - */
.modalidad-cursada {

    .modalidad-cursada-wrapper-desktop {

        /* Mobile */
        @media only screen and (max-width: 767px) {
            display: none;
        }
    }

    .modalidad-cursada-title {
        margin-bottom: 18px;
    }

    .modalidad-cursada-copy {
        display: block;
        text-align: center;
        max-width: 920px;
        margin: 0 auto 42px;
    }

    .modalidad-cursada__index {
        display: flex;
        justify-content: center;
        gap: 32px;
        overflow: hidden;
        margin-bottom: 24px;
    }

    .tab-link {
        position: relative;
        font-size: 24px;
        line-height: 32px;
        background-color: var(--color-light-gray);
        padding: 12px 36px;
        cursor: pointer;
        transition: .2s linear;

        &:hover,
        &.active {
            color: var(--color-white);
            background-color: var( --color-dark-gray);
            transition: .2s linear;
        }
    }
    
    .tab-content {
        display: none;
        opacity: 0;
        transition: opacity 0.2s ease;

        &.active {
            display: block;
            opacity: 1;
        }

        &.active.fade-out {
            opacity: 0;
        }

        &.active.entering {
            opacity: 0;
        }

        .tab-content-container {
            display: flex;
            justify-content: center;
            gap: 24px;
        }

        .tab-content-subcontainer {
            background-color: var(--color-yellow-patita-light-background);
            width: 100%;
            padding: 24px 32px;

            .tab-content-subcontainer-title-container {
                display: flex;
                align-items: center;
                gap: 12px;
                margin-bottom: 16px;

                h4 {
                    margin-bottom: 0;
                }

                img {
                    max-height: 60px;
                }
            }

            p {
                color: var(--text-black);
    
                &:first-child {
                    font-size: 20px;
                    font-weight: 700;
                    line-height: 24px;
                    margin-bottom: 12px;
                }
            }

            ul {
                list-style: none;
                padding-left: 0;
                margin: 0;
            }

            ul li {
                padding-left: 1.75em;
                position: relative;
            }

            ul li::before {
                content: '';
                position: absolute;
                left: 0;
                top: 0.2em;
                width: 1.1em;
                height: 1.1em;
                background-image: url('../icons/icon-tick.svg');
                background-size: contain;
                background-repeat: no-repeat;
            }
        }
    }

    .modalidad-cursada-wrapper-mobile {
        display: none;

        div {
            margin-bottom: 32px;
        }

        h3 {
            font-size: 20px;
            line-height: 24px;
            margin-bottom: 12px;
        }

        /* Mobile */
        @media only screen and (max-width: 767px) {
            display: block;
        }
    }

    .modalidad-cursada__cta {
        margin: 24px auto 0;
    }
}

/* - Temario Docentes - */
.temario-docentes {
    background-color: var(--color-super-light-yellow-patita);

    .temario-docentes__container {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 80px;
        padding: 0 80px;

        h2 {
            margin-bottom: 24px;
        }
    }

    /* Temario */
    .temario-docentes__temario {
        width: 100%;
    }

    .temario-docentes__temario-title {
        text-align: left;
    }

    .temario-docentes__temario-list {

        li {
            font-size: 18px;
        }
    }

    .temario-docentes__temario-cta {
        margin-top: 32px;
    }

    /* Cuerpo Docente */
    .temario-docentes__docentes {
        width: 100%;
        max-width: 450px;
    }

    .temario-docentes__slider-wrap {
        position: relative;
    }

    .temario-docentes__slider {
        background-color: var(--color-yellow-patita-light-background);
    }

    .temario-docentes__slider-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        color: var(--color-yellow-patita);
        margin-top: 0;

        &::after {
            font-weight: bold;
        }

        &.temario-docentes__slider-nav--prev {
            left: -50px;
        }

        &.temario-docentes__slider-nav--next {
            right: -50px;
        }
    }

    .temario-docentes__slider-card {
        padding: 24px 32px;
        max-width: 100%;
    }

    .temario-docentes__slider-card-header {
        position: relative;
        display: flex;
        align-items: center;
        gap: 24px;
        margin-bottom: 24px;
    }

    .temario-docentes__slider-card-header-link {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .temario-docentes__slider-card-header-name {
        margin-bottom: 0;
    }

    .temario-docentes__slider-card-header-role {
        font-size: 20px;
        font-weight: 500;
        margin-bottom: 0;
    }

    .temario-docentes__slider-card-header-image {
        border-radius: 50%;
        max-width: 100px;
    }

    .temario-docentes__slider-card-body {

        ul {
            margin-bottom: 0;

            li {
                margin-bottom: 4px;

                &:last-child {
                    margin-bottom: 0;
                }
            }
        }
    }
}

/* - Videos Formacion Profesional - */
.video-formacion-profesional {

    .video-formacion-profesional-video {
        display: flex;
        justify-content: center;
        margin-bottom: 40px;
        
        &:last-child {
            margin-bottom: 0;
        }
    }
    
}

/* - Video Full Width - */
.video-full-width {
    background-color: var(--color-super-light-purple-patita);

    .video-full-width-header {
        margin-bottom: 32px;

        .video-full-width-title {
            color: var(--color-white);
        }
    }

    .video-full-width-video {
        display: flex;
        justify-content: center;

        iframe {
            margin: 0;
        }
    }
}

/* - FAQs - */
.faqs {

    .faqs-faq {
        width: 100%;
        margin-bottom: 12px;

        &:last-child {
            margin-bottom: 0;
        }

        details {
            box-sizing: border-box;
    
            &[open] {
    
                summary {
                    color: var(--text-black);
                    background-color: var(--color-super-light-yellow-patita);
                    transition: .2s linear;

                    &::after {
                        transform: translate(-50%, 1000%) rotate(90deg);
                        opacity: 0;
                        transition: .2s linear;
                    }
                }
            }
        }

        summary {
            list-style: none;
            box-sizing: border-box;
            position: relative;
            background-color: var(--color-light-gray);
            border-radius: 16px;
            outline: none;
            width: 100%;
            padding: 26px 102px;
            transition: .2s linear;
            cursor: pointer;
            transition: .2s linear;
    
            span {
                display: block;
                max-width: 88%;
            }
    
            &::marker {
                content: ''; /* Hide default marker */
            }

            &::-webkit-details-marker {
                display: none; /* Safari: hide native arrow */
            }
    
            &::before,
            &::after {
                content: '';
                position: absolute;
                top: 50%;
                right: 102px;
                display: block;
                width: 18px;
                height: 1px;
                opacity: 1;
                transition: .2s linear;
            }
    
            &::before {
                transform: translate(-50%, -50%) rotate(0);
            }
    
            &::after {
                transform: translate(-50%, -50%) rotate(90deg);
            }
    
            &:focus,
            &:hover {
                color: var(--color-slick-yellow);
                border-color: black;
                transition: .2s linear;
            }

            /* Tablet */
            @media only screen and (max-width: 992px) {
                padding: 16px 26px;
    
                &::before,
                &::after {
                    right: 26px;
                }
            }
        }

        .faqs-faq-answer {
            padding: 12px 42px 24px;
            margin: 0 !important;
    
            /* Mobile */
            @media only screen and (max-width: 767px) {
                padding: 18px;
            }
    
            p {
                font-size: 18px;
                margin-bottom: 20px;
            }
    
            a {
                color: var(--color-yellow-patita);
                transition: .2s linear;
    
                &:hover {
                    color: var(--color-yellow-patita-darkened);
                    transition: .2s linear;
                }
            }
        }
    }
}

/* - Testimonials - */
.testimonials-formacion-profesional {
    background-color: var(--color-super-light-yellow-patita);
        
    .testimonials-formacion-profesional-slider {
        position: relative;
        padding: 20px 0 40px;

        .swiper-wrapper {
            align-items: center;
        }
    }
    
    .testimonial-card {
        display: flex;
        align-items: center;
        gap: 60px;
        width: 100%;
        max-width: 80%;
        height: 100%;
        margin: 0 auto;
    }
    
    .testimonial-text-container {
        flex-grow: 1;
        margin-bottom: 24px;
    }

    .testimonial-text {
        font-size: 20px;
        font-style: italic;
        position: relative;
        margin: 0;

        &::before {
            content: '"';
            font-size: 3em;
            color: var(--color-yellow-patita);
            position: absolute;
            top: -30px;
            left: -30px;
            font-family: Georgia, serif;
        }
    }
    
    .author-image {
        width: 180px;
        height: 180px;
        border-radius: 50%;
        overflow: hidden;
        flex-shrink: 0;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
    
    .author-name {
        font-size: 18px;
        font-weight: 700;
        color: #2c3e50;
        margin: 18px 0 0;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        color: var(--color-yellow-patita);

        &::after {
            font-weight: bold;
        }
    }

    .swiper-pagination {
        bottom: 0;

        .swiper-pagination-bullet {
            width: 12px;
            height: 12px;
            background: #dee2e6;
            opacity: 1;
            transition: all 0.3s ease;
        }
        
        .swiper-pagination-bullet-active {
            background: var(--color-yellow-patita);
        }
    }
    
    /* Mobile */
    @media (max-width: 768px) {

        .testimonials-formacion-profesional {
            padding: 60px 0;
        }
        
        .testimonial-card {
            padding: 24px;
        }
        
        .swiper-button-next,
        .swiper-button-prev {
            width: 40px;
            height: 40px;
        }
        
        .swiper-button-next::after,
        .swiper-button-prev::after {
            font-size: 16px;
        }
    }
    
    @media (max-width: 480px) {
        .testimonials-formacion-profesional-container {
            padding: 0 15px;
        }
        
        .testimonials-title {
            font-size: 1.75rem;
        }
        
        .testimonial-card {
            padding: 20px;
        }
        
        .author-image {
            width: 50px;
            height: 50px;
        }
    }
}

/* - Inscription - */
.inscripcion-cursada {

    .inscripcion-cursada-promo-lanzamiento {
        display: flex;
        gap: 12px;
        align-items: center;
        justify-content: center;
        margin-bottom: 32px;

        svg {
            max-width: 60px;
        }

        p {
            font-weight: 700;
            color: var(--text-black);
            margin-bottom: 0;
        }
    }

    .inscripcion-cursada-methods {
        display: flex;
        justify-content: center;
        gap: 80px;

        a {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 100%;
            max-width: 380px;
            background-color: var(--color-light-gray);
            border-radius: 4px;
            padding: 32px;
            transition: .2s linear;

            &:hover {
                box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.3);
                transition: .2s linear;

                span {
                    color: var(--color-yellow-patita-darkened);
                    transition: .2s linear;
                }
            }

            span {
                display: block;
                color: var(--color-yellow-patita);
                margin-top: 12px;
            }
        }
    }
} 

/* - Contact Info - */
.contact-info {
    background-color: #6e6d6f;
    padding-top: 10px;
    padding-bottom: 10px;

    .contact-info__container {
        display: flex;
        justify-content: center;
        gap: 80px;
    }

    .contact-info__item {
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--color-white);
        font-weight: 500;
        margin: 0;

        img {
            max-width: 30px;
        }
    }

    a {
        opacity: 1;
        transition: .2s linear;
            
        &:hover {
            opacity: .7;
            transition: .2s linear;
        }
    }
}