.tarjetas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.tarjetas article {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.tabla-scroll {
    max-width: 100%;
    overflow-x: auto;
}

.aviso-rojo {
    padding: 1rem;
    margin-block: 1rem;
    color: #800f1c;
    background: #fff0f1;
    border: 2px solid #b42335;
    border-radius: var(--pico-border-radius);
}

.aviso-rojo a {
    color: inherit;
    text-decoration: underline;
}

.grafico,
div:has(> canvas#grafico-finanzas) {
    position: relative;
    height: 360px;
    min-width: 0;
}

nav,
nav > ul {
    flex-wrap: wrap;
    gap: 0.25rem;
}

nav form {
    margin: 0;
}

nav a[aria-current="page"] {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--pico-primary);
    outline-offset: 3px;
}

@media (min-width: 1024px) {
    .tarjetas {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
