:root {
    --app-bg: #f5f7fb;
    --app-card-bg: #ffffff;
    --app-border: #dfe5ee;
    --app-text: #1f2937;
    --app-muted: #6b7280;
    --app-primary: #0d6efd;
    --app-radius: 1rem;
    --app-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.08);
}

body {
    background: var(--app-bg);
    color: var(--app-text);
}

.app-shell {
    min-height: 100vh;
}

.app-page-header {
    margin-bottom: 1.5rem;
}

.app-page-title {
    font-weight: 700;
    letter-spacing: -0.03em;
}

.app-page-subtitle {
    color: var(--app-muted);
    max-width: 760px;
}

.app-card {
    background: var(--app-card-bg);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    height: 100%;
}

.app-card:hover {
    transform: translateY(-2px);
    border-color: rgba(13, 110, 253, 0.35);
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.12);
}

.app-card-title {
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.app-card-text {
    color: var(--app-muted);
}

.app-card-categoria-img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    object-position: center;
    background: #eef2f7;
}

/* Imagen por defecto de categor¨ªas */
.app-card-categoria-img-default,
.app-card-categoria-img[src$="default_thumb.png"] {
    display: block;
    width: 60px !important;
    max-width: 60px !important;
    height: 60px !important;
    object-fit: contain !important;
    object-position: center;
    margin: 2rem auto 1.25rem auto;
    background: transparent !important;
}

@media (max-width: 768px) {
    .app-card-categoria-img {
        height: 170px;
    }

    .app-card-categoria-img-default,
    .app-card-categoria-img[src$="default_thumb.png"] {
        width: 60px !important;
        max-width: 60px !important;
        height: 60px !important;
        margin: 1.5rem auto 1rem auto;
    }
}

.app-meta {
    color: var(--app-muted);
    font-size: 0.925rem;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(13, 110, 253, 0.1);
    color: #084298;
}

.app-article {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow);
    padding: 2rem;
}

.app-article-title {
    font-weight: 800;
    letter-spacing: -0.04em;
}

.app-article-description {
    color: var(--app-muted);
    font-size: 1.1rem;
}

.app-article-body {
    line-height: 1.75;
    font-size: 1.05rem;
}

.app-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

.app-article-body table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
}

.app-article-body table th,
.app-article-body table td {
    border: 1px solid var(--app-border);
    padding: 0.65rem;
}

.app-article-body blockquote {
    border-left: 4px solid var(--app-primary);
    padding-left: 1rem;
    color: var(--app-muted);
    font-style: italic;
}

.app-toolbar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.app-empty {
    background: #ffffff;
    border: 1px dashed var(--app-border);
    border-radius: var(--app-radius);
    padding: 2rem;
    color: var(--app-muted);
    text-align: center;
}

.app-footer {
    color: var(--app-muted);
    font-size: 0.9rem;
}

/* MÃ³vil */
@media (max-width: 768px) {
    .app-article {
        padding: 1.25rem;
    }

    .app-article-title {
        font-size: 1.75rem;
    }

    .app-toolbar .btn {
        width: 100%;
    }
}

/* ImpresiÃ³n */
@media print {
    body {
        background: #ffffff;
    }

    .navbar,
    .app-toolbar,
    .btn,
    .app-footer,
    .no-print {
        display: none !important;
    }

    .container {
        max-width: 100% !important;
        width: 100% !important;
    }

    .app-article {
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .app-article-body {
        font-size: 11pt;
        line-height: 1.55;
    }

    a[href]::after {
        content: "";
    }
}

.articulo-card {
    height: auto;
    overflow: hidden;
    border-radius: 0.75rem;
}

.articulo-card-img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
}

.articulo-card-placeholder {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 500;
}

.articulo-card-body {
    padding: 1.25rem;
}

.articulo-card-title {
    margin-bottom: 1rem;
    font-weight: 700;
}

.articulo-card-description {
    color: #555;
    margin-bottom: 1rem;
}

.articulo-card-meta {
    margin-bottom: 1rem;
}