/* ========== SKELETON LOADERS ========== */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-news-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin-bottom: 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(46, 74, 124, 0.1);
}

.skeleton-news-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-news-content {
    padding: 20px;
}

.skeleton-news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.skeleton-meta-item {
    width: 100px;
    height: 14px;
}

.skeleton-news-title {
    width: 90%;
    height: 20px;
    margin-bottom: 10px;
}

.skeleton-news-title-short {
    width: 60%;
    height: 20px;
    margin-bottom: 10px;
}

.skeleton-news-excerpt {
    width: 100%;
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-news-excerpt:last-child {
    width: 80%;
}

.skeleton-sidebar-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(46, 74, 124, 0.08);
}

.skeleton-section-title {
    width: 150px;
    height: 18px;
    margin-bottom: 15px;
}

.skeleton-popular-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(46, 74, 124, 0.08);
}

.skeleton-popular-item:last-child {
    border-bottom: none;
}

.skeleton-popular-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-popular-content {
    flex: 1;
}

.skeleton-popular-title {
    width: 100%;
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-popular-title-short {
    width: 70%;
    height: 14px;
}

/* Grid de skeleton loaders */
.skeleton-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

/* Ocultar skeleton cuando se carga el contenido */
.skeleton-hidden {
    display: none;
}

