/* =========================================================
   COMUNIDADES
========================================================= */

.communities-page {
    background: #fff;
    color: #23374f;
}

.communities-container {
    width: min(calc(100% - 32px), 1180px);
    margin: 0 auto;
}

.communities-hero {
    padding: 68px 0 58px;
    border-bottom: 1px solid #e4e9ef;
    background: #f7f9fc;
}

.communities-hero span {
    color: #0863df;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.communities-hero h1 {
    max-width: 780px;
    margin: 7px 0 13px;
    color: #071c3f;
    font-size: clamp(38px, 5vw, 56px);
    line-height: 1.02;
    letter-spacing: -1.7px;
}

.communities-hero p {
    max-width: 670px;
    margin: 0;
    color: #69798e;
    font-size: 17px;
    line-height: 1.6;
}

.communities-content {
    padding: 50px 0 80px;
}

.communities-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 18px;
}

.community-card {
    overflow: hidden;
    border: 1px solid #dce4ed;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(20,45,75,.045);
    transition: transform .2s ease, box-shadow .2s ease;
}

.community-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(20,45,75,.08);
}

.community-card-image {
    height: 230px;
    overflow: hidden;
    background: #edf2f7;
}

.community-card-image > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.community-card-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg,#071c3f,#0863df);
}

.community-card-placeholder span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border: 3px solid rgba(255,255,255,.8);
    border-radius: 50%;
    color: #fff;
    font-size: 25px;
    font-weight: 900;
}

.community-card-content {
    padding: 21px;
}

.community-card-label {
    color: #0863df;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}

.community-card h2 {
    margin: 6px 0 9px;
    color: #071c3f;
    font-size: 22px;
    line-height: 1.2;
}

.community-card p {
    margin: 0;
    color: #69798c;
    font-size: 14px;
    line-height: 1.55;
}

.community-card-content > a {
    min-height: 46px;
    margin-top: 18px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    background: #0863df;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.community-card-content > a:hover {
    background: #0656c4;
}

.communities-notice {
    margin-top: 38px;
    padding: 19px 21px;
    border: 1px solid #dce4ed;
    border-radius: 13px;
    background: #f7f9fc;
}

.communities-notice strong {
    color: #071c3f;
    font-size: 14px;
}

.communities-notice p {
    margin: 5px 0 0;
    color: #718095;
    font-size: 12px;
    line-height: 1.55;
}

.communities-empty {
    padding: 60px 20px;
    border: 1px dashed #cbd6e2;
    border-radius: 16px;
    background: #f8fafc;
    text-align: center;
}

.communities-empty p {
    color: #77879a;
}

@media (max-width: 900px) {
    .communities-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 600px) {

    .communities-container {
        width: calc(100% - 20px);
    }

    .communities-hero {
        padding: 42px 0 38px;
    }

    .communities-hero h1 {
        font-size: 36px;
    }

    .communities-hero p {
        font-size: 15px;
    }

    .communities-content {
        padding: 30px 0 55px;
    }

    .communities-grid {
        grid-template-columns: 1fr;
    }

    .community-card-image {
        height: 215px;
    }
}
