/* ============================================================
   EDUCATA - VISUALIZADOR GENÉRICO DE DOCUMENTOS
   ============================================================ */

.page-hero--documento {
    padding-bottom: 58px;
}

.documento-section {
    background: var(--educata-soft);
}

.documento-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 18px;
    padding: 18px 20px;

    border: 1px solid var(--educata-line);
    border-radius: 14px;

    background: var(--educata-white);
}

.documento-toolbar__info {
    display: grid;
    gap: 2px;
}

.documento-toolbar__label {
    color: var(--educata-brown);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.documento-toolbar__info strong {
    color: var(--educata-brown-dark);
    font-size: 1rem;
}

.documento-download {
    min-height: 44px;
    flex: 0 0 auto;

    background: var(--educata-brown);
    color: var(--educata-white);
}

.documento-download:hover,
.documento-download:focus-visible {
    background: var(--educata-brown-dark);
    color: var(--educata-white);
}

.documento-viewer {
    width: 100%;
    height: min(82vh, 1050px);
    min-height: 760px;

    overflow: hidden;

    border: 1px solid var(--educata-line);
    border-radius: 16px;

    background: #e9e5e1;
    box-shadow: 0 12px 38px rgba(45, 26, 15, 0.07);
}

.documento-viewer__pdf {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;

    background: var(--educata-white);
}

.documento-viewer__fallback {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;

    width: 100%;
    min-height: 600px;
    padding: 40px;

    text-align: center;
    background: var(--educata-white);
}

.documento-viewer__fallback h2 {
    margin: 0;
    color: var(--educata-brown-dark);
    font-size: 1.25rem;
}

.documento-viewer__fallback p {
    margin: 0 0 8px;
    color: var(--educata-muted);
}

@media (max-width: 760px) {

    .documento-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .documento-download {
        width: 100%;
    }

    .documento-viewer {
        height: 74vh;
        min-height: 580px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {

    .documento-viewer {
        height: 70vh;
        min-height: 520px;
    }
}
