/* Página Formación para la compra-venta de empresas */

.vt-formacion-page {
    background: #fff;
    color: var(--color-primary, #1f2c54);
}

.vt-formacion-container {
    width: min(100% - 32px, var(--container-max-width, 1140px));
    margin: 0 auto;
}

.vt-formacion-container--narrow {
    max-width: 760px;
}

.vt-formacion-container--cards {
    max-width: 900px;
}

.vt-formacion-hero {
    background: var(--color-primary, #1f2c54);
    padding: 52px 0 55px;
    text-align: center;
}

.vt-formacion-hero h1 {
    margin: 0;
    color: #fff;
    font-family: var(--font-heading, 'Lato', sans-serif);
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.vt-formacion-intro {
    padding: 35px 0 30px;
    text-align: center;
}

.vt-formacion-intro p {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    color: #4b4b4b;
}

.vt-formacion-intro .vt-formacion-note {
    margin-top: 15px;
    color: #8a8a8a;
    font-size: 13px;
    font-style: italic;
    line-height: 1.45;
}

.vt-formacion-webinars {
    padding: 0 0 48px;
}

.vt-webinar-card {
    display: grid;
    grid-template-columns: 43% 57%;
    min-height: 205px;
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 14px rgba(31, 44, 84, 0.15);
}

.vt-webinar-copy {
    padding: 25px 26px 22px 29px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vt-webinar-copy h2 {
    margin: 0 0 10px;
    color: var(--color-primary, #1f2c54);
    font-family: var(--font-heading, 'Lato', sans-serif);
    font-size: 22px;
    line-height: 1.02;
    font-weight: 800;
}

.vt-webinar-copy h2 span {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
}

.vt-webinar-copy p {
    margin: 0;
    color: #4d4d4d;
    font-size: 13px;
    line-height: 1.25;
}

.vt-webinar-video {
    position: relative;
    min-height: 205px;
    background: #d8edf4;
}

.vt-webinar-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.vt-webinar-video-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #d8edf4;
    cursor: pointer;
    overflow: hidden;
}

.vt-webinar-video-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vt-webinar-video-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.08);
    transition: background .2s ease;
}

.vt-webinar-video-cover:hover::after,
.vt-webinar-video-cover:focus-visible::after {
    background: rgba(0, 0, 0, 0.16);
}

.vt-webinar-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 62px;
    height: 44px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.78);
    transform: translate(-50%, -50%);
}

.vt-webinar-play::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 52%;
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 15px solid #fff;
    transform: translate(-50%, -50%);
}

.vt-formacion-cta {
    margin-top: 14px;
    margin-bottom: 30px;
    background: var(--color-secondary, #01a0de);
    text-align: center;
}

.vt-formacion-cta-inner {
    padding: 30px 20px 31px;
}

.vt-formacion-cta h2 {
    margin: 0;
    color: #fff;
    font-family: var(--font-heading, 'Lato', sans-serif);
    font-size: clamp(1.3rem, 2.4vw, 1.75rem);
    font-weight: 800;
}

.vt-formacion-cta p {
    margin: 5px 0 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.vt-formacion-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 18px;
    border-radius: 2px;
    background: var(--color-primary, #1f2c54);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 700;
    transition: transform .2s ease, opacity .2s ease;
}

.vt-formacion-cta-button:hover,
.vt-formacion-cta-button:focus {
    color: #fff !important;
    opacity: .92;
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    .vt-formacion-hero {
        padding: 38px 0 40px;
    }

    .vt-formacion-hero h1 br {
        display: none;
    }

    .vt-formacion-intro {
        padding: 28px 0 24px;
    }

    .vt-formacion-intro p {
        font-size: 14px;
    }

    .vt-formacion-intro .vt-formacion-note br {
        display: none;
    }

    .vt-webinar-card {
        grid-template-columns: 1fr;
        margin-bottom: 22px;
    }

    .vt-webinar-copy {
        padding: 24px 22px;
    }

    .vt-webinar-copy h2 {
        font-size: 21px;
    }

    .vt-webinar-video {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .vt-formacion-cta {
        width: calc(100% - 24px);
        margin-left: auto;
        margin-right: auto;
    }
}
