/* =========================================================
   COSTA MODERNA V35 — EQUIPO / ASESORES
   ========================================================= */

.modern-advisors-page {
    background: #f5f7fa;
}

.modern-advisors-page .modern-header {
    position: relative;
    color: #fff;
    background:
        linear-gradient(
            135deg,
            #09223c 0%,
            #0d345c 58%,
            #125180 100%
        );
}

.modern-advisors-page .modern-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: rgba(255, 255, 255, .13);
}

.modern-advisors-page .modern-nav > a {
    color: #fff;
}

.modern-team-hero-v35 {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(
            circle at 82% 20%,
            rgba(38, 126, 235, .28),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #09223c 0%,
            #0d345c 60%,
            #125180 100%
        );
}

.modern-team-hero-v35::before {
    content: "";
    position: absolute;
    top: -180px;
    right: -100px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    box-shadow:
        0 0 0 70px rgba(255, 255, 255, .025),
        0 0 0 140px rgba(255, 255, 255, .018);
}

.modern-team-hero-grid-v35 {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    align-items: end;
    gap: 70px;
    min-height: 430px;
    padding-top: 80px;
    padding-bottom: 72px;
}

.modern-team-hero-copy-v35 {
    max-width: 850px;
}

.modern-team-kicker-v35 {
    display: inline-block;
    margin-bottom: 17px;
    color: #78b4ff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.modern-team-hero-copy-v35 h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(48px, 5.6vw, 82px);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -.055em;
}

.modern-team-hero-copy-v35 p {
    max-width: 760px;
    margin: 25px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: 17px;
    line-height: 1.75;
}

.modern-team-hero-stats-v35 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.modern-team-hero-stats-v35 > div {
    min-height: 142px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 24px;
    background: rgba(255, 255, 255, .075);
    backdrop-filter: blur(14px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, .10);
}

.modern-team-hero-stats-v35 strong,
.modern-team-hero-stats-v35 span {
    display: block;
}

.modern-team-hero-stats-v35 strong {
    font-size: 38px;
    line-height: 1;
    letter-spacing: -.045em;
}

.modern-team-hero-stats-v35 span {
    margin-top: 12px;
    color: rgba(255, 255, 255, .66);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.45;
    text-transform: uppercase;
}

.modern-team-section-v35 {
    padding: 82px 0 110px;
}

.modern-team-toolbar-v35 {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 32px;
}

.modern-team-toolbar-v35 > div:first-child > span {
    color: var(--modern-blue, #1765e8);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.modern-team-toolbar-v35 h2 {
    max-width: 720px;
    margin: 10px 0 0;
    color: #10243e;
    font-size: clamp(34px, 4vw, 57px);
    line-height: 1;
    letter-spacing: -.045em;
}

.modern-team-filters-v35 {
    display: inline-flex;
    gap: 5px;
    padding: 5px;
    border: 1px solid #dce4ed;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(18, 45, 72, .06);
}

.modern-team-filters-v35 button {
    min-height: 40px;
    padding: 0 17px;
    border: 0;
    border-radius: 999px;
    color: #64758a;
    background: transparent;
    cursor: pointer;
    font-size: 10px;
    font-weight: 900;
    transition:
        color .22s ease,
        background .22s ease,
        transform .22s ease;
}

.modern-team-filters-v35 button:hover {
    color: #10243e;
}

.modern-team-filters-v35 button.active {
    color: #fff;
    background: var(--modern-blue, #1765e8);
    transform: translateY(-1px);
}

.modern-team-grid-v35 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.modern-team-card-v35 {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dfe6ee;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(21, 52, 82, .075);
    transition:
        transform .35s cubic-bezier(.2, .75, .2, 1),
        box-shadow .35s ease,
        opacity .25s ease;
}

.modern-team-card-v35:hover {
    transform: translateY(-7px);
    box-shadow: 0 30px 75px rgba(21, 52, 82, .14);
}

.modern-team-card-v35[hidden] {
    display: none;
}

.modern-team-photo-v35 {
    position: relative;
    display: block;
    aspect-ratio: 4 / 4.15;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(
            135deg,
            #dce9f7,
            #afc9e6
        );
    text-decoration: none;
}

.modern-team-photo-v35 img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .75s cubic-bezier(.2, .7, .2, 1);
}

.modern-team-card-v35:hover .modern-team-photo-v35 img {
    transform: scale(1.045);
}

.modern-team-photo-placeholder-v35 {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 90px;
    font-weight: 900;
}

.modern-team-photo-overlay-v35 {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(3, 19, 38, 0) 50%,
            rgba(3, 19, 38, .58) 100%
        );
    pointer-events: none;
}

