/* ============================================================
   COMPONENTE
   INVESTIGACIÓN / VINCULACIÓN
============================================================ */


/* ============================================================
   1. SECCIÓN
============================================================ */

.iv-section {
    padding: 80px 0;

    background: #bfe3f0;
}


/* ============================================================
   2. ENCABEZADO DE ESCRITORIO
============================================================ */

.iv-header {
    width: 90%;
    max-width: 1000px;

    margin:
        0
        auto
        50px;

    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;

    gap: 30px;
}


.iv-title h2 {
    margin-bottom: 5px;

    font-size: 42px;
    font-weight: 800;
}


.iv-investigacion h2 {
    color: #0b4f9c;

    text-align: right;
}


.iv-vinculacion h2 {
    color: #c8102e;
}


.iv-title p {
    margin: 0;

    color: #0b4f9c;

    font-size: 14px;

    line-height: 1.5;
}


.iv-investigacion p {
    text-align: right;
}


.iv-divider {
    width: 1px;
    height: 60px;

    background: #0b4f9c;
}


/* ============================================================
   3. GRUPOS
============================================================ */

.iv-groups {
    width: 90%;
    max-width: 1100px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    box-shadow:
        0 12px 30px
        rgba(0, 0, 0, .25);
}


/* ============================================================
   3.1 GRUPO
============================================================ */

.iv-group {
    min-width: 0;
}


.iv-group-header {
    display: none;
}


/* ============================================================
   4. CARRUSEL
============================================================ */

.iv-group-wrapper {
    position: relative;

    width: 100%;
}


.iv-group-viewport {
    width: 100%;

    overflow: hidden;

    touch-action: pan-y;
}


.iv-group-track {
    display: flex;

    width: 100%;

    transition:
        transform 850ms var(--ease-smooth);

    will-change: transform;
}


/* ============================================================
   5. TARJETA
============================================================ */

.iv-card {
    flex:
        0
        0
        auto;

    width: auto;
    min-width: 0;

    padding: 25px;

    box-sizing: border-box;

    text-align: center;

    color: #ffffff;
}


/* ============================================================
   5.1 IMAGEN
============================================================ */

.iv-card img {
    width: 100%;
    height: 180px;

    margin:
        20px
        0;

    object-fit: cover;

    transition:
        transform var(--motion-slow) var(--ease-soft),
        opacity var(--motion-base) var(--ease-soft);
}


/* ============================================================
   5.2 TÍTULO
============================================================ */

.iv-card h3 {
    margin:
        0
        0
        15px;

    font-size: 22px;
    font-weight: 800;

    line-height: 1.15;

    transition:
        transform var(--motion-base) var(--ease-soft);
}


/* ============================================================
   5.3 TEXTO
============================================================ */

.iv-card p {
    margin: 0;

    font-size: 13px;

    line-height: 1.5;
}


/* ============================================================
   5.4 ETIQUETA
============================================================ */

.iv-top {
    display: block;

    font-size: 13px;
    font-weight: 600;
}


/* ============================================================
   6. COLORES
============================================================ */

.iv-red {
    background: #b8002d;
}


.iv-beige {
    background: #f4dec5;

    color: #b8002d;
}


.iv-blue {
    background: #0f457a;
}


.iv-navy {
    background: #081a40;
}


/* ============================================================
   7. BOTÓN
============================================================ */

.iv-btn {
    display: inline-block;

    margin-top: 15px;

    padding:
        6px
        16px;

    background: #ffffff;

    color: #b8002d;

    border-radius: 20px;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform var(--motion-base) var(--ease-soft),
        box-shadow var(--motion-base) var(--ease-soft);
}


/* ============================================================
   7.1 HOVER
============================================================ */

@media (hover: hover) and (pointer: fine) {

    .iv-card:hover img {
        transform:
            scale(1.025);
    }


    .iv-card:hover h3 {
        transform:
            translateY(-2px);
    }


    .iv-btn:hover {
        transform:
            translateY(-2px);

        box-shadow:
            0 5px 12px
            rgba(0, 0, 0, .14);
    }

}


/* ============================================================
   8. FLECHAS
============================================================ */

.iv-group-arrow {
    position: absolute;

    top: 50%;

    transform:
        translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    background: transparent !important;

    border: 0 !important;

    box-shadow: none !important;

    cursor: pointer;

    z-index: 10;
}


