/*
 * Rediseño 2026 — Experiencias digitales / Slider v1.0.1
 * Figma: node 237:470
 */

.r26-exp-slider,
.r26-exp-slider * {
    box-sizing: border-box;
}

.r26-exp-slider {
    --r26-exp-container: 1177px;
    --r26-exp-slide: 1062px;
    --r26-exp-gap: 80px;
    /*
     * El módulo puede estar insertado dentro del contenedor de 1177px de WPBakery.
     * Lo sacamos a ancho de viewport para que el cálculo del margen izquierdo del
     * slider parta siempre del viewport, igual que en Figma (nodo 237:470).
     */
    position: relative;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    background: #fff;
    color: #151515;
}

.r26-exp-slider__header {
    width: min(var(--r26-exp-container), calc(100% - 40px));
    margin: 0 auto;
    padding: 128px 0 64px;
}

.r26-exp-slider__heading {
    margin: 0 !important;
    padding: 0 !important;
    font-family: "Autography", sans-serif !important;
    font-size: 64px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 74px !important;
    letter-spacing: 0 !important;
    color: #151515 !important;
    text-transform: none !important;
}

.r26-exp-slider__viewport-wrap {
    width: calc(100vw - max(20px, calc((100vw - var(--r26-exp-container)) / 2)));
    margin-left: max(20px, calc((100vw - var(--r26-exp-container)) / 2));
    overflow: hidden;
}

.r26-exp-slider__viewport {
    width: 100%;
    overflow: hidden;
    outline: none;
}

.r26-exp-slider__track {
    display: flex;
    align-items: stretch;
    gap: var(--r26-exp-gap);
    width: max-content;
    transform: translate3d(0, 0, 0);
    transition: transform 520ms cubic-bezier(.22,.61,.36,1);
    will-change: transform;
}

.r26-exp-slider__slide {
    flex: 0 0 var(--r26-exp-slide);
    width: var(--r26-exp-slide);
    height: 678px;
    display: flex;
    align-items: stretch;
    min-width: 0;
}

.r26-exp-slider__media {
    position: relative;
    flex: 0 0 711px;
    width: 711px;
    height: 678px;
    overflow: hidden;
    border-radius: 5px 0 0 5px;
    background: #f5f5f5;
}

.r26-exp-slider__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.r26-exp-slider__panel {
    flex: 0 0 351px;
    width: 351px;
    min-width: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 60px;
    border-radius: 0 5px 5px 0;
    background: #f5f5f5;
}

.r26-exp-slider__copy {
    width: 100%;
}

.r26-exp-slider__title {
    margin: 0 0 32px !important;
    padding: 0 !important;
    font-family: "Futura PT", "Futura_PT", Futura, sans-serif !important;
    font-size: 36px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 39px !important;
    letter-spacing: -0.72px !important;
    color: #000 !important;
    text-transform: none !important;
}

.r26-exp-slider__text,
.r26-exp-slider__text p,
.r26-exp-slider__text li {
    font-family: "Futura PT", "Futura_PT", Futura, sans-serif !important;
    font-size: 20px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 28px !important;
    letter-spacing: 0 !important;
    color: #000 !important;
}

.r26-exp-slider__text p {
    margin: 0 0 20px !important;
}

.r26-exp-slider__text p:last-child,
.r26-exp-slider__text > *:last-child {
    margin-bottom: 0 !important;
}

.r26-exp-slider__text a {
    color: inherit !important;
    text-decoration: underline;
}

.r26-exp-slider__button {
    min-height: 49px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 18px;
    margin-top: 32px;
    background: #151515;
    color: #fff !important;
    text-decoration: none !important;
    font-family: "Futura PT", "Futura_PT", Futura, sans-serif !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: 15px !important;
    letter-spacing: 0.32px !important;
    white-space: nowrap;
    transition: background-color 180ms ease, color 180ms ease;
}

.r26-exp-slider__button:hover,
.r26-exp-slider__button:focus-visible {
    background: #8e0027;
    color: #fff !important;
}

.r26-exp-slider__button-icon {
    display: block;
    width: 16px;
    height: 16px;
    max-width: none;
    flex: 0 0 16px;
}

