/* EXC RSE Section Styles */

:root {
    --rse-primary: #003B89;
    --rse-black: #000A1D;
    --rse-bg: #F7F7F4;
    --rse-white: #ffffff;
    --rse-btn-bg: #003B89;
}

/* Container principal */
.exc-rse {
    width: 100%;
    position: relative;
    overflow: hidden; 
    background-color: var(--rse-white); 
}

/* Fondo para la parte izquierda que no llega al borde */
.exc-rse::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 65%; 
    height: 100%;
    background-color: var(--rse-bg);
    z-index: 0;
}

/* MAIn conainer */
.exc-rse__container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    min-height: 100%;
    position: relative;
}

/* Left Container + ancho */
.exc-rse__left {
    flex: 0 0 65%;
    display: flex;
    flex-direction: column;
    padding: 60px 0 0 60px; 
    position: relative;
    z-index: 1;
    overflow: visible;
}

/* Header: Subtitle + titulo */
.exc-rse__header {
    margin-bottom: 32px;
}

/* Subtitulo */
.exc-rse__subtitle {
    color: var(--rse-primary);
    font-family: 'Archivo', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 1.44px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 16px;
}

/* Titulo Principal */
.exc-rse__title {
    color: var(--rse-black);
    font-family: 'Archivo', sans-serif;
    font-size: 48px;
    font-style: normal;
    font-weight: 600;
    line-height: 130%;
    letter-spacing: 1.44px;
    margin: 0;
    /* max-width: 700px; */
}

/* Content: Descr,lgoo and img */
.exc-rse__content {
    display: flex;
    align-items: flex-end;
    flex: 1;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto; /* Empuja el contenido hacia abajo */
}

/* Contenedor texto y logo */
.exc-rse__text-logo {
    display: flex;
    flex-direction: column;
    width: 401px;
    flex-shrink: 0;
    padding-right: 24px;
    align-self: stretch;
    position: relative;
    z-index: 2; 
    /* gap: 92px; */
}

/* Descripción */
.exc-rse__description {
    color: var(--rse-black);
    font-family: 'Archivo', sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 300;
    line-height: 130%;
    letter-spacing: 0.44px;
    margin: 0;
}

/* Logo */
.exc-rse__logo {
    margin-top: auto;
    /* margin-bottom: 20px; */
}

.exc-rse__logo img {
    width: 200px;
    height: auto;
}

/* imagen Principal - pegada al borde del contenedor gris */
.exc-rse__image {
    width: 55%; 
    height: 340px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: transparent; 
    margin-left: auto;
    margin-right: -15px;
    position: relative;
    z-index: 1; 
}

.exc-rse__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
    min-height: 100%; 
}

/* Right Container - fondo blanco extendido hasta el borde derecho */
.exc-rse__right {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px 60px 90px 90px;
    position: relative;
    z-index: 1;
    overflow: hidden; 
    box-sizing: border-box; 
}

/* cards Slider */
.exc-rse__cards-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
}

/* Card individual */
.exc-rse__card {
    display: none;
    flex-direction: column;
    gap: 12px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.exc-rse__card.is-active {
    display: flex;
}

/* Icono de la card */
.exc-rse__card-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 12px;
}

.exc-rse__card-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* title de la card */
.exc-rse__card-title {
    color: var(--rse-primary);
    font-family: 'Archivo', sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 120%;
    margin: 0 0 8px 0;
    word-wrap: break-word;
    max-width: 100%;
    overflow-wrap: break-word;
}

/* descripcion */
.exc-rse__card-description {
    color: var(--rse-black);
    font-family: 'Archivo', sans-serif;
    font-size: 22px;
    font-weight: 300;
    line-height: 130%;

}

/* Navegaccion */
.exc-rse__nav {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    width: 100%;
    max-width: 100%;
}

/* Botns nav */
.exc-rse__btn {
    display: flex;
    width: 36px;
    height: 36px;
    padding: 8px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: var(--rse-btn-bg);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}


.exc-rse__btn:hover,
.exc-rse__btn:focus,
.exc-rse__btn:active {
    background: var(--rse-btn-bg) !important;
    transform: scale(1.05);
}

.exc-rse__btn svg {
    width: 12px;
    height: 10px;
}

.exc-rse__btn svg path {
    fill: var(--rse-white);
}


@media (min-width: 1600px) {
    .exc-rse__image {
        margin-right: -34px;
    }
}

@media (min-width: 1800px) {
    .exc-rse__image {
        margin-right: -74px;
    }
}

@media (min-width: 2000px) {
    .exc-rse__image {
        margin-right: -94px;
    }
}


@media (max-width: 1200px) {
    .exc-rse::before {
        width: 100%; /* gris en toda pantalla sup */
        height: auto;
        bottom: 50%;
    }
    
    .exc-rse__container {
        flex-direction: column;
        padding: 0;
    }

    .exc-rse__left {
        flex: 1;
        width: 100%;
        padding: 40px;
        overflow: visible;
    }

    .exc-rse__right {
        flex: 1;
        width: 100%;
        padding: 40px;
    }
    
    .exc-rse__content {
        width: 100%;
        display: flex;
        flex-direction: column;
        height: auto; /* reseteo altura fija */
    }

    .exc-rse__image {
        position: relative;
        width: 100%;
        max-width: 480px;
        right: auto;
        bottom: auto;
        height: auto;
        aspect-ratio: 480/340; /* proporcion */
        margin: 30px 0 0 0;
        border-radius: 12px;
    }
    
    .exc-rse__text-logo {
        width: 100%;
        max-width: 100%;
    }
}


@media (max-width: 1024px) {
    .exc-rse::before {
        width: 100%;
        height: auto;
        bottom: 40%;
    }
    
    .exc-rse__container {
        flex-direction: column;
        padding: 0;
    }

    .exc-rse__left {
        flex: 1;
        width: 100%;
        padding: 40px;
        overflow: visible;
    }
    
    .exc-rse__content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .exc-rse__text-logo {
        width: 100%;
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 24px;
    }

    .exc-rse__image {
        position: relative;
        width: 100%;
        max-width: 500px;
        height: auto;
        aspect-ratio: 480/340;
        margin: 20px auto 0 auto;
        border-radius: 12px;
    }

    .exc-rse__right {
        flex: 1;
        width: 100%;
        padding: 40px;
    }
    
    .exc-rse__card {
        align-items: flex-start;
        text-align: left;
    }
    
    .exc-rse__card-icon {
        margin-left: 0;
    }
    
    .exc-rse__card-title {
        text-align: left;
    }
    
    .exc-rse__card-description {
        text-align: left;
    }
    
    .exc-rse__nav {
        justify-content: flex-start;
        flex-direction: row;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .exc-rse {
        overflow-x: hidden;
    }
    
    .exc-rse::before {
        bottom: 45%;
    }
    
    .exc-rse__left {
        padding: 30px 20px;
    }

    .exc-rse__subtitle {
        font-size: 18px;
    }
    
    .exc-rse__title {
        font-size: 22px;
        line-height: 120%;
        letter-spacing: 2%;
    }

    .exc-rse__description {
        font-size: 16px;
    }

    .exc-rse__logo img {
        max-width: 180px;
        margin-top: 24px;
    }
    
    .exc-rse__image {
        max-width: 400px;
        height: 220px;
    }

    .exc-rse__right {
        padding: 30px 20px;
    }
    
    .exc-rse__card-description {
        font-size: 14px;
    }
}
