/* =====================================================
   INVESTIGACIÓN UNIGRAN
   Diseño institucional
   (namespaced bajo .investigacion-page)
===================================================== */

.investigacion-page {
    --inv-azul: #06265c;
    --inv-azul-claro: #0b4ca8;
    --inv-celeste: #00d4ff;
    --inv-blanco: #ffffff;
    --inv-gris: #f3f6fb;

    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--inv-gris);
    color: #333;
}

/* =====================================================
   HERO
===================================================== */

.investigacion-page .hero {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, #06265c, #0b4ca8);
}

.investigacion-page .hero-contenido {
    max-width: 850px;
    padding: 40px 20px;
    animation: inv-aparecer 1s ease;
}

.investigacion-page .hero h1 {
    font-size: 46px;
    margin-bottom: 20px;
}

.investigacion-page .hero p {
    font-size: 20px;
    line-height: 1.5;
}

.investigacion-page .hero button {
    margin-top: 30px;
    padding: 14px 36px;
    border: none;
    border-radius: 30px;
    background: var(--inv-celeste);
    color: var(--inv-azul);
    font-weight: bold;
    font-size: 17px;
    cursor: pointer;
}

/* =====================================================
   SECCIONES
===================================================== */

.investigacion-page section {
    padding: 70px 8%;
}

.investigacion-page section h2 {
    text-align: center;
    color: var(--inv-azul);
    font-size: 36px;
    margin-bottom: 45px;
}

/* =====================================================
   LINEAS DE INVESTIGACION
===================================================== */

.investigacion-page .tarjetas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.investigacion-page .card {
    background: white;
    padding: 40px 30px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .12);
    transition: .4s;
}

.investigacion-page .card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, .2);
}

.investigacion-page .icono {
    font-size: 50px;
    margin-bottom: 18px;
}

.investigacion-page .card h3 {
    color: var(--inv-azul);
    font-size: 24px;
    margin-bottom: 12px;
}

.investigacion-page .card p {
    line-height: 1.6;
}

/* =====================================================
   PROYECTOS DESTACADOS
===================================================== */

.investigacion-page .proyecto {
    display: flex;
    gap: 40px;
    background: white;
    padding: 30px;
    border-radius: 25px;
    margin-bottom: 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .12);
    align-items: center;
}

.investigacion-page .proyecto img {
    width: 380px;
    height: 240px;
    object-fit: cover;
    border-radius: 20px;
    flex-shrink: 0;
}

.investigacion-page .proyecto h3 {
    color: var(--inv-azul);
    font-size: 28px;
    margin-bottom: 15px;
}

.investigacion-page .proyecto p {
    line-height: 1.7;
    margin-bottom: 18px;
}

.investigacion-page .proyecto span {
    color: var(--inv-azul-claro);
    font-weight: bold;
}

.investigacion-page .proyecto button,
.investigacion-page .documento button {
    margin-top: 18px;
    padding: 12px 28px;
    border: none;
    border-radius: 30px;
    background: var(--inv-azul);
    color: white;
    cursor: pointer;
    font-size: 15px;
}

/* =====================================================
   INVESTIGADORES
===================================================== */

.investigacion-page .personas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.investigacion-page .persona {
    background: white;
    padding: 30px;
    width: 100%;
    max-width: 240px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .12);
}

.investigacion-page .persona .avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, var(--inv-azul), var(--inv-azul-claro));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: bold;
}

.investigacion-page .persona h3 {
    color: var(--inv-azul);
    font-size: 19px;
}

.investigacion-page .persona p {
    margin-top: 8px;
    color: var(--inv-azul-claro);
    font-size: 14px;
}

/* =====================================================
   PUBLICACIONES
===================================================== */

.investigacion-page .documentos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.investigacion-page .documento {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .12);
}

.investigacion-page .documento .icono-doc {
    font-size: 44px;
}

.investigacion-page .documento h3 {
    color: var(--inv-azul);
    margin: 14px 0 10px;
    font-size: 20px;
}

.investigacion-page .vacio-inv {
    text-align: center;
    color: #667;
    font-size: 17px;
}

/* =====================================================
   ANIMACION
===================================================== */

@keyframes inv-aparecer {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {
    .investigacion-page .proyecto {
        flex-direction: column;
    }

    .investigacion-page .proyecto img {
        width: 100%;
        height: 220px;
    }

    .investigacion-page .hero h1 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .investigacion-page .tarjetas {
        grid-template-columns: 1fr;
    }

    .investigacion-page .documentos {
        grid-template-columns: 1fr;
    }

    .investigacion-page .hero-contenido {
        padding: 30px 15px;
    }

    .investigacion-page .hero p {
        font-size: 17px;
    }

    .investigacion-page section {
        padding: 50px 6%;
    }

    .investigacion-page section h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .investigacion-page .proyecto img {
        height: 180px;
    }
}
