/* =====================
   BANNER
   ===================== */
.biblio-banner {
    background-image: url('/images/biblioteca/PORTADA.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 50vh;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.biblio-banner-overlay {
    background: rgba(30, 36, 82, 0.6);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.biblio-banner-titulo {
    font-size: 4.5rem;
    font-weight: 700;
    color: #fff;
    font-family: MiFuenteDos, sans-serif;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    text-align: center;
    margin: 0;
    line-height: 1.1;
}

/* =====================
   TARJETAS DE VIDEO
   ===================== */
.biblio-cards-section {
    background: #fff;
    padding: 3rem 0 2rem;
}

.biblio-card-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.biblio-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    border-radius: 8px;
    padding: 0.5rem;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    outline: none;
}

.biblio-card:hover {
    background: #f4f6fb;
    box-shadow: 0 4px 16px rgba(30, 36, 82, 0.12);
}

.biblio-card:focus-visible {
    outline: 3px solid #1E2452;
    outline-offset: 2px;
}

.biblio-card-thumb {
    position: relative;
    flex-shrink: 0;
    width: 280px;
    height: 180px;
    border-radius: 6px;
    overflow: hidden;
}

.biblio-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.biblio-card:hover .biblio-card-thumb img {
    transform: scale(1.04);
}

.biblio-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 36, 82, 0.35);
    transition: background 0.2s ease;
}

.biblio-card:hover .biblio-card-play {
    background: rgba(30, 36, 82, 0.55);
}

.biblio-card-play i {
    font-size: 3rem;
    color: #fff;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.biblio-card-body {
    flex: 1;
}

.biblio-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1E2452;
    font-family: MiFuenteDos, sans-serif;
    margin: 0;
    line-height: 1.3;
}

/* =====================
   MODAL DE VIDEO
   ===================== */
.biblio-modal-content {
    background: #1E2452;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.biblio-modal-header {
    background: #1E2452;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 1rem 1.5rem;
}

.biblio-modal-title {
    color: #fff;
    font-family: MiFuenteDos, sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
}

.biblio-modal-body {
    background: #000;
}

.biblio-video {
    width: 100%;
    max-height: 75vh;
    display: block;
}

/* =====================
   SECCIÓN CUADERNILLOS
   ===================== */
.apren-cuadernillos {
    background: #fff;
    padding: 3rem 0 5rem;
}

.apren-subtitulo {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    font-family: MiFuenteDos, sans-serif;
    text-align: center;
    margin-bottom: 2.5rem;
}

.apren-btn-cuad {
    background: #fff;
    color: #1E2452;
    border: 1px solid #1E2452;
    border-radius: 10px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: MiFuente, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.apren-btn-cuad:hover {
    background: #1E2452;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 36, 82, 0.3);
}

.apren-btn-cuad i {
    font-size: 1.2rem;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 991px) {
    .biblio-banner-titulo {
        font-size: 3.5rem;
    }

    .biblio-card-thumb {
        width: 220px;
        height: 145px;
    }

    .biblio-card-title {
        font-size: 1.3rem;
    }

    .apren-subtitulo {
        font-size: 1.8rem;
    }
}

@media (max-width: 767px) {
    .biblio-banner {
        height: 40vh;
        min-height: 300px;
    }

    .biblio-banner-titulo {
        font-size: 2.5rem;
    }

    .biblio-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .biblio-card-thumb {
        width: 100%;
        height: 200px;
    }

    .biblio-card-title {
        font-size: 1.1rem;
    }

    .apren-subtitulo {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .apren-btn-cuad {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
}
