/* =========================================================
   NOSOTROS.CSS
   Grupo CPOnet
   ========================================================= */


/* =========================================================
   1. SECCIÓN EQUIPO
   ========================================================= */

.team-section {
    padding: 7rem 0;
    background: #ffffff;
}

.team-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}


/* =========================================================
   2. CABECERA DE LA SECCIÓN
   ========================================================= */

.team-header {
    max-width: 760px;
    margin: 0 auto 4rem;
    text-align: center;
}

.team-header .eyebrow {
    display: block;
    margin-bottom: 1rem;

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: var(--accent, #78c84a);
}

.team-header h2 {
    margin: 0 0 1.25rem;

    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
    font-weight: 700;

    color: var(--navy, #071b35);
}

.team-header p {
    max-width: 680px;
    margin: 0 auto;

    font-size: 1.05rem;
    line-height: 1.7;

    color: #687383;
}


/* =========================================================
   3. GRID DEL EQUIPO
   ========================================================= */

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}


/* =========================================================
   4. TARJETA DE PERSONA
   ========================================================= */

.team-card {
    position: relative;
    overflow: hidden;

    margin: 0;

    background: #ffffff;

    border-radius: 0;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-6px);
}


/* =========================================================
   5. IMAGEN
   ========================================================= */

.team-image {
    position: relative;

    width: 100%;
    aspect-ratio: 3 / 4;

    overflow: hidden;

    background: #eef1f3;
}

.team-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.04);
}


/* =========================================================
   6. OVERLAY VERDE
   ========================================================= */

.team-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(216, 243, 106, 0.75);

    opacity: 0;

    transition:
        opacity 0.3s ease;
}

.team-card:hover .team-overlay,
.team-card:focus-within .team-overlay {
    opacity: 1;
}


/* =========================================================
   7. LINKEDIN
   ========================================================= */

.team-linkedin {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    color: #ffffff;

    text-decoration: none;

    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.team-linkedin:hover {
    background: #ffffff;
    color: var(--navy, #071b35);

    transform: scale(1.08);
}

.team-linkedin:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

.team-linkedin svg {
    width: 25px;
    height: 25px;

    fill: currentColor;
}


/* =========================================================
   8. INFORMACIÓN DE LA PERSONA
   ========================================================= */

.team-info {
    padding: 1.25rem 0 0;
}

.team-info h3 {
    margin: 0 0 0.35rem;

    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 700;

    color: var(--navy, #071b35);
}

.team-role {
    margin: 0;

    font-size: 0.9rem;
    line-height: 1.5;

    color: #6d7785;
}


/* =========================================================
   9. MISIÓN
   ========================================================= */

.mission-section {
    margin-top: 3rem;
}


/* =========================================================
   10. TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
    }

}


/* =========================================================
   11. TABLET PEQUEÑA
   ========================================================= */

@media (max-width: 800px) {

    .team-section {
        padding: 5rem 0;
    }

    .team-section .container {
        padding: 0 1.5rem;
    }

    .team-header {
        margin-bottom: 3rem;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
    }

}


/* =========================================================
   12. MÓVIL
   ========================================================= */

@media (max-width: 520px) {

    .team-section {
        padding: 4rem 0;
    }

    .team-section .container {
        padding: 0 1.25rem;
    }

    .team-header {
        margin-bottom: 2.5rem;
        text-align: left;
    }

    .team-header p {
        margin: 0;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .team-image {
        aspect-ratio: 4 / 5;
    }

}


/* =========================================================
   13. ACCESIBILIDAD
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .team-card,
    .team-image img,
    .team-overlay,
    .team-linkedin {
        transition: none;
    }

    .team-card:hover {
        transform: none;
    }

    .team-card:hover .team-image img {
        transform: none;
    }

    .team-linkedin:hover {
        transform: none;
    }

}