/* =========================
   Skeleton Screen (Loading)
=========================== */
.skeleton {
    position: relative;
    overflow: hidden;
    background-color: #e2e8f0;
    border-radius: 4px;
}

.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Clases generales */
.skeleton-text {
    height: 12px;
    width: 100%;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-title {
    height: 18px;
    width: 120px;
}

.skeleton-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* Card Skeleton Estructurado */
.skeleton-card {
    background: var(--bg-card);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    min-height: 180px;
    overflow: hidden;
}

.skeleton-card .skeleton-header {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skeleton-card .skeleton-body {
    padding: 15px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.skeleton-card .skeleton-footer {
    padding: 10px 12px;
    background-color: #f7f6fb;
    border-top: 1px solid #e0e0e0;
    margin-top: auto;
    height: 40px;
}

/* Clases auxiliares para el cuerpo */
.skeleton-line {
    height: 10px;
    width: 100%;
    background-color: #e2e8f0; /* Asegurar base por si no tiene .skeleton */
}

.skeleton-line.short {
    width: 60%;
}

/* Adaptación para Perfil */
.user-profile .skeleton-avatar {
    width: 110px;
    height: 110px;
}

#profileSkeleton {
    width: 99.5%;
}