.r26-exp-slider__controls {
    width: min(var(--r26-exp-container), calc(100% - 40px));
    margin: 0 auto;
    padding-top: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.r26-exp-slider__arrow {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #f5f5f5;
    cursor: pointer;
    appearance: none;
    transition: background-color 180ms ease, opacity 180ms ease;
}

.r26-exp-slider__arrow img {
    display: none;
}

/*
 * El PNG original de Figma es blanco. Lo reutilizamos como máscara para
 * mantener exactamente la geometría del icono, pero con el color del diseño.
 */
.r26-exp-slider__arrow::before {
    content: "";
    display: block;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    background-color: #2E2D2C;
    -webkit-mask: url("../img/chevron.png") center / 32px 32px no-repeat;
    mask: url("../img/chevron.png") center / 32px 32px no-repeat;
}

.r26-exp-slider__arrow--prev::before {
    transform: rotate(90deg);
}

.r26-exp-slider__arrow--next::before {
    transform: rotate(-90deg);
}

.r26-exp-slider__arrow:hover:not(:disabled),
.r26-exp-slider__arrow:focus-visible:not(:disabled) {
    background: #e9e9e9;
}

.r26-exp-slider__arrow:disabled {
    opacity: .35;
    cursor: default;
}

.r26-exp-slider__arrow:focus-visible,
.r26-exp-slider__viewport:focus-visible {
    outline: 2px solid #151515;
    outline-offset: 2px;
}

@media (max-width: 1279px) {
    .r26-exp-slider {
        --r26-exp-gap: 32px;
        --r26-exp-slide: calc(100vw - 64px);
    }

    .r26-exp-slider__header,
    .r26-exp-slider__controls {
        width: calc(100% - 64px);
    }

    .r26-exp-slider__viewport-wrap {
        width: calc(100vw - 32px);
        margin-left: 32px;
    }

    .r26-exp-slider__slide {
        height: clamp(520px, 56vw, 678px);
    }

    .r26-exp-slider__media {
        flex: 0 0 66.95%;
        width: 66.95%;
        height: 100%;
    }

    .r26-exp-slider__panel {
        flex: 1 1 33.05%;
        width: auto;
        padding: clamp(32px, 4vw, 60px);
    }
}

@media (max-width: 991px) {
    .r26-exp-slider__header {
        padding: 88px 0 48px;
    }

    .r26-exp-slider__heading {
        font-size: clamp(48px, 6.5vw, 64px) !important;
        line-height: 1.12 !important;
    }

    .r26-exp-slider__title {
        font-size: 30px !important;
        line-height: 34px !important;
    }

    .r26-exp-slider__text,
    .r26-exp-slider__text p,
    .r26-exp-slider__text li {
        font-size: 18px !important;
        line-height: 25px !important;
    }
}

@media (max-width: 767px) {
    .r26-exp-slider {
        --r26-exp-gap: 20px;
        --r26-exp-slide: calc(100vw - 40px);
    }

    .r26-exp-slider__header,
    .r26-exp-slider__controls {
        width: calc(100% - 40px);
    }

    .r26-exp-slider__header {
        padding: 64px 0 32px;
    }

    .r26-exp-slider__heading {
        font-size: clamp(40px, 12vw, 54px) !important;
        line-height: 1.08 !important;
    }

    .r26-exp-slider__viewport-wrap {
        width: calc(100vw - 20px);
        margin-left: 20px;
    }

    .r26-exp-slider__slide {
        height: auto;
        min-height: 0;
        flex-direction: column;
    }

    .r26-exp-slider__media {
        flex: none;
        width: 100%;
        height: auto;
        aspect-ratio: 1.35 / 1;
        border-radius: 5px 5px 0 0;
    }

    .r26-exp-slider__panel {
        flex: none;
        width: 100%;
        min-height: 360px;
        padding: 32px 24px;
        border-radius: 0 0 5px 5px;
    }

    .r26-exp-slider__title {
        margin-bottom: 24px !important;
        font-size: 30px !important;
        line-height: 33px !important;
    }

    .r26-exp-slider__button {
        margin-top: 28px;
    }

    .r26-exp-slider__controls {
        padding-top: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .r26-exp-slider__track,
    .r26-exp-slider__button,
    .r26-exp-slider__arrow {
        transition: none !important;
    }
}
