.animales-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 100px;
}

.animales-section .container-animales {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.title-biodiversidad {
    color: var(--Brand-Colors-Blue-00, #1B365D);
    text-align: center;

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

.title-biodiversidad .highlight {color: var(--Complementary-Colors-Green-00, #69BE28);}

.animales-tabs-container {
    display: flex;
    align-items: center;
    gap: 32px;
}

.animal-tab-button {
    display: flex;
    height: 53px;
    padding: 15px;
    justify-content: center;
    align-items: center;
    gap: 16px;

    border-radius: 8px;
    border: 1px solid var(--Brand-Colors-Blue-00, #1B365D);
    background: var(--White--Background-White, #FFF);
}

.logo-animal {
    color: var(--Brand-Colors-Blue-00, #1B365D);
    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;
}

.animal-tab-button .tab-label {
    color: var(--Brand-Colors-Blue-00, #1B365D);
    font-family: "Encode Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.32px;
}

.animales-body {
    display: flex;
    align-items: flex-start;
    gap: 37px;
    align-self: stretch;
}

.animales-subtabs-container {
    display: flex;
    max-width: 220px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.animal-subtab-button {
    display: flex;
    padding: 11px;
    /*justify-content: center;*/
    align-items: center;
    gap: 11px;
    align-self: stretch;
    border-radius: 8px;
    background: var(--White--Background-Background, #F7F7F7);
}


.animal-subtab-button .subtab-label {
    color: var(--Brand-Colors-Blue-00, #1B365D);
    font-family: Lato;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
}

.animal-card-container {
    display: flex;
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    flex: 1 0 0;
    border-radius: 20px;
    background: var(--White--Background-Background, #F7F7F7);
}

.imagen-animal {
    display: flex;
    width: 335px;
    height: 245px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 44.57%, #000 100%), lightgray 50% / cover no-repeat;
}

.animal-info-container .text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    flex: 1 0 0;
}

.animal-info-container {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    align-self: stretch;
}

.animal-titles {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
}

.animal-name {
    color: var(--Complementary-Colors-Green-00, #69BE28);
    font-family: "Encode Sans";
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.72px;
}

.preocupacion-label {
    color: var(--Brand-Colors-Turquoise-00, #00AEC7);
    font-family: "Encode Sans";
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.4px;
}

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

.amenazas-container {
    display: flex;
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    align-self: stretch;
    border-radius: 8px;
    background: var(--Complementary-Colors-Green-00, #69BE28);  
}

.amenazas-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.amenazas-label i {
    color: var(--White--Background-White, #FFF);
    text-align: center;
    font-family: "Font Awesome 6 Pro";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.4px;
}

.amenazas-label span {
    color: var(--White--Background-White, #FFF);
    font-family: Lato;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
}

.amenazas-text {
    color: var(--White--Background-White, #FFF);
    font-family: Lato;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
}


/* Clases para la visualizacion de contenido segun tab y subtab */

.animal-tab-button,
.animal-subtab-button {
    cursor: pointer;
    transition: all 0.3s ease;
}

.animal-tab-button.active {
    background: var(--Complementary-Colors-Green-00, #69BE28);
    border: none;
}

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

.animal-subtab-button.active {
    background: var(--Brand-Colors-Turquoise-00, #00AEC7);
}

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

.animal-subtab-button {
    display: none; 
}

.animal-card-container {
    display: none; 
}

@media (max-width: 768px) {
    .animales-section {
        display: flex;
        padding: 0 15px;
        margin-bottom: 0;
    }

    .animales-section .container-animales { gap: 18px; max-width: 100%;}

    .title-biodiversidad {
        font-size: 28px;
        text-align: start;
        line-height: 32px;
        letter-spacing: -0.56px;
    }

    .animales-tabs-container {
        gap: 16px;
        overflow-x: auto;
    }

    .animal-tab-button {
        height: 39px;
        padding: 10px;
    }

    .logo-animal {
        font-size: 16px;
    }

    .animal-tab-button .tab-label {
        font-size: 14px;
        letter-spacing: -0.32px;
        white-space: nowrap;
    }

    .animales-body {
        flex-direction: column;
        max-width: 100vw;
        gap: 18px;
    }

    .animales-body div:first-child {
        overflow-x: auto;
        width: 100%;
    }

    .animales-subtabs-container {
        flex-direction: row;
        max-width: 100%;
        gap: 0;
        align-items: center;
    }

    .animal-subtab-button {
        display: flex;
        background: none;
        padding: 16px 20px;
        justify-content: center;
        align-items: center;
        align-self: auto;
        gap: 0;
        border-radius: 0;
    }

    .animal-subtab-button.active {
        background: none;
        border-bottom: 1.3px solid var(--Brand-Colors-Turquoise-00, #00AEC7);
    }

    .animal-subtab-button .subtab-label {
        color: var(--Complementary-Colors-Black-50, #A1A1A1);
        white-space: nowrap;
        font-size: 12px;
        line-height: normal;
    }

    .animal-subtab-button.active .subtab-label {
        color: var(--Brand-Colors-Turquoise-00, #00AEC7);
    }

    .animal-card-container {
        max-width: 100%;
    }

    .animal-info-container {
        flex-direction: column;
    }

    .animal-info-container .text-container { gap: 8px; }

    .animal-titles { gap: 4px; }

    .imagen-animal {
        width: 100%;
        height: auto;
    }

    .animal-name {
        font-size: 20px;
        letter-spacing: -0.4px;
    }

    .preocupacion-label {
        font-size: 16px;
        line-height: 20px;
        letter-spacing: -0.4px;
    }

    .animal-description {
        font-size: 14px;
        line-height: 18px;
    }

}