/* ==========================================================
   BIOTECNOLOGÍA EN MOVIMIENTO
   Hemeroteca / números publicados
   ========================================================== */


/* ==========================================================
   CONTENEDOR
   ========================================================== */

.numbers-library {
    padding: 90px 0 100px;

    background:
        radial-gradient(circle at 5% 0%,
            rgba(228, 169, 0, .055),
            transparent 30%),
        radial-gradient(circle at 100% 30%,
            rgba(28, 73, 91, .05),
            transparent 35%),
        #f7f8f8;
}


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

.numbers-intro {
    max-width: 760px;

    margin:
        0 auto 58px auto;

    text-align: center;
}

.numbers-eyebrow {
    display: inline-block;

    margin-bottom: 12px;

    color: #62888d;

    font-size: .74rem;
    font-weight: 700;

    letter-spacing: .14em;

    text-transform: uppercase;
}

.numbers-intro h2 {
    margin:
        0 0 16px 0;

    color: #273233;

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

    line-height: 1.25;
}

.numbers-intro p {
    max-width: 700px;

    margin:
        0 auto;

    color: #747e7f;

    font-size: 1.04rem;

    line-height: 1.75;
}


/* ==========================================================
   GRID
   ========================================================== */

.numbers-grid {
    align-items: flex-start;
}


/* ==========================================================
   TARJETA
   ========================================================== */

.number-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 100%;

    overflow: hidden;

    background: #ffffff;

    border:
        1px solid rgba(15, 45, 55, .055);

    border-radius: 20px;

    box-shadow:
        0 10px 35px rgba(20, 45, 50, .065);

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

.number-card:hover {
    transform:
        translateY(-5px);

    border-color:
        rgba(20, 65, 75, .10);

    box-shadow:
        0 18px 45px rgba(20, 45, 50, .11);
}


/* ==========================================================
   PORTADA
   ========================================================== */

.number-cover-link {
    display: block;

    color: inherit;

    text-decoration: none;
}

.number-cover-link:hover {
    text-decoration: none;
}

.number-cover {
    position: relative;

    width: 100%;
    height: auto;

    padding: 0;

    overflow: hidden;

    background: #f3f5f5;
}

.number-cover img {
    display: block;

    width: 100%;
    height: auto;

    max-width: none;
    max-height: none;

    object-fit: initial;

    box-shadow: none;

    transition:
        transform .35s ease;
}

.number-card:hover .number-cover img {
    transform:
        scale(1.018);

    box-shadow:
        0 13px 30px rgba(0, 0, 0, .16);
}


/* ==========================================================
   EDICIÓN MÁS RECIENTE
   ========================================================== */

.number-latest-badge {
    position: absolute;

    z-index: 2;

    top: 17px;
    left: 17px;

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding:
        7px 11px;

    background:
        rgba(255, 255, 255, .94);

    border:
        1px solid rgba(0, 0, 0, .05);

    border-radius: 30px;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, .07);

    color: #536c70;

    font-size: .67rem;
    font-weight: 700;

    letter-spacing: .06em;

    text-transform: uppercase;

    backdrop-filter:
        blur(5px);
}

.latest-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #daa400;
}


/* ==========================================================
   INFORMACIÓN DEL NÚMERO
   ========================================================== */

.number-info {
    padding:
        25px 27px 20px;

    flex: 1;
}

.number-meta {
    display: flex;

    align-items: baseline;

    gap: 8px;

    margin-bottom: 8px;
}

.number-label {
    color: #778688;

    font-size: .77rem;
    font-weight: 700;

    letter-spacing: .1em;

    text-transform: uppercase;
}

.number-id {
    color: #283536;

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

    line-height: 1;
}

.number-date {
    display: flex;

    align-items: center;

    gap: 6px;

    margin-top: 13px;

    color: #718082;

    font-size: .86rem;
}

.number-date-icon {
    color: #719399;

    font-size: 18px;
}

.number-article-count {
    margin-top: 9px;

    color: #759095;

    font-size: .74rem;
    font-weight: 700;

    letter-spacing: .055em;

    text-transform: uppercase;
}


/* ==========================================================
   ACCIONES
   ========================================================== */

.number-actions {
    border-top:
        1px solid #edf0f0;
}

.number-primary-action,
.number-content-action {
    min-height: 54px;

    padding:
        0 26px;

    display: flex;

    align-items: center;

    text-decoration: none;
}

.number-primary-action {
    justify-content: space-between;

    background: #ffffff;

    color: #315d62;

    font-size: .88rem;
    font-weight: 700;

    transition:
        background-color .2s ease,
        color .2s ease;
}

.number-primary-action .material-symbols-outlined {
    font-size: 20px;

    transition:
        transform .2s ease;
}

.number-primary-action:hover {
    background: #f5f9f9;

    color: #214e54;

    text-decoration: none;
}

.number-primary-action:hover .material-symbols-outlined {
    transform:
        translateX(3px);
}


/* VER CONTENIDO */

