.team-hero-wrap {
    background: var(--gradient-general);
    padding-top: 180px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.team-hero-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.team-hero-wrap::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(3, 224, 201, .18) 0%, transparent 65%);
    pointer-events: none;
}

.team-hero-blob {
    position: absolute;
    bottom: -120px;
    left: -80px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(26, 115, 232, .18) 0%, transparent 65%);
    pointer-events: none;
}

.team-hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.team-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .75);
    max-width: 560px;
    margin: 0 auto;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(3, 224, 201, .15);
    border: 1px solid rgba(3, 224, 201, .35);
    color: #03e0c9;
    font-size: .82rem;
    font-weight: 600;
    padding: .4rem 1.1rem;
    border-radius: 50px;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

/* ── Breadcrumb ── */
.team-breadcrumb {
    font-size: .85rem;
    color: rgba(255, 255, 255, .5);
}

.team-breadcrumb a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
}

.team-breadcrumb a:hover {
    color: #fff;
}

.team-breadcrumb .active {
    color: #03e0c9;
}

/* ── Stats ribbon ── */
.team-stats-ribbon {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .09);
    padding: 28px 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: -36px;
    position: relative;
    z-index: 5;
}

.ribbon-stat {
    text-align: center;
    min-width: 110px;
}

.ribbon-stat__number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.ribbon-stat__label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: 4px;
}

/* ── Section heading ── */
.section-eyebrow {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: .4rem;
}

.section-heading {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    color: #111;
    line-height: 1.25;
}

.section-sub {
    font-size: 1rem;
    color: #666;
}

/* ── Values section ── */
.values-section {
    background: #f4f6f9;
    padding: 80px 0;
}

.value-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.75rem;
    height: 100%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    border-top: 4px solid transparent;
    transition: transform .25s, box-shadow .25s;
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .11);
}

.value-card.vc-blue {
    border-top-color: var(--primary-color);
}

.value-card.vc-green {
    border-top-color: #03e0c9;
}

.value-card.vc-orange {
    border-top-color: var(--orange);
}

.value-card.vc-purple {
    border-top-color: var(--purple);
}

.value-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.1rem;
}

.vi-blue {
    background: #e8f0fe;
    color: #0253ac;
}

.vi-green {
    background: #e0fdf8;
    color: #03e0c9;
}

.vi-orange {
    background: #fff3e0;
    color: #e65100;
}

.vi-purple {
    background: #f3e8fd;
    color: #7b1fa2;
}

.value-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
    margin-bottom: .4rem;
}

.value-card p {
    font-size: .875rem;
    color: #666;
    line-height: 1.65;
    margin: 0;
}

/* ── Team grid ── */
.team-section {
    padding: 80px 0;
}

.member-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .07);
    overflow: hidden;
    height: 100%;
    transition: transform .25s, box-shadow .25s;
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .13);
}

.member-card-header {
    position: relative;
    height: 110px;
    width: 100%;
}

.member-avatar-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: -60px auto 0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