.modern-team-category-v35,
.modern-team-property-count-v35 {
    position: absolute;
    z-index: 2;
    top: 16px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    background: rgba(9, 34, 60, .68);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.modern-team-category-v35 {
    left: 16px;
}

.modern-team-property-count-v35 {
    right: 16px;
}

.modern-team-card-body-v35 {
    padding: 22px;
}

.modern-team-card-heading-v35 h3 {
    margin: 0;
    font-size: 23px;
    line-height: 1.06;
    letter-spacing: -.035em;
}

.modern-team-card-heading-v35 h3 a {
    color: #10243e;
    text-decoration: none;
}

.modern-team-card-heading-v35 small {
    display: block;
    margin-top: 7px;
    color: #8896a7;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.modern-team-card-body-v35 > p {
    min-height: 78px;
    margin: 16px 0 18px;
    color: #65768b;
    font-size: 11px;
    line-height: 1.65;
}

.modern-team-contact-row-v35 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 17px;
}

.modern-team-contact-button-v35 {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border: 1px solid #dce5ee;
    border-radius: 12px;
    color: #39546f;
    background: #f7f9fc;
    text-decoration: none;
    transition:
        transform .2s ease,
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.modern-team-contact-button-v35:hover {
    transform: translateY(-2px);
    color: #fff;
    background: var(--modern-blue, #1765e8);
    border-color: var(--modern-blue, #1765e8);
}

.modern-team-whatsapp-v35:hover {
    background: #1fa463;
    border-color: #1fa463;
}

.modern-team-contact-button-v35 svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.modern-team-profile-link-v35 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid #c9d9ee;
    border-radius: 14px;
    color: var(--modern-blue, #1765e8);
    background: #fff;
    font-size: 9px;
    font-weight: 900;
    text-decoration: none;
    transition:
        color .25s ease,
        background .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.modern-team-profile-link-v35:hover {
    color: #fff;
    background: var(--modern-blue, #1765e8);
    border-color: var(--modern-blue, #1765e8);
    transform: translateY(-1px);
}

.modern-team-profile-link-v35 strong {
    font-size: 14px;
}

.modern-team-empty-v35 {
    padding: 80px 24px;
    border: 1px dashed #cbd8e5;
    border-radius: 26px;
    text-align: center;
    background: #fff;
}

.modern-team-empty-v35 > span {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    border-radius: 20px;
    color: var(--modern-blue, #1765e8);
    background: #edf4ff;
    font-size: 25px;
}

.modern-team-empty-v35 h2 {
    margin: 0;
    color: #10243e;
}

.modern-team-empty-v35 p {
    color: #718198;
}

@media (max-width: 1100px) {
    .modern-team-hero-grid-v35 {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .modern-team-hero-stats-v35 {
        max-width: 620px;
    }

    .modern-team-grid-v35 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .modern-team-hero-grid-v35 {
        min-height: 0;
        padding-top: 58px;
        padding-bottom: 54px;
    }

    .modern-team-hero-copy-v35 h1 {
        font-size: clamp(42px, 12vw, 62px);
    }

    .modern-team-hero-copy-v35 p {
        font-size: 15px;
    }

    .modern-team-hero-stats-v35 {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .modern-team-hero-stats-v35 > div {
        min-height: 120px;
        padding: 18px;
    }

    .modern-team-hero-stats-v35 strong {
        font-size: 30px;
    }

    .modern-team-section-v35 {
        padding: 58px 0 80px;
    }

    .modern-team-toolbar-v35 {
        display: grid;
        align-items: start;
    }

    .modern-team-filters-v35 {
        width: 100%;
    }

    .modern-team-filters-v35 button {
        flex: 1;
        padding-inline: 10px;
    }

    .modern-team-grid-v35 {
        grid-template-columns: 1fr;
    }

    .modern-team-card-body-v35 > p {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .modern-team-card-v35,
    .modern-team-photo-v35 img,
    .modern-team-contact-button-v35,
    .modern-team-profile-link-v35 {
        transition: none !important;
    }
}
