/**
 * Cooper Suite: Text Image Cooper Widget Styles
 */

.cooper-text-image-wrapper {
    width: 100%;
    box-sizing: border-box;
    position: relative;
    padding-top: 80px;
    padding-bottom: 80px;
    padding-left: 20px;
    padding-right: 20px;
}

.cooper-text-image-inner {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.cooper-text-image-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
    width: 100%;
    box-sizing: border-box;
}

/* Invertir posición de imagen a la izquierda */
.cooper-text-image-wrapper.pos-left .cooper-text-image-container {
    flex-direction: row-reverse;
}

/* Columna de Texto */
.cooper-text-image-content-col {
    flex: 1 1 calc(100% - var(--cooper-img-col-width, 50%));
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cooper-text-image-eyebrow {
    display: inline-block;
    color: #c8102e;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.1px;
    text-transform: uppercase;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.cooper-text-image-heading {
    color: #111827;
    font-size: 48px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -1px;
    margin: 0 0 16px 0;
}

.cooper-text-image-desc {
    color: #5C5C5C;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.3px;
    margin: 0 0 26px 0;
    max-width: 540px;
}

.cooper-text-image-btn-box {
    margin-top: 4px;
    width: 100%;
    display: flex;
}

.cooper-text-image-btn-box.align-left {
    justify-content: flex-start;
}

.cooper-text-image-btn-box.align-center {
    justify-content: center;
}

.cooper-text-image-btn-box.align-right {
    justify-content: flex-end;
}

.cooper-text-image-btn-box.align-justify,
.cooper-text-image-btn-box.is-full-width {
    justify-content: stretch;
}

/* Columna de Imagen */
.cooper-text-image-media-col {
    flex: 0 0 var(--cooper-img-col-width, 50%);
    max-width: var(--cooper-img-col-width, 50%);
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cooper-text-image-img-wrap {
    position: relative;
    width: 100%;
    max-width: 580px;
    aspect-ratio: 1.13 / 1;
    overflow: hidden;
    background-color: #f1f5f9;
    transition: transform 0.3s ease;
}

.cooper-text-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* FORMA ESCALONADA COOPER (NOTCH / STEPPED CLIP-PATH) */
.cooper-text-image-wrapper.has-cooper-notch .cooper-text-image-img-wrap {
    clip-path: polygon(
        0% var(--cooper-notch-top-offset, 8.8%),
        var(--cooper-notch-top-step, 40.5%) var(--cooper-notch-top-offset, 8.8%),
        var(--cooper-notch-top-step, 40.5%) 0%,
        100% 0%,
        100% calc(100% - var(--cooper-notch-bot-offset, 11.2%)),
        var(--cooper-notch-bot-step, 64%) calc(100% - var(--cooper-notch-bot-offset, 11.2%)),
        var(--cooper-notch-bot-step, 64%) 100%,
        0% 100%
    );
    -webkit-clip-path: polygon(
        0% var(--cooper-notch-top-offset, 8.8%),
        var(--cooper-notch-top-step, 40.5%) var(--cooper-notch-top-offset, 8.8%),
        var(--cooper-notch-top-step, 40.5%) 0%,
        100% 0%,
        100% calc(100% - var(--cooper-notch-bot-offset, 11.2%)),
        var(--cooper-notch-bot-step, 64%) calc(100% - var(--cooper-notch-bot-offset, 11.2%)),
        var(--cooper-notch-bot-step, 64%) 100%,
        0% 100%
    );
}

/* ANIMACIÓN ESCALONADA DE ENTRADA EN IMAGEN (BOX UP STEPPED REVEAL) */
.cooper-text-image-wrapper.has-image-entrance.has-js-driver .cooper-text-image-img-wrap {
    background-color: transparent;
}

.cooper-text-image-wrapper.has-image-entrance.has-js-driver .cooper-text-image-img {
    will-change: clip-path;
}

/* ==========================================================================
   BOTÓN COOPER (Split block with text + arrow box)
   ========================================================================== */

.cooper-text-image-wrapper .cooper-btn-link {
    display: inline-flex;
    align-items: stretch;
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
    background: transparent;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
    gap: var(--cooper-btn-gap, 3px);
}

.cooper-text-image-wrapper .cooper-btn-link.is-full-width {
    width: 100%;
}

.cooper-text-image-wrapper .cooper-btn-link.is-full-width .cooper-btn-text {
    flex: 1 1 auto;
    justify-content: center;
}

.cooper-text-image-wrapper .cooper-btn-text {
    display: inline-flex;
    align-items: center;
    background-color: #c8102e;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.2px;
    padding: 10px 18px;
    border-radius: 0;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

.cooper-text-image-wrapper .cooper-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #c8102e;
    color: #ffffff;
    width: 40px;
    border-radius: 0;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
    flex-shrink: 0;
}

.cooper-text-image-wrapper .cooper-btn-icon svg {
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    width: 15px;
    height: 15px;
    transition: transform 0.25s ease;
}

.cooper-text-image-wrapper .cooper-btn-icon i {
    transition: transform 0.25s ease;
}

/* Flecha animaciones */
.cooper-text-image-wrapper .cooper-btn-link.anim-slide-right:hover .cooper-btn-icon svg,
.cooper-text-image-wrapper .cooper-btn-link.anim-slide-right:hover .cooper-btn-icon i {
    transform: translateX(var(--cooper-btn-arrow-shift, 4px));
}

.cooper-text-image-wrapper .cooper-btn-link.anim-slide-diagonal:hover .cooper-btn-icon svg,
.cooper-text-image-wrapper .cooper-btn-link.anim-slide-diagonal:hover .cooper-btn-icon i {
    transform: translate(var(--cooper-btn-arrow-shift, 3px), calc(-1 * var(--cooper-btn-arrow-shift, 3px)));
}

.cooper-text-image-wrapper .cooper-btn-link.anim-scale:hover .cooper-btn-icon svg,
.cooper-text-image-wrapper .cooper-btn-link.anim-scale:hover .cooper-btn-icon i {
    transform: scale(1.15);
}

.cooper-text-image-wrapper .cooper-btn-link:hover .cooper-btn-text,
.cooper-text-image-wrapper .cooper-btn-link:hover .cooper-btn-icon {
    background-color: #a00c24;
}

/* ==========================================================================
   RESPONSIVE: WIDESCREEN (1920px+)
   ========================================================================== */

@media (min-width: 1920px) {
    .cooper-text-image-eyebrow {
        font-size: 16px;
    }

    .cooper-text-image-heading {
        font-size: 66px;
        line-height: 1.1;
    }

    .cooper-text-image-desc {
        font-size: 24px;
    }

    .cooper-text-image-wrapper .cooper-btn-text {
        font-size: 18px;
        padding: 12px 22px;
    }

    .cooper-text-image-wrapper .cooper-btn-icon {
        width: 50px;
    }
}

/* ==========================================================================
   RESPONSIVE: TABLET (1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    .cooper-text-image-wrapper {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .cooper-text-image-container {
        gap: 40px;
    }

    .cooper-text-image-heading {
        font-size: 38px;
    }
}

/* ==========================================================================
   RESPONSIVE: MÓVIL (767px)
   ========================================================================== */

@media (max-width: 767px) {
    .cooper-text-image-wrapper {
        padding-top: 45px;
        padding-bottom: 50px;
        padding-left: 4vw;
        padding-right: 4vw;
    }

    .cooper-text-image-container,
    .cooper-text-image-wrapper.pos-left .cooper-text-image-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 36px;
    }

    .cooper-text-image-content-col {
        width: 100%;
        flex: 1 1 100%;
    }

    .cooper-text-image-media-col {
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
    }

    .cooper-text-image-eyebrow {
        font-size: 3.5vw;
    }

    .cooper-text-image-heading {
        font-size: 8vw;
        line-height: 1.1;
    }

    .cooper-text-image-desc {
        font-size: 4.6vw;
        line-height: 1.4;
        margin-bottom: 22px;
    }

    .cooper-text-image-wrapper .cooper-btn-text {
        font-size: 4.2vw;
        padding: 12px 20px;
    }

    .cooper-text-image-wrapper .cooper-btn-icon {
        width: 48px;
    }

    .cooper-text-image-img-wrap {
        max-width: 100%;
    }
}

