/*==========================================================
    CONEXIÓN A.L.M.
    nosotros.css - Sobre Nosotros / Nuestro Equipo
    Estilo institucional unificado con la paleta oficial:
    Rojo Brillante (#ED0015) y Azul Institucional (#1D4ED8)
==========================================================*/

/* ==========================================================
   HERO SOBRE NOSOTROS
========================================================== */
.nosotros-hero {
    position: relative;
    padding: 44px 40px;
    border-radius: 28px;
    background:
        radial-gradient(420px circle at 92% 15%, rgba(29, 78, 216, 0.10), transparent 60%),
        radial-gradient(360px circle at 10% 90%, rgba(237, 0, 21, 0.08), transparent 60%),
        linear-gradient(135deg, var(--secondary) 0%, #FEEBEB 100%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
    text-align: center;
    overflow: hidden;
}

.nosotros-tag {
    display: inline-block;
    background: rgba(29, 78, 216, 0.1);
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 14px;
}

.nosotros-hero h1 {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text);
    max-width: 780px;
    margin: 0 auto 14px;
    letter-spacing: -0.5px;
}

.nosotros-hero h1 span {
    background: var(--dual-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nosotros-hero p {
    font-size: 0.98rem;
    color: var(--gray);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.75;
}

/* ==========================================================
   PROPÓSITO INSTITUCIONAL
========================================================== */
.nosotros-proposito {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 38px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 26px;
    position: relative;
    overflow: hidden;
}

.nosotros-proposito::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--dual-gradient);
}

.nosotros-proposito-icono {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--accent-blue-soft);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.nosotros-proposito-texto h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.nosotros-proposito-texto p {
    font-size: 0.93rem;
    color: var(--gray);
    line-height: 1.8;
}

/* ==========================================================
   SECCIÓN EQUIPO
========================================================== */
.nosotros-equipo {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nosotros-equipo-header {
    text-align: center;
    margin-bottom: 18px;
}

.nosotros-equipo-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.nosotros-equipo-subtitulo {
    font-size: 0.93rem;
    color: var(--gray);
}

/* GRID DE 3 INTEGRANTES */
.nosotros-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    align-items: stretch;
}

/* TARJETA INDIVIDUAL */
.nosotros-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 26px 30px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    overflow: hidden;
}

.nosotros-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

/* DECORACIÓN SUPERIOR DE TARJETA */
.nosotros-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--border);
    transition: var(--transition);
}

.nosotros-card:hover::before {
    background: var(--dual-gradient);
}

/* TARJETA DESTACADA (SANTIAGO - EN EL MEDIO) */
.nosotros-card.destacada {
    border: 2px solid rgba(237, 0, 21, 0.25);
    background: linear-gradient(180deg, #FFFFFF 0%, #FFF8F8 100%);
    box-shadow: 0 20px 48px rgba(237, 0, 21, 0.08);
}

.nosotros-card.destacada::before {
    background: var(--dual-gradient);
    height: 5px;
}

.nosotros-card.destacada:hover {
    box-shadow: 0 24px 55px rgba(237, 0, 21, 0.16);
    border-color: var(--primary);
}

/* BADGE DEL LÍDER */
.badge-lider {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(237, 0, 21, 0.1);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.02em;
}

/* CONTENEDOR DE FOTO / AVATAR */
.nosotros-avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
}

.nosotros-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: block;
    transition: transform var(--transition);
}

.nosotros-card:hover .nosotros-avatar {
    transform: scale(1.05);
}

.nosotros-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent-blue-soft);
    color: var(--accent-blue);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    border: 4px solid var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.nosotros-card.destacada .nosotros-avatar-fallback {
    background: rgba(237, 0, 21, 0.08);
    color: var(--primary);
}

/* ROL & NOMBRE */
.nosotros-card h3 {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.3;
}

.nosotros-rol {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    background: var(--accent-blue-soft);
    color: var(--accent-blue);
}

.nosotros-card.destacada .nosotros-rol {
    background: rgba(237, 0, 21, 0.1);
    color: var(--primary);
}

.nosotros-card p {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.65;
    margin-top: auto;
}

/* ==========================================================
   RESPONSIVE
========================================================== */
@media (max-width: 1024px) {
    .nosotros-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
        gap: 22px;
    }

    .nosotros-hero {
        padding: 34px 24px;
    }

    .nosotros-hero h1 {
        font-size: 1.9rem;
    }

    .nosotros-proposito {
        flex-direction: column;
        align-items: flex-start;
        padding: 26px 22px;
    }
}

@media (max-width: 580px) {
    .nosotros-hero {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .nosotros-hero h1 {
        font-size: 1.55rem;
    }

    .nosotros-hero p {
        font-size: 0.88rem;
    }

    .nosotros-equipo-header h2 {
        font-size: 1.45rem;
    }

    .nosotros-card {
        padding: 28px 18px 24px;
        border-radius: 20px;
    }

    .nosotros-avatar-wrapper {
        width: 100px;
        height: 100px;
    }
}
