:root {
    --gradient-img: linear-gradient(0deg, rgba(31, 27, 62, 0.90) 20%, rgba(31, 27, 62, 0.00) 55%);
}


#bbb2024 {
    background: url(../img/BBB-bg-mobile.jpg) no-repeat center top,
        var(--dark-green);
    background-size: contain;
}

@media screen and (min-width: 768px) {
    #bbb2024 {
        background: url(../img/BBB-bg-desktop.jpg) no-repeat center top,
            var(--dark-green);
    }
}

.bbb-section-desktop {
    display: none;
}

@media screen and (min-width: 768px) {
    .bbb-section-mobile {
        display: none;
    }

    .bbb-section-desktop {
        display: block;
    }
}




.bbb-section {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

@media screen and (min-width: 768px) {
    .bbb-section {
        flex-direction: row;
        gap: 50px;
    }

}

.bbb-section__main {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.bbb-section__placa {
    display: flex;
    flex-direction: column;
    gap: 140px;
}

@media screen and (min-width: 768px) {
    .bbb-section__placa {
        gap: 0;
        border-radius: 20px;
        border: 1px solid #FFF;
    }
}

/* header */

.bbb-section-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

@media screen and (min-width: 768px) {
    .bbb-section-header {
        align-items: flex-end;
        flex-direction: row-reverse;
        padding: 20px;
    }
}

.bbb-section-header__logo {
    width: 100%;
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.bbb-section-header :where(h3, p) {
    color: #fff;
    text-align: left;
    width: 100%;
    font-weight: 700;
    margin: 0;
    line-height: 117%;

}

.bbb-section-header h3 {
    font-size: 33px;
}

.bbb-card__txt {
    font-size: 27px;
}

.bbb-section-aside {
    width: 250px;

}

/*cards*/

.bbb-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 120px 50px;
    width: 100%;
    margin: 0;
    padding: 0;
}

@media screen and (min-width: 768px) {
    .bbb-card-container {
        gap: 120px 80px;
        background: var(--gradient-img),
            url(../img/bg-bbb-placa.jpg) top center;
        border-radius: 20px;
        margin-top: 90px;
        padding: 20px;
    }

    .bbb-placa__full {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        background: var(--gradient-img),
            url(../img/bg-bbb-placa-full.jpg) top center;
        gap: 120px 20px;
    }
}

.bbb-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
    padding: 0 25px 25px;
    background: var(--gradient-img),
        url(../img/bg-bbb-card.jpg) top center no-repeat;
    background-size: cover;
    border-radius: 20px;
    width: 100%;
}

@media screen and (min-width: 768px) {
    .bbb-card {
        background: none;
        padding: 0;
    }
}

.bbb-card__header {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: -70px;
    width: 100%;
}

.bbb-card__image {
    width: 100%;
    max-width: 178px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.bbb-card__eliminado .bbb-card__image {
    filter: grayscale(100%);
}

.bbb-card__name-body {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 6px 0 6px 10px;
    background: var(--light-purple-2);
    color: #fff;
    margin-right: 40px;
    line-height: 1;
    z-index: 10;
}

.bbb-card__eliminado .bbb-card__name-body {
    background: var(--mid-grey);
    padding: 6px;
    margin: 0;
}

.bbb-card__eliminado .bbb-card__name-body p {
    margin: 0;
}

@media screen and (min-width: 768px) {

    .bbb-card__name-body,
    .bbb-card__eliminado .bbb-card__name-body {
        background: none;
        flex-direction: column;
        padding: 0;
        margin: 0;
    }

}

.bbb-card__name {
    font-size: 23px;
    font-weight: 500;
    margin: 0;
}

@media screen and (min-width: 768px) {
    .bbb-card__name {
        background: var(--light-purple-2);
        padding: 10px 10px 20px 10px;
        width: 100%;
    }

    .bbb-card__eliminado .bbb-card__name {
        background: var(--mid-grey);
        padding: 10px;
    }

    .bbb-placa__full .bbb-card__name {
        font-size: 20px;
    }
}

.bbb-card__lider {
    background: #ff7d1e;
    width: min-content;
    padding: 4px 5px;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    margin: -50px 0 0 0;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    color: #fff;
    border-radius: 8px 8px 0 0;
    border: solid 1px #fff;
    transform: rotate(350deg) translate(10px, 10px);
    z-index: 1;
    box-shadow: -3px 2px 4px #4a4a4aa6;
}


@media screen and (min-width: 768px) {
    .bbb-card__lider {
        align-self: end;
        transform: rotate(10deg) translate(-5px, 10px);

    }
}

.bbb-card__odd {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-items: center;
    gap: 4px;
    font-size: 23px;
    font-weight: 700;
    background-color: var(--dark-purple);
    border-radius: 20px;
    padding: 4px 10px;
    margin: 0 -40px 0 0;
}

@media screen and (min-width: 768px) {
    .bbb-card__odd {
        margin: -24px 0 0 0;
    }
}

.bbb-card__odd .odd-title {
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
}

.bbb-casas-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.bbb-placa__full .bbb-casas-container {
    gap: 14px;
}

.bbb-casas-container .bbb-casa {
    background: var(--green-acom-light);
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-radius: 50px;
    padding: 5px 5px 5px 15px;
    width: 100%;
}

@media screen and (min-width: 768px) {
    .bbb-casas-container .bbb-casa {
        justify-content: space-between;
    }

    .bbb-placa__full .bbb-casas-container .bbb-casa {
        gap: 10px;
        padding: 0 0 0 14px;
    }
}

.bbb-casa__text {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-purple);
}

@media screen and (min-width: 768px) {
    .bbb-placa__full .bbb-casa__text {
        font-size: 14px;
    }
}

.bbb-casa__logo {
    padding: 2px 10px;
    border-radius: 50px;
    width: 120px;
}

@media screen and (min-width: 768px) {
    .bbb-casa__logo {
        width: 130px;
    }

    .bbb-placa__full .bbb-casa__logo {
        width: 65px;
    }
}

.bbb-casa__logo img {
    width: auto;
    height: 28px;
    max-width: 80px;
}

@media screen and (min-width: 768px) {
    .bbb-casa__logo img {
        height: 25px;
        max-width: 70px;
    }

    .bbb-placa__full .bbb-casa__logo img {
        height: 18px;
        max-width: 45px;
    }
}


/*footer*/

.bbb-section-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

@media screen and (min-width: 768px) {
    .bbb-section-footer {
        flex-direction: row;
    }
}

.bbb-section-footer__body {
    display: flex;
    flex-direction: row;
    gap: 5px;
    width: 100%;
}

.bbb-section-footer__body p {
    font-size: 19px;
    line-height: 120%;
}

.bbb-section-footer__robot {
    flex-shrink: 0;
}

.bbb-section-footer__image {
    height: 120px;
    width: auto;
}

.bbb-section-footer .bbb-section-footer__link {
    margin: 0 auto 80px;
    width: max-content;
    flex-shrink: 0;

}