@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #002964;
    --secondary-color: #cd9804;
    --background-color: #f2f2f2;
    --text-color: #333;
    --text-color-white: #fff;
    --heading-color: #002964;
    --link-color: #fff;
    --link-hover-color: #cd9804;
}

.documentos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.documentos-container h2 {
    font-size: 2rem;
    color: #fff;
    background-color: var(--primary-color);
    margin-bottom: 1rem;
    border-radius: 10px;
}

.documentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.documentos-item {
    background-color: var(--background-color);
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.documentos-item:hover {
    background-color: var(--primary-color);
}

.documentos-item:hover h3,
.documentos-item:hover p {
    color: #fff;
}

.documentos-item img {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.documentos-item h3 {
    font-size: 1.1rem;
    color: #333;
    margin: 0.5rem 0;
}

.documentos-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0.5rem 0;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: --background-color 0.3s ease;
}

.page-btn:hover {
    background-color: #1565c0;
}

.descargar-btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.4rem 0.8rem;
    background-color: #4caf50;
    color: #fff;
    font-size: 0.9rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.descargar-btn:hover {
    background-color: #388e3c;
}
