/* ==========================================================
   BIOTECNOLOGÍA EN MOVIMIENTO
   Página de secciones
   ========================================================== */


.sections-library {
    padding: 90px 0;

    background:
        radial-gradient(circle at top left,
            rgba(91, 156, 165, .08),
            transparent 35%),
        #f7f8f8;
}


/* ==========================================================
   INTRODUCCIÓN
   ========================================================== */

.sections-intro {
    max-width: 760px;
    margin: 0 auto 55px auto;
    text-align: center;
}

.sections-intro .eyebrow {
    display: inline-block;

    margin-bottom: 12px;

    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;

    text-transform: uppercase;

    color: #648f95;
}

.sections-intro h2 {
    margin-bottom: 16px;

    font-size: 2.3rem;
    font-weight: 700;

    color: #202829;
}

.sections-intro p {
    margin-bottom: 0;

    color: #6d7778;

    font-size: 1.05rem;
    line-height: 1.8;
}


/* ==========================================================
   MOSAICO
   ========================================================== */

.section-mosaic {
    min-height: 418px;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 18px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, .055);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.section-mosaic:hover {
    transform: translateY(-4px);

    box-shadow:
        0 16px 45px rgba(0, 0, 0, .09);
}


/* ==========================================================
   PARTE SUPERIOR
   ========================================================== */

.section-mosaic-top {
    display: flex;

    flex: 1;

    min-height: 300px;
}


/* ==========================================================
   IMAGEN / ÍCONO DE LA SECCIÓN
   ========================================================== */

.section-mosaic-image {
    position: relative;

    width: 38%;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    padding: 22px;

}

.section-mosaic-image img {
    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 210px;

    object-fit: contain;
    object-position: center;

    transition: transform .35s ease;
}


.section-mosaic:hover .section-mosaic-image img {
    transform: scale(1.04);
}


/* ==========================================================
   INFORMACIÓN
   ========================================================== */

.section-mosaic-content {
    display: flex;
    flex-direction: column;

    width: 62%;

    padding: 30px;
}


/* contador */

.section-number {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;

    margin-bottom: 16px;
    padding: 5px 11px;

    background: #edf4f4;

    border-radius: 50px;

    color: #527d82;

    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;

    text-transform: uppercase;
}


/* título */

.section-mosaic h3 {
    margin: 0 0 12px 0;

    color: #253031;

    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.25;
}


/* descripción */

.section-description {
    margin: 0;

    color: #737d7e;

    font-size: .94rem;
    line-height: 1.65;
}


/* ==========================================================
   BOTÓN VER ARTÍCULOS
   ========================================================== */

.section-actions {
    margin-top: auto;
    flex-shrink: 0;

    border-top: 1px solid #edf0f0;
}

.section-toggle {
    display: flex;

    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding: 18px 24px;

    border: 0;

    background: transparent;

    color: #395f63;

    font-size: .9rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color .2s ease;
}

.section-toggle:hover,
.section-toggle:focus {
    background: #f7fafa;

    outline: none;
}

.section-toggle-left {
    display: flex;

    align-items: center;

    gap: 10px;
}


/* flecha */

.section-toggle-icon {
    transition:
        transform .25s ease;
}

.section-toggle[aria-expanded="true"] .section-toggle-icon {
    transform: rotate(180deg);
}


/* ==========================================================
   LISTADO COLAPSABLE
   ========================================================== */

.section-articles {
    background: #fafbfb;

    border-top: 1px solid #edf0f0;
}

.section-articles-inner {
    max-height: 430px;

    padding: 8px 24px 16px 24px;

    overflow-y: auto;
}


/* scrollbar */

.section-articles-inner::-webkit-scrollbar {
    width: 6px;
}

.section-articles-inner::-webkit-scrollbar-track {
    background: transparent;
}

.section-articles-inner::-webkit-scrollbar-thumb {
    background: #ccd7d8;

    border-radius: 20px;
}


/* ==========================================================
   ARTÍCULOS
   ========================================================== */

.section-article {
    padding: 17px 3px;

    border-bottom: 1px solid #e8eded;
}

.section-article:last-child {
    border-bottom: 0;
}


/* metadatos */

.section-article-meta {
    display: flex;

    align-items: center;

    margin-bottom: 6px;
}

.article-number {
    display: inline-block;

    color: #769397;

    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;

    text-transform: uppercase;
}


/* título */

.section-article-title {
    display: block;

    color: #263d40;

    font-size: .94rem;
    font-weight: 600;
    line-height: 1.45;

    text-decoration: none;

    transition:
        color .15s ease;
}

.section-article-title:hover {
    color: #5c969d;

    text-decoration: none;
}


/* autores */

.section-article-author {
    display: block;

    margin-top: 5px;

    color: #8a9293;

    font-size: .78rem;
    line-height: 1.45;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 991px) {

    .section-mosaic-top {
        min-height: 210px;
    }

    .section-mosaic-image {
        min-height: 210px;
    }

}


/* ==========================================================
   MÓVIL
   ========================================================== */

@media (max-width: 767px) {

    .sections-library {
        padding: 60px 0;
    }

    .sections-intro {
        margin-bottom: 35px;
    }

    .sections-intro h2 {
        font-size: 1.8rem;
    }


    .section-mosaic-top {
        display: block;
    }


    .section-mosaic-image {
        width: 100%;
        height: 230px;
        min-height: 230px;

        padding: 25px 35px;
    }


    .section-mosaic-content {
        width: 100%;

        padding: 25px;
    }


    .section-toggle {
        padding: 17px 20px;
    }


    .section-articles-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

}