
/* Encabezado de la página */
.documentos-encabezado {
    padding: 1.5rem 1.75rem;
    border-left: 5px solid #009887;
    border-radius: 0.5rem;
    background: #f6f8f8;
}

.documentos-etiqueta {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: #009887;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.documentos-titulo {
    margin-bottom: 0.5rem;
    color: #263238;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
}

.documentos-descripcion {
    max-width: 720px;
    color: #626b70;
    line-height: 1.6;
}

.documentos-contador,
.documentos-pagina {
    color: #596368;
    font-size: 0.9rem;
}

/* Tarjetas */
.documento-card {
    overflow: hidden;
    border: 1px solid #e2e8e8;
    border-radius: 0.7rem;
    background: #fff;
    box-shadow: 0 3px 12px rgba(12, 2, 6, 0.045);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.documento-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(12, 2, 6, 0.09);
}

/* Encabezado gráfico sin imagen externa */
.documento-card-header {
    position: relative;
    display: flex;
    min-height: 115px;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    padding: 1.25rem;
    color: #fff;
    background: linear-gradient(120deg, #007f72, #009887);
}

.documento-card-header::after {
    position: absolute;
    top: -50px;
    right: -25px;
    width: 155px;
    height: 155px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 50%;
    content: "";
}

.documento-header-icon {
    display: flex;
    width: 54px;
    height: 64px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.13);
    font-size: 1.8rem;
}

.documento-header-texto {
    z-index: 1;
    max-width: 170px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    line-height: 1.5;
}

.documento-header-marca {
    position: absolute;
    right: 1.1rem;
    bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.17);
    font-size: 2.4rem;
}

/* Datos del documento */
.documento-card .card-body {
    padding: 1.25rem;
}

.documento-area {
    color: #007f72;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.5;
}

.documento-seccion {
    display: inline-block;
    align-self: flex-start;
    padding: 0.25rem 0.55rem;
    border-radius: 0.25rem;
    background: #f0f4f4;
    color: #566368;
    font-size: 0.78rem;
}

.documento-nombre {
    margin: 0.5rem 0;
    color: #263238;
    font-size: 1.08rem;
    font-weight: 650;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.documento-detalle {
    margin-bottom: 0;
    color: #747d81;
    font-size: 0.83rem;
}

/* Descarga */
.btn-descargar {
    padding: 0.7rem 1rem;
    border: 1px solid #009887;
    border-radius: 0.4rem;
    background: #009887;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-descargar:hover,
.btn-descargar:focus {
    border-color: #007568;
    background: #007568;
    color: #fff;
}

/* Paginación */
.documentos-paginacion .page-link {
    margin: 0 2px;
    border-color: #e0e7e7;
    border-radius: 0.35rem;
    color: #007f72;
}

.documentos-paginacion .page-item.active .page-link {
    border-color: #009887;
    background: #009887;
    color: #fff;
}

.documentos-paginacion .page-item.disabled .page-link {
    color: #a5adaf;
}

.documentos-pie {
    color: #737d80;
    font-size: 0.85rem;
}

/* Accesibilidad y móviles */
.documento-card a:focus-visible {
    outline: 3px solid #c90166;
    outline-offset: 3px;
}

@media (max-width: 575.98px) {
    .documentos-encabezado {
        padding: 1.1rem;
    }

    .documento-card-header {
        min-height: 95px;
    }

    .documentos-paginacion .page-link {
        padding: 0.4rem 0.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .documento-card,
    .btn-descargar {
        transition: none;
    }
}
