/* ── Variables ── */
:root {
    --gold: #ECAB28;
    --dark: #111415;
    --gray-bg: #E6E6E6;
    --text-dark: #1a1a1a;
    --text-muted: #6b6257;
}

/* ── Skeleton loader ── */
.skeleton {
    background: linear-gradient(90deg, #d4d4d4 25%, #e8e8e8 50%, #d4d4d4 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s infinite;
    border-radius: 0.75rem;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ── Card noticia ── */
.card-noticia {
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-noticia:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* ── Barra de búsqueda y filtros ── */
.search-bar {
    background: #fff;
    border: 2px solid transparent;
    border-radius: 0.75rem;
    transition: border-color 0.2s;
}

.search-bar:focus-within {
    border-color: var(--gold);
}

.filtro-input {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 0.75rem;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    font-family: 'Manrope', sans-serif;
    color: var(--text-dark);
    transition: border-color 0.2s;
    outline: none;
    cursor: pointer;
}

.filtro-input:focus {
    border-color: var(--gold);
}

/* ── Chip de mes activo ── */
.chip-mes {
    padding: 0.35rem 1rem;
    border-radius: 999px;
    border: 1.5px solid #d0d0d0;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    color: #555;
    background: #fff;
}

.chip-mes:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.chip-mes.activo {
    background: var(--gold);
    border-color: var(--gold);
    color: #111;
}

/* ── Sin resultados ── */
.sin-resultados {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
    font-family: 'Manrope', sans-serif;
}

/* ── Paginación ── */
.btn-pag {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1.5px solid #d0d0d0;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-pag:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-pag.activo {
    background: var(--gold);
    border-color: var(--gold);
    color: #111;
}

.btn-pag:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ── Fade in cards ── */
.fade-card {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.45s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Tag categoría ── */
.tag-cat {
    display: inline-block;
    background: var(--gold);
    color: #111;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

/* ── Línea dorada decorativa ── */
.linea-dorada {
    width: 60px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}