h2 {
    margin-bottom: 1rem;
    color: #1e1b18;
    font-size: clamp(1.5rem, 2.3vw, 2.1rem);
    line-height: 1.2;
}

.hero-img {
    min-height: 56vh;
    background-image: linear-gradient(120deg, rgba(18, 14, 11, 0.62), rgba(33, 24, 18, 0.38)), url(/assets/img/hero-aprende.webp);
    background-size: cover;
    background-position: 50% 38%;
    display: grid;
    align-items: end;
}

.hero-overlay {
    width: min(92%, 1120px);
    margin: 0 auto;
    padding: 3rem 1.5rem 2.4rem;
    color: #f4efe8;
}

.hero-overlay h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    margin-bottom: 0.8rem;
}

.hero-overlay p {
    max-width: 62ch;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: rgba(244, 239, 232, 0.94);
    opacity: 1;
}

.educacion,
.espolin,
.investigacion,
.biblioteca {
    width: min(92%, 1120px);
    margin: 2.2rem auto 0;
    padding: clamp(1.2rem, 2.2vw, 2.1rem);
    background: rgba(246, 240, 231, 0.74);
    box-shadow: 0 8px 24px rgba(31, 24, 18, 0.09);
    backdrop-filter: blur(2px);
}

.educacion div,
.investigacion-txt,
.biblioteca div {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.educacion p,
.espolin p,
.investigacion p,
.biblioteca p {
    color: #221d19;
    opacity: 0.96;
    line-height: 1.7;
    font-size: 0.98rem;
}

.container-espolin {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(1rem, 2.1vw, 2.2rem);
    align-items: start;
}

.espolin-txt {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.espolin-img img {
    width: 100%;
    height: auto;
    min-height: 300px;
    object-fit: cover;
}

.pdf-button {
    align-self: flex-start;
    margin-top: 0.35rem;
    padding: 0.66rem 1.05rem;
    background-color: #8e0041;
    color: #f5f2ee;
    border: none;
    font: inherit;
    cursor: pointer;
}

.pdf-button img {
    height: 12px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.investigacion-pdf {
    margin-top: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.separator {
    margin-top: 1.4rem;
    margin-bottom: 0;
}

@media screen and (max-width: 900px) {
    .container-espolin {
        grid-template-columns: 1fr;
    }

    .espolin-img img {
        min-height: 230px;
    }
}

@media screen and (max-width: 560px) {
    .hero-img {
        min-height: 50vh;
    }

    .hero-overlay {
        padding: 2rem 0.8rem 1.8rem;
    }

    .educacion,
    .espolin,
    .investigacion,
    .biblioteca {
        width: min(94%, 1120px);
        padding: 1rem;
    }
}
