/* ==========================================================================
   PORTAL DE NOVEDADES — CSS
   Página independiente de listado del Blog / Novedades de Troop
   ========================================================================== */

.troop-portal-novedades {
    background-color: var(--troop-dark-bg, #0a0f1d);
    color: var(--troop-text, #ffffff);
    min-height: 100vh;
    padding-bottom: 5rem;
}

/* --- Hero Section --- */
/* padding-top 160px/120px: despeja el header fijo (.troop-header, position:fixed) — ver AGENTS.md §0.14 */
.novedades-hero {
    padding: 160px 0 2.5rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
    .novedades-hero {
        padding: 120px 0 2rem;
    }
}

.novedades-hero-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.12);
    color: var(--troop-accent-blue, #38bdf8);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    margin-bottom: 1.25rem;
}

.novedades-hero-title {
    font-size: clamp(2rem, 4vw, 2.85rem);
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    max-width: 860px;
    margin: 0 auto 1.25rem;
}

.novedades-hero-lead {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.6;
    color: #94a3b8;
    max-width: 720px;
    margin: 0 auto;
}

/* --- Barra de Filtros por Categoría --- */
.novedades-categories-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin: 2rem auto 0 auto;
    max-width: 820px;
}
.novedades-category-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.15rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.novedades-category-pill:hover {
    background: rgba(0, 191, 128, 0.12);
    border-color: rgba(0, 191, 128, 0.35);
    color: var(--troop-primary, #00bf80);
    transform: translateY(-1px);
}
.novedades-category-pill.active {
    background: var(--troop-primary, #00bf80);
    border-color: var(--troop-primary, #00bf80);
    color: #0b1512;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 191, 128, 0.3);
}

/* --- Grilla de Artículos --- */
.novedades-grid-section {
    padding: 3.5rem 0;
}

.novedades-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 991px) {
    .novedades-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .novedades-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* --- Tarjeta de Artículo --- */
.novedades-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.novedades-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.novedades-card-link-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.novedades-card-image {
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #1e293b;
}

.novedades-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.novedades-card:hover .novedades-card-image img {
    transform: scale(1.05);
}

.novedades-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.novedades-card-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.6;
}

.novedades-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.novedades-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.novedades-card-cat {
    display: inline-block;
    background: rgba(56, 189, 248, 0.12);
    color: var(--troop-accent-blue, #38bdf8);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.novedades-card-date {
    color: #94a3b8;
    font-size: 0.8rem;
    white-space: nowrap;
}

.novedades-card-title {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.65rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.novedades-card:hover .novedades-card-title {
    color: var(--troop-accent-blue, #38bdf8);
}

.novedades-card-excerpt {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0 0 1.25rem 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.novedades-card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--troop-accent-blue, #38bdf8);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: auto;
}

.novedades-card-action svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.novedades-card:hover .novedades-card-action svg {
    transform: translateX(4px);
}

/* --- Paginación --- */
.novedades-pagination {
    margin-top: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.novedades-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    border-radius: 10px;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.novedades-page-btn:hover {
    background: #1e293b;
    border-color: rgba(56, 189, 248, 0.4);
    color: #ffffff;
}

.novedades-page-btn.is-active {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
    pointer-events: none;
}

.novedades-page-btn.is-disabled {
    opacity: 0.35;
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0.05);
}

/* --- Estado Vacío --- */
.novedades-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: #94a3b8;
}

.novedades-empty h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}
