.pilares-section {
    display: flex;
    padding: 80px 0;
    justify-content: center;
    align-items: center;
    gap: 70px;
}

.pilares-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    flex-shrink: 0;
}

.pilares-nav .title p {
    color: var(--Brand-Colors-Turquoise-00, #00AEC7);

    font-family: "Encode Sans";
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.72px;
}

.pilares-nav .title p strong {
    color: var(--Complementary-Colors-Green-00, #69BE28);
    font-weight: 700;
}

.pilares-nav .disclaimer {
    display: none;
    max-width: 300px;
}

.pilares-nav .disclaimer p {
    color: var(--Brand-Colors-Blue-00, #1B365D);

    font-family: Lato;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
}

.pilares-tabs-nav {
    display: flex;
    width: 335px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.tab-button {
    cursor: pointer;
    display: flex;
    padding: 15px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;

    border-radius: 8px;
    background: #FFF;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.10);

    transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.tab-button[data-tab="1"].active {
    background: var(--Complementary-Colors-Green-00, #69BE28);
}

.tab-button[data-tab="2"].active {
    background: var(--Brand-Colors-Blue-00, #1B365D);
}

.tab-button[data-tab="3"].active {
    background: var(--Brand-Colors-Turquoise-00, #00AEC7);
}

.tab-button[data-tab="1"] .iconTab {color: var(--Complementary-Colors-Green-00, #69BE28);}
.tab-button[data-tab="2"] .iconTab {color: var(--Brand-Colors-Blue-00, #1B365D);}
.tab-button[data-tab="3"] .iconTab {color: var(--Brand-Colors-Turquoise-00, #00AEC7);}

.tab-label-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-label-container i {
    text-align: center;
    font-family: "Font Awesome 6 Pro";
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.48px;
}

.tab-label p,
.tab-button i {
    transition: color 0.3s ease;
}

.tab-label p {
    color: var(--Brand-Colors-Blue-00, #1B365D);

    font-family: "Encode Sans";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.4px;
}

.tab-button.active .tab-label p {
    color: var(--White--Background-White, #FFF);
}

.tab-button.active i {
    color: var(--White--Background-White, #FFF) !important;
}


.tab-panel {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease-out, transform 0.35s ease-out;
    position: absolute;
    visibility: hidden;
}

.tab-panel.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    visibility: visible;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 29px;
}

.card-sostenibilidad {
    display: flex;
    padding: 32px 24px;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    align-self: stretch;

    border-radius: 18px;
    background:#F7F7F7;
}

.card-label-container {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: stretch;
}

.card-label-container i {
    font-family: "Font Awesome 6 Pro";
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.48px;
}

.tab-panel[data-tab="1"] i,
.tab-panel[data-tab="1"] .card-text p strong {
  color: var(--Complementary-Colors-Green-00, #69BE28);
}

.tab-panel[data-tab="2"] i,
.tab-panel[data-tab="2"] .card-text p strong {
  color: var(--Brand-Colors-Blue-00, #1B365D);
}

.tab-panel[data-tab="3"] i,
.tab-panel[data-tab="3"] .card-text p strong {
  color: var(--Brand-Colors-Turquoise-00, #00AEC7);
}

.card-label p {
    color: var(--Complementary-Colors-Green-00, #69BE28);
    font-family: "Encode Sans";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.4px;
}

.tab-panel[data-tab="2"] .card-label p{
    color: var(--Brand-Colors-Blue-00, #1B365D);
}

.tab-panel[data-tab="3"] .card-label p{
    color: var(--Brand-Colors-Turquoise-00, #00AEC7);
}

.card-text p {
    color: var(--Brand-Colors-Blue-00, #1B365D);
    font-family: Lato;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}


@media (max-width: 768px) {
    .pilares-section {
        padding: 30px 15px 0 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        align-self: stretch;
    }

    .pilares-nav {
        width: 100%;
    }

    .pilares-nav .title {
        margin-bottom: 0 !important;
    }

    .pilares-nav .title p {
        font-size: 28px;
        line-height: 32px;
        letter-spacing: -0.56px;
    }

    .pilares-nav .disclaimer p {
        font-size: 14px;
        font-weight: 400;
        line-height: 18px;
    }

    .pilares-tabs-nav {
        width: 100%;
    }

    .tab-button {
        display: flex !important;
        width: 100%;
        border-radius: 8px; 
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.10); /* Sombra estándar */
        transition: border-radius 0.3s ease;
    }

    .tab-button.active {
        border-radius: 8px 8px 0 0;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.10); 
    }

    .tab-label p {
        font-size: 16px;
        line-height: normal;
        letter-spacing: -0.32px;
    }

    .card-label p {
        font-size: 16px;
        line-height: normal;
        letter-spacing: -0.32px;
    }

    .card-text p {
        font-size: 14px;
        line-height: 18px;
    }

    .tab-panel {
        position: static !important;
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
        display: none;
        width: 100%;
        background: #FFF;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.10);
        padding: 16px;
        margin-top: -16px;
        z-index: 1;
    }

    /* Mostramos el panel cuando está activo */
    .tab-panel.active {
        display: flex !important;
        gap: 0;
    }

    /* Opcional: Ajustamos las tarjetas internas para que no se vean dobles cajas */
    .card-sostenibilidad {
        box-shadow: none;
        padding: 16px 8px;
        background: transparent;
    }

    /* Rotación de la flechita */
    .tab-button i.fa-circle-chevron-right {
        transition: transform 0.3s ease;
    }
    .tab-button.active i.fa-circle-chevron-right {
        transform: rotate(90deg); /* La flecha apunta hacia abajo al abrir */
    }
}