.ejes-section {
    background-color: var(--color-white);
    /* #FFFFFF */
    padding-top: 96px;
    padding-bottom: 160px;
    width: 100%;
}

.ejes-container {
    max-width: 1512px;
    margin: 0 auto;
    padding-left: 100px;
    padding-right: 100px;
}

/* --- CABECERA --- */
.ejes-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px auto;
}

.ejes-tag {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 24px;
    letter-spacing: 0.15px;
    color: #9EA5B3;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.ejes-main-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 48px;
    letter-spacing: 0px;
    color: var(--color-primary);
}

/* --- LAYOUT MULTICOLUMNA --- */
.ejes-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

/* --- COLUMNA IZQUIERDA (CONTENIDOS) --- */
.ejes-left-col {
    display: flex;
    flex-direction: column;
    /* width: min(416px, 100%); */
}

.eje-item {
    border-bottom: 1px solid rgba(30, 45, 76, 0.1);
    padding: 40px 0;
    cursor: pointer;
    transition: all 0.4s ease;
}

/* Último eje no lleva borde inferior */
.eje-item:last-child {
    border-bottom: none;
    /* Margen inferior para que el último eje pueda scrollearse cómodamente en pantalla */
    margin-bottom: 100px;
}

.eje-header-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 16px;
}

/* Números */
.eje-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 28px;
    line-height: 150%;
    letter-spacing: 0px;
    color: rgba(30, 45, 76, 0.4);
    transition: color 0.4s ease;
}

/* Título */
.eje-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 150%;
    letter-spacing: 0px;
    color: rgba(30, 45, 76, 0.4);
    /* Opacidad reducida por defecto */
    transition: color 0.4s ease;
}

/* Caja de descripción colapsada por defecto */
.eje-body-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 64px;
    /* Alineación con el título */
}

/* Descripción */
.eje-description {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.4px;
    color: #666666;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.eje-card-img {
    display: none;
}

.ejes-fab {
    display: none;
}

/* --- ESTADOS ACTIVOS (Scroll, Hover o Click) --- */
.eje-item.active .eje-number {
    color: var(--color-primary);
    /* #1E2D4C */
}

.eje-item.active .eje-title {
    color: var(--color-primary);
}

.eje-item.active .eje-body-content {
    max-height: 150px;
    /* Expande la descripción */
}

.eje-item.active .eje-description {
    opacity: 1;
}

/* --- COLUMNA DERECHA (STICKY IMAGES) --- */
.ejes-right-col {
    position: sticky;
    top: 150px;
    /* Se queda fija a esta distancia del tope superior de pantalla */
    height: 450px;
}

.ejes-sticky-wrapper {
    position: relative;
    width: min(784px, 100%);
    height: 324px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(30, 45, 76, 0.15);
}

/* Las imágenes se apilan y el crossfade se maneja con opacity */
.eje-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.eje-img.active {
    opacity: 1;
    z-index: 2;
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .ejes-container {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 1200px) {
    .ejes-container {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 900px) {
    .ejes-container {
        padding: 0 10px;
    }

    .ejes-layout {
        gap: 40px;
        grid-template-columns: 2fr 2fr;
    }
}

@media (max-width: 768px) {

    .eje-title {
        font-size: 20px;
    }

    .ejes-sticky-wrapper {
        height: 260px;
    }

    .eje-header-row {
        align-items: start;
        gap: 20px;
    }

    .eje-body-content {
        padding-left: 52px;
    }

    .ejes-section {
        padding-bottom: 0px;
    }
}


@media (max-width: 500px) {
    .ejes-section {
        padding-bottom: 120px;
    }

    .ejes-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ejes-right-col {
        display: none;
    }

    .ejes-left-col {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .eje-item {
        border-bottom: 1px solid rgba(30, 45, 76, 0.1);
        padding: 0 0 24px;
        cursor: default;
    }

    .eje-item.active .eje-body-content {
        max-height: none;
    }

    .eje-item.active .eje-description {
        opacity: 1;
    }

    .eje-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin-bottom: 8px;
    }

    .eje-number {
        font-size: 24px;
    }

    .eje-title {
        font-size: 18px;
        color: var(--color-primary);
    }

    .eje-body-content {
        max-height: none;
        padding-left: 0;
        overflow: visible;
    }

    .eje-description {
        opacity: 1;
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 16px;
    }

    .eje-card-img {
        display: block;
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 16px;
    }

    .eje-item:last-child {
        margin-bottom: 0;
    }

    .ejes-fab {
        display: flex;
        align-items: center;
        justify-content: center;
        position: sticky;
        bottom: 24px;
        z-index: 50;
        margin: 24px auto 0;
        width: fit-content;
        min-width: 200px;
        padding: 14px 28px;
        background-color: #4CA845;
        color: #FFFFFF;
        font-family: 'Roboto', sans-serif;
        font-weight: 500;
        font-size: 16px;
        line-height: 20px;
        letter-spacing: 0.2px;
        text-align: center;
        text-decoration: none;
        border-radius: 100px;
        box-shadow: 0 4px 20px rgba(76, 168, 69, 0.4);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .ejes-fab:active {
        transform: scale(0.97);
    }
}