.member-avatar-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Avatar gradient backgrounds move to header */
.av-blue {
    background: linear-gradient(135deg, #e8f0fe 0%, #c5d8f8 100%);
    color: #0253ac;
}

.av-green {
    background: linear-gradient(135deg, #e0fdf8 0%, #a7eddf 100%);
    color: #03a89a;
}

.av-purple {
    background: linear-gradient(135deg, #f3e8fd 0%, #d9b5f5 100%);
    color: #7b1fa2;
}

.av-orange {
    background: linear-gradient(135deg, #fff3e0 0%, #ffd9a8 100%);
    color: #e65100;
}

.av-teal {
    background: linear-gradient(135deg, #e0f2f1 0%, #a5d6d1 100%);
    color: #00695c;
}

.av-indigo {
    background: linear-gradient(135deg, #e8eaf6 0%, #c5caf4 100%);
    color: #283593;
}

.av-pink {
    background: linear-gradient(135deg, #fce4ec 0%, #f8b4ca 100%);
    color: #ad1457;
}

.av-cyan {
    background: linear-gradient(135deg, #e0f7fa 0%, #a8e4ec 100%);
    color: #0097a7;
}

.member-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    border-radius: 50px;
    padding: .3rem .85rem;
    font-size: .7rem;
    font-weight: 800;
    color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
    text-transform: uppercase;
    letter-spacing: .05em;
    z-index: 10;
}

.member-body {
    padding: 1.25rem 1.5rem 1.75rem;
    text-align: center;
}

.member-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111;
    margin-bottom: .2rem;
}

.member-role {
    font-size: .75rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .8rem;
}

.role-divider {
    width: 40px;
    height: 2px;
    background: #e0e4ea;
    margin: 0 auto 1rem;
}

.member-desc {
    font-size: .845rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.member-skills {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.skill-tag {
    font-size: .7rem;
    font-weight: 600;
    padding: .2rem .65rem;
    border-radius: 50px;
    background: #f1f3f4;
    color: #444;
}

.member-social {
    display: none;
    justify-content: center;
    gap: 10px;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f0f0f0;
}

.social-link {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f6f8;
    color: #555;
    font-size: .9rem;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.social-link:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ── Departments filter ── */
.dept-pills {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    background: #f4f6f9;
    border: 1px solid #e0e4ea;
    border-radius: 50px;
    padding: 6px 10px;
}

.dept-pill {
    border: none;
    background: transparent;
    border-radius: 50px;
    padding: .38rem 1.2rem;
    font-size: .88rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.dept-pill:hover {
    background: rgba(2, 83, 172, .08);
    color: #0253ac;
}

.dept-pill.active {
    background: #0253ac;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 1px 6px rgba(2, 83, 172, .3);
}

/* ── Culture Band ── */
.culture-band {
    background: var(--gradient-general);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.culture-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.culture-band h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
}

.culture-band p {
    color: rgba(255, 255, 255, .75);
    font-size: 1rem;
    line-height: 1.7;
}

.culture-perk {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 1.4rem;
}

.perk-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #03e0c9;
    flex-shrink: 0;
}

.perk-text h5 {
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .2rem;
}

.perk-text p {
    font-size: .845rem;
    color: rgba(255, 255, 255, .65);
    margin: 0;
    line-height: 1.55;
}

/* ── CTA ── */
.team-cta {
    background: #fff;
    padding: 80px 0;
}

.cta-box {
    background: var(--gradient-general);
    border-radius: 20px;
    padding: 56px 40px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}

.cta-box h2 {
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.cta-box p {
    color: rgba(255, 255, 255, .8);
    position: relative;
    z-index: 1;
}

.btn-cta-team {
    background: linear-gradient(135deg, #03e0c9 0%, #00b8a3 100%);
    color: #062040;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    padding: .85rem 2.4rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: opacity .2s, transform .2s;
    position: relative;
    z-index: 1;
}

.btn-cta-team:hover {
    opacity: .88;
    transform: translateY(-2px);
    color: #062040;
}

/* ── Nosotros section ── */
.nosotros-section {
    background: #fff;
    padding: 80px 0;
}

.nosotros-text p {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

.nosotros-photo-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(2, 83, 172, .15);
}

.nosotros-photo-wrap img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

.photo-placeholder {
    width: 100%;
    height: 360px;
    background: linear-gradient(135deg, #e8f0fe 0%, #c5d8f8 60%, #e0fdf8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #6c8fc7;
}

.photo-placeholder i {
    font-size: 3.5rem;
}

.photo-placeholder span {
    font-size: .9rem;
    font-weight: 600;
}

.nosotros-photo-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #fff;
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}

.nosotros-photo-badge .badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0253ac, #0369d9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.nosotros-photo-badge .badge-text strong {
    display: block;
    font-size: .85rem;
    font-weight: 700;
    color: #111;
}

.nosotros-photo-badge .badge-text span {
    font-size: .72rem;
    color: #888;
}

/* ── Por qué elegirnos ── */
.elegirnos-section {
    background: #f4f6f9;
    padding: 80px 0;
}

.elegirnos-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    height: 100%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: transform .25s, box-shadow .25s;
}

.elegirnos-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .11);
}

.elegirnos-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.elegirnos-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: .3rem;
}

.elegirnos-card p {
    font-size: .855rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   RESPONSIVE — EQUIPO
   ======================================== */

/* ---- Tablet (768px – 991px) ---- */
@media (max-width: 991px) {
    .team-hero-wrap {
        padding-top: 130px;
        padding-bottom: 70px;
    }

    .team-hero-title {
        font-size: 2.2rem;
    }

    .team-hero-subtitle {
        font-size: 0.95rem;
    }

    .values-section,
    .team-section,
    .nosotros-section,
    .elegirnos-section {
        padding: 60px 0;
    }

    .culture-band {
        padding: 50px 0;
    }

    .team-cta {
        padding: 60px 0;
    }

    .cta-box {
        padding: 40px 28px;
    }

    .dept-pills {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        flex-wrap: nowrap;
        width: 100%;
    }

    .nosotros-photo-wrap img {
        height: 300px;
    }

    .photo-placeholder {
        height: 300px;
    }
}

/* ---- Phone (≤767px) ---- */
@media (max-width: 767px) {
    .team-hero-wrap {
        padding-top: 100px;
        padding-bottom: 50px;
        text-align: center;
    }

    .team-hero-title {
        font-size: 1.75rem;
    }

    .team-hero-subtitle {
        font-size: 0.88rem;
    }

    .hero-badge-pill {
        font-size: 0.72rem;
        padding: 0.3rem 0.85rem;
    }

    .team-breadcrumb {
        justify-content: center;
        display: flex;
    }

    .team-stats-ribbon {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        padding: 20px 20px;
        margin-top: -24px;
    }

    .ribbon-stat__number {
        font-size: 1.6rem;
    }

    .ribbon-stat__label {
        font-size: 0.72rem;
    }

    /* Sections */
    .section-eyebrow {
        font-size: 0.72rem;
    }

    .section-heading {
        font-size: 1.3rem;
    }

    .values-section,
    .team-section,
    .nosotros-section,
    .elegirnos-section {
        padding: 45px 0;
    }

    .value-card {
        padding: 1.5rem 1.25rem;
    }

    .value-card h4 {
        font-size: 0.95rem;
    }

    .value-card p {
        font-size: 0.82rem;
    }

    .value-icon {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    /* Department pills */
    .dept-pills {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        flex-wrap: nowrap;
        padding: 5px 8px;
        width: 100%;
    }

    .dept-pill {
        font-size: 0.8rem;
        padding: 0.3rem 0.9rem;
        white-space: nowrap;
    }

    /* Team cards */
    .member-card-header {
        height: 90px;
    }

    .member-avatar-wrap {
        width: 100px;
        height: 100px;
        margin-top: -50px;
        border-radius: 20px;
        font-size: 3rem;
    }

    .member-body {
        padding: 1rem 1.25rem 1.5rem;
    }

    .member-name {
        font-size: 1.05rem;
    }

    .member-role {
        font-size: 0.7rem;
    }

    .member-desc {
        font-size: 0.8rem;
    }

    .member-badge {
        top: 14px;
        right: 14px;
        font-size: 0.65rem;
        padding: 0.25rem 0.65rem;
    }

    /* Culture band */
    .culture-band {
        padding: 40px 0;
    }

    .culture-band h2 {
        font-size: 1.4rem;
    }

    .culture-band .row {
        flex-direction: column;
    }

    .culture-perk {
        margin-bottom: 1rem;
    }

    .perk-text h5 {
        font-size: 0.88rem;
    }

    .perk-text p {
        font-size: 0.78rem;
    }

    /* Nosotros */
    .nosotros-photo-wrap img {
        height: 220px;
    }

    .photo-placeholder {
        height: 220px;
    }

    .nosotros-text p {
        font-size: 0.9rem;
    }

    .nosotros-photo-badge {
        bottom: 12px;
        left: 12px;
        padding: 8px 12px;
    }

    /* Elegirnos */
    .elegirnos-card {
        padding: 1.25rem 1rem;
    }

    .elegirnos-card h5 {
        font-size: 0.9rem;
    }

    .elegirnos-card p {
        font-size: 0.8rem;
    }

    /* CTA */
    .team-cta {
        padding: 45px 0;
    }

    .cta-box {
        padding: 36px 20px;
        border-radius: 16px;
    }

    .cta-box h2 {
        font-size: 1.4rem;
    }

    .cta-box p {
        font-size: 0.88rem;
    }

    .btn-cta-team {
        font-size: 0.9rem;
        padding: 0.75rem 1.8rem;
    }
}
