/* MinCiencia Programas — estilos públicos */

.mcpg-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.mcpg-wrapper *,
.mcpg-wrapper *::before,
.mcpg-wrapper *::after {
    box-sizing: border-box;
}

.mcpg-empty {
    color: #4e5b70;
    font-size: 13px;
}

.mcpg-grid {
    display: grid;
    grid-template-columns: repeat( var( --mcpg-columnas, 3 ), minmax( 0, 1fr ) );
    gap: 16px 24px;
}

.mcpg-card {
    display: flex;
    flex-direction: column;
    padding: 16px 14px 14px;
    border: 1px solid #dfe3eb;
    border-radius: 4px;
    background: #fff;
}

.mcpg-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    margin-bottom: 18px;
}

.mcpg-logo img {
    display: block;
    width: auto;
    max-width: 70%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

.mcpg-wrapper .mcpg-titulo {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    color: #25334a;
}

.mcpg-desc {
    flex: 1;
    margin: 0 0 20px;
    color: #25334a;
    font-size: 14px;
    line-height: 1.7;
}

.mcpg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    padding: 10px 16px;
    border-radius: 4px;
    background: #8cdcc4;
    color: #25334a !important;
    font-size: 15px;
    text-decoration: none !important;
    transition: background-color 0.15s ease;
}

.mcpg-btn:hover,
.mcpg-btn:focus-visible {
    background: #6fd0b3;
}

@media ( max-width: 1024px ) {
    .mcpg-grid:not( .mcpg-cols-1 ) {
        grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
    }
}

@media ( max-width: 680px ) {
    .mcpg-grid {
        grid-template-columns: 1fr;
    }
}
