.video-background {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    background: black;
    z-index: 0;
    top: -16px;
}

.video-background.border-bottom-radius {
    border-radius: 0 0 16px 16px;
}

.video-background.border-radius {
    border-radius: 16px;
}

@media (min-width: 992px) {
    .video-foreground {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        pointer-events: none;
        transform: translate(-50%, -50%);
    }

    .video-foreground iframe {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 177.78vh; /* 100 * (16/9) → mantiene proporción de YouTube */
        height: 100vh;
        transform: translate(-50%, -50%);
        border: 0;
    }
}

.video-box-iframe,
iframe {
    border-radius: 16px;
}

.video-box-iframe {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
}

.video-box-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.video-box {
    position: relative;
    width: 100%;
    height: auto;
}

.fila-same-height-1 img {
    height: 218px;
    object-fit: contain;
    z-index: 1;
    position: relative;
}

.fila-same-height-2 img,
.fila-same-height-2 .video-box {
    display: block;
    height: 400px;
    object-fit: cover;
}

.fila-same-height-2 .d-flex {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
}

.video-ajustable-fila {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 16px;
    background: black;
}

.video-ajustable-fila .video-foreground iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.corner-img1 {
    position: absolute;
    bottom: -260px;
    left: 215px;
    width: 220px;
    height: auto !important;
    pointer-events: none;
    z-index: 0;
}

.corner-img2 {
    position: absolute;
    bottom: -90px;
    right: 80px;
    width: 200px;
    height: auto !important;
    pointer-events: none;
    z-index: 0;
}

.corner-img3 {
    position: absolute;
    bottom: -50px;
    right: 0px;
    width: 200px;
    height: auto !important;
    pointer-events: none;
    z-index: 1;
}

.blockquote {
    background: var(--color-grey);
    border-radius: 16px;
    padding: 15px;
}

.seccion-estrategia iframe.vertical {
    height: 100%;
    width: auto;
}

.seccion-estrategia iframe.horizontal {
    height: 100%;
    width: 100%;
}

@media (max-width: 991px) {
    .fila-same-height-1 img,
    .fila-same-height-2 img,
    .fila-same-height-2 video,
    .fila-same-height-2 iframe {
        margin-bottom: 25px;
        width: 100% !important;
        height: auto !important;
    }
    .corner-img1,
    .corner-img2,
    .corner-img3 {
        display: none !important;
    }
    .video-background {
        height: auto;
    }
    iframe {
        width: 100%;
        height: 240px;
    }

    .seccion-estrategia iframe.vertical,
    .seccion-estrategia iframe.horizontal {
        height: auto;
        width: 100%;
    }
}