.number-content-action {
    width: 100%;

    gap: 9px;

    border: 0;
    border-top:
        1px solid #edf0f0;

    background:
        #fafbfb;

    color: #718184;

    font-family: inherit;

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

    cursor: pointer;

    transition:
        background-color .2s ease,
        color .2s ease;
}

.number-content-action .material-symbols-outlined {
    font-size: 19px;
}

.number-content-action:hover,
.number-content-action:focus {
    background:
        #f1f6f6;

    color:
        #315d62;

    outline: none;
}


/* ==========================================================
   MODAL
   ========================================================== */

.number-modal .modal-dialog {
    max-width: 780px;
}

.number-modal .modal-content {
    overflow: hidden;

    border: 0;

    border-radius: 20px;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, .22);
}


/* ==========================================================
   HEADER DEL MODAL
   ========================================================== */

.number-modal-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 25px;

    padding:
        30px 32px 25px;

    border-bottom:
        1px solid #edf0f0;

    background:
        #ffffff;
}

.number-modal-eyebrow {
    display: block;

    margin-bottom: 5px;

    color: #719297;

    font-size: .67rem;
    font-weight: 700;

    letter-spacing: .1em;

    text-transform: uppercase;
}

.number-modal-header h3 {
    margin: 0;

    color: #263435;

    font-size: 1.85rem;
    font-weight: 700;
}

.number-modal-header p {
    margin:
        5px 0 0;

    color:
        #859092;

    font-size:
        .83rem;
}


/* CERRAR */

.number-modal-close {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    display: flex;

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

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: #f2f5f5;

    color: #566567;

    cursor: pointer;

    transition:
        background-color .2s ease,
        transform .2s ease;
}

.number-modal-close:hover {
    background: #e8eeee;

    transform:
        rotate(4deg);
}

.number-modal-close .material-symbols-outlined {
    font-size: 21px;
}


/* ==========================================================
   CONTENIDO DEL MODAL
   ========================================================== */

.number-modal-body {
    max-height: 58vh;

    padding:
        5px 32px;

    overflow-y: auto;

    background:
        #fafbfb;
}


/* SCROLL */

.number-modal-body::-webkit-scrollbar {
    width: 7px;
}

.number-modal-body::-webkit-scrollbar-track {
    background:
        transparent;
}

.number-modal-body::-webkit-scrollbar-thumb {
    background:
        #ccd7d8;

    border-radius: 20px;
}


/* ==========================================================
   ARTÍCULO DEL MODAL
   ========================================================== */

.number-modal-article {
    padding:
        20px 2px;

    border-bottom:
        1px solid #e6ebeb;
}

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

.number-modal-article-number {
    margin-bottom: 6px;

    color:
        #76969a;

    font-size: .68rem;
    font-weight: 700;

    letter-spacing: .09em;

    text-transform: uppercase;
}

.number-modal-article-title {
    display: block;

    color:
        #263b3e;

    font-size: .96rem;
    font-weight: 700;

    line-height: 1.45;

    text-decoration: none;

    transition:
        color .15s ease;
}

.number-modal-article-title:hover {
    color:
        #568c93;

    text-decoration: none;
}

.number-modal-article-author {
    margin-top: 6px;

    color:
        #899395;

    font-size: .78rem;

    line-height: 1.45;
}


/* ==========================================================
   FOOTER MODAL
   ========================================================== */

.number-modal-footer {
    display: flex;

    justify-content: flex-end;

    padding:
        18px 32px;

    border-top:
        1px solid #edf0f0;

    background:
        #ffffff;
}

.number-modal-open-issue {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color:
        #315d62;

    font-size:
        .84rem;
    font-weight: 700;

    text-decoration: none;
}

.number-modal-open-issue .material-symbols-outlined {
    font-size: 19px;

    transition:
        transform .2s ease;
}

.number-modal-open-issue:hover {
    color:
        #214c51;

    text-decoration: none;
}

.number-modal-open-issue:hover .material-symbols-outlined {
    transform:
        translateX(3px);
}


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

@media (max-width: 991px) {}


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

@media (max-width: 767px) {

    .numbers-library {
        padding:
            60px 0 75px;
    }

    .numbers-intro {
        margin-bottom: 40px;
    }

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

    .number-info {
        padding:
            22px 23px 18px;
    }

    .number-primary-action,
    .number-content-action {
        padding:
            0 23px;
    }

    .number-modal .modal-dialog {
        margin:
            15px;
    }

    .number-modal-header {
        padding:
            24px 22px 20px;
    }

    .number-modal-header h3 {
        font-size: 1.55rem;
    }

    .number-modal-body {
        max-height: 62vh;

        padding:
            4px 22px;
    }

    .number-modal-footer {
        padding:
            17px 22px;
    }

}


/* ==========================================================
   TELÉFONOS PEQUEÑOS
   ========================================================== */

@media (max-width: 480px) {

    .number-latest-badge {
        top: 13px;
        left: 13px;

        font-size: .61rem;
    }

}