/* ==========================================================
   COBACH 34
   BIBLIOTECA
========================================================== */


/* ==========================================================
   HERO
========================================================== */

.library-hero {
    position: relative;

    padding: 85px 0 100px;

    overflow: hidden;

    color: #fff;

    background:
        radial-gradient(
            circle at 82% 12%,
            rgba(48, 143, 214, .34),
            transparent 31%
        ),
        linear-gradient(
            125deg,
            #041c35 0%,
            #07345f 52%,
            #0b4d83 100%
        );
}

.library-hero::after {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -240px;
    bottom: -320px;

    border:
        62px solid
        rgba(255,255,255,.035);

    border-radius: 50%;
}

.library-hero-grid {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(300px, .75fr);

    gap: 65px;

    align-items: center;
}

.library-hero h1 {
    max-width: 760px;

    margin: 12px 0 22px;

    color: #fff;

    font-size:
        clamp(2.8rem, 5vw, 4.8rem);

    line-height: .98;

    letter-spacing: -.045em;
}

.library-hero h1 span {
    display: block;

    color: #9fd0f3;
}

.library-hero-content > p {
    max-width: 690px;

    margin: 0;

    color:
        rgba(255,255,255,.78);

    font-size: 1.04rem;

    line-height: 1.8;
}

.library-hero-actions {
    margin-top: 30px;

    display: flex;
    flex-wrap: wrap;

    gap: 13px;
}


/* ==========================================================
   HERO CARD
========================================================== */

.library-hero-card {
    padding: 32px;

    border:
        1px solid
        rgba(255,255,255,.18);

    border-radius: 22px;

    background:
        rgba(255,255,255,.09);

    backdrop-filter: blur(12px);

    box-shadow:
        0 25px 60px
        rgba(0,0,0,.14);
}

.library-card-icon {
    width: 68px;
    height: 68px;

    display: grid;
    place-items: center;

    margin-bottom: 24px;

    border-radius: 19px;

    background: #fff;

    font-size: 2rem;

    box-shadow:
        0 12px 30px
        rgba(0,0,0,.16);
}

.library-hero-card > span {
    display: block;

    margin-bottom: 9px;

    color: #9fd0f3;

    font-size: .74rem;
    font-weight: 850;

    text-transform: uppercase;

    letter-spacing: .1em;
}

.library-hero-card h2 {
    margin: 0 0 15px;

    color: #fff;

    font-size: 1.65rem;

    line-height: 1.2;
}

.library-hero-card > p {
    margin: 0;

    color:
        rgba(255,255,255,.68);

    line-height: 1.7;
}

.library-card-data {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 10px;

    margin-top: 25px;
}

.library-card-data > div {
    padding: 15px;

    border:
        1px solid
        rgba(255,255,255,.10);

    border-radius: 13px;

    background:
        rgba(255,255,255,.055);
}

.library-card-data small {
    display: block;

    color:
        rgba(255,255,255,.52);
}

.library-card-data strong {
    display: block;

    margin-top: 3px;

    color: #fff;
}


/* ==========================================================
   SERVICIOS
========================================================== */

.library-services-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 19px;
}

.library-service-card {
    position: relative;

    min-height: 310px;

    padding: 31px;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border:
        1px solid #dce5ed;

    border-radius: 20px;

    background: #fff;

    transition:
        transform .22s ease,
        box-shadow .22s ease;
}

.library-service-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 20px 45px
        rgba(8,43,84,.11);
}

.library-service-featured {
    color: #fff;

    border-color: transparent;

    background:
        radial-gradient(
            circle at 20% 10%,
            rgba(37,137,214,.40),
            transparent 35%
        ),
        linear-gradient(
            140deg,
            #05294f,
            #07457e
        );

    box-shadow:
        0 22px 48px
        rgba(5,48,91,.20);
}

.library-service-number {
    position: absolute;

    top: 24px;
    right: 27px;

    color: #dce4eb;

    font-size: 1.9rem;

    font-weight: 900;
}

.library-service-featured
.library-service-number {
    color:
        rgba(255,255,255,.14);
}

.library-service-icon {
    width: 65px;
    height: 65px;

    display: grid;
    place-items: center;

    margin-bottom: 25px;

    border-radius: 18px;

    background: #edf4f9;

    font-size: 1.8rem;
}

