
/* ============================================
   REDIN - SECCIÓN INVESTIGACIÓN
============================================ */

/* CONTENEDOR PRINCIPAL */

.contenedorInvestigacion {
    width: 95%;
    max-width: 1400px;
    margin: 3em auto;
    padding: 2em;
    box-sizing: border-box;

    font-family: 'Poppins', sans-serif;
}

/* ============================================
   PRESENTACIÓN PRINCIPAL
============================================ */

.presentacionInvestigacion {
    display: grid;
    grid-template-columns: 40% minmax(0, 1fr);
    align-items: stretch;

    width: 100%;
    min-height: 350px;

    background: linear-gradient(
        125deg,
        #FFFFFF 0%,
        #F5F0FA 48%,
        #EDF9FA 100%
    );

    border: 1px solid rgba(82, 0, 120, 0.06);
    border-radius: 20px;
    overflow: hidden;

    box-shadow: 0 8px 28px rgba(40, 50, 80, 0.08);
}

/* ============================================
   IMAGEN DE INVESTIGACIÓN
============================================ */

.figInvestigacion {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.figInvestigacion img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 350px;

    object-fit: cover;
    object-position: center;

    transition: transform 0.5s ease;
}

.presentacionInvestigacion:hover .figInvestigacion img {
    transform: scale(1.04);
}

/* ============================================
   CONTENIDO DE INVESTIGACIÓN
============================================ */

.contenidoInvestigacion {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    min-width: 0;
    padding: 3em;
    box-sizing: border-box;
}

/* ETIQUETA SUPERIOR */

.etiquetaInvestigacion {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    color: var(--redin-magenta);
    margin: 0 0 12px;
}

/* TÍTULO PRINCIPAL */

.tituloInvestigacion {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.2px;

    color: var(--redin-morado);
    margin: 0 0 18px;
}

/* DESCRIPCIÓN */

.descripcionInvestigacion {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;

    color: var(--redin-texto);
    text-align: justify;

    margin: 0 0 25px;
}

/* ============================================
   BOTÓN EXPLORAR INVESTIGACIONES
============================================ */

.botonInvestigacion {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 25px;

    background: var(--redin-morado);
    color: #FFFFFF;

    border: 2px solid transparent;
    border-radius: 30px;

    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    cursor: pointer;

    box-shadow: 0 5px 15px rgba(82, 0, 120, 0.15);

    transition:
        background-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.botonInvestigacion:hover {
    background: var(--redin-magenta);
    color: #FFFFFF;

    transform: translateY(-3px);

    box-shadow: 0 8px 20px rgba(166, 0, 67, 0.20);
}

.botonInvestigacion:focus-visible {
    outline: 3px solid var(--redin-amarillo);
    outline-offset: 3px;
}

/* ============================================
   ÁMBITOS DE INVESTIGACIÓN
============================================ */

.lineasInvestigacion {
    width: 100%;
    margin-top: 3.5em;
    scroll-margin-top: 110px;
}

/* TÍTULO DE LA SECCIÓN */

.tituloLineasInvestigacion {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.4;

    color: var(--redin-morado);
    text-align: center;

    margin: 0 0 1.5em;
}

/* ============================================
   CONTENEDOR DE LAS TRES TARJETAS
============================================ */

.contenedorLineas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
}

/* ============================================
   TARJETAS DE INVESTIGACIÓN
============================================ */

.tarjetaInvestigacion {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
    min-height: 200px;

    padding: 0.5em;
    box-sizing: border-box;

    background: linear-gradient(
        135deg,
        #FFFFFF 0%,
        #F4FCFC 100%
    );

    border: 1px solid rgba(0, 0, 0, 0.04);
    border-top: 4px solid var(--redin-turquesa);
    border-radius: 15px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.tarjetaInvestigacion img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
}




/* TARJETA 1 - TURQUESA */

.tarjetaInvestigacion:nth-child(1) {
    border-top-color: var(--redin-turquesa);

    background: linear-gradient(
        135deg,
        #FFFFFF 0%,
        #EAF7F8 100%
    );
}

/* TARJETA 2 - MORADO */

.tarjetaInvestigacion:nth-child(2) {
    border-top-color: var(--redin-morado);

    background: linear-gradient(
        135deg,
        #FFFFFF 0%,
        #F2EAF7 100%
    );
}

/* TARJETA 3 - MAGENTA */

.tarjetaInvestigacion:nth-child(3) {
    border-top-color: var(--redin-magenta);

    background: linear-gradient(
        135deg,
        #FFFFFF 0%,
        #FBEAF0 100%
    );
}

/* EFECTO AL PASAR EL CURSOR */

.tarjetaInvestigacion:hover {
    transform: translateY(-6px);

    box-shadow: 0 12px 28px rgba(82, 0, 120, 0.12);
}

/* ============================================
   TÍTULOS DE LAS TARJETAS
============================================ */

.tarjetaInvestigacion h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;

    color: var(--redin-azul);

    margin: 0 0 12px;
}

/* DESCRIPCIONES DE LAS TARJETAS */

.tarjetaInvestigacion p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;

    color: var(--redin-texto);

    margin: 0;
}