.iv-group-arrow[hidden] {
    display: none !important;
}


.iv-group-arrow i {
    color: #c8102e;

    font-size: 38px;

    transition:
        color var(--motion-base) var(--ease-soft),
        transform var(--motion-base) var(--ease-soft);
}


.iv-group-prev {
    left: -42px;
}


.iv-group-next {
    right: -42px;
}


/* ============================================================
   8.1 ESCRITORIO

   Se conservan únicamente las flechas exteriores.
============================================================ */

@media (min-width: 993px) {

    .iv-group-investigacion
    .iv-group-next {
        display: none !important;
    }


    .iv-group-vinculacion
    .iv-group-prev {
        display: none !important;
    }

}


/* ============================================================
   8.2 HOVER
============================================================ */

@media (hover: hover) and (pointer: fine) {

    .iv-group-arrow:hover i {
        color: #0b4f9c;

        transform:
            scale(1.08);
    }

}


/* ============================================================
   9. TABLET
   601px - 992px
============================================================ */

@media (min-width: 601px) and (max-width: 992px) {

    .iv-section {
        padding:
            60px
            0;
    }


    .iv-header {
        display: none;
    }


    .iv-groups {
        width:
            calc(100% - 90px);

        display: flex;
        flex-direction: column;

        box-shadow: none;

        gap: 55px;
    }


    .iv-group {
        width: 100%;
    }


    .iv-group-header {
        display: block;

        width: 90%;

        margin:
            0
            auto
            28px;

        text-align: center;
    }


    .iv-group-header h2 {
        margin:
            0
            0
            8px;

        font-size: 36px;
        font-weight: 800;
    }


    .iv-group-investigacion
    .iv-group-header h2 {
        color: #0b4f9c;
    }


    .iv-group-vinculacion
    .iv-group-header h2 {
        color: #c8102e;
    }


    .iv-group-header p {
        max-width: 700px;

        margin:
            0
            auto;

        color: #0b4f9c;

        font-size: 13px;

        line-height: 1.5;
    }


    .iv-group-wrapper {
        box-shadow:
            0 12px 30px
            rgba(0, 0, 0, .18);
    }


    .iv-group-prev {
        left: -34px;
    }


    .iv-group-next {
        right: -34px;
    }

}


/* ============================================================
   10. MÓVIL
   <= 600px
============================================================ */

@media (max-width: 600px) {

    .iv-section {
        padding:
            45px
            0;
    }


    .iv-header {
        display: none;
    }


    .iv-groups {
        width:
            calc(100% - 76px);

        display: flex;
        flex-direction: column;

        gap: 48px;

        box-shadow: none;
    }


    .iv-group {
        width: 100%;
    }


    .iv-group-header {
        display: block;

        width:
            calc(100% + 50px);

        margin:
            0
            -25px
            25px;

        text-align: center;
    }


    .iv-group-header h2 {
        margin:
            0
            0
            7px;

        font-size: 29px;
        font-weight: 800;
    }


    .iv-group-investigacion
    .iv-group-header h2 {
        color: #0b4f9c;
    }


    .iv-group-vinculacion
    .iv-group-header h2 {
        color: #c8102e;
    }


    .iv-group-header p {
        margin: 0;

        color: #0b4f9c;

        font-size: 12px;

        line-height: 1.45;
    }


    .iv-group-wrapper {
        box-shadow:
            0 10px 24px
            rgba(0, 0, 0, .18);
    }


    .iv-card {
        padding: 24px;
    }


    .iv-card img {
        height: 190px;
    }


    .iv-card h3 {
        font-size: 20px;
    }


    .iv-group-prev {
        left: -30px;
    }


    .iv-group-next {
        right: -30px;
    }


    .iv-group-arrow i {
        font-size: 34px;
    }

}


/* ============================================================
   11. MÓVIL MUY PEQUEÑO
   <= 380px
============================================================ */

@media (max-width: 380px) {

    .iv-groups {
        width:
            calc(100% - 64px);
    }


    .iv-group-prev {
        left: -27px;
    }


    .iv-group-next {
        right: -27px;
    }


    .iv-card {
        padding: 20px;
    }


    .iv-card img {
        height: 175px;
    }


    .iv-card h3 {
        font-size: 18px;
    }

}