.library-service-featured
.library-service-icon {
    background: #fff;

    box-shadow:
        0 11px 26px
        rgba(0,0,0,.15);
}

.library-service-card h3 {
    margin: 0 0 11px;

    color:
        var(--cobach-blue);

    font-size: 1.18rem;
}

.library-service-card p {
    margin: 0 0 22px;

    color: var(--muted);

    line-height: 1.7;
}

.library-service-featured h3 {
    color: #fff;
}

.library-service-featured p {
    color:
        rgba(255,255,255,.77);
}

.library-service-access {
    margin-top: auto;

    color: var(--cobach-blue);

    font-size: .85rem;

    font-weight: 850;
}

.library-service-featured
.library-service-access {
    color: #fff;
}

.library-service-access strong {
    margin-left: 5px;

    transition:
        margin-left .2s ease;
}

.library-service-card:hover
.library-service-access strong {
    margin-left: 10px;
}


/* ==========================================================
   LECTURA
========================================================== */

.library-reading-section {
    background: #f4f7fa;
}

.library-reading-grid {
    display: grid;

    grid-template-columns:
        .82fr 1.18fr;

    gap: 75px;
}

.library-reading-grid h2 {
    margin: 12px 0 15px;

    color: var(--cobach-blue);

    font-size:
        clamp(2rem,4vw,3rem);

    line-height: 1.08;

    letter-spacing: -.035em;
}

.library-reading-grid
> div:first-child p {
    max-width: 520px;

    color: var(--muted);

    line-height: 1.8;
}

.library-reading-points {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 13px;
}

.library-reading-points article {
    padding: 20px;

    display: flex;

    gap: 16px;

    border:
        1px solid #dce5ed;

    border-radius: 16px;

    background: #fff;
}

.library-reading-points article > span {
    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 12px;

    color: #fff;

    background:
        var(--cobach-blue);

    font-size: .76rem;

    font-weight: 900;
}

.library-reading-points h3 {
    margin: 2px 0 5px;

    color: var(--cobach-blue);
}

.library-reading-points p {
    margin: 0;

    color: var(--muted);

    font-size: .88rem;

    line-height: 1.6;
}


/* ==========================================================
   RECOMENDACIONES
========================================================== */

.library-recommendations-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}

.library-recommendations-grid article {
    padding: 27px;

    border:
        1px solid #dce5ed;

    border-radius: 18px;

    background: #fff;
}

.library-recommendations-grid article > div {
    width: 55px;
    height: 55px;

    display: grid;
    place-items: center;

    margin-bottom: 20px;

    border-radius: 15px;

    background: #edf4f9;

    font-size: 1.55rem;
}

.library-recommendations-grid h3 {
    margin: 0 0 9px;

    color: var(--cobach-blue);
}

.library-recommendations-grid p {
    margin: 0;

    color: var(--muted);

    line-height: 1.68;

    font-size: .92rem;
}


/* ==========================================================
   CTA
========================================================== */

.library-cta {
    padding: 20px 0 90px;
}

.library-cta-inner {
    padding: 48px 52px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    border-radius: 24px;

    color: #fff;

    background:
        linear-gradient(
            125deg,
            #061f3b,
            #093e70
        );
}

.library-cta-inner
> div > span {
    color: #8fc7ef;

    font-size: .76rem;

    font-weight: 850;

    text-transform: uppercase;

    letter-spacing: .09em;
}

.library-cta h2 {
    margin: 9px 0 10px;

    color: #fff;

    font-size: 2rem;
}

.library-cta p {
    max-width: 620px;

    margin: 0;

    color:
        rgba(255,255,255,.70);
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 950px) {

    .library-hero-grid,
    .library-reading-grid {
        grid-template-columns: 1fr;
    }

    .library-services-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .library-recommendations-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .library-cta-inner {
        flex-direction: column;

        align-items: flex-start;
    }

}


@media (max-width: 650px) {

    .library-hero {
        padding:
            60px 0
            65px;
    }

    .library-hero h1 {
        font-size: 2.5rem;
    }

    .library-hero-actions {
        flex-direction: column;
    }

    .library-card-data {
        grid-template-columns: 1fr;
    }

    .library-services-grid,
    .library-reading-points,
    .library-recommendations-grid {
        grid-template-columns: 1fr;
    }

    .library-service-card {
        min-height: auto;
    }

    .library-cta-inner {
        padding: 35px 27px;
    }

}