/* ==========================================================
   BIOTECNOLOGÍA EN MOVIMIENTO
   Números especiales
   ========================================================== */


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

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

    background:
        radial-gradient(circle at 0% 0%,
            rgba(135, 86, 150, .07),
            transparent 32%),
        radial-gradient(circle at 100% 25%,
            rgba(70, 130, 140, .06),
            transparent 35%),
        #f7f8f8;
}


/* ==========================================================
   INTRO
   ========================================================== */

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

    margin: 0 auto 58px;

    text-align: center;
}

.specials-eyebrow {
    display: inline-block;

    margin-bottom: 12px;

    color: #72708f;

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

    letter-spacing: .14em;

    text-transform: uppercase;
}

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

    color: #273233;

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

    line-height: 1.25;
}

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

    margin: 0 auto;

    color: #747e7f;

    font-size: 1.04rem;

    line-height: 1.75;
}


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

.specials-grid {
    align-items: stretch;
}

.specials-grid>div {
    display: flex;
}


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

.special-card {
    position: relative;

    display: flex;
    flex-direction: column;

    width: 100%;

    overflow: hidden;

    background: #fff;

    border:
        1px solid rgba(40, 45, 60, .06);

    border-radius: 20px;

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

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

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

    border-color:
        rgba(70, 75, 100, .12);

    box-shadow:
        0 18px 46px rgba(20, 30, 45, .12);
}


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

.special-cover-link {
    display: block;

    color: inherit;

    text-decoration: none;
}

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

.special-cover {
    position: relative;

    width: 100%;

    padding: 0;

    overflow: hidden;

    background: #eef0f1;
}


/*
 * La portada determina su propia altura.
 * Nunca se recorta y conserva exactamente su proporción.
 */

.special-cover img {
    display: block;

    width: 100%;
    height: auto;

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

    transition:
        transform .35s ease;
}

.special-card:hover .special-cover img {
    transform: scale(1.015);
}


/* ==========================================================
   BADGE
   ========================================================== */

.special-badge {
    position: absolute;

    z-index: 3;

    top: 17px;
    left: 17px;

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 7px 11px;

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

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

    border-radius: 30px;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, .08);

    color: #665f7d;

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

    letter-spacing: .07em;

    text-transform: uppercase;

    backdrop-filter: blur(6px);
}

.special-badge .material-symbols-outlined {
    font-size: 16px;
}


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

.special-info {
    flex: 1;

    padding:
        25px 27px 22px;
}

.special-number {
    margin-bottom: 8px;

    color: #758185;

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

    letter-spacing: .1em;

    text-transform: uppercase;
}

.special-title {
    margin:
        0 0 18px;

    color: #293436;

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

    line-height: 1.4;
}


/* ==========================================================
   META
   ========================================================== */

.special-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 8px 16px;

    margin-top: auto;
}

.special-meta-item {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: #7d898b;

    font-size: .78rem;

    line-height: 1.4;
}

.special-meta-item .material-symbols-outlined {
    color: #78969b;

    font-size: 17px;
}


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

.special-actions {
    margin-top: auto;

    border-top:
        1px solid #edf0f0;
}

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

    padding:
        0 26px;

    display: flex;

    align-items: center;

    text-decoration: none;
}


/* abrir edición */

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

    background: #fff;

    color: #4f596c;

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

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

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

    transition:
        transform .2s ease;
}

.special-primary-action:hover {
    background: #f8f8fa;

    color: #41495c;

    text-decoration: none;
}

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


/* ver contenido */

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

    gap: 9px;

    border: 0;

    border-top:
        1px solid #edf0f0;

    background: #fafbfb;

    color: #778285;

    font-family: inherit;

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

    cursor: pointer;

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

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

.special-content-action:hover,
.special-content-action:focus {
    background: #f1f5f5;

    color: #4e696e;

    outline: none;
}


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

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

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

    border: 0;

    border-radius: 20px;

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


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

.special-modal-header {
    display: flex;

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

    gap: 25px;

    padding:
        30px 32px 25px;

    border-bottom:
        1px solid #edf0f0;

    background: #fff;
}

.special-modal-eyebrow {
    display: block;

    margin-bottom: 5px;

    color: #746e8c;

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

    letter-spacing: .11em;

    text-transform: uppercase;
}

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

    color: #263435;

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

.special-modal-title {
    margin-top: 7px;

    color: #566164;

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

    line-height: 1.45;
}

.special-modal-header p {
    margin:
        8px 0 0;

    color: #899294;

    font-size: .81rem;
}


/* ==========================================================
   CERRAR
   ========================================================== */

.special-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: #f2f4f4;

    color: #566567;

    cursor: pointer;

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

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

    transform: rotate(4deg);
}

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


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

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

    padding:
        5px 32px;

    overflow-y: auto;

    background: #fafbfb;
}

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

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

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

    border-radius: 20px;
}


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

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

    border-bottom:
        1px solid #e6ebeb;
}

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

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

    color: #788f94;

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

    letter-spacing: .09em;

    text-transform: uppercase;
}

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

    color: #263b3e;

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

    line-height: 1.45;

    text-decoration: none;

    transition:
        color .15s ease;
}

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

    text-decoration: none;
}

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

    color: #899395;

    font-size: .78rem;

    line-height: 1.45;
}


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

.special-modal-footer {
    display: flex;

    justify-content: flex-end;

    padding:
        18px 32px;

    border-top:
        1px solid #edf0f0;

    background: #fff;
}

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

    align-items: center;

    gap: 7px;

    color: #4f596c;

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

    text-decoration: none;
}

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

    transition:
        transform .2s ease;
}

.special-modal-open-issue:hover {
    color: #394153;

    text-decoration: none;
}

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


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

@media (max-width: 767px) {

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

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

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

    /*
     * No tocamos height ni padding de la portada.
     * La imagen mantiene exactamente su proporción.
     */

    .special-info {
        padding:
            22px 23px 19px;
    }

    .special-title {
        font-size: 1.18rem;
    }

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


    /* MODAL */

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

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

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

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

        padding:
            4px 22px;
    }

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

}


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

@media (max-width: 480px) {

    .special-badge {
        top: 13px;
        left: 13px;

        font-size: .61rem;
    }

}