
/* ═══════════════════════════════════════════════════════════
   SKELETON LOADER — siluetas de cards mientras carga
   ═══════════════════════════════════════════════════════════ */
.skeleton-card {
    pointer-events: none;
    user-select: none;
}
.skeleton-card .card-banner.skeleton-banner {
    background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s ease-in-out infinite;
}
.skeleton-card .skeleton-line {
    height: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s ease-in-out infinite;
}
.skeleton-card .skeleton-cat   { width: 40%; height: 10px; }
.skeleton-card .skeleton-title { width: 90%; height: 14px; }
.skeleton-card .skeleton-title.short { width: 60%; }
.skeleton-card .skeleton-desc  { width: 100%; height: 10px; }
.skeleton-card .skeleton-desc.short { width: 70%; }
.skeleton-card .skeleton-info  { width: 75%; height: 10px; }
.skeleton-card .skeleton-btn   { width: 100%; height: 34px; border-radius: 30px; margin-top: 8px; }

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

/* Contenedor grid de skeletons (index.php) */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--card-w, 340px), 1fr));
    gap: 16px;
    margin-top: 20px;
}

/* Skeletons de recomendados (carrusel) */
.skeleton-reco {
    flex: 0 0 260px;
    min-width: 260px;
    border-radius: 12px;
    overflow: hidden;
    background: #0a0a0a;
    border: 1px solid var(--borde);
}
.skeleton-reco .skeleton-banner {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s ease-in-out infinite;
}
.skeleton-reco .skeleton-body {
    padding: 12px 14px;
}
.skeleton-reco .skeleton-line {
    height: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s ease-in-out infinite;
}
.skeleton-reco .skeleton-line.short { width: 60%; }

/* Skeletons de posts del muro */
.skeleton-post .skeleton-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s ease-in-out infinite;
    flex-shrink: 0;
}
.skeleton-post .skeleton-banner-post {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s ease-in-out infinite;
}
.skeleton-post .skeleton-line {
    height: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s ease-in-out infinite;
}
.skeleton-post .skeleton-line.short { width: 60%; }

/* Contenedor de skeletons de posts del muro */
.skeleton-